react-toolkits 2.13.1 → 2.13.3

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,22 +1,16 @@
1
1
  # react-toolkits
2
2
 
3
- ## 2.13.1
3
+ ## 2.13.3
4
4
 
5
5
  ### Patch Changes
6
6
 
7
- - d26e60b: fix: some issues
7
+ - 8601f12: feat: change permission display
8
8
 
9
- ## 2.13.0
9
+ ## 2.13.2
10
10
 
11
- ### Minor Changes
12
-
13
- - 36eaf3d: Release
14
-
15
- ## 2.12.0
16
-
17
- ### Minor Changes
11
+ ### Patch Changes
18
12
 
19
- - 66def58: refactor: some new apis
13
+ - f59e5e7: feat: permission v3
20
14
 
21
15
  ## 2.11.19
22
16
 
@@ -772,7 +766,7 @@
772
766
 
773
767
  ### Patch Changes
774
768
 
775
- - c7c1667: fix: ignore game request when 'usePermissionApiV2' is true
769
+ - c7c1667: fix: ignore game request when 'isPermissionApiV2' is true
776
770
 
777
771
  ## 0.8.75
778
772
 
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
- layoutTitle?: ReactNode;
118
- navWidth?: number;
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
  }
@@ -200,88 +142,6 @@ declare const useLayoutStore: zustand.UseBoundStore<Omit<zustand.StoreApi<Layout
200
142
  };
201
143
  }>;
202
144
 
203
- interface UserInfo {
204
- authorityId: string;
205
- exp: number;
206
- }
207
- interface TokenSlice {
208
- token?: string;
209
- getUser: () => UserInfo | null;
210
- setToken: (token: string) => void;
211
- }
212
-
213
- interface GameSlice {
214
- game?: Game;
215
- games: Game[];
216
- selectedGame?: string | number;
217
- isGamesLoading: boolean;
218
- setGame: (value?: string | number) => void;
219
- setGames: (games: Game[]) => void;
220
- setSelectedGame: (value: string | number) => void;
221
- setIsGamesLoading: (loading: boolean) => void;
222
- }
223
-
224
- type ToolkitsState = TokenSlice & GameSlice & ContextSlice & AxiosSlice & {
225
- clearToken: () => void;
226
- setUnregistered: () => void;
227
- };
228
-
229
- declare function useContextStore<T>(selector: (state: ToolkitsState) => T): T;
230
- type ContextProviderProps = PropsWithChildren<Partial<ContextSlice>>;
231
- declare const Contextrovider: FC<ContextProviderProps>;
232
- declare const withContext: (Component: ComponentType, providerProps: Omit<ContextProviderProps, "children">) => (props: any) => react_jsx_runtime.JSX.Element;
233
-
234
- interface DynamicTagsProps {
235
- initialTags?: string[];
236
- addable?: boolean;
237
- removable?: boolean;
238
- addCallback?: (addedTag: string) => Promise<boolean>;
239
- removeCallback?: (removedTag: string) => Promise<boolean>;
240
- }
241
- declare const DynamicTags: FC<DynamicTagsProps>;
242
-
243
- type ExpandableParagraphProps = Omit<ParagraphProps, 'ellipsis' | 'className'>;
244
- declare const ExpandableParagraph: FC<ExpandableParagraphProps>;
245
-
246
- interface FilterFormWrapperProps extends PropsWithChildren {
247
- onConfirm?: () => void | Promise<void>;
248
- onReset?: () => void;
249
- extras?: {
250
- key: Key;
251
- children: ReactNode;
252
- }[];
253
- isConfirming?: boolean;
254
- buttonsAlign?: 'left' | 'right' | 'bottom';
255
- showReset?: boolean;
256
- }
257
- declare const FilterFormWrapper: (props: FilterFormWrapperProps) => react_jsx_runtime.JSX.Element;
258
-
259
- interface HighlightProps extends PropsWithChildren {
260
- texts: Array<string | number>;
261
- }
262
- declare const Highlight: (props: HighlightProps) => react_jsx_runtime.JSX.Element;
263
-
264
- interface InfiniteListExtra<Values> {
265
- key: Key;
266
- children: ReactNode | ((form: FormInstance<Values>) => ReactNode);
267
- }
268
- interface InfiniteListProps<Item, Values, Response> extends Pick<TableProps<Item>, 'columns' | 'rowKey' | 'tableLayout' | 'expandable' | 'rowSelection' | 'bordered'> {
269
- url: string;
270
- getRowKey: (response: Response) => any;
271
- getDataSource: (data: (Response | undefined)[] | undefined) => Item[];
272
- code?: string;
273
- headers?: {
274
- [key: string]: AxiosHeaderValue;
275
- } | ((form: FormInstance<Values>) => {
276
- [key: string]: AxiosHeaderValue;
277
- });
278
- renderForm?: (form: FormInstance<Values>) => ReactNode;
279
- transformArg: (values: Values, rowKey?: string) => Record<any, any>;
280
- hasMore?: (data: (Response | undefined)[] | undefined) => boolean;
281
- extras?: InfiniteListExtra<Values>[];
282
- }
283
- declare const InfiniteList: <Item extends object, Values extends object | undefined = undefined, Response = any>(props: InfiniteListProps<Item, Values, Response>) => react_jsx_runtime.JSX.Element;
284
-
285
145
  interface UseModalOperation {
286
146
  hide: () => void;
287
147
  }
