@sunggang/ui-lib 0.3.42 → 0.3.44
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.css +0 -188
- package/index.esm2.js +12 -2
- package/package.json +1 -1
- package/src/lib/Provider/LiffProvider.d.ts +2 -1
package/index.esm.css
CHANGED
|
@@ -574,58 +574,35 @@ video {
|
|
|
574
574
|
color: hsl(var(--foreground));
|
|
575
575
|
font-feature-settings: 'rlig' 1, 'calt' 1;
|
|
576
576
|
}
|
|
577
|
-
.\!container {
|
|
578
|
-
width: 100% !important;
|
|
579
|
-
}
|
|
580
577
|
.container {
|
|
581
578
|
width: 100%;
|
|
582
579
|
}
|
|
583
580
|
@media (min-width: 640px) {
|
|
584
581
|
|
|
585
|
-
.\!container {
|
|
586
|
-
max-width: 640px !important;
|
|
587
|
-
}
|
|
588
|
-
|
|
589
582
|
.container {
|
|
590
583
|
max-width: 640px;
|
|
591
584
|
}
|
|
592
585
|
}
|
|
593
586
|
@media (min-width: 768px) {
|
|
594
587
|
|
|
595
|
-
.\!container {
|
|
596
|
-
max-width: 768px !important;
|
|
597
|
-
}
|
|
598
|
-
|
|
599
588
|
.container {
|
|
600
589
|
max-width: 768px;
|
|
601
590
|
}
|
|
602
591
|
}
|
|
603
592
|
@media (min-width: 1024px) {
|
|
604
593
|
|
|
605
|
-
.\!container {
|
|
606
|
-
max-width: 1024px !important;
|
|
607
|
-
}
|
|
608
|
-
|
|
609
594
|
.container {
|
|
610
595
|
max-width: 1024px;
|
|
611
596
|
}
|
|
612
597
|
}
|
|
613
598
|
@media (min-width: 1280px) {
|
|
614
599
|
|
|
615
|
-
.\!container {
|
|
616
|
-
max-width: 1280px !important;
|
|
617
|
-
}
|
|
618
|
-
|
|
619
600
|
.container {
|
|
620
601
|
max-width: 1280px;
|
|
621
602
|
}
|
|
622
603
|
}
|
|
623
604
|
@media (min-width: 1536px) {
|
|
624
605
|
|
|
625
|
-
.\!container {
|
|
626
|
-
max-width: 1536px !important;
|
|
627
|
-
}
|
|
628
|
-
|
|
629
606
|
.container {
|
|
630
607
|
max-width: 1536px;
|
|
631
608
|
}
|
|
@@ -636,9 +613,6 @@ video {
|
|
|
636
613
|
.pointer-events-auto {
|
|
637
614
|
pointer-events: auto;
|
|
638
615
|
}
|
|
639
|
-
.\!visible {
|
|
640
|
-
visibility: visible !important;
|
|
641
|
-
}
|
|
642
616
|
.visible {
|
|
643
617
|
visibility: visible;
|
|
644
618
|
}
|
|
@@ -651,24 +625,15 @@ video {
|
|
|
651
625
|
.static {
|
|
652
626
|
position: static;
|
|
653
627
|
}
|
|
654
|
-
.\!fixed {
|
|
655
|
-
position: fixed !important;
|
|
656
|
-
}
|
|
657
628
|
.fixed {
|
|
658
629
|
position: fixed;
|
|
659
630
|
}
|
|
660
631
|
.absolute {
|
|
661
632
|
position: absolute;
|
|
662
633
|
}
|
|
663
|
-
.\!relative {
|
|
664
|
-
position: relative !important;
|
|
665
|
-
}
|
|
666
634
|
.relative {
|
|
667
635
|
position: relative;
|
|
668
636
|
}
|
|
669
|
-
.sticky {
|
|
670
|
-
position: sticky;
|
|
671
|
-
}
|
|
672
637
|
.inset-0 {
|
|
673
638
|
inset: 0px;
|
|
674
639
|
}
|
|
@@ -731,9 +696,6 @@ video {
|
|
|
731
696
|
.top-\[72px\] {
|
|
732
697
|
top: 72px;
|
|
733
698
|
}
|
|
734
|
-
.isolate {
|
|
735
|
-
isolation: isolate;
|
|
736
|
-
}
|
|
737
699
|
.z-10 {
|
|
738
700
|
z-index: 10;
|
|
739
701
|
}
|
|
@@ -749,9 +711,6 @@ video {
|
|
|
749
711
|
.z-\[9999\] {
|
|
750
712
|
z-index: 9999;
|
|
751
713
|
}
|
|
752
|
-
.m-1 {
|
|
753
|
-
margin: 0.25rem;
|
|
754
|
-
}
|
|
755
714
|
.m-4 {
|
|
756
715
|
margin: 1rem;
|
|
757
716
|
}
|
|
@@ -836,9 +795,6 @@ video {
|
|
|
836
795
|
.mt-5 {
|
|
837
796
|
margin-top: 1.25rem;
|
|
838
797
|
}
|
|
839
|
-
.\!block {
|
|
840
|
-
display: block !important;
|
|
841
|
-
}
|
|
842
798
|
.block {
|
|
843
799
|
display: block;
|
|
844
800
|
}
|
|
@@ -854,42 +810,12 @@ video {
|
|
|
854
810
|
.inline-flex {
|
|
855
811
|
display: inline-flex;
|
|
856
812
|
}
|
|
857
|
-
.\!table {
|
|
858
|
-
display: table !important;
|
|
859
|
-
}
|
|
860
813
|
.table {
|
|
861
814
|
display: table;
|
|
862
815
|
}
|
|
863
|
-
.inline-table {
|
|
864
|
-
display: inline-table;
|
|
865
|
-
}
|
|
866
|
-
.table-caption {
|
|
867
|
-
display: table-caption;
|
|
868
|
-
}
|
|
869
|
-
.table-cell {
|
|
870
|
-
display: table-cell;
|
|
871
|
-
}
|
|
872
|
-
.flow-root {
|
|
873
|
-
display: flow-root;
|
|
874
|
-
}
|
|
875
|
-
.\!grid {
|
|
876
|
-
display: grid !important;
|
|
877
|
-
}
|
|
878
816
|
.grid {
|
|
879
817
|
display: grid;
|
|
880
818
|
}
|
|
881
|
-
.inline-grid {
|
|
882
|
-
display: inline-grid;
|
|
883
|
-
}
|
|
884
|
-
.\!contents {
|
|
885
|
-
display: contents !important;
|
|
886
|
-
}
|
|
887
|
-
.contents {
|
|
888
|
-
display: contents;
|
|
889
|
-
}
|
|
890
|
-
.list-item {
|
|
891
|
-
display: list-item;
|
|
892
|
-
}
|
|
893
819
|
.hidden {
|
|
894
820
|
display: none;
|
|
895
821
|
}
|
|
@@ -1103,18 +1029,9 @@ video {
|
|
|
1103
1029
|
.flex-none {
|
|
1104
1030
|
flex: none;
|
|
1105
1031
|
}
|
|
1106
|
-
.flex-shrink {
|
|
1107
|
-
flex-shrink: 1;
|
|
1108
|
-
}
|
|
1109
|
-
.shrink {
|
|
1110
|
-
flex-shrink: 1;
|
|
1111
|
-
}
|
|
1112
1032
|
.shrink-0 {
|
|
1113
1033
|
flex-shrink: 0;
|
|
1114
1034
|
}
|
|
1115
|
-
.flex-grow {
|
|
1116
|
-
flex-grow: 1;
|
|
1117
|
-
}
|
|
1118
1035
|
.grow {
|
|
1119
1036
|
flex-grow: 1;
|
|
1120
1037
|
}
|
|
@@ -1155,9 +1072,6 @@ video {
|
|
|
1155
1072
|
--tw-rotate: 90deg;
|
|
1156
1073
|
transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
|
|
1157
1074
|
}
|
|
1158
|
-
.\!transform {
|
|
1159
|
-
transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)) !important;
|
|
1160
|
-
}
|
|
1161
1075
|
.transform {
|
|
1162
1076
|
transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
|
|
1163
1077
|
}
|
|
@@ -1184,11 +1098,6 @@ video {
|
|
|
1184
1098
|
-moz-user-select: none;
|
|
1185
1099
|
user-select: none;
|
|
1186
1100
|
}
|
|
1187
|
-
.select-all {
|
|
1188
|
-
-webkit-user-select: all;
|
|
1189
|
-
-moz-user-select: all;
|
|
1190
|
-
user-select: all;
|
|
1191
|
-
}
|
|
1192
1101
|
.resize {
|
|
1193
1102
|
resize: both;
|
|
1194
1103
|
}
|
|
@@ -1413,9 +1322,6 @@ video {
|
|
|
1413
1322
|
.border-\[\#ffffff33\] {
|
|
1414
1323
|
border-color: #ffffff33;
|
|
1415
1324
|
}
|
|
1416
|
-
.border-\[top\2c left\2c right\2c bottom\] {
|
|
1417
|
-
border-color: top,left,right,bottom;
|
|
1418
|
-
}
|
|
1419
1325
|
.border-gray-200 {
|
|
1420
1326
|
--tw-border-opacity: 1;
|
|
1421
1327
|
border-color: rgb(229 231 235 / var(--tw-border-opacity, 1));
|
|
@@ -1812,9 +1718,6 @@ video {
|
|
|
1812
1718
|
.text-right {
|
|
1813
1719
|
text-align: right;
|
|
1814
1720
|
}
|
|
1815
|
-
.text-justify {
|
|
1816
|
-
text-align: justify;
|
|
1817
|
-
}
|
|
1818
1721
|
.indent-1 {
|
|
1819
1722
|
text-indent: 0.25rem;
|
|
1820
1723
|
}
|
|
@@ -1863,9 +1766,6 @@ video {
|
|
|
1863
1766
|
.font-bold {
|
|
1864
1767
|
font-weight: 700;
|
|
1865
1768
|
}
|
|
1866
|
-
.font-light {
|
|
1867
|
-
font-weight: 300;
|
|
1868
|
-
}
|
|
1869
1769
|
.font-medium {
|
|
1870
1770
|
font-weight: 500;
|
|
1871
1771
|
}
|
|
@@ -1887,10 +1787,6 @@ video {
|
|
|
1887
1787
|
.italic {
|
|
1888
1788
|
font-style: italic;
|
|
1889
1789
|
}
|
|
1890
|
-
.ordinal {
|
|
1891
|
-
--tw-ordinal: ordinal;
|
|
1892
|
-
font-variant-numeric: var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction);
|
|
1893
|
-
}
|
|
1894
1790
|
.tracking-tight {
|
|
1895
1791
|
letter-spacing: -0.025em;
|
|
1896
1792
|
}
|
|
@@ -2102,23 +1998,12 @@ video {
|
|
|
2102
1998
|
.underline {
|
|
2103
1999
|
text-decoration-line: underline;
|
|
2104
2000
|
}
|
|
2105
|
-
.overline {
|
|
2106
|
-
text-decoration-line: overline;
|
|
2107
|
-
}
|
|
2108
2001
|
.line-through {
|
|
2109
2002
|
text-decoration-line: line-through;
|
|
2110
2003
|
}
|
|
2111
2004
|
.underline-offset-4 {
|
|
2112
2005
|
text-underline-offset: 4px;
|
|
2113
2006
|
}
|
|
2114
|
-
.antialiased {
|
|
2115
|
-
-webkit-font-smoothing: antialiased;
|
|
2116
|
-
-moz-osx-font-smoothing: grayscale;
|
|
2117
|
-
}
|
|
2118
|
-
.subpixel-antialiased {
|
|
2119
|
-
-webkit-font-smoothing: auto;
|
|
2120
|
-
-moz-osx-font-smoothing: auto;
|
|
2121
|
-
}
|
|
2122
2007
|
.opacity-0 {
|
|
2123
2008
|
opacity: 0;
|
|
2124
2009
|
}
|
|
@@ -2206,28 +2091,9 @@ video {
|
|
|
2206
2091
|
--tw-drop-shadow: drop-shadow(0 1px 2px rgb(0 0 0 / 0.1)) drop-shadow(0 1px 1px rgb(0 0 0 / 0.06));
|
|
2207
2092
|
filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
|
|
2208
2093
|
}
|
|
2209
|
-
.grayscale {
|
|
2210
|
-
--tw-grayscale: grayscale(100%);
|
|
2211
|
-
filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
|
|
2212
|
-
}
|
|
2213
|
-
.invert {
|
|
2214
|
-
--tw-invert: invert(100%);
|
|
2215
|
-
filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
|
|
2216
|
-
}
|
|
2217
|
-
.sepia {
|
|
2218
|
-
--tw-sepia: sepia(100%);
|
|
2219
|
-
filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
|
|
2220
|
-
}
|
|
2221
|
-
.\!filter {
|
|
2222
|
-
filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow) !important;
|
|
2223
|
-
}
|
|
2224
2094
|
.filter {
|
|
2225
2095
|
filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
|
|
2226
2096
|
}
|
|
2227
|
-
.backdrop-filter {
|
|
2228
|
-
-webkit-backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);
|
|
2229
|
-
backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);
|
|
2230
|
-
}
|
|
2231
2097
|
.transition {
|
|
2232
2098
|
transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, -webkit-backdrop-filter;
|
|
2233
2099
|
transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
|
|
@@ -2267,9 +2133,6 @@ video {
|
|
|
2267
2133
|
.duration-500 {
|
|
2268
2134
|
transition-duration: 500ms;
|
|
2269
2135
|
}
|
|
2270
|
-
.ease-in {
|
|
2271
|
-
transition-timing-function: cubic-bezier(0.4, 0, 1, 1);
|
|
2272
|
-
}
|
|
2273
2136
|
.ease-in-out {
|
|
2274
2137
|
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
2275
2138
|
}
|
|
@@ -2290,12 +2153,6 @@ video {
|
|
|
2290
2153
|
transform: translate3d(var(--tw-exit-translate-x, 0), var(--tw-exit-translate-y, 0), 0) scale3d(var(--tw-exit-scale, 1), var(--tw-exit-scale, 1), var(--tw-exit-scale, 1)) rotate(var(--tw-exit-rotate, 0));
|
|
2291
2154
|
}
|
|
2292
2155
|
}
|
|
2293
|
-
.zoom-in {
|
|
2294
|
-
--tw-enter-scale: 0;
|
|
2295
|
-
}
|
|
2296
|
-
.zoom-out {
|
|
2297
|
-
--tw-exit-scale: 0;
|
|
2298
|
-
}
|
|
2299
2156
|
.duration-1000 {
|
|
2300
2157
|
animation-duration: 1000ms;
|
|
2301
2158
|
}
|
|
@@ -2308,57 +2165,12 @@ video {
|
|
|
2308
2165
|
.duration-500 {
|
|
2309
2166
|
animation-duration: 500ms;
|
|
2310
2167
|
}
|
|
2311
|
-
.ease-in {
|
|
2312
|
-
animation-timing-function: cubic-bezier(0.4, 0, 1, 1);
|
|
2313
|
-
}
|
|
2314
2168
|
.ease-in-out {
|
|
2315
2169
|
animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
2316
2170
|
}
|
|
2317
2171
|
.ease-out {
|
|
2318
2172
|
animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
|
|
2319
2173
|
}
|
|
2320
|
-
.\!running {
|
|
2321
|
-
animation-play-state: running !important;
|
|
2322
|
-
}
|
|
2323
|
-
.running {
|
|
2324
|
-
animation-play-state: running;
|
|
2325
|
-
}
|
|
2326
|
-
.paused {
|
|
2327
|
-
animation-play-state: paused;
|
|
2328
|
-
}
|
|
2329
|
-
.\[a-zA-Z0-9\:\\\\-\\\\\._\$\] {
|
|
2330
|
-
a-z-a--z0-9: \\-\\. $;
|
|
2331
|
-
}
|
|
2332
|
-
.\[hash\:base64\] {
|
|
2333
|
-
hash: base64;
|
|
2334
|
-
}
|
|
2335
|
-
.\[key\:string\] {
|
|
2336
|
-
key: string;
|
|
2337
|
-
}
|
|
2338
|
-
.\[module\:ckbox\/ckbox\~CKBoxConfig\#assetsOrigin\] {
|
|
2339
|
-
module: ckbox/ckbox~CKBoxConfig#assetsOrigin;
|
|
2340
|
-
}
|
|
2341
|
-
.\[module\:ckbox\/ckbox\~CKBoxConfig\#defaultUploadCategories\] {
|
|
2342
|
-
module: ckbox/ckbox~CKBoxConfig#defaultUploadCategories;
|
|
2343
|
-
}
|
|
2344
|
-
.\[module\:ckbox\/ckbox\~CKBoxConfig\#ignoreDataId\] {
|
|
2345
|
-
module: ckbox/ckbox~CKBoxConfig#ignoreDataId;
|
|
2346
|
-
}
|
|
2347
|
-
.\[module\:ckbox\/ckbox\~CKBoxConfig\#language\] {
|
|
2348
|
-
module: ckbox/ckbox~CKBoxConfig#language;
|
|
2349
|
-
}
|
|
2350
|
-
.\[module\:ckbox\/ckbox\~CKBoxConfig\#serviceOrigin\] {
|
|
2351
|
-
module: ckbox/ckbox~CKBoxConfig#serviceOrigin;
|
|
2352
|
-
}
|
|
2353
|
-
.\[module\:media-embed\/mediaembed\~MediaEmbedConfig\#elementName\] {
|
|
2354
|
-
module: media-embed/mediaembed~MediaEmbedConfig#elementName;
|
|
2355
|
-
}
|
|
2356
|
-
.\[module\:media-embed\/mediaembed\~MediaEmbedConfig\#previewsInData\=false\] {
|
|
2357
|
-
module: media-embed/mediaembed~MediaEmbedConfig#previewsInData=false;
|
|
2358
|
-
}
|
|
2359
|
-
.\[module\:ui\/template\~TemplateBinding\#callback\] {
|
|
2360
|
-
module: ui/template~TemplateBinding#callback;
|
|
2361
|
-
}
|
|
2362
2174
|
|
|
2363
2175
|
/* gary */
|
|
2364
2176
|
|
package/index.esm2.js
CHANGED
|
@@ -78388,7 +78388,7 @@ function _ts_generator(thisArg, body) {
|
|
|
78388
78388
|
}
|
|
78389
78389
|
var LiffContext = /*#__PURE__*/ createContext(undefined);
|
|
78390
78390
|
var LiffProvider = function(param) {
|
|
78391
|
-
var children = param.children, liffId = param.liffId, _param_localStorageKey = param.localStorageKey, localStorageKey = _param_localStorageKey === void 0 ? "one-gobo-global-login" : _param_localStorageKey, checkTokenUrl = param.checkTokenUrl, loginUrl = param.loginUrl, accountLoginUrl = param.accountLoginUrl, memberInfoUrl = param.memberInfoUrl, _param_openInApp = param.openInApp, openInApp = _param_openInApp === void 0 ? false : _param_openInApp, _param_ignoreCheckAddFriend = param.ignoreCheckAddFriend, ignoreCheckAddFriend = _param_ignoreCheckAddFriend === void 0 ? false : _param_ignoreCheckAddFriend, _param_ignoreRoute = param.ignoreRoute, ignoreRoute = _param_ignoreRoute === void 0 ? false : _param_ignoreRoute, _param_loginByUser = param.loginByUser, loginByUser = _param_loginByUser === void 0 ? false : _param_loginByUser, customerRedirectUrl = param.customerRedirectUrl, inviteCode = param.inviteCode, handleLoginError = param.handleLoginError;
|
|
78391
|
+
var children = param.children, liffId = param.liffId, _param_localStorageKey = param.localStorageKey, localStorageKey = _param_localStorageKey === void 0 ? "one-gobo-global-login" : _param_localStorageKey, checkTokenUrl = param.checkTokenUrl, loginUrl = param.loginUrl, accountLoginUrl = param.accountLoginUrl, memberInfoUrl = param.memberInfoUrl, _param_openInApp = param.openInApp, openInApp = _param_openInApp === void 0 ? false : _param_openInApp, _param_ignoreCheckAddFriend = param.ignoreCheckAddFriend, ignoreCheckAddFriend = _param_ignoreCheckAddFriend === void 0 ? false : _param_ignoreCheckAddFriend, _param_ignoreRoute = param.ignoreRoute, ignoreRoute = _param_ignoreRoute === void 0 ? false : _param_ignoreRoute, _param_loginByUser = param.loginByUser, loginByUser = _param_loginByUser === void 0 ? false : _param_loginByUser, _param_liffLogin = param.liffLogin, liffLogin = _param_liffLogin === void 0 ? false : _param_liffLogin, customerRedirectUrl = param.customerRedirectUrl, inviteCode = param.inviteCode, handleLoginError = param.handleLoginError;
|
|
78392
78392
|
var _useState = _sliced_to_array(useState(null), 2), liffObject = _useState[0], setLiffObject = _useState[1];
|
|
78393
78393
|
var _useState1 = _sliced_to_array(useState(""), 2), accessToken = _useState1[0], setAccessToken = _useState1[1];
|
|
78394
78394
|
var _useState2 = _sliced_to_array(useState(null), 2), liffError = _useState2[0], setLiffError = _useState2[1];
|
|
@@ -78616,6 +78616,14 @@ var LiffProvider = function(param) {
|
|
|
78616
78616
|
// 未登入先進行登入
|
|
78617
78617
|
if (!liff.isLoggedIn()) {
|
|
78618
78618
|
redirectUri = customerRedirectUrl || "".concat(window.location.href);
|
|
78619
|
+
if (liffLogin) {
|
|
78620
|
+
liff.login({
|
|
78621
|
+
redirectUri: redirectUri
|
|
78622
|
+
});
|
|
78623
|
+
return [
|
|
78624
|
+
2
|
|
78625
|
+
];
|
|
78626
|
+
}
|
|
78619
78627
|
if (loginByUser || ignoreRoute) return [
|
|
78620
78628
|
2
|
|
78621
78629
|
];
|
|
@@ -78903,7 +78911,9 @@ var LiffProvider = function(param) {
|
|
|
78903
78911
|
};
|
|
78904
78912
|
}();
|
|
78905
78913
|
checkAndInitialize();
|
|
78906
|
-
}, [
|
|
78914
|
+
}, [
|
|
78915
|
+
liffLogin
|
|
78916
|
+
]);
|
|
78907
78917
|
var contextValue = useMemo$1(function() {
|
|
78908
78918
|
return {
|
|
78909
78919
|
liffObject: liffObject,
|
package/package.json
CHANGED
|
@@ -12,7 +12,7 @@ type LiffContextType = {
|
|
|
12
12
|
accountLogin: (username: string, password: string) => Promise<void>;
|
|
13
13
|
};
|
|
14
14
|
export declare const LiffContext: React.Context<LiffContextType | undefined>;
|
|
15
|
-
export declare const LiffProvider: ({ children, liffId, localStorageKey, checkTokenUrl, loginUrl, accountLoginUrl, memberInfoUrl, openInApp, ignoreCheckAddFriend, ignoreRoute, loginByUser, customerRedirectUrl, inviteCode, handleLoginError, }: {
|
|
15
|
+
export declare const LiffProvider: ({ children, liffId, localStorageKey, checkTokenUrl, loginUrl, accountLoginUrl, memberInfoUrl, openInApp, ignoreCheckAddFriend, ignoreRoute, loginByUser, liffLogin, customerRedirectUrl, inviteCode, handleLoginError, }: {
|
|
16
16
|
children: React.ReactNode;
|
|
17
17
|
liffId: string;
|
|
18
18
|
localStorageKey: string;
|
|
@@ -24,6 +24,7 @@ export declare const LiffProvider: ({ children, liffId, localStorageKey, checkTo
|
|
|
24
24
|
ignoreCheckAddFriend?: boolean | undefined;
|
|
25
25
|
ignoreRoute?: boolean | undefined;
|
|
26
26
|
loginByUser?: boolean | undefined;
|
|
27
|
+
liffLogin?: boolean | undefined;
|
|
27
28
|
customerRedirectUrl?: string | undefined;
|
|
28
29
|
inviteCode?: string | undefined;
|
|
29
30
|
handleLoginError?: (() => void) | undefined;
|