react-toolkits 2.13.0 → 2.13.2

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/CHANGELOG.md CHANGED
@@ -1,16 +1,10 @@
1
1
  # react-toolkits
2
2
 
3
- ## 2.13.0
3
+ ## 2.13.2
4
4
 
5
- ### Minor Changes
6
-
7
- - 36eaf3d: Release
8
-
9
- ## 2.12.0
10
-
11
- ### Minor Changes
5
+ ### Patch Changes
12
6
 
13
- - 66def58: refactor: some new apis
7
+ - f59e5e7: feat: permission v3
14
8
 
15
9
  ## 2.11.19
16
10
 
@@ -766,7 +760,7 @@
766
760
 
767
761
  ### Patch Changes
768
762
 
769
- - c7c1667: fix: ignore game request when 'usePermissionApiV2' is true
763
+ - c7c1667: fix: ignore game request when 'isPermissionApiV2' is true
770
764
 
771
765
  ## 0.8.75
772
766
 
package/lib/index.css CHANGED
@@ -184,6 +184,9 @@
184
184
  .mb-12 {
185
185
  margin-bottom: 3rem;
186
186
  }
187
+ .mb-4 {
188
+ margin-bottom: 1rem;
189
+ }
187
190
  .mb-6 {
188
191
  margin-bottom: 1.5rem;
189
192
  }
@@ -220,6 +223,9 @@
220
223
  .w-10\/12 {
221
224
  width: 83.333333%;
222
225
  }
226
+ .w-8 {
227
+ width: 2rem;
228
+ }
223
229
  .w-\[650px\] {
224
230
  width: 650px;
225
231
  }
@@ -283,6 +289,9 @@
283
289
  padding-top: 1rem;
284
290
  padding-bottom: 1rem;
285
291
  }
292
+ .text-center {
293
+ text-align: center;
294
+ }
286
295
  .text-start {
287
296
  text-align: start;
288
297
  }
