react-toolkits 2.11.2 → 2.11.4
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 +19 -7
- package/lib/index.css +2 -5
- package/lib/index.css.map +1 -1
- package/lib/index.d.ts +39 -19
- package/lib/index.js +526 -364
- package/lib/index.js.map +1 -1
- package/locale/context.js.map +1 -1
- package/locale/en_GB.js.map +1 -1
- package/locale/hooks.js +3 -3
- package/locale/hooks.js.map +1 -1
- package/locale/index.js +3 -3
- package/locale/index.js.map +1 -1
- package/locale/ja_JP.js.map +1 -1
- package/locale/ko_KR.js.map +1 -1
- package/locale/zh_CN.js.map +1 -1
- package/package.json +4 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# react-toolkits
|
|
2
2
|
|
|
3
|
+
## 2.11.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- b2059ff: Release
|
|
8
|
+
|
|
9
|
+
## 2.11.3
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- fc98255: fix: registor interceptors must be sync
|
|
14
|
+
|
|
3
15
|
## 2.11.2
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
@@ -62,7 +74,7 @@
|
|
|
62
74
|
|
|
63
75
|
### Patch Changes
|
|
64
76
|
|
|
65
|
-
- 080eeb6: chore: ensure form
|
|
77
|
+
- 080eeb6: chore: ensure form axiosInstance be passed to Form
|
|
66
78
|
|
|
67
79
|
## 2.9.25
|
|
68
80
|
|
|
@@ -225,7 +237,7 @@
|
|
|
225
237
|
|
|
226
238
|
### Patch Changes
|
|
227
239
|
|
|
228
|
-
- 98c4d9d: fix: should validate form after form
|
|
240
|
+
- 98c4d9d: fix: should validate form after form axiosInstance mounted
|
|
229
241
|
|
|
230
242
|
## 2.8.2
|
|
231
243
|
|
|
@@ -1325,14 +1337,14 @@
|
|
|
1325
1337
|
|
|
1326
1338
|
### Patch Changes
|
|
1327
1339
|
|
|
1328
|
-
- d40c98d: feat: access form
|
|
1340
|
+
- d40c98d: feat: access form axiosInstance in onConfirm callback
|
|
1329
1341
|
|
|
1330
1342
|
## 0.3.33
|
|
1331
1343
|
|
|
1332
1344
|
### Patch Changes
|
|
1333
1345
|
|
|
1334
|
-
- 0370608: refactor: access form
|
|
1335
|
-
- 0bf188e: refactor: access form
|
|
1346
|
+
- 0370608: refactor: access form axiosInstance from outside of useFormModal hook
|
|
1347
|
+
- 0bf188e: refactor: access form axiosInstance from outside of QueryList
|
|
1336
1348
|
|
|
1337
1349
|
## 0.3.32
|
|
1338
1350
|
|
|
@@ -1658,13 +1670,13 @@
|
|
|
1658
1670
|
|
|
1659
1671
|
### Patch Changes
|
|
1660
1672
|
|
|
1661
|
-
- c449bda: refactor: new form
|
|
1673
|
+
- c449bda: refactor: new form axiosInstance
|
|
1662
1674
|
|
|
1663
1675
|
## 0.2.9
|
|
1664
1676
|
|
|
1665
1677
|
### Patch Changes
|
|
1666
1678
|
|
|
1667
|
-
- 99c0392: feat: cache form
|
|
1679
|
+
- 99c0392: feat: cache form axiosInstance
|
|
1668
1680
|
|
|
1669
1681
|
## 0.2.8
|
|
1670
1682
|
|
package/lib/index.css
CHANGED
|
@@ -217,9 +217,6 @@
|
|
|
217
217
|
.h-screen {
|
|
218
218
|
height: 100vh;
|
|
219
219
|
}
|
|
220
|
-
.max-h-40 {
|
|
221
|
-
max-height: 10rem;
|
|
222
|
-
}
|
|
223
220
|
.w-10\/12 {
|
|
224
221
|
width: 83.333333%;
|
|
225
222
|
}
|
|
@@ -264,8 +261,8 @@
|
|
|
264
261
|
.gap-2 {
|
|
265
262
|
gap: 0.5rem;
|
|
266
263
|
}
|
|
267
|
-
.
|
|
268
|
-
|
|
264
|
+
.gap-8 {
|
|
265
|
+
gap: 2rem;
|
|
269
266
|
}
|
|
270
267
|
.overflow-hidden {
|
|
271
268
|
overflow: hidden;
|
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.
|
|
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))\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;AAC5C;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":[]}
|
package/lib/index.d.ts
CHANGED
|
@@ -116,7 +116,6 @@ interface LayoutProps extends Pick<GameSelectProps, 'filter' | 'onGameChange'> {
|
|
|
116
116
|
isMenuLoading?: boolean;
|
|
117
117
|
title?: ReactNode;
|
|
118
118
|
items?: NavMenuItem[];
|
|
119
|
-
hideGameSelect?: boolean;
|
|
120
119
|
navWidth?: string | number;
|
|
121
120
|
logoutRedirectUrl: string;
|
|
122
121
|
headerExtra?: {
|
|
@@ -212,10 +211,7 @@ interface QueryListState {
|
|
|
212
211
|
}
|
|
213
212
|
declare const useQueryListStore: zustand.UseBoundStore<zustand.StoreApi<QueryListState>>;
|
|
214
213
|
|
|
215
|
-
|
|
216
|
-
hideGameSelect?: boolean;
|
|
217
|
-
}
|
|
218
|
-
declare const RequireGame: FC<RequireGameProps>;
|
|
214
|
+
declare const RequireGame: FC<PropsWithChildren>;
|
|
219
215
|
|
|
220
216
|
interface RequirePermissionProps {
|
|
221
217
|
code: string;
|
|
@@ -317,6 +313,7 @@ interface ContextSlice {
|
|
|
317
313
|
usePermissionApiV2: boolean;
|
|
318
314
|
gameApiV2: boolean;
|
|
319
315
|
signInPath?: string;
|
|
316
|
+
isGlobal: boolean;
|
|
320
317
|
interceptors?: {
|
|
321
318
|
request?: [(config: InternalAxiosRequestConfig) => InternalAxiosRequestConfig | Promise<InternalAxiosRequestConfig>];
|
|
322
319
|
response?: [
|
|
@@ -327,6 +324,16 @@ interface ContextSlice {
|
|
|
327
324
|
};
|
|
328
325
|
}
|
|
329
326
|
|
|
327
|
+
interface UserInfo {
|
|
328
|
+
authorityId: string;
|
|
329
|
+
exp: number;
|
|
330
|
+
}
|
|
331
|
+
interface TokenSlice {
|
|
332
|
+
token?: string;
|
|
333
|
+
getUser: () => UserInfo | null;
|
|
334
|
+
setToken: (token: string) => void;
|
|
335
|
+
}
|
|
336
|
+
|
|
330
337
|
interface GameSlice {
|
|
331
338
|
initialized: boolean;
|
|
332
339
|
game?: Game;
|
|
@@ -339,16 +346,6 @@ interface GameSlice {
|
|
|
339
346
|
}) => Promise<Game[] | undefined>;
|
|
340
347
|
}
|
|
341
348
|
|
|
342
|
-
interface UserInfo {
|
|
343
|
-
authorityId: string;
|
|
344
|
-
exp: number;
|
|
345
|
-
}
|
|
346
|
-
interface TokenSlice {
|
|
347
|
-
token?: string;
|
|
348
|
-
getUser: () => UserInfo | null;
|
|
349
|
-
setToken: (token: string) => void;
|
|
350
|
-
}
|
|
351
|
-
|
|
352
349
|
type ToolkitsState = TokenSlice & GameSlice & ContextSlice & {
|
|
353
350
|
setContext: (props: Partial<ContextSlice>) => void;
|
|
354
351
|
clearToken: () => void;
|
|
@@ -366,7 +363,7 @@ declare const createToolkitsStore: (initProps?: Partial<ContextSlice>) => Omit<z
|
|
|
366
363
|
};
|
|
367
364
|
|
|
368
365
|
type ToolkitsStore = ReturnType<typeof createToolkitsStore>;
|
|
369
|
-
declare function useToolkitsStore<T>(selector: (state: ToolkitsState
|
|
366
|
+
declare function useToolkitsStore<T>(selector: (state: ToolkitsState) => T): T;
|
|
370
367
|
type ToolkitsProviderProps = PropsWithChildren<Partial<ContextSlice>>;
|
|
371
368
|
declare let toolkitsStore: ToolkitsStore;
|
|
372
369
|
declare const ToolkitsProvider: FC<ToolkitsProviderProps>;
|
|
@@ -378,6 +375,29 @@ declare const UserWidget: FC<UserWidgetProps>;
|
|
|
378
375
|
|
|
379
376
|
declare const SSO_URL = "https://idaas.ifunplus.cn/enduser/api/application/plugin_FunPlus/sso/v1";
|
|
380
377
|
declare const APP_ID_HEADER = "App-ID";
|
|
378
|
+
declare const FRONTEND_ROUTE_PREFIX = "/console/";
|
|
379
|
+
|
|
380
|
+
interface Permission {
|
|
381
|
+
label: string;
|
|
382
|
+
value: string;
|
|
383
|
+
route: string;
|
|
384
|
+
method?: string;
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
interface MenuListItem {
|
|
388
|
+
id: number;
|
|
389
|
+
category: string;
|
|
390
|
+
is_common: boolean;
|
|
391
|
+
is_model: boolean;
|
|
392
|
+
model_name: 'change' | 'recharge';
|
|
393
|
+
type?: string;
|
|
394
|
+
permissions: Permission[];
|
|
395
|
+
front_route: string;
|
|
396
|
+
order: number;
|
|
397
|
+
scheme: string;
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
declare function useMenuList(): swr.SWRResponse<MenuListItem[], any, any>;
|
|
381
401
|
|
|
382
402
|
interface ModalState {
|
|
383
403
|
open: Map<number, boolean>;
|
|
@@ -436,7 +456,7 @@ declare function usePermission(code?: string, config?: Omit<AxiosRequestConfig,
|
|
|
436
456
|
isLoading: boolean;
|
|
437
457
|
};
|
|
438
458
|
|
|
439
|
-
declare const
|
|
459
|
+
declare const _default$1: react_jsx_runtime.JSX.Element;
|
|
440
460
|
|
|
441
461
|
interface NotFoundProps {
|
|
442
462
|
redirectUrl?: string;
|
|
@@ -455,7 +475,7 @@ interface SignInProps {
|
|
|
455
475
|
}
|
|
456
476
|
declare const SignIn: FC<SignInProps>;
|
|
457
477
|
|
|
458
|
-
declare const
|
|
478
|
+
declare const axiosInstance: axios.AxiosInstance;
|
|
459
479
|
type JsonData<T = any> = {
|
|
460
480
|
code?: number;
|
|
461
481
|
status?: number;
|
|
@@ -469,4 +489,4 @@ declare const Interceptor: ({ children }: {
|
|
|
469
489
|
|
|
470
490
|
declare const mixedStorage: StateStorage;
|
|
471
491
|
|
|
472
|
-
export { APP_ID_HEADER, DynamicTags, type DynamicTagsProps, ExpandableParagraph, type ExpandableParagraphProps, FilterFormWrapper, type FilterFormWrapperProps, type Game, Highlight, type HighlightProps, InfiniteList, type InfiniteListProps, Interceptor, type JsonData, Layout, type LayoutState,
|
|
492
|
+
export { APP_ID_HEADER, DynamicTags, type DynamicTagsProps, ExpandableParagraph, type ExpandableParagraphProps, FRONTEND_ROUTE_PREFIX, FilterFormWrapper, type FilterFormWrapperProps, type Game, Highlight, type HighlightProps, InfiniteList, type InfiniteListProps, Interceptor, type JsonData, Layout, type LayoutState, NavMenu, type NavMenuItem, NotFound, OperationLogList, PermissionButton, type PermissionButtonProps, QueryList, QueryListAction, type QueryListPayload, type QueryListProps, type QueryListRef, RequireGame, RequirePermission, type RequirePermissionProps, SSO_URL, SignIn, ToolkitsProvider, type ToolkitsProviderProps, type UseFormModalProps, type UseModalOperation, type UseModalProps, UserWidget, type UserWidgetProps, axiosInstance, _default$1 as menuRoutes, mixedStorage, _default as permissionRoutes, toolkitsStore, useFormModal, useLayoutStore, useMenuList, useModal, useModalStore, usePermission, usePermissions, useQueryListStore, useToolkitsStore };
|