@intra-mart/smartlime 1.0.0 → 1.1.1
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/packages/Me/index.d.ts +1 -1
- package/lib/packages/OAuth/index.d.ts +1 -1
- package/lib/packages/Search/hooks/index.d.ts +8 -8
- package/lib/packages/Search/hooks/index.js +8 -8
- package/lib/packages/Search/hooks/useDepartmentSearch.d.ts +2 -0
- package/lib/packages/Search/hooks/{useDepartmentSerch.js → useDepartmentSearch.js} +1 -1
- package/lib/packages/Search/hooks/useDepartmentTopSearch.d.ts +2 -0
- package/lib/packages/Search/hooks/{useDepartmentTopSerch.js → useDepartmentTopSearch.js} +1 -1
- package/lib/packages/Search/hooks/usePostSearch.d.ts +2 -0
- package/lib/packages/Search/hooks/{usePostSerch.js → usePostSearch.js} +1 -1
- package/lib/packages/Search/hooks/usePublicGroupSearch.d.ts +2 -0
- package/lib/packages/Search/hooks/{usePublicGroupSerch.js → usePublicGroupSearch.js} +1 -1
- package/lib/packages/Search/hooks/usePublicGroupTopSearch.d.ts +2 -0
- package/lib/packages/Search/hooks/{usePublicGroupTopSerch.js → usePublicGroupTopSearch.js} +1 -1
- package/lib/packages/Search/hooks/useRoleSearch.d.ts +2 -0
- package/lib/packages/Search/hooks/{useRoleSerch.js → useRoleSearch.js} +1 -1
- package/lib/packages/Search/index.d.ts +1 -1
- package/lib/packages/Search/index.js +5 -5
- package/lib/packages/Session/hooks/useSession.d.ts +1 -0
- package/lib/packages/Session/hooks/useSessionState.d.ts +1 -0
- package/lib/packages/Session/index.d.ts +1 -1
- package/lib/packages/Smartlime/NotSearchPropError.d.ts +2 -1
- package/lib/packages/Smartlime/index.d.ts +1 -1
- package/lib/packages/Tenant/index.d.ts +1 -1
- package/lib/packages/WebView/hooks/useHackSearchUI.d.ts +1 -0
- package/lib/utils/mergeRef.d.ts +1 -0
- package/package.json +27 -27
- package/lib/packages/Search/hooks/useDepartmentSerch.d.ts +0 -2
- package/lib/packages/Search/hooks/useDepartmentTopSerch.d.ts +0 -2
- package/lib/packages/Search/hooks/usePostSerch.d.ts +0 -2
- package/lib/packages/Search/hooks/usePublicGroupSerch.d.ts +0 -2
- package/lib/packages/Search/hooks/usePublicGroupTopSerch.d.ts +0 -2
- package/lib/packages/Search/hooks/useRoleSerch.d.ts +0 -2
- /package/lib/packages/Search/hooks/{usePublicGroupRoleSerch.d.ts → usePublicGroupRoleSearch.d.ts} +0 -0
- /package/lib/packages/Search/hooks/{usePublicGroupRoleSerch.js → usePublicGroupRoleSearch.js} +0 -0
- /package/lib/packages/Search/hooks/{useUserSerch.d.ts → useUserSearch.d.ts} +0 -0
- /package/lib/packages/Search/hooks/{useUserSerch.js → useUserSearch.js} +0 -0
|
@@ -18,5 +18,5 @@ export interface IMMeProps {
|
|
|
18
18
|
children: JSX.Element;
|
|
19
19
|
meContext?: typeof DefaultContext;
|
|
20
20
|
}
|
|
21
|
-
export declare const IMMe: ({ children, meContext }: IMMeProps) => JSX.Element;
|
|
21
|
+
export declare const IMMe: ({ children, meContext }: IMMeProps) => import("react").JSX.Element;
|
|
22
22
|
export {};
|
|
@@ -36,5 +36,5 @@ interface IMOAuthProps {
|
|
|
36
36
|
storageKey?: string;
|
|
37
37
|
oauthContext?: typeof DefaultContext;
|
|
38
38
|
}
|
|
39
|
-
export declare const IMOAuth: ({ children, requestConfig, remainingTimeToRunRefresh, storageKey, oauthContext, }: IMOAuthProps) => JSX.Element;
|
|
39
|
+
export declare const IMOAuth: ({ children, requestConfig, remainingTimeToRunRefresh, storageKey, oauthContext, }: IMOAuthProps) => import("react").JSX.Element;
|
|
40
40
|
export {};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
export * from './useIMSearch';
|
|
2
|
-
export * from './
|
|
3
|
-
export * from './
|
|
4
|
-
export * from './
|
|
5
|
-
export * from './
|
|
6
|
-
export * from './
|
|
7
|
-
export * from './
|
|
8
|
-
export * from './
|
|
2
|
+
export * from './useUserSearch';
|
|
3
|
+
export * from './useDepartmentSearch';
|
|
4
|
+
export * from './useDepartmentTopSearch';
|
|
5
|
+
export * from './usePostSearch';
|
|
6
|
+
export * from './usePublicGroupSearch';
|
|
7
|
+
export * from './usePublicGroupTopSearch';
|
|
8
|
+
export * from './useRoleSearch';
|
|
9
9
|
export * from './useUserAdditionalInformationSearch';
|
|
10
10
|
export * from './useDepartmentPostSearch';
|
|
11
|
-
export * from './
|
|
11
|
+
export * from './usePublicGroupRoleSearch';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
export * from './useIMSearch';
|
|
2
|
-
export * from './
|
|
3
|
-
export * from './
|
|
4
|
-
export * from './
|
|
5
|
-
export * from './
|
|
6
|
-
export * from './
|
|
7
|
-
export * from './
|
|
8
|
-
export * from './
|
|
2
|
+
export * from './useUserSearch';
|
|
3
|
+
export * from './useDepartmentSearch';
|
|
4
|
+
export * from './useDepartmentTopSearch';
|
|
5
|
+
export * from './usePostSearch';
|
|
6
|
+
export * from './usePublicGroupSearch';
|
|
7
|
+
export * from './usePublicGroupTopSearch';
|
|
8
|
+
export * from './useRoleSearch';
|
|
9
9
|
export * from './useUserAdditionalInformationSearch';
|
|
10
10
|
export * from './useDepartmentPostSearch';
|
|
11
|
-
export * from './
|
|
11
|
+
export * from './usePublicGroupRoleSearch';
|
|
@@ -5,7 +5,7 @@ import { makeParamStringIncludeCriteria, makeParamStringIncludeProp, makeParamSt
|
|
|
5
5
|
const getEncodeParams = (parameters, userCriteria) => {
|
|
6
6
|
return `parameters=${encodeURIComponent(parameters)}&userCriteria=${encodeURIComponent(userCriteria)}`;
|
|
7
7
|
};
|
|
8
|
-
export const
|
|
8
|
+
export const useDepartmentSearch = (paramString) => {
|
|
9
9
|
const imFetch = useIMFetch();
|
|
10
10
|
const search = useCallback(async (keyword, init) => {
|
|
11
11
|
try {
|
|
@@ -5,7 +5,7 @@ import { makeParamStringIncludeCriteria, makeParamStringIncludeTargetDate, } fro
|
|
|
5
5
|
const getEncodeParams = (parameters) => {
|
|
6
6
|
return `parameters=${encodeURIComponent(parameters)}`;
|
|
7
7
|
};
|
|
8
|
-
export const
|
|
8
|
+
export const useDepartmentTopSearch = (paramString) => {
|
|
9
9
|
const imFetch = useIMFetch();
|
|
10
10
|
const search = useCallback(async (init) => {
|
|
11
11
|
try {
|
|
@@ -5,7 +5,7 @@ import { makeParamStringIncludeCriteria, makeParamStringIncludeProp, makeParamSt
|
|
|
5
5
|
const getEncodeParams = (parameters, userCriteria) => {
|
|
6
6
|
return `parameters=${encodeURIComponent(parameters)}&userCriteria=${encodeURIComponent(userCriteria)}`;
|
|
7
7
|
};
|
|
8
|
-
export const
|
|
8
|
+
export const usePostSearch = (paramString) => {
|
|
9
9
|
const imFetch = useIMFetch();
|
|
10
10
|
const search = useCallback(async (departmentSet, init) => {
|
|
11
11
|
try {
|
|
@@ -5,7 +5,7 @@ import { makeParamStringIncludeCriteria, makeParamStringIncludeProp, makeParamSt
|
|
|
5
5
|
const getEncodeParams = (parameters, userCriteria) => {
|
|
6
6
|
return `parameters=${encodeURIComponent(parameters)}&userCriteria=${encodeURIComponent(userCriteria)}`;
|
|
7
7
|
};
|
|
8
|
-
export const
|
|
8
|
+
export const usePublicGroupSearch = (paramString) => {
|
|
9
9
|
const imFetch = useIMFetch();
|
|
10
10
|
const search = useCallback(async (keyword, init) => {
|
|
11
11
|
try {
|
|
@@ -5,7 +5,7 @@ import { makeParamStringIncludeCriteria, makeParamStringIncludeTargetDate, } fro
|
|
|
5
5
|
const getEncodeParams = (parameters) => {
|
|
6
6
|
return `parameters=${encodeURIComponent(parameters)}`;
|
|
7
7
|
};
|
|
8
|
-
export const
|
|
8
|
+
export const usePublicGroupTopSearch = (paramString) => {
|
|
9
9
|
const imFetch = useIMFetch();
|
|
10
10
|
const search = useCallback(async (init) => {
|
|
11
11
|
try {
|
|
@@ -5,7 +5,7 @@ import { makeParamStringIncludeCriteria, makeParamStringIncludeProp, makeParamSt
|
|
|
5
5
|
const getEncodeParams = (parameters, userCriteria) => {
|
|
6
6
|
return `parameters=${encodeURIComponent(parameters)}&userCriteria=${encodeURIComponent(userCriteria)}`;
|
|
7
7
|
};
|
|
8
|
-
export const
|
|
8
|
+
export const useRoleSearch = (paramString) => {
|
|
9
9
|
const imFetch = useIMFetch();
|
|
10
10
|
const search = useCallback(async (publicGroupSet, init) => {
|
|
11
11
|
try {
|
|
@@ -45,5 +45,5 @@ interface IMSearchProps {
|
|
|
45
45
|
searchContext?: typeof DefaultContext;
|
|
46
46
|
SearchComponent: (props: SelectSearchProps) => JSX.Element;
|
|
47
47
|
}
|
|
48
|
-
export declare const IMSearch: ({ children, searchContext, SearchComponent, }: IMSearchProps) => JSX.Element;
|
|
48
|
+
export declare const IMSearch: ({ children, searchContext, SearchComponent, }: IMSearchProps) => import("react").JSX.Element;
|
|
49
49
|
export {};
|
|
@@ -18,13 +18,13 @@ const useParamString = () => {
|
|
|
18
18
|
return useState('');
|
|
19
19
|
};
|
|
20
20
|
const useSearch = (setIsVisible, setSearchTarget, setSearchType, setParamString, lockRef) => {
|
|
21
|
-
const
|
|
21
|
+
const SearchResolveRef = useRef(null);
|
|
22
22
|
const start = useCallback(({ target, type, paramString }) => {
|
|
23
23
|
return new Promise((resolve) => {
|
|
24
24
|
if (lockRef.current)
|
|
25
25
|
resolve({ type: 'locked' });
|
|
26
26
|
lockRef.current = true;
|
|
27
|
-
|
|
27
|
+
SearchResolveRef.current = resolve;
|
|
28
28
|
setSearchTarget(target);
|
|
29
29
|
setSearchType(type);
|
|
30
30
|
setParamString(paramString);
|
|
@@ -32,11 +32,11 @@ const useSearch = (setIsVisible, setSearchTarget, setSearchType, setParamString,
|
|
|
32
32
|
});
|
|
33
33
|
}, [setIsVisible, setSearchTarget, setSearchType, setParamString]);
|
|
34
34
|
const complate = useCallback((result) => {
|
|
35
|
-
if (
|
|
36
|
-
|
|
35
|
+
if (SearchResolveRef.current != null)
|
|
36
|
+
SearchResolveRef.current(result);
|
|
37
37
|
else
|
|
38
38
|
throw new IMSearchError('not found resolve');
|
|
39
|
-
|
|
39
|
+
SearchResolveRef.current = null;
|
|
40
40
|
lockRef.current = false;
|
|
41
41
|
setIsVisible(false);
|
|
42
42
|
}, [setIsVisible]);
|
|
@@ -13,4 +13,4 @@ export interface IMSessionProps {
|
|
|
13
13
|
children: JSX.Element;
|
|
14
14
|
sessionContext?: typeof DefaultContext;
|
|
15
15
|
}
|
|
16
|
-
export declare const IMSession: ({ children, sessionContext }: IMSessionProps) => JSX.Element;
|
|
16
|
+
export declare const IMSession: ({ children, sessionContext }: IMSessionProps) => import("react").JSX.Element;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { SelectSearchProps } from '../Search';
|
|
2
|
-
export declare const NotSearchPropError: ({ error }: SelectSearchProps) => JSX.Element;
|
|
3
|
+
export declare const NotSearchPropError: ({ error }: SelectSearchProps) => import("react").JSX.Element;
|
|
@@ -15,5 +15,5 @@ interface SmartlimeProps {
|
|
|
15
15
|
imsession?: Omit<React.ComponentProps<typeof IMSession>, 'children'>;
|
|
16
16
|
imseach?: Omit<React.ComponentProps<typeof IMSearch>, 'children'>;
|
|
17
17
|
}
|
|
18
|
-
export declare const Smartlime: ({ children, baseUrl, tenantId, imoauth, imme, imsession, imseach, }: SmartlimeProps) => JSX.Element;
|
|
18
|
+
export declare const Smartlime: ({ children, baseUrl, tenantId, imoauth, imme, imsession, imseach, }: SmartlimeProps) => import("react").JSX.Element;
|
|
19
19
|
export {};
|
|
@@ -6,5 +6,5 @@ interface IMTenantProps {
|
|
|
6
6
|
tenantId?: string;
|
|
7
7
|
tenantContext?: typeof DefaultContext;
|
|
8
8
|
}
|
|
9
|
-
export declare const IMTenant: ({ children, baseUrl, tenantId, tenantContext, }: IMTenantProps) => JSX.Element;
|
|
9
|
+
export declare const IMTenant: ({ children, baseUrl, tenantId, tenantContext, }: IMTenantProps) => import("react").JSX.Element;
|
|
10
10
|
export {};
|
package/lib/utils/mergeRef.d.ts
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
export declare const mergeRef: <T>(...refs: (string | import("react").MutableRefObject<T> | ((instance: T | null) => void) | import("react").MutableRefObject<T | null> | ((instance: T | null) => void) | import("react").RefObject<T> | null)[]) => (instance: T | null) => void;
|
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.1.1",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"intra-mart",
|
|
7
7
|
"AccelPlatform",
|
|
@@ -42,45 +42,45 @@
|
|
|
42
42
|
"type": "tsc --noEmit"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
|
-
"expo": "^
|
|
46
|
-
"react": "18.
|
|
45
|
+
"expo": "^49.0.0",
|
|
46
|
+
"react": "18.2.0"
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@react-native-async-storage/async-storage": "~1.
|
|
50
|
-
"expo-auth-session": "~
|
|
51
|
-
"expo-crypto": "~12.
|
|
52
|
-
"expo-random": "~13.
|
|
53
|
-
"react-native-webview": "
|
|
54
|
-
"set-cookie-parser": "^2.
|
|
49
|
+
"@react-native-async-storage/async-storage": "~1.19.0",
|
|
50
|
+
"expo-auth-session": "~5.0.2",
|
|
51
|
+
"expo-crypto": "~12.4.1",
|
|
52
|
+
"expo-random": "~13.2.0",
|
|
53
|
+
"react-native-webview": "13.2.2",
|
|
54
|
+
"set-cookie-parser": "^2.6.0"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
57
|
"@babel/core": "^7.20.12",
|
|
58
58
|
"@babel/preset-env": "^7.20.2",
|
|
59
|
-
"@types/jest": "^
|
|
60
|
-
"@types/react": "~18.
|
|
61
|
-
"@types/react-native": "~0.
|
|
59
|
+
"@types/jest": "^29.5.2",
|
|
60
|
+
"@types/react": "~18.2.14",
|
|
61
|
+
"@types/react-native": "~0.72.2",
|
|
62
62
|
"@types/react-test-renderer": "18.0.0",
|
|
63
63
|
"@types/set-cookie-parser": "^2.4.2",
|
|
64
|
-
"@typescript-eslint/eslint-plugin": "^5.
|
|
65
|
-
"@typescript-eslint/parser": "^5.
|
|
66
|
-
"eslint": "^8.
|
|
67
|
-
"eslint-config-prettier": "^8.
|
|
64
|
+
"@typescript-eslint/eslint-plugin": "^5.61.0",
|
|
65
|
+
"@typescript-eslint/parser": "^5.61.0",
|
|
66
|
+
"eslint": "^8.44.0",
|
|
67
|
+
"eslint-config-prettier": "^8.8.0",
|
|
68
68
|
"eslint-plugin-react": "^7.32.2",
|
|
69
|
-
"expo": "^
|
|
70
|
-
"jest": "^
|
|
71
|
-
"jest-expo": "^
|
|
69
|
+
"expo": "^49.0.0",
|
|
70
|
+
"jest": "^29.6.1",
|
|
71
|
+
"jest-expo": "^49.0.0",
|
|
72
72
|
"prettier": "^2.8.3",
|
|
73
|
-
"react": "18.
|
|
74
|
-
"react-dom": "18.
|
|
75
|
-
"react-native": "0.
|
|
76
|
-
"react-test-renderer": "18.
|
|
77
|
-
"ts-jest": "^
|
|
78
|
-
"typescript": "^
|
|
73
|
+
"react": "18.2.0",
|
|
74
|
+
"react-dom": "18.2.0",
|
|
75
|
+
"react-native": "0.72.1",
|
|
76
|
+
"react-test-renderer": "18.2.0",
|
|
77
|
+
"ts-jest": "^29.1.1",
|
|
78
|
+
"typescript": "^5.1.3"
|
|
79
79
|
},
|
|
80
80
|
"resolutions": {
|
|
81
|
-
"@types/react": "^18.
|
|
81
|
+
"@types/react": "^18.2.14"
|
|
82
82
|
},
|
|
83
|
-
"packageManager": "yarn@1.22.
|
|
83
|
+
"packageManager": "yarn@1.22.19",
|
|
84
84
|
"engines": {
|
|
85
85
|
"node": ">= 16.9.0"
|
|
86
86
|
}
|
/package/lib/packages/Search/hooks/{usePublicGroupRoleSerch.d.ts → usePublicGroupRoleSearch.d.ts}
RENAMED
|
File without changes
|
/package/lib/packages/Search/hooks/{usePublicGroupRoleSerch.js → usePublicGroupRoleSearch.js}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|