package/lib/index.css.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/styles/index.css","../src/components/layout/style.css"],"sourcesContent":["*, ::before, ::after {\n --tw-border-spacing-x: 0;\n --tw-border-spacing-y: 0;\n --tw-translate-x: 0;\n --tw-translate-y: 0;\n --tw-rotate: 0;\n --tw-skew-x: 0;\n --tw-skew-y: 0;\n --tw-scale-x: 1;\n --tw-scale-y: 1;\n --tw-pan-x: ;\n --tw-pan-y: ;\n --tw-pinch-zoom: ;\n --tw-scroll-snap-strictness: proximity;\n --tw-gradient-from-position: ;\n --tw-gradient-via-position: ;\n --tw-gradient-to-position: ;\n --tw-ordinal: ;\n --tw-slashed-zero: ;\n --tw-numeric-figure: ;\n --tw-numeric-spacing: ;\n --tw-numeric-fraction: ;\n --tw-ring-inset: ;\n --tw-ring-offset-width: 0px;\n --tw-ring-offset-color: #fff;\n --tw-ring-color: rgb(59 130 246 / 0.5);\n --tw-ring-offset-shadow: 0 0 #0000;\n --tw-ring-shadow: 0 0 #0000;\n --tw-shadow: 0 0 #0000;\n --tw-shadow-colored: 0 0 #0000;\n --tw-blur: ;\n --tw-brightness: ;\n --tw-contrast: ;\n --tw-grayscale: ;\n --tw-hue-rotate: ;\n --tw-invert: ;\n --tw-saturate: ;\n --tw-sepia: ;\n --tw-drop-shadow: ;\n --tw-backdrop-blur: ;\n --tw-backdrop-brightness: ;\n --tw-backdrop-contrast: ;\n --tw-backdrop-grayscale: ;\n --tw-backdrop-hue-rotate: ;\n --tw-backdrop-invert: ;\n --tw-backdrop-opacity: ;\n --tw-backdrop-saturate: ;\n --tw-backdrop-sepia: ;\n --tw-contain-size: ;\n --tw-contain-layout: ;\n --tw-contain-paint: ;\n --tw-contain-style: \n}\n::backdrop {\n --tw-border-spacing-x: 0;\n --tw-border-spacing-y: 0;\n --tw-translate-x: 0;\n --tw-translate-y: 0;\n --tw-rotate: 0;\n --tw-skew-x: 0;\n --tw-skew-y: 0;\n --tw-scale-x: 1;\n --tw-scale-y: 1;\n --tw-pan-x: ;\n --tw-pan-y: ;\n --tw-pinch-zoom: ;\n --tw-scroll-snap-strictness: proximity;\n --tw-gradient-from-position: ;\n --tw-gradient-via-position: ;\n --tw-gradient-to-position: ;\n --tw-ordinal: ;\n --tw-slashed-zero: ;\n --tw-numeric-figure: ;\n --tw-numeric-spacing: ;\n --tw-numeric-fraction: ;\n --tw-ring-inset: ;\n --tw-ring-offset-width: 0px;\n --tw-ring-offset-color: #fff;\n --tw-ring-color: rgb(59 130 246 / 0.5);\n --tw-ring-offset-shadow: 0 0 #0000;\n --tw-ring-shadow: 0 0 #0000;\n --tw-shadow: 0 0 #0000;\n --tw-shadow-colored: 0 0 #0000;\n --tw-blur: ;\n --tw-brightness: ;\n --tw-contrast: ;\n --tw-grayscale: ;\n --tw-hue-rotate: ;\n --tw-invert: ;\n --tw-saturate: ;\n --tw-sepia: ;\n --tw-drop-shadow: ;\n --tw-backdrop-blur: ;\n --tw-backdrop-brightness: ;\n --tw-backdrop-contrast: ;\n --tw-backdrop-grayscale: ;\n --tw-backdrop-hue-rotate: ;\n --tw-backdrop-invert: ;\n --tw-backdrop-opacity: ;\n --tw-backdrop-saturate: ;\n --tw-backdrop-sepia: ;\n --tw-contain-size: ;\n --tw-contain-layout: ;\n --tw-contain-paint: ;\n --tw-contain-style: \n}\n.container {\n width: 100%\n}\n@media (min-width: 640px) {\n .container {\n max-width: 640px\n }\n}\n@media (min-width: 768px) {\n .container {\n max-width: 768px\n }\n}\n@media (min-width: 1024px) {\n .container {\n max-width: 1024px\n }\n}\n@media (min-width: 1280px) {\n .container {\n max-width: 1280px\n }\n}\n@media (min-width: 1536px) {\n .container {\n max-width: 1536px\n }\n}\n.fixed {\n position: fixed\n}\n.absolute {\n position: absolute\n}\n.relative {\n position: relative\n}\n.bottom-0 {\n bottom: 0px\n}\n.left-0 {\n left: 0px\n}\n.left-14 {\n left: 3.5rem\n}\n.right-0 {\n right: 0px\n}\n.right-16 {\n right: 4rem\n}\n.top-0 {\n top: 0px\n}\n.top-1\\/2 {\n top: 50%\n}\n.top-16 {\n top: 4rem\n}\n.top-6 {\n top: 1.5rem\n}\n.z-10 {\n z-index: 10\n}\n.my-12 {\n margin-top: 3rem;\n margin-bottom: 3rem\n}\n.mb-0 {\n margin-bottom: 0px\n}\n.mb-12 {\n margin-bottom: 3rem\n}\n.mb-6 {\n margin-bottom: 1.5rem\n}\n.ml-4 {\n margin-left: 1rem\n}\n.mr-6 {\n margin-right: 1.5rem\n}\n.mt-4 {\n margin-top: 1rem\n}\n.block {\n display: block\n}\n.inline {\n display: inline\n}\n.flex {\n display: flex\n}\n.h-10 {\n height: 2.5rem\n}\n.h-8 {\n height: 2rem\n}\n.h-full {\n height: 100%\n}\n.h-screen {\n height: 100vh\n}\n.w-10\\/12 {\n width: 83.333333%\n}\n.w-\\[650px\\] {\n width: 650px\n}\n.w-full {\n width: 100%\n}\n.w-screen {\n width: 100vw\n}\n.flex-1 {\n flex: 1 1 0%\n}\n.flex-grow-0 {\n flex-grow: 0\n}\n.-translate-y-1\\/2 {\n --tw-translate-y: -50%;\n 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))\n}\n.-translate-y-10 {\n --tw-translate-y: -2.5rem;\n 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))\n}\n.flex-row {\n flex-direction: row\n}\n.flex-col {\n flex-direction: column\n}\n.items-center {\n align-items: center\n}\n.justify-center {\n justify-content: center\n}\n.justify-between {\n justify-content: space-between\n}\n.gap-2 {\n gap: 0.5rem\n}\n.gap-8 {\n gap: 2rem\n}\n.overflow-hidden {\n overflow: hidden\n}\n.bg-slate-50 {\n --tw-bg-opacity: 1;\n background-color: rgb(248 250 252 / var(--tw-bg-opacity, 1))\n}\n.px-36 {\n padding-left: 9rem;\n padding-right: 9rem\n}\n.px-6 {\n padding-left: 1.5rem;\n padding-right: 1.5rem\n}\n.py-4 {\n padding-top: 1rem;\n padding-bottom: 1rem\n}\n.text-start {\n text-align: start\n}\n.text-end {\n text-align: end\n}\n.filter {\n 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)\n}\n","\n.expand {\n animation-duration: 0.2s;\n animation-name: expand;\n}\n\n@keyframes expand {\n 0%, 50% {\n width: 0;\n opacity: 0;\n }\n\n 75% {\n width: 100%;\n opacity: 0;\n }\n\n 100% {\n opacity: 1;\n }\n}\n\n"],"mappings":";AAAA;AAAG;AAAU;AACT,yBAAuB;AACvB,yBAAuB;AACvB,oBAAkB;AAClB,oBAAkB;AAClB,eAAa;AACb,eAAa;AACb,eAAa;AACb,gBAAc;AACd,gBAAc;AACd;AACA;AACA;AACA,+BAA6B;AAC7B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0BAAwB;AACxB,0BAAwB;AACxB,mBAAiB,IAAI,GAAG,IAAI,IAAI,EAAE;AAClC,2BAAyB,EAAE,EAAE;AAC7B,oBAAkB,EAAE,EAAE;AACtB,eAAa,EAAE,EAAE;AACjB,uBAAqB,EAAE,EAAE;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACJ;AACA;AACI,yBAAuB;AACvB,yBAAuB;AACvB,oBAAkB;AAClB,oBAAkB;AAClB,eAAa;AACb,eAAa;AACb,eAAa;AACb,gBAAc;AACd,gBAAc;AACd;AACA;AACA;AACA,+BAA6B;AAC7B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0BAAwB;AACxB,0BAAwB;AACxB,mBAAiB,IAAI,GAAG,IAAI,IAAI,EAAE;AAClC,2BAAyB,EAAE,EAAE;AAC7B,oBAAkB,EAAE,EAAE;AACtB,eAAa,EAAE,EAAE;AACjB,uBAAqB,EAAE,EAAE;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACJ;AACA,CAAC;AACG,SAAO;AACX;AACA,OAAO,CAAC,SAAS,EAAE;AACf,GAJH;AAKO,eAAW;AACf;AACJ;AACA,OAAO,CAAC,SAAS,EAAE;AACf,GATH;AAUO,eAAW;AACf;AACJ;AACA,OAAO,CAAC,SAAS,EAAE;AACf,GAdH;AAeO,eAAW;AACf;AACJ;AACA,OAAO,CAAC,SAAS,EAAE;AACf,GAnBH;AAoBO,eAAW;AACf;AACJ;AACA,OAAO,CAAC,SAAS,EAAE;AACf,GAxBH;AAyBO,eAAW;AACf;AACJ;AACA,CAAC;AACG,YAAU;AACd;AACA,CAAC;AACG,YAAU;AACd;AACA,CAAC;AACG,YAAU;AACd;AACA,CAAC;AACG,UAAQ;AACZ;AACA,CAAC;AACG,QAAM;AACV;AACA,CAAC;AACG,QAAM;AACV;AACA,CAAC;AACG,SAAO;AACX;AACA,CAAC;AACG,SAAO;AACX;AACA,CAAC;AACG,OAAK;AACT;AACA,CAAC;AACG,OAAK;AACT;AACA,CAAC;AACG,OAAK;AACT;AACA,CAAC;AACG,OAAK;AACT;AACA,CAAC;AACG,WAAS;AACb;AACA,CAAC;AACG,cAAY;AACZ,iBAAe;AACnB;AACA,CAAC;AACG,iBAAe;AACnB;AACA,CAAC;AACG,iBAAe;AACnB;AACA,CAAC;AACG,iBAAe;AACnB;AACA,CAAC;AACG,eAAa;AACjB;AACA,CAAC;AACG,gBAAc;AAClB;AACA,CAAC;AACG,cAAY;AAChB;AACA,CAAC;AACG,WAAS;AACb;AACA,CAAC;AACG,WAAS;AACb;AACA,CAAC;AACG,WAAS;AACb;AACA,CAAC;AACG,UAAQ;AACZ;AACA,CAAC;AACG,UAAQ;AACZ;AACA,CAAC;AACG,UAAQ;AACZ;AACA,CAAC;AACG,UAAQ;AACZ;AACA,CAAC;AACG,SAAO;AACX;AACA,CAAC;AACG,SAAO;AACX;AACA,CAAC;AACG,SAAO;AACX;AACA,CAAC;AACG,SAAO;AACX;AACA,CAAC;AACG,QAAM,EAAE,EAAE;AACd;AACA,CAAC;AACG,aAAW;AACf;AACA,CAAC;AACG,oBAAkB;AAClB,aAAW,UAAU,IAAI,iBAAiB,EAAE,IAAI,mBAAmB,OAAO,IAAI,cAAc,MAAM,IAAI,cAAc,MAAM,IAAI,cAAc,OAAO,IAAI,eAAe,OAAO,IAAI;AACrL;AACA,CAAC;AACG,oBAAkB;AAClB,aAAW,UAAU,IAAI,iBAAiB,EAAE,IAAI,mBAAmB,OAAO,IAAI,cAAc,MAAM,IAAI,cAAc,MAAM,IAAI,cAAc,OAAO,IAAI,eAAe,OAAO,IAAI;AACrL;AACA,CAAC;AACG,kBAAgB;AACpB;AACA,CAAC;AACG,kBAAgB;AACpB;AACA,CAAC;AACG,eAAa;AACjB;AACA,CAAC;AACG,mBAAiB;AACrB;AACA,CAAC;AACG,mBAAiB;AACrB;AACA,CAAC;AACG,OAAK;AACT;AACA,CAAC;AACG,OAAK;AACT;AACA,CAAC;AACG,YAAU;AACd;AACA,CAAC;AACG,mBAAiB;AACjB,oBAAkB,IAAI,IAAI,IAAI,IAAI,EAAE,IAAI,eAAe,EAAE;AAC7D;AACA,CAAC;AACG,gBAAc;AACd,iBAAe;AACnB;AACA,CAAC;AACG,gBAAc;AACd,iBAAe;AACnB;AACA,CAAC;AACG,eAAa;AACb,kBAAgB;AACpB;AACA,CAAC;AACG,cAAY;AAChB;AACA,CAAC;AACG,cAAY;AAChB;AACA,CAAC;AACG,UAAQ,IAAI,WAAW,IAAI,iBAAiB,IAAI,eAAe,IAAI,gBAAgB,IAAI,iBAAiB,IAAI,aAAa,IAAI,eAAe,IAAI,YAAY,IAAI;AACpK;;;ACjSA,CAAC;AACC,sBAAoB;AACpB,kBAAgB;AAClB;AAEA,WALC;AAMC;AACE,WAAO;AACP,aAAS;AACX;AAEA;AACE,WAAO;AACP,aAAS;AACX;AAEA;AACE,aAAS;AACX;AACF;","names":[]}
1
+ {"version":3,"sources":["../src/styles/index.css","../src/components/layout/style.css"],"sourcesContent":["*, ::before, ::after {\n --tw-border-spacing-x: 0;\n --tw-border-spacing-y: 0;\n --tw-translate-x: 0;\n --tw-translate-y: 0;\n --tw-rotate: 0;\n --tw-skew-x: 0;\n --tw-skew-y: 0;\n --tw-scale-x: 1;\n --tw-scale-y: 1;\n --tw-pan-x: ;\n --tw-pan-y: ;\n --tw-pinch-zoom: ;\n --tw-scroll-snap-strictness: proximity;\n --tw-gradient-from-position: ;\n --tw-gradient-via-position: ;\n --tw-gradient-to-position: ;\n --tw-ordinal: ;\n --tw-slashed-zero: ;\n --tw-numeric-figure: ;\n --tw-numeric-spacing: ;\n --tw-numeric-fraction: ;\n --tw-ring-inset: ;\n --tw-ring-offset-width: 0px;\n --tw-ring-offset-color: #fff;\n --tw-ring-color: rgb(59 130 246 / 0.5);\n --tw-ring-offset-shadow: 0 0 #0000;\n --tw-ring-shadow: 0 0 #0000;\n --tw-shadow: 0 0 #0000;\n --tw-shadow-colored: 0 0 #0000;\n --tw-blur: ;\n --tw-brightness: ;\n --tw-contrast: ;\n --tw-grayscale: ;\n --tw-hue-rotate: ;\n --tw-invert: ;\n --tw-saturate: ;\n --tw-sepia: ;\n --tw-drop-shadow: ;\n --tw-backdrop-blur: ;\n --tw-backdrop-brightness: ;\n --tw-backdrop-contrast: ;\n --tw-backdrop-grayscale: ;\n --tw-backdrop-hue-rotate: ;\n --tw-backdrop-invert: ;\n --tw-backdrop-opacity: ;\n --tw-backdrop-saturate: ;\n --tw-backdrop-sepia: ;\n --tw-contain-size: ;\n --tw-contain-layout: ;\n --tw-contain-paint: ;\n --tw-contain-style: \n}\n::backdrop {\n --tw-border-spacing-x: 0;\n --tw-border-spacing-y: 0;\n --tw-translate-x: 0;\n --tw-translate-y: 0;\n --tw-rotate: 0;\n --tw-skew-x: 0;\n --tw-skew-y: 0;\n --tw-scale-x: 1;\n --tw-scale-y: 1;\n --tw-pan-x: ;\n --tw-pan-y: ;\n --tw-pinch-zoom: ;\n --tw-scroll-snap-strictness: proximity;\n --tw-gradient-from-position: ;\n --tw-gradient-via-position: ;\n --tw-gradient-to-position: ;\n --tw-ordinal: ;\n --tw-slashed-zero: ;\n --tw-numeric-figure: ;\n --tw-numeric-spacing: ;\n --tw-numeric-fraction: ;\n --tw-ring-inset: ;\n --tw-ring-offset-width: 0px;\n --tw-ring-offset-color: #fff;\n --tw-ring-color: rgb(59 130 246 / 0.5);\n --tw-ring-offset-shadow: 0 0 #0000;\n --tw-ring-shadow: 0 0 #0000;\n --tw-shadow: 0 0 #0000;\n --tw-shadow-colored: 0 0 #0000;\n --tw-blur: ;\n --tw-brightness: ;\n --tw-contrast: ;\n --tw-grayscale: ;\n --tw-hue-rotate: ;\n --tw-invert: ;\n --tw-saturate: ;\n --tw-sepia: ;\n --tw-drop-shadow: ;\n --tw-backdrop-blur: ;\n --tw-backdrop-brightness: ;\n --tw-backdrop-contrast: ;\n --tw-backdrop-grayscale: ;\n --tw-backdrop-hue-rotate: ;\n --tw-backdrop-invert: ;\n --tw-backdrop-opacity: ;\n --tw-backdrop-saturate: ;\n --tw-backdrop-sepia: ;\n --tw-contain-size: ;\n --tw-contain-layout: ;\n --tw-contain-paint: ;\n --tw-contain-style: \n}\n.container {\n width: 100%\n}\n@media (min-width: 640px) {\n .container {\n max-width: 640px\n }\n}\n@media (min-width: 768px) {\n .container {\n max-width: 768px\n }\n}\n@media (min-width: 1024px) {\n .container {\n max-width: 1024px\n }\n}\n@media (min-width: 1280px) {\n .container {\n max-width: 1280px\n }\n}\n@media (min-width: 1536px) {\n .container {\n max-width: 1536px\n }\n}\n.fixed {\n position: fixed\n}\n.absolute {\n position: absolute\n}\n.relative {\n position: relative\n}\n.bottom-0 {\n bottom: 0px\n}\n.left-0 {\n left: 0px\n}\n.left-14 {\n left: 3.5rem\n}\n.right-0 {\n right: 0px\n}\n.right-16 {\n right: 4rem\n}\n.top-0 {\n top: 0px\n}\n.top-1\\/2 {\n top: 50%\n}\n.top-16 {\n top: 4rem\n}\n.top-6 {\n top: 1.5rem\n}\n.z-10 {\n z-index: 10\n}\n.my-12 {\n margin-top: 3rem;\n margin-bottom: 3rem\n}\n.mb-0 {\n margin-bottom: 0px\n}\n.mb-12 {\n margin-bottom: 3rem\n}\n.mb-4 {\n margin-bottom: 1rem\n}\n.mb-6 {\n margin-bottom: 1.5rem\n}\n.ml-4 {\n margin-left: 1rem\n}\n.mr-6 {\n margin-right: 1.5rem\n}\n.mt-4 {\n margin-top: 1rem\n}\n.block {\n display: block\n}\n.inline {\n display: inline\n}\n.flex {\n display: flex\n}\n.h-10 {\n height: 2.5rem\n}\n.h-8 {\n height: 2rem\n}\n.h-full {\n height: 100%\n}\n.h-screen {\n height: 100vh\n}\n.w-10\\/12 {\n width: 83.333333%\n}\n.w-8 {\n width: 2rem\n}\n.w-\\[650px\\] {\n width: 650px\n}\n.w-full {\n width: 100%\n}\n.w-screen {\n width: 100vw\n}\n.flex-1 {\n flex: 1 1 0%\n}\n.flex-grow-0 {\n flex-grow: 0\n}\n.-translate-y-1\\/2 {\n --tw-translate-y: -50%;\n 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))\n}\n.-translate-y-10 {\n --tw-translate-y: -2.5rem;\n 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))\n}\n.flex-row {\n flex-direction: row\n}\n.flex-col {\n flex-direction: column\n}\n.items-center {\n align-items: center\n}\n.justify-center {\n justify-content: center\n}\n.justify-between {\n justify-content: space-between\n}\n.gap-2 {\n gap: 0.5rem\n}\n.gap-8 {\n gap: 2rem\n}\n.overflow-hidden {\n overflow: hidden\n}\n.bg-slate-50 {\n --tw-bg-opacity: 1;\n background-color: rgb(248 250 252 / var(--tw-bg-opacity, 1))\n}\n.px-36 {\n padding-left: 9rem;\n padding-right: 9rem\n}\n.px-6 {\n padding-left: 1.5rem;\n padding-right: 1.5rem\n}\n.py-4 {\n padding-top: 1rem;\n padding-bottom: 1rem\n}\n.text-center {\n text-align: center\n}\n.text-start {\n text-align: start\n}\n.text-end {\n text-align: end\n}\n.filter {\n 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)\n}\n","\n.expand {\n animation-duration: 0.2s;\n animation-name: expand;\n}\n\n@keyframes expand {\n 0%, 50% {\n width: 0;\n opacity: 0;\n }\n\n 75% {\n width: 100%;\n opacity: 0;\n }\n\n 100% {\n opacity: 1;\n }\n}\n\n"],"mappings":";AAAA;AAAG;AAAU;AACT,yBAAuB;AACvB,yBAAuB;AACvB,oBAAkB;AAClB,oBAAkB;AAClB,eAAa;AACb,eAAa;AACb,eAAa;AACb,gBAAc;AACd,gBAAc;AACd;AACA;AACA;AACA,+BAA6B;AAC7B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0BAAwB;AACxB,0BAAwB;AACxB,mBAAiB,IAAI,GAAG,IAAI,IAAI,EAAE;AAClC,2BAAyB,EAAE,EAAE;AAC7B,oBAAkB,EAAE,EAAE;AACtB,eAAa,EAAE,EAAE;AACjB,uBAAqB,EAAE,EAAE;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACJ;AACA;AACI,yBAAuB;AACvB,yBAAuB;AACvB,oBAAkB;AAClB,oBAAkB;AAClB,eAAa;AACb,eAAa;AACb,eAAa;AACb,gBAAc;AACd,gBAAc;AACd;AACA;AACA;AACA,+BAA6B;AAC7B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0BAAwB;AACxB,0BAAwB;AACxB,mBAAiB,IAAI,GAAG,IAAI,IAAI,EAAE;AAClC,2BAAyB,EAAE,EAAE;AAC7B,oBAAkB,EAAE,EAAE;AACtB,eAAa,EAAE,EAAE;AACjB,uBAAqB,EAAE,EAAE;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACJ;AACA,CAAC;AACG,SAAO;AACX;AACA,OAAO,CAAC,SAAS,EAAE;AACf,GAJH;AAKO,eAAW;AACf;AACJ;AACA,OAAO,CAAC,SAAS,EAAE;AACf,GATH;AAUO,eAAW;AACf;AACJ;AACA,OAAO,CAAC,SAAS,EAAE;AACf,GAdH;AAeO,eAAW;AACf;AACJ;AACA,OAAO,CAAC,SAAS,EAAE;AACf,GAnBH;AAoBO,eAAW;AACf;AACJ;AACA,OAAO,CAAC,SAAS,EAAE;AACf,GAxBH;AAyBO,eAAW;AACf;AACJ;AACA,CAAC;AACG,YAAU;AACd;AACA,CAAC;AACG,YAAU;AACd;AACA,CAAC;AACG,YAAU;AACd;AACA,CAAC;AACG,UAAQ;AACZ;AACA,CAAC;AACG,QAAM;AACV;AACA,CAAC;AACG,QAAM;AACV;AACA,CAAC;AACG,SAAO;AACX;AACA,CAAC;AACG,SAAO;AACX;AACA,CAAC;AACG,OAAK;AACT;AACA,CAAC;AACG,OAAK;AACT;AACA,CAAC;AACG,OAAK;AACT;AACA,CAAC;AACG,OAAK;AACT;AACA,CAAC;AACG,WAAS;AACb;AACA,CAAC;AACG,cAAY;AACZ,iBAAe;AACnB;AACA,CAAC;AACG,iBAAe;AACnB;AACA,CAAC;AACG,iBAAe;AACnB;AACA,CAAC;AACG,iBAAe;AACnB;AACA,CAAC;AACG,iBAAe;AACnB;AACA,CAAC;AACG,eAAa;AACjB;AACA,CAAC;AACG,gBAAc;AAClB;AACA,CAAC;AACG,cAAY;AAChB;AACA,CAAC;AACG,WAAS;AACb;AACA,CAAC;AACG,WAAS;AACb;AACA,CAAC;AACG,WAAS;AACb;AACA,CAAC;AACG,UAAQ;AACZ;AACA,CAAC;AACG,UAAQ;AACZ;AACA,CAAC;AACG,UAAQ;AACZ;AACA,CAAC;AACG,UAAQ;AACZ;AACA,CAAC;AACG,SAAO;AACX;AACA,CAAC;AACG,SAAO;AACX;AACA,CAAC;AACG,SAAO;AACX;AACA,CAAC;AACG,SAAO;AACX;AACA,CAAC;AACG,SAAO;AACX;AACA,CAAC;AACG,QAAM,EAAE,EAAE;AACd;AACA,CAAC;AACG,aAAW;AACf;AACA,CAAC;AACG,oBAAkB;AAClB,aAAW,UAAU,IAAI,iBAAiB,EAAE,IAAI,mBAAmB,OAAO,IAAI,cAAc,MAAM,IAAI,cAAc,MAAM,IAAI,cAAc,OAAO,IAAI,eAAe,OAAO,IAAI;AACrL;AACA,CAAC;AACG,oBAAkB;AAClB,aAAW,UAAU,IAAI,iBAAiB,EAAE,IAAI,mBAAmB,OAAO,IAAI,cAAc,MAAM,IAAI,cAAc,MAAM,IAAI,cAAc,OAAO,IAAI,eAAe,OAAO,IAAI;AACrL;AACA,CAAC;AACG,kBAAgB;AACpB;AACA,CAAC;AACG,kBAAgB;AACpB;AACA,CAAC;AACG,eAAa;AACjB;AACA,CAAC;AACG,mBAAiB;AACrB;AACA,CAAC;AACG,mBAAiB;AACrB;AACA,CAAC;AACG,OAAK;AACT;AACA,CAAC;AACG,OAAK;AACT;AACA,CAAC;AACG,YAAU;AACd;AACA,CAAC;AACG,mBAAiB;AACjB,oBAAkB,IAAI,IAAI,IAAI,IAAI,EAAE,IAAI,eAAe,EAAE;AAC7D;AACA,CAAC;AACG,gBAAc;AACd,iBAAe;AACnB;AACA,CAAC;AACG,gBAAc;AACd,iBAAe;AACnB;AACA,CAAC;AACG,eAAa;AACb,kBAAgB;AACpB;AACA,CAAC;AACG,cAAY;AAChB;AACA,CAAC;AACG,cAAY;AAChB;AACA,CAAC;AACG,cAAY;AAChB;AACA,CAAC;AACG,UAAQ,IAAI,WAAW,IAAI,iBAAiB,IAAI,eAAe,IAAI,gBAAgB,IAAI,iBAAiB,IAAI,aAAa,IAAI,eAAe,IAAI,YAAY,IAAI;AACpK;;;AC1SA,CAAC;AACC,sBAAoB;AACpB,kBAAgB;AAClB;AAEA,WALC;AAMC;AACE,WAAO;AACP,aAAS;AACX;AAEA;AACE,WAAO;AACP,aAAS;AACX;AAEA;AACE,aAAS;AACX;AACF;","names":[]}
package/lib/index.d.ts CHANGED
@@ -1,148 +1,69 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
1
  import * as react from 'react';
3
- import { ReactNode, FC, PropsWithChildren, Key, ComponentType, ReactElement, Ref } from 'react';
4
- import { AxiosInstance, InternalAxiosRequestConfig, AxiosResponse, AxiosInterceptorOptions, AxiosHeaderValue } from 'axios';
2
+ import { FC, PropsWithChildren, Key, ReactNode, ReactElement, Ref, ComponentType } from 'react';
5
3
  import { ParagraphProps } from 'antd/es/typography/Paragraph';
6
- import { MenuProps, FormInstance, ModalProps, FormProps, ButtonProps } from 'antd';
4
+ import * as react_jsx_runtime from 'react/jsx-runtime';
5
+ import { FormInstance, MenuProps, ModalProps, FormProps, ButtonProps } from 'antd';
7
6
  import { TableProps } from 'antd/es/table';
7
+ import { AxiosHeaderValue, AxiosInstance, InternalAxiosRequestConfig, AxiosResponse, AxiosInterceptorOptions } from 'axios';
8
+ import * as swr from 'swr';
9
+ import { MutatorCallback, MutatorOptions } from 'swr';
8
10
  import { ItemType, SubMenuType, MenuItemGroupType, MenuItemType } from 'antd/es/menu/interface';
9
11
  import { Merge } from 'ts-essentials';
10
12
  import * as zustand_middleware from 'zustand/middleware';
11
13
  import { StateStorage } from 'zustand/middleware';
12
14
  import * as zustand from 'zustand';
13
15
  import { AnyObject } from 'antd/es/_util/type';
14
- import * as swr from 'swr';
15
- import { MutatorCallback, MutatorOptions } from 'swr';
16
16
 
17
- interface AxiosSlice {
18
- axios: AxiosInstance;
17
+ interface DynamicTagsProps {
18
+ initialTags?: string[];
19
+ addable?: boolean;
20
+ removable?: boolean;
21
+ addCallback?: (addedTag: string) => Promise<boolean>;
22
+ removeCallback?: (removedTag: string) => Promise<boolean>;
19
23
  }
24
+ declare const DynamicTags: FC<DynamicTagsProps>;
20
25
 
21
- type Locale = {
22
- global: {
23
- noEntitlement: string;
24
- name: string;
25
- creationTime: string;
26
- operation: string;
27
- update: string;
28
- edit: string;
29
- delete: string;
30
- selectAll: string;
31
- game: string;
32
- user: string;
33
- role: string;
34
- username: string;
35
- password: string;
36
- label: string;
37
- method: string;
38
- route: string;
39
- request: string;
40
- response: string;
41
- add: string;
42
- signIn: string;
43
- };
44
- SignIn: {
45
- title: string;
46
- thirdParty: string;
47
- signInWithIDass: string;
48
- unregistered: string;
49
- welcome: string;
50
- };
51
- NotFound: {
52
- subTitle: string;
53
- buttonText: string;
54
- };
55
- FilterFormWrapper: {
56
- confirmText: string;
57
- resetText: string;
58
- };
59
- FormModal: {
60
- confirmText: string;
61
- cancelText: string;
62
- };
63
- GameSelect: {
64
- label: string;
65
- placeholder: string;
66
- };
67
- RequireGame: {
68
- description: string;
69
- };
70
- UserWidget: {
71
- signOutText: string;
72
- };
73
- UserList: {
74
- createTitle: string;
75
- createSuccessfully: string;
76
- updateTitle: string;
77
- updateSuccessfully: string;
78
- deleteTitle: string;
79
- deleteContent: string;
80
- deleteSuccessfully: string;
81
- };
82
- RoleList: {
83
- createTitle: string;
84
- createSuccessfully: string;
85
- updateTitle: string;
86
- updateSuccessfully: string;
87
- deleteTitle: string;
88
- deleteContent: string;
89
- deleteSuccessfully: string;
90
- };
91
- PermissionList: {
92
- failedDescription: string;
93
- baseSectionTitle: string;
94
- gameSectionTitle: string;
95
- gameSectionDescription: string;
96
- gameSelectPlaceholder: string;
97
- removeText: string;
98
- addText: string;
99
- };
100
- RoleDetail: {
101
- title: string;
102
- };
103
- InfiniteList: {
104
- loadingText: string;
105
- reachEndText: string;
106
- loadMoreText: string;
107
- };
108
- };
26
+ type ExpandableParagraphProps = Omit<ParagraphProps, 'ellipsis' | 'className'>;
27
+ declare const ExpandableParagraph: FC<ExpandableParagraphProps>;
109
28
 
110
- interface ContextSlice {
111
- locale: Locale;
112
- isPermissionApiV2: boolean;
113
- gameApiV2: boolean;
114
- signInPath: string;
115
- isGlobal: boolean;
116
- unregistered?: boolean;
117
- hideGameSelect?: boolean;
118
- layoutTitle?: ReactNode;
119
- interceptors?: {
120
- request?: [(config: InternalAxiosRequestConfig) => InternalAxiosRequestConfig | Promise<InternalAxiosRequestConfig>];
121
- response?: [
122
- (response: AxiosResponse) => AxiosResponse | Promise<AxiosResponse>,
123
- ((error: any) => any) | null,
124
- options?: AxiosInterceptorOptions
125
- ];
126
- };
29
+ interface FilterFormWrapperProps extends PropsWithChildren {
30
+ onConfirm?: () => void | Promise<void>;
31
+ onReset?: () => void;
32
+ extras?: {
33
+ key: Key;
34
+ children: ReactNode;
35
+ }[];
36
+ isConfirming?: boolean;
37
+ buttonsAlign?: 'left' | 'right' | 'bottom';
38
+ showReset?: boolean;
127
39
  }
40
+ declare const FilterFormWrapper: (props: FilterFormWrapperProps) => react_jsx_runtime.JSX.Element;
128
41
 
129
- type MenuItemType2 = Merge<MenuItemType, {
130
- route?: string;
131
- }>;
132
- type SubMenuType2 = Merge<SubMenuType, {
133
- children?: NavMenuItem[];
134
- }>;
135
- type MenuItemGroupType2 = Merge<MenuItemGroupType, {
136
- children?: NavMenuItem[];
137
- }>;
138
- type NavMenuItem = Exclude<ItemType, SubMenuType | MenuItemGroupType | MenuItemType> | MenuItemType2 | SubMenuType2 | MenuItemGroupType2;
42
+ interface HighlightProps extends PropsWithChildren {
43
+ texts: Array<string | number>;
44
+ }
45
+ declare const Highlight: (props: HighlightProps) => react_jsx_runtime.JSX.Element;
139
46
 
140
- interface NavMenuProps {
141
- items?: NavMenuItem[];
142
- theme?: MenuProps['theme'];
143
- loading?: boolean;
47
+ interface InfiniteListExtra<Values> {
48
+ key: Key;
49
+ children: ReactNode | ((form: FormInstance<Values>) => ReactNode);
144
50
  }
145
- declare const NavMenu: react.NamedExoticComponent<NavMenuProps>;
51
+ interface InfiniteListProps<Item, Values, Response> extends Pick<TableProps<Item>, 'columns' | 'rowKey' | 'tableLayout' | 'expandable' | 'rowSelection' | 'bordered'> {
52
+ url: string;
53
+ getRowKey: (response: Response) => any;
54
+ getDataSource: (data: (Response | undefined)[] | undefined) => Item[];
55
+ code?: string;
56
+ headers?: {
57
+ [key: string]: AxiosHeaderValue;
58
+ } | ((form: FormInstance<Values>) => {
59
+ [key: string]: AxiosHeaderValue;
60
+ });
61
+ renderForm?: (form: FormInstance<Values>) => ReactNode;
62
+ transformArg: (values: Values, rowKey?: string) => Record<any, any>;
63
+ hasMore?: (data: (Response | undefined)[] | undefined) => boolean;
64
+ extras?: InfiniteListExtra<Values>[];
65
+ }
66
+ declare const InfiniteList: <Item extends object, Values extends object | undefined = undefined, Response = any>(props: InfiniteListProps<Item, Values, Response>) => react_jsx_runtime.JSX.Element;
146
67
 
147
68
  type Area = 'all' | 'cn' | 'global';
148
69
  type ScreenOrientation = 0 | 1;
@@ -162,6 +83,27 @@ interface Game {
162
83
  server_type: string;
163
84
  }
164
85
 
86
+ declare const useGames: () => swr.SWRResponse<Game[], any, any>;
87
+ declare const useFindGame: (id: string | number) => Game | undefined;
88
+
89
+ type MenuItemType2 = Merge<MenuItemType, {
90
+ route?: string;
91
+ }>;
92
+ type SubMenuType2 = Merge<SubMenuType, {
93
+ children?: NavMenuItem[];
94
+ }>;
95
+ type MenuItemGroupType2 = Merge<MenuItemGroupType, {
96
+ children?: NavMenuItem[];
97
+ }>;
98
+ type NavMenuItem = Exclude<ItemType, SubMenuType | MenuItemGroupType | MenuItemType> | MenuItemType2 | SubMenuType2 | MenuItemGroupType2;
99
+
100
+ interface NavMenuProps {
101
+ items?: NavMenuItem[];
102
+ theme?: MenuProps['theme'];
103
+ loading?: boolean;
104
+ }
105
+ declare const NavMenu: react.NamedExoticComponent<NavMenuProps>;
106
+
165
107
  interface GameSelectProps {
166
108
  filter?: (game: Game) => boolean;
167
109
  }
@@ -175,6 +117,7 @@ interface LayoutProps extends Pick<GameSelectProps, 'filter'> {
175
117
  isMenuLoading?: boolean;
176
118
  title?: ReactNode;
177
119
  items?: NavMenuItem[];
120
+ hideGameSelect?: boolean;
178
121
  navWidth?: string | number;
179
122
  headerExtra?: {
180
123
  left?: HeaderExtra[];
@@ -199,88 +142,6 @@ declare const useLayoutStore: zustand.UseBoundStore<Omit<zustand.StoreApi<Layout
199
142
  };
200
143
  }>;
201
144
 
202
- interface UserInfo {
203
- authorityId: string;
204
- exp: number;
205
- }
206
- interface TokenSlice {
207
- token?: string;
208
- getUser: () => UserInfo | null;
209
- setToken: (token: string) => void;
210
- }
211
-
212
- interface GameSlice {
213
- game?: Game;
214
- games: Game[];
215
- selectedGame?: string | number;
216
- isGamesLoading: boolean;
217
- setGame: (value?: string | number) => void;
218
- setGames: (games: Game[]) => void;
219
- setSelectedGame: (value: string | number) => void;
220
- setIsGamesLoading: (loading: boolean) => void;
221
- }
222
-
223
- type ToolkitsState = TokenSlice & GameSlice & ContextSlice & AxiosSlice & {
224
- clearToken: () => void;
225
- setUnregistered: () => void;
226
- };
227
-
228
- declare function useContextStore<T>(selector: (state: ToolkitsState) => T): T;
229
- type ContextProviderProps = PropsWithChildren<Partial<ContextSlice>>;
230
- declare const Contextrovider: FC<ContextProviderProps>;
231
- declare const withContext: (Component: ComponentType, providerProps: Omit<ContextProviderProps, "children">) => (props: any) => react_jsx_runtime.JSX.Element;
232
-
233
- interface DynamicTagsProps {
234
- initialTags?: string[];
235
- addable?: boolean;
236
- removable?: boolean;
237
- addCallback?: (addedTag: string) => Promise<boolean>;
238
- removeCallback?: (removedTag: string) => Promise<boolean>;
239
- }
240
- declare const DynamicTags: FC<DynamicTagsProps>;
241
-
242
- type ExpandableParagraphProps = Omit<ParagraphProps, 'ellipsis' | 'className'>;
243
- declare const ExpandableParagraph: FC<ExpandableParagraphProps>;
244
-
245
- interface FilterFormWrapperProps extends PropsWithChildren {
246
- onConfirm?: () => void | Promise<void>;
247
- onReset?: () => void;
248
- extras?: {
249
- key: Key;
250
- children: ReactNode;
251
- }[];
252
- isConfirming?: boolean;
253
- buttonsAlign?: 'left' | 'right' | 'bottom';
254
- showReset?: boolean;
255
- }
256
- declare const FilterFormWrapper: (props: FilterFormWrapperProps) => react_jsx_runtime.JSX.Element;
257
-
258
- interface HighlightProps extends PropsWithChildren {
259
- texts: Array<string | number>;
260
- }
261
- declare const Highlight: (props: HighlightProps) => react_jsx_runtime.JSX.Element;
262
-
263
- interface InfiniteListExtra<Values> {
264
- key: Key;
265
- children: ReactNode | ((form: FormInstance<Values>) => ReactNode);
266
- }
267
- interface InfiniteListProps<Item, Values, Response> extends Pick<TableProps<Item>, 'columns' | 'rowKey' | 'tableLayout' | 'expandable' | 'rowSelection' | 'bordered'> {
268
- url: string;
269
- getRowKey: (response: Response) => any;
270
- getDataSource: (data: (Response | undefined)[] | undefined) => Item[];
271
- code?: string;
272
- headers?: {
273
- [key: string]: AxiosHeaderValue;
274
- } | ((form: FormInstance<Values>) => {
275
- [key: string]: AxiosHeaderValue;
276
- });
277
- renderForm?: (form: FormInstance<Values>) => ReactNode;
278
- transformArg: (values: Values, rowKey?: string) => Record<any, any>;
279
- hasMore?: (data: (Response | undefined)[] | undefined) => boolean;
280
- extras?: InfiniteListExtra<Values>[];
281
- }
282
- declare const InfiniteList: <Item extends object, Values extends object | undefined = undefined, Response = any>(props: InfiniteListProps<Item, Values, Response>) => react_jsx_runtime.JSX.Element;
283
-
284
145
  interface UseModalOperation {
285
146
  hide: () => void;
286
147
  }
@@ -314,6 +175,15 @@ declare function useFormModal<Values extends AnyObject = AnyObject, ExtraValues
314
175
  modal: react_jsx_runtime.JSX.Element;
315
176
  };
316
177
 
178
+ interface ModalState {
179
+ open: Map<number, boolean>;
180
+ isOpen: (uuid: number) => boolean;
181
+ show: (uuid: number) => void;
182
+ hide: (uuid: number) => void;
183
+ hideAll: () => void;
184
+ }
185
+ declare const useModalStore: zustand.UseBoundStore<zustand.StoreApi<ModalState>>;
186
+
317
187
  interface PermissionButtonProps extends ButtonProps {
318
188
  code?: string | string[];
319
189
  showLoading?: boolean;
@@ -387,19 +257,172 @@ interface RequirePermissionProps {
387
257
  }
388
258
  declare const RequirePermission: FC<PropsWithChildren<RequirePermissionProps>>;
389
259
 
390
- declare const UserWidget: FC;
260
+ interface AxiosSlice {
261
+ axios: AxiosInstance;
262
+ }
263
+
264
+ type Locale = {
265
+ global: {
266
+ noEntitlement: string;
267
+ name: string;
268
+ creationTime: string;
269
+ operation: string;
270
+ update: string;
271
+ edit: string;
272
+ delete: string;
273
+ selectAll: string;
274
+ game: string;
275
+ user: string;
276
+ role: string;
277
+ username: string;
278
+ password: string;
279
+ label: string;
280
+ method: string;
281
+ route: string;
282
+ request: string;
283
+ response: string;
284
+ add: string;
285
+ signIn: string;
286
+ projectGroup: string;
287
+ view: string;
288
+ };
289
+ SignIn: {
290
+ title: string;
291
+ thirdParty: string;
292
+ signInWithIDass: string;
293
+ unregistered: string;
294
+ welcome: string;
295
+ };
296
+ NotFound: {
297
+ subTitle: string;
298
+ buttonText: string;
299
+ };
300
+ FilterFormWrapper: {
301
+ confirmText: string;
302
+ resetText: string;
303
+ };
304
+ FormModal: {
305
+ confirmText: string;
306
+ cancelText: string;
307
+ };
308
+ GameSelect: {
309
+ label: string;
310
+ placeholder: string;
311
+ };
312
+ RequireGame: {
313
+ description: string;
314
+ };
315
+ UserWidget: {
316
+ signOutText: string;
317
+ };
318
+ UserList: {
319
+ createTitle: string;
320
+ createSuccessfully: string;
321
+ updateTitle: string;
322
+ updateSuccessfully: string;
323
+ deleteTitle: string;
324
+ deleteContent: string;
325
+ deleteSuccessfully: string;
326
+ };
327
+ RoleList: {
328
+ createTitle: string;
329
+ createSuccessfully: string;
330
+ updateTitle: string;
331
+ updateSuccessfully: string;
332
+ deleteTitle: string;
333
+ deleteContent: string;
334
+ deleteSuccessfully: string;
335
+ };
336
+ PermissionList: {
337
+ failedDescription: string;
338
+ baseSectionTitle: string;
339
+ gameSectionTitle: string;
340
+ gameSectionDescription: string;
341
+ gameSelectPlaceholder: string;
342
+ removeText: string;
343
+ addText: string;
344
+ };
345
+ RoleDetail: {
346
+ title: string;
347
+ };
348
+ InfiniteList: {
349
+ loadingText: string;
350
+ reachEndText: string;
351
+ loadMoreText: string;
352
+ };
353
+ };
391
354
 
392
355
  declare const SSO_URL = "https://idaas.ifunplus.cn/enduser/api/application/plugin_FunPlus/sso/v1";
393
356
  declare const APP_ID_HEADER = "App-ID";
394
357
  declare const FRONTEND_ROUTE_PREFIX = "/console/";
358
+ declare enum PermissionVersion {
359
+ V1 = "v1",
360
+ V2 = "v2",
361
+ V3 = "v3"
362
+ }
363
+ declare const WILDCARD = "*";
395
364
 
365
+ interface ContextSlice {
366
+ locale: Locale;
367
+ permissionVersion: PermissionVersion;
368
+ gameApiV2: boolean;
369
+ signInPath: string;
370
+ isGlobal: boolean;
371
+ layoutTitle?: ReactNode;
372
+ navWidth?: number;
373
+ menuCollapsible?: boolean;
374
+ interceptors?: {
375
+ request?: [(config: InternalAxiosRequestConfig) => InternalAxiosRequestConfig | Promise<InternalAxiosRequestConfig>];
376
+ response?: [
377
+ (response: AxiosResponse) => AxiosResponse | Promise<AxiosResponse>,
378
+ ((error: any) => any) | null,
379
+ options?: AxiosInterceptorOptions
380
+ ];
381
+ };
382
+ }
383
+
384
+ interface GameSlice {
385
+ game?: Game;
386
+ setGame: (game?: Game) => void;
387
+ getGameId: () => string | number | undefined;
388
+ }
389
+
390
+ interface UserInfo {
391
+ authorityId: string;
392
+ exp: number;
393
+ }
394
+ interface TokenSlice {
395
+ token?: string;
396
+ getUser: () => UserInfo | null;
397
+ setToken: (token: string) => void;
398
+ }
399
+
400
+ type ToolkitsState = TokenSlice & GameSlice & ContextSlice & AxiosSlice & {
401
+ unregistered: boolean;
402
+ clearToken: () => void;
403
+ setUnregistered: () => void;
404
+ };
405
+
406
+ declare function useToolkitsStore<T>(selector: (state: ToolkitsState) => T): T;
407
+ type ToolkitsProviderProps = PropsWithChildren<Partial<ContextSlice>>;
408
+ declare const ToolkitsProvider: FC<ToolkitsProviderProps>;
409
+ declare const withContext: (Component: ComponentType, providerProps: Omit<ToolkitsProviderProps, "children">) => (props: any) => react_jsx_runtime.JSX.Element;
410
+
411
+ declare const UserWidget: FC;
412
+
413
+ type JsonData<T = any> = {
414
+ code?: number;
415
+ status?: number;
416
+ errno?: number;
417
+ data: T;
418
+ msg: string;
419
+ };
396
420
  interface Permission {
397
421
  label: string;
398
422
  value: string;
399
423
  route: string;
400
424
  method?: string;
401
425
  }
402
-
403
426
  interface MenuListItem {
404
427
  id: number;
405
428
  category: string;
@@ -413,15 +436,12 @@ interface MenuListItem {
413
436
  ext: string;
414
437
  }
415
438
 
416
- declare function useMenuList(): swr.SWRResponse<MenuListItem[], any, any>;
417
-
418
- type PermissionCheckResult = {
419
- has_all: true;
420
- } | Record<string, boolean>;
421
439
  declare const usePermissions: (codes?: string[]) => {
422
440
  data: Record<string, boolean>;
423
441
  error: any;
424
- mutate: swr.KeyedMutator<PermissionCheckResult>;
442
+ mutate: swr.KeyedMutator<{
443
+ has_all: true;
444
+ } | Record<string, boolean>>;
425
445
  isValidating: boolean;
426
446
  isLoading: boolean;
427
447
  };
@@ -430,6 +450,7 @@ declare const usePermission: (code?: string) => {
430
450
  isValidating: boolean;
431
451
  isLoading: boolean;
432
452
  };
453
+ declare function useMenuList(): swr.SWRResponse<MenuListItem[], any, any>;
433
454
 
434
455
  declare const _default$2: react_jsx_runtime.JSX.Element;
435
456
 
@@ -449,14 +470,6 @@ interface SignInProps {
449
470
  }
450
471
  declare const SignIn: FC<SignInProps>;
451
472
 
452
- type JsonData<T = any> = {
453
- code?: number;
454
- status?: number;
455
- errno?: number;
456
- data: T;
457
- msg: string;
458
- };
459
-
460
473
  declare const mixedStorage: StateStorage;
461
474
 
462
- export { APP_ID_HEADER, Contextrovider as ContextProvider, type ContextProviderProps, DynamicTags, type DynamicTagsProps, ExpandableParagraph, type ExpandableParagraphProps, FRONTEND_ROUTE_PREFIX, FilterFormWrapper, type FilterFormWrapperProps, type Game, Highlight, type HighlightProps, InfiniteList, type InfiniteListProps, type JsonData, Layout, type LayoutProps, type LayoutState, NavMenu, type NavMenuItem, NotFound, _default$1 as OperationLogList, PermissionButton, type PermissionButtonProps, QueryList, QueryListAction, type QueryListPayload, type QueryListProps, type QueryListRef, RequireGame, RequirePermission, type RequirePermissionProps, SSO_URL, SignIn, type UseFormModalProps, UserWidget, _default$2 as menuRoutes, mixedStorage, _default as permissionRoutes, useContextStore, useFormModal, useLayoutStore, useMenuList, useModal, usePermission, usePermissions, useQueryListStore, withContext };
475
+ export { APP_ID_HEADER, DynamicTags, type DynamicTagsProps, ExpandableParagraph, type ExpandableParagraphProps, FRONTEND_ROUTE_PREFIX, FilterFormWrapper, type FilterFormWrapperProps, type Game, Highlight, type HighlightProps, InfiniteList, type InfiniteListProps, type JsonData, Layout, type LayoutProps, type LayoutState, type MenuListItem, NavMenu, type NavMenuItem, NotFound, _default$1 as OperationLogList, type Permission, PermissionButton, type PermissionButtonProps, PermissionVersion, QueryList, QueryListAction, type QueryListPayload, type QueryListProps, type QueryListRef, RequireGame, RequirePermission, type RequirePermissionProps, SSO_URL, SignIn, ToolkitsProvider, type ToolkitsProviderProps, type UseFormModalProps, UserWidget, WILDCARD, _default$2 as menuRoutes, mixedStorage, _default as permissionRoutes, useFindGame, useFormModal, useGames, useLayoutStore, useMenuList, useModal, useModalStore, usePermission, usePermissions, useQueryListStore, useToolkitsStore, withContext };