@sunggang/ui-lib 0.2.19 → 0.2.21
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.esm.js +2 -2
- package/index.esm2.js +2 -2
- package/package.json +1 -1
- package/src/index.d.ts +1 -0
- package/src/lib/Provider/LiffContext.d.ts +1 -1
- package/src/utils/hooks/useLiff.d.ts +1 -1
package/index.esm.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { n as BaseTable, s as BigCalender, B as Button, u as CustomSelect, C as CustomUpload, m as DataTable, k as DateRangePicker, t as DnDCalendar, i as DropDown, D as DropImage, L as LiffContext, w as LiffProvider, R as ReactDateRange, o as Regex, S as Spin, j as Switch, T as TabsPanel, U as UiLibrary, l as buttonVariants, q as decryptByEcPay, r as encryptByEcPay, x as
|
|
2
|
-
import 'react/jsx-runtime';
|
|
1
|
+
export { n as BaseTable, s as BigCalender, B as Button, u as CustomSelect, C as CustomUpload, m as DataTable, k as DateRangePicker, t as DnDCalendar, i as DropDown, D as DropImage, L as LiffContext, w as LiffProvider, R as ReactDateRange, o as Regex, S as Spin, j as Switch, T as TabsPanel, U as UiLibrary, l as buttonVariants, q as decryptByEcPay, r as encryptByEcPay, x as useLiffContext, p as verifyId, v as verifyTaxId } from './index.esm2.js';
|
|
3
2
|
import 'react';
|
|
3
|
+
import 'react/jsx-runtime';
|
|
4
4
|
import '@iconify/react';
|
|
5
5
|
import 'react-dom';
|
|
6
6
|
import '@radix-ui/react-switch';
|
package/index.esm2.js
CHANGED
|
@@ -43830,7 +43830,7 @@ var LiffProvider = function(param) {
|
|
|
43830
43830
|
children: !(liffObject === null || liffObject === void 0 ? void 0 : liffObject.isLoggedIn()) ? null : children
|
|
43831
43831
|
});
|
|
43832
43832
|
};
|
|
43833
|
-
var
|
|
43833
|
+
var useLiffContext = function() {
|
|
43834
43834
|
var context = useContext(LiffContext);
|
|
43835
43835
|
if (!context) {
|
|
43836
43836
|
throw new Error("useLiff 必須在 LiffProvider 中使用");
|
|
@@ -43838,4 +43838,4 @@ var useLiff = function() {
|
|
|
43838
43838
|
return context;
|
|
43839
43839
|
};
|
|
43840
43840
|
|
|
43841
|
-
export { Button as B, CustomUpload as C, DropImage as D, LiffContext as L, ReactDateRange as R, Spin as S, TabsPanel as T, UiLibrary as U, __spreadArray as _, __read as a, __extends as b, __assign as c, __makeTemplateObject as d, __awaiter as e, __generator as f, commonjsGlobal as g, __values as h, DropDown as i, Switch as j, DateRangePicker as k, buttonVariants as l, DataTable as m, BaseTable as n, Regex as o, verifyId as p, decryptByEcPay as q, encryptByEcPay as r, BigCalender as s, DnDCalendar as t, CustomSelect as u, verifyTaxId as v, LiffProvider as w,
|
|
43841
|
+
export { Button as B, CustomUpload as C, DropImage as D, LiffContext as L, ReactDateRange as R, Spin as S, TabsPanel as T, UiLibrary as U, __spreadArray as _, __read as a, __extends as b, __assign as c, __makeTemplateObject as d, __awaiter as e, __generator as f, commonjsGlobal as g, __values as h, DropDown as i, Switch as j, DateRangePicker as k, buttonVariants as l, DataTable as m, BaseTable as n, Regex as o, verifyId as p, decryptByEcPay as q, encryptByEcPay as r, BigCalender as s, DnDCalendar as t, CustomSelect as u, verifyTaxId as v, LiffProvider as w, useLiffContext as x };
|
package/package.json
CHANGED
package/src/index.d.ts
CHANGED
|
@@ -15,5 +15,5 @@ export declare const LiffProvider: ({ children, liffId, localStorageKey, loginDa
|
|
|
15
15
|
checkTokenUrl: string;
|
|
16
16
|
loginUrl: string;
|
|
17
17
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
18
|
-
export declare const
|
|
18
|
+
export declare const useLiffContext: () => LiffContextType;
|
|
19
19
|
export {};
|
|
@@ -22,5 +22,5 @@ interface UseLiffResult {
|
|
|
22
22
|
userInfo: UserInfo | null;
|
|
23
23
|
loginAuth: LoginAuth | null;
|
|
24
24
|
}
|
|
25
|
-
declare const useLiff: (
|
|
25
|
+
declare const useLiff: (liffId: string, localStorageToken: string, loginFunc: (loginToken: string) => string, checkTokenUrl: string, memberInfoUrl: string) => UseLiffResult;
|
|
26
26
|
export default useLiff;
|