@sunggang/ui-lib 0.2.77 → 0.2.79
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/index.esm2.js
CHANGED
|
@@ -59076,6 +59076,9 @@ var LiffProvider = function(param) {
|
|
|
59076
59076
|
6
|
|
59077
59077
|
];
|
|
59078
59078
|
case 6:
|
|
59079
|
+
if (isFriendship && isValid) return [
|
|
59080
|
+
2
|
|
59081
|
+
];
|
|
59079
59082
|
if (!lineToken) return [
|
|
59080
59083
|
3,
|
|
59081
59084
|
8
|
|
@@ -59167,12 +59170,6 @@ var LiffProvider = function(param) {
|
|
|
59167
59170
|
}();
|
|
59168
59171
|
checkAndInitialize();
|
|
59169
59172
|
}, []);
|
|
59170
|
-
// useEffect(() => {
|
|
59171
|
-
// if (typeof window !== 'undefined') {
|
|
59172
|
-
// const storedLoginData = window.localStorage.getItem(localStorageKey);
|
|
59173
|
-
// setLoginData(storedLoginData ? JSON.parse(storedLoginData) : null);
|
|
59174
|
-
// }
|
|
59175
|
-
// }, [localStorageKey]);
|
|
59176
59173
|
var contextValue = useMemo$1(function() {
|
|
59177
59174
|
return {
|
|
59178
59175
|
liffObject: liffObject,
|
package/package.json
CHANGED
|
@@ -6,6 +6,7 @@ type LiffContextType = {
|
|
|
6
6
|
accessToken: string;
|
|
7
7
|
liffError: string | null;
|
|
8
8
|
initializeLiff: () => Promise<void>;
|
|
9
|
+
isFriendship: boolean | null;
|
|
9
10
|
};
|
|
10
11
|
export declare const LiffContext: React.Context<LiffContextType | undefined>;
|
|
11
12
|
export declare const LiffProvider: ({ children, liffId, localStorageKey, checkTokenUrl, loginUrl, memberInfoUrl, openInApp, ignoreCheckAddFriend, ignoreRoute, loginByUser, customerRedirectUrl, inviteCode, handleLoginError, }: {
|