@intra-mart/smartlime 1.4.4 → 1.5.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/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export { Smartlime } from './packages/Smartlime';
|
|
2
2
|
export { IMTenant } from './packages/Tenant';
|
|
3
3
|
export * from './packages/Tenant/hooks';
|
|
4
|
+
export type { ModuleIds } from './packages/Tenant/modulesType';
|
|
4
5
|
export { IMOAuth } from './packages/OAuth';
|
|
5
6
|
export * from './packages/OAuth/hooks';
|
|
6
7
|
export { useIMFetch } from './packages/Fetch';
|
|
@@ -11,7 +11,7 @@ interface SmartlimeProps {
|
|
|
11
11
|
* prop is currently not working.
|
|
12
12
|
*/
|
|
13
13
|
tenantId?: string;
|
|
14
|
-
imtenant
|
|
14
|
+
imtenant?: Omit<React.ComponentProps<typeof IMTenant>, 'children' | 'baseUrl' | 'tenantId'>;
|
|
15
15
|
imoauth: Omit<React.ComponentProps<typeof IMOAuth>, 'children'>;
|
|
16
16
|
imme?: Omit<React.ComponentProps<typeof IMMe>, 'children'>;
|
|
17
17
|
imsession?: Omit<React.ComponentProps<typeof IMSession>, 'children'>;
|
|
@@ -103,7 +103,6 @@ export const IMTenant = ({ children, baseUrl, tenantId, tenantContext, useModule
|
|
|
103
103
|
const [, setFetchModuleState, getFetchModuleState] = useFetchModuleStateRef(modulesStateRenderTarget, useModuleInfo);
|
|
104
104
|
const [, setModuleInfo, getModuleInfo, destroyModuleInfo] = useModuleInfoRef(baseUrl, setFetchModuleState, useModuleInfo);
|
|
105
105
|
const fetchModuleInfo = useFetchModuleInfo(baseUrl, setModuleInfo);
|
|
106
|
-
saveModuleInfoStorage;
|
|
107
106
|
contextRef.current = {
|
|
108
107
|
getBaseUrl,
|
|
109
108
|
getTenantId,
|
|
@@ -15,7 +15,9 @@ const useInitModuleState = (onSessionCreationError) => {
|
|
|
15
15
|
await fetchModuleInfo();
|
|
16
16
|
}
|
|
17
17
|
catch (error) {
|
|
18
|
-
onSessionCreationError?.(new IMWebViewError('failed to fetch module status.'
|
|
18
|
+
onSessionCreationError?.(new IMWebViewError('failed to fetch module status.', {
|
|
19
|
+
cause: error,
|
|
20
|
+
}));
|
|
19
21
|
}
|
|
20
22
|
})();
|
|
21
23
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@intra-mart/smartlime",
|
|
3
3
|
"description": "expoで使用できるintra mart accelplatform SDK",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.5.0",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"intra-mart",
|
|
7
7
|
"AccelPlatform",
|
|
@@ -42,43 +42,43 @@
|
|
|
42
42
|
"type": "tsc --noEmit"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
|
-
"expo": "^
|
|
45
|
+
"expo": "^51.0.31",
|
|
46
46
|
"react": "18.2.0"
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@react-native-async-storage/async-storage": "
|
|
50
|
-
"expo-auth-session": "~5.
|
|
51
|
-
"expo-crypto": "~
|
|
52
|
-
"expo-random": "~
|
|
53
|
-
"expo-secure-store": "~
|
|
54
|
-
"react-native-webview": "13.6
|
|
55
|
-
"set-cookie-parser": "^2.
|
|
49
|
+
"@react-native-async-storage/async-storage": "1.23.1",
|
|
50
|
+
"expo-auth-session": "~5.5.2",
|
|
51
|
+
"expo-crypto": "~13.0.2",
|
|
52
|
+
"expo-random": "~14.0.1",
|
|
53
|
+
"expo-secure-store": "~13.0.2",
|
|
54
|
+
"react-native-webview": "13.8.6",
|
|
55
|
+
"set-cookie-parser": "^2.7.0"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
|
-
"@babel/core": "^7.
|
|
59
|
-
"@babel/preset-env": "^7.
|
|
60
|
-
"@types/jest": "^29.5.
|
|
61
|
-
"@types/react": "
|
|
62
|
-
"@types/react-test-renderer": "18.0
|
|
63
|
-
"@types/set-cookie-parser": "^2.4.
|
|
64
|
-
"@typescript-eslint/eslint-plugin": "^
|
|
65
|
-
"@typescript-eslint/parser": "^
|
|
66
|
-
"eslint": "^8.
|
|
58
|
+
"@babel/core": "^7.25.2",
|
|
59
|
+
"@babel/preset-env": "^7.25.4",
|
|
60
|
+
"@types/jest": "^29.5.12",
|
|
61
|
+
"@types/react": "^18.2.79",
|
|
62
|
+
"@types/react-test-renderer": "18.3.0",
|
|
63
|
+
"@types/set-cookie-parser": "^2.4.10",
|
|
64
|
+
"@typescript-eslint/eslint-plugin": "^8.3.0",
|
|
65
|
+
"@typescript-eslint/parser": "^8.3.0",
|
|
66
|
+
"eslint": "^8.57.0",
|
|
67
67
|
"eslint-config-prettier": "^9.1.0",
|
|
68
|
-
"eslint-plugin-react": "^7.
|
|
69
|
-
"expo": "^
|
|
68
|
+
"eslint-plugin-react": "^7.35.0",
|
|
69
|
+
"expo": "^51.0.31",
|
|
70
70
|
"jest": "^29.7.0",
|
|
71
|
-
"jest-expo": "^
|
|
72
|
-
"prettier": "^3.
|
|
71
|
+
"jest-expo": "^51.0.4",
|
|
72
|
+
"prettier": "^3.3.3",
|
|
73
73
|
"react": "18.2.0",
|
|
74
74
|
"react-dom": "18.2.0",
|
|
75
|
-
"react-native": "0.
|
|
75
|
+
"react-native": "0.74.5",
|
|
76
76
|
"react-test-renderer": "18.2.0",
|
|
77
|
-
"ts-jest": "^29.
|
|
77
|
+
"ts-jest": "^29.2.5",
|
|
78
78
|
"typescript": "^5.3.3"
|
|
79
79
|
},
|
|
80
80
|
"resolutions": {
|
|
81
|
-
"@types/react": "^18.2.
|
|
81
|
+
"@types/react": "^18.2.79"
|
|
82
82
|
},
|
|
83
83
|
"packageManager": "yarn@1.22.19",
|
|
84
84
|
"engines": {
|