@@ -304,17 +164,27 @@ interface UseFormModalProps<Values extends AnyObject = AnyObject, ExtraValues =
304
164
  form?: FormInstance<Values>;
305
165
  content?: ReactNode | ((extraValues: ExtraValues, operation: UseModalOperation) => ReactNode);
306
166
  onConfirm?: (values: Values, extraValues: ExtraValues) => void | Promise<void>;
167
+ onSuccess?: () => void;
307
168
  }
308
169
  declare function useFormModal<Values extends AnyObject = AnyObject, ExtraValues = any>(props: UseFormModalProps<Values, ExtraValues>): {
309
170
  id: number;
310
- show: ({ initialValues, extraValues, }?: {
171
+ show: (options?: {
311
172
  initialValues?: RecursivePartial<Values>;
312
- extraValues?: ExtraValues;
173
+ extraValues: ExtraValues;
313
174
  }) => void;
314
175
  hide: () => void;
315
176
  modal: react_jsx_runtime.JSX.Element;
316
177
  };
317
178
 
179
+ interface ModalState {
180
+ open: Map<number, boolean>;
181
+ isOpen: (uuid: number) => boolean;
182
+ show: (uuid: number) => void;
183
+ hide: (uuid: number) => void;
184
+ hideAll: () => void;
185
+ }
186
+ declare const useModalStore: zustand.UseBoundStore<zustand.StoreApi<ModalState>>;
187
+
318
188
  interface PermissionButtonProps extends ButtonProps {
319
189
  code?: string | string[];
320
190
  showLoading?: boolean;
@@ -388,19 +258,172 @@ interface RequirePermissionProps {
388
258
  }
389
259
  declare const RequirePermission: FC<PropsWithChildren<RequirePermissionProps>>;
390
260
 
391
- declare const UserWidget: FC;
261
+ interface AxiosSlice {
262
+ axios: AxiosInstance;
263
+ }
264
+
265
+ type Locale = {
266
+ global: {
267
+ noEntitlement: string;
268
+ name: string;
269
+ creationTime: string;
270
+ operation: string;
271
+ update: string;
272
+ edit: string;
273
+ delete: string;
274
+ selectAll: string;
275
+ game: string;
276
+ user: string;
277
+ role: string;
278
+ username: string;
279
+ password: string;
280
+ label: string;
281
+ method: string;
282
+ route: string;
283
+ request: string;
284
+ response: string;
285
+ add: string;
286
+ signIn: string;
287
+ projectGroup: string;
288
+ view: string;
289
+ };
290
+ SignIn: {
291
+ title: string;
292
+ thirdParty: string;
293
+ signInWithIDass: string;
294
+ unregistered: string;
295
+ welcome: string;
296
+ };
297
+ NotFound: {
298
+ subTitle: string;
299
+ buttonText: string;
300
+ };
301
+ FilterFormWrapper: {
302
+ confirmText: string;
303
+ resetText: string;
304
+ };
305
+ FormModal: {
306
+ confirmText: string;
307
+ cancelText: string;
308
+ };
309
+ GameSelect: {
310
+ label: string;
311
+ placeholder: string;
312
+ };
313
+ RequireGame: {
314
+ description: string;
315
+ };
316
+ UserWidget: {
317
+ signOutText: string;
318
+ };
319
+ User: {
320
+ createTitle: string;
321
+ createSuccessfully: string;
322
+ updateTitle: string;
323
+ updateSuccessfully: string;
324
+ deleteTitle: string;
325
+ deleteContent: string;
326
+ deleteSuccessfully: string;
327
+ };
328
+ Role: {
329
+ createTitle: string;
330
+ createSuccessfully: string;
331
+ updateTitle: string;
332
+ updateSuccessfully: string;
333
+ deleteTitle: string;
334
+ deleteContent: string;
335
+ deleteSuccessfully: string;
336
+ };
337
+ PermissionList: {
338
+ failedDescription: string;
339
+ baseSectionTitle: string;
340
+ gameSectionTitle: string;
341
+ gameSectionDescription: string;
342
+ gameSelectPlaceholder: string;
343
+ removeText: string;
344
+ addText: string;
345
+ };
346
+ RoleDetail: {
347
+ title: string;
348
+ };
349
+ InfiniteList: {
350
+ loadingText: string;
351
+ reachEndText: string;
352
+ loadMoreText: string;
353
+ };
354
+ };
392
355
 
393
356
  declare const SSO_URL = "https://idaas.ifunplus.cn/enduser/api/application/plugin_FunPlus/sso/v1";
394
357
  declare const APP_ID_HEADER = "App-ID";
395
358
  declare const FRONTEND_ROUTE_PREFIX = "/console/";
359
+ declare enum PermissionVersion {
360
+ V1 = "v1",
361
+ V2 = "v2",
362
+ V3 = "v3"
363
+ }
364
+ declare const WILDCARD = "*";
365
+
366
+ interface ContextSlice {
367
+ locale: Locale;
368
+ permissionVersion: PermissionVersion;
369
+ gameApiV2: boolean;
370
+ signInPath: string;
371
+ isGlobal: boolean;
372
+ layoutTitle?: ReactNode;
373
+ navWidth?: number;
374
+ menuCollapsible?: boolean;
375
+ interceptors?: {
376
+ request?: [(config: InternalAxiosRequestConfig) => InternalAxiosRequestConfig | Promise<InternalAxiosRequestConfig>];
377
+ response?: [
378
+ (response: AxiosResponse) => AxiosResponse | Promise<AxiosResponse>,
379
+ ((error: any) => any) | null,
380
+ options?: AxiosInterceptorOptions
381
+ ];
382
+ };
383
+ }
384
+
385
+ interface GameSlice {
386
+ game?: Game;
387
+ setGame: (game?: Game) => void;
388
+ getGameId: () => string | number | undefined;
389
+ }
396
390
 
391
+ interface UserInfo {
392
+ authorityId: string;
393
+ exp: number;
394
+ }
395
+ interface TokenSlice {
396
+ token?: string;
397
+ getUser: () => UserInfo | null;
398
+ setToken: (token: string) => void;
399
+ }
400
+
401
+ type ToolkitsState = TokenSlice & GameSlice & ContextSlice & AxiosSlice & {
402
+ unregistered: boolean;
403
+ clearToken: () => void;
404
+ setUnregistered: () => void;
405
+ };
406
+
407
+ declare function useToolkitsStore<T>(selector: (state: ToolkitsState) => T): T;
408
+ type ToolkitsProviderProps = PropsWithChildren<Partial<ContextSlice>>;
409
+ declare const ToolkitsProvider: FC<ToolkitsProviderProps>;
410
+ declare const withContext: (Component: ComponentType, providerProps: Omit<ToolkitsProviderProps, "children">) => (props: any) => react_jsx_runtime.JSX.Element;
411
+
412
+ declare const UserWidget: FC;
413
+
414
+ type JsonData<T = any> = {
415
+ code?: number;
416
+ status?: number;
417
+ errno?: number;
418
+ data: T;
419
+ msg: string;
420
+ };
397
421
  interface Permission {
398
422
  label: string;
399
423
  value: string;
400
424
  route: string;
401
425
  method?: string;
402
426
  }
403
-
404
427
  interface MenuListItem {
405
428
  id: number;
406
429
  category: string;
@@ -414,15 +437,12 @@ interface MenuListItem {
414
437
  ext: string;
415
438
  }
416
439
 
417
- declare function useMenuList(): swr.SWRResponse<MenuListItem[], any, any>;
418
-
419
- type PermissionCheckResult = {
420
- has_all: true;
421
- } | Record<string, boolean>;
422
440
  declare const usePermissions: (codes?: string[]) => {
423
441
  data: Record<string, boolean>;
424
442
  error: any;
425
- mutate: swr.KeyedMutator<PermissionCheckResult>;
443
+ mutate: swr.KeyedMutator<{
444
+ has_all: true;
445
+ } | Record<string, boolean>>;
426
446
  isValidating: boolean;
427
447
  isLoading: boolean;
428
448
  };
@@ -431,6 +451,7 @@ declare const usePermission: (code?: string) => {
431
451
  isValidating: boolean;
432
452
  isLoading: boolean;
433
453
  };
454
+ declare function useMenuList(): swr.SWRResponse<MenuListItem[], any, any>;
434
455
 
435
456
  declare const _default$2: react_jsx_runtime.JSX.Element;
436
457
 
@@ -450,14 +471,6 @@ interface SignInProps {
450
471
  }
451
472
  declare const SignIn: FC<SignInProps>;
452
473
 
453
- type JsonData<T = any> = {
454
- code?: number;
455
- status?: number;
456
- errno?: number;
457
- data: T;
458
- msg: string;
459
- };
460
-
461
474
  declare const mixedStorage: StateStorage;
462
475
 
463
- 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 };
476
+ 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 };