@seliseblocks/genesis-os 4.4.6 → 4.4.8
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/dist/{all-OJ5YSNAN.js → all-O45OXFJ7.js} +80 -80
- package/dist/{all-OJ5YSNAN.js.map → all-O45OXFJ7.js.map} +1 -1
- package/dist/{all-2UHIE3HU.cjs → all-UJTAKIGL.cjs} +80 -80
- package/dist/all-UJTAKIGL.cjs.map +1 -0
- package/dist/aspnet-4V2TYHQE.cjs +13 -0
- package/dist/{aspnet-7QL7EKM4.cjs.map → aspnet-4V2TYHQE.cjs.map} +1 -1
- package/dist/aspnet-R3X2H2AO.js +7 -0
- package/dist/{aspnet-I623QV26.js.map → aspnet-R3X2H2AO.js.map} +1 -1
- package/dist/chunk-2MP66EX3.cjs +16 -0
- package/dist/chunk-2MP66EX3.cjs.map +1 -0
- package/dist/chunk-3LBTW4A3.cjs +70 -0
- package/dist/chunk-3LBTW4A3.cjs.map +1 -0
- package/dist/{chunk-ZR6LRRN6.js → chunk-3OO2YVXW.js} +13 -7
- package/dist/chunk-3OO2YVXW.js.map +1 -0
- package/dist/chunk-3V7O45KN.js +86 -0
- package/dist/chunk-3V7O45KN.js.map +1 -0
- package/dist/{chunk-5L6BSYZR.cjs → chunk-45XWYZ67.cjs} +3 -3
- package/dist/{chunk-5L6BSYZR.cjs.map → chunk-45XWYZ67.cjs.map} +1 -1
- package/dist/{chunk-356ZGDMJ.cjs → chunk-5IOXQBUO.cjs} +3 -3
- package/dist/{chunk-356ZGDMJ.cjs.map → chunk-5IOXQBUO.cjs.map} +1 -1
- package/dist/chunk-6QSPMPJD.js +3 -0
- package/dist/chunk-6QSPMPJD.js.map +1 -0
- package/dist/chunk-7ZZ3KLZD.js +14 -0
- package/dist/chunk-7ZZ3KLZD.js.map +1 -0
- package/dist/{chunk-JQ4U53QV.cjs → chunk-A373J4BR.cjs} +82 -82
- package/dist/{chunk-JQ4U53QV.cjs.map → chunk-A373J4BR.cjs.map} +1 -1
- package/dist/{chunk-QTSTAWK3.cjs → chunk-AIUUCMAI.cjs} +8 -7
- package/dist/chunk-AIUUCMAI.cjs.map +1 -0
- package/dist/{chunk-IJMKS4XG.cjs → chunk-CTIGX76P.cjs} +15 -8
- package/dist/chunk-CTIGX76P.cjs.map +1 -0
- package/dist/{chunk-XRAO7JBH.js → chunk-ECDNFX6H.js} +11 -4
- package/dist/chunk-ECDNFX6H.js.map +1 -0
- package/dist/{chunk-WL6LTNZN.js → chunk-G24RPSJG.js} +79 -79
- package/dist/{chunk-WL6LTNZN.js.map → chunk-G24RPSJG.js.map} +1 -1
- package/dist/chunk-GAQGM46C.cjs +4 -0
- package/dist/chunk-GAQGM46C.cjs.map +1 -0
- package/dist/{chunk-VJAVGV6Z.js → chunk-GFUHF4DC.js} +3 -3
- package/dist/{chunk-VJAVGV6Z.js.map → chunk-GFUHF4DC.js.map} +1 -1
- package/dist/chunk-GSCW3WIQ.cjs +90 -0
- package/dist/chunk-GSCW3WIQ.cjs.map +1 -0
- package/dist/{chunk-4CMIWUZW.cjs → chunk-IPMRZNNS.cjs} +25 -24
- package/dist/chunk-IPMRZNNS.cjs.map +1 -0
- package/dist/{chunk-JITR3QYC.js → chunk-JYA5S4XN.js} +3 -64
- package/dist/chunk-JYA5S4XN.js.map +1 -0
- package/dist/{chunk-NPMO67H6.js → chunk-KA2OOMCU.js} +743 -544
- package/dist/chunk-KA2OOMCU.js.map +1 -0
- package/dist/{chunk-R5OAGX3J.js → chunk-ND6E3LWI.js} +3 -3
- package/dist/{chunk-R5OAGX3J.js.map → chunk-ND6E3LWI.js.map} +1 -1
- package/dist/chunk-OPMWK5SY.cjs +871 -0
- package/dist/chunk-OPMWK5SY.cjs.map +1 -0
- package/dist/{chunk-JUVLHPQI.js → chunk-POJIHGRY.js} +3 -14
- package/dist/chunk-POJIHGRY.js.map +1 -0
- package/dist/{chunk-CGVT7IFM.cjs → chunk-QBL4VIE4.cjs} +909 -710
- package/dist/chunk-QBL4VIE4.cjs.map +1 -0
- package/dist/{chunk-JSXAKNHQ.js → chunk-QHNZOBXR.js} +7 -6
- package/dist/chunk-QHNZOBXR.js.map +1 -0
- package/dist/{chunk-4QN4CYSC.cjs → chunk-RO55MFZA.cjs} +2 -64
- package/dist/chunk-RO55MFZA.cjs.map +1 -0
- package/dist/{chunk-VGOVEFEP.cjs → chunk-SAK3QQCD.cjs} +3 -3
- package/dist/{chunk-VGOVEFEP.cjs.map → chunk-SAK3QQCD.cjs.map} +1 -1
- package/dist/chunk-SQG7DJNY.js +68 -0
- package/dist/chunk-SQG7DJNY.js.map +1 -0
- package/dist/{chunk-X4YCRWXO.cjs → chunk-TSRDXJUG.cjs} +2 -14
- package/dist/chunk-TSRDXJUG.cjs.map +1 -0
- package/dist/{chunk-6GCU5LM7.cjs → chunk-U2LA7LBX.cjs} +2 -84
- package/dist/chunk-U2LA7LBX.cjs.map +1 -0
- package/dist/{chunk-XL7EULGP.js → chunk-U6GTLTLO.js} +3 -3
- package/dist/{chunk-XL7EULGP.js.map → chunk-U6GTLTLO.js.map} +1 -1
- package/dist/{chunk-O5ACQLWB.js → chunk-UDFH7SJI.js} +5 -4
- package/dist/chunk-UDFH7SJI.js.map +1 -0
- package/dist/{chunk-IRIDGVV2.cjs → chunk-VLZJP6FH.cjs} +70 -64
- package/dist/chunk-VLZJP6FH.cjs.map +1 -0
- package/dist/chunk-XYPSBVXL.js +842 -0
- package/dist/chunk-XYPSBVXL.js.map +1 -0
- package/dist/{chunk-4UHGGHI6.js → chunk-Z4ZDSA2A.js} +3 -82
- package/dist/chunk-Z4ZDSA2A.js.map +1 -0
- package/dist/components/index.cjs +438 -433
- package/dist/components/index.d.cts +5 -1
- package/dist/components/index.d.ts +5 -1
- package/dist/components/index.js +91 -86
- package/dist/cshtml-IPCDTLX7.cjs +13 -0
- package/dist/{cshtml-ETL7US3D.cjs.map → cshtml-IPCDTLX7.cjs.map} +1 -1
- package/dist/cshtml-XPUEHA6K.js +7 -0
- package/dist/{cshtml-TVLCSBKU.js.map → cshtml-XPUEHA6K.js.map} +1 -1
- package/dist/eslint/index.cjs +33 -0
- package/dist/eslint/index.cjs.map +1 -0
- package/dist/eslint/index.d.cts +12 -0
- package/dist/eslint/index.d.ts +12 -0
- package/dist/eslint/index.js +28 -0
- package/dist/eslint/index.js.map +1 -0
- package/dist/guards/index.cjs +97 -92
- package/dist/guards/index.js +91 -86
- package/dist/hooks/index.cjs +65 -62
- package/dist/hooks/index.d.cts +1 -1
- package/dist/hooks/index.d.ts +1 -1
- package/dist/hooks/index.js +8 -5
- package/dist/i18n/index.cjs +125 -0
- package/dist/i18n/index.cjs.map +1 -0
- package/dist/i18n/index.d.cts +137 -0
- package/dist/i18n/index.d.ts +137 -0
- package/dist/i18n/index.js +8 -0
- package/dist/i18n/index.js.map +1 -0
- package/dist/index.cjs +747 -630
- package/dist/index.d.cts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +91 -86
- package/dist/layouts/index.cjs +98 -93
- package/dist/layouts/index.js +91 -86
- package/dist/lib/index.cjs +38 -36
- package/dist/lib/index.js +5 -3
- package/dist/observability/index.cjs +102 -25
- package/dist/observability/index.cjs.map +1 -1
- package/dist/observability/index.d.cts +47 -5
- package/dist/observability/index.d.ts +47 -5
- package/dist/observability/index.js +98 -23
- package/dist/observability/index.js.map +1 -1
- package/dist/pages/index.cjs +96 -91
- package/dist/pages/index.js +91 -86
- package/dist/providers/index.cjs +11 -7
- package/dist/providers/index.js +7 -3
- package/dist/store/index.cjs +15 -13
- package/dist/store/index.js +4 -2
- package/dist/{tsx-PN3P5NJP.cjs → tsx-MALMUEWS.cjs} +5 -5
- package/dist/tsx-MALMUEWS.cjs.map +1 -0
- package/dist/{tsx-UJQQBLY4.js → tsx-MJR7GSNC.js} +4 -4
- package/dist/tsx-MJR7GSNC.js.map +1 -0
- package/dist/utils/index.cjs +77 -72
- package/dist/utils/index.js +9 -4
- package/package.json +11 -1
- package/dist/all-2UHIE3HU.cjs.map +0 -1
- package/dist/aspnet-7QL7EKM4.cjs +0 -13
- package/dist/aspnet-I623QV26.js +0 -7
- package/dist/chunk-4CMIWUZW.cjs.map +0 -1
- package/dist/chunk-4QN4CYSC.cjs.map +0 -1
- package/dist/chunk-4UHGGHI6.js.map +0 -1
- package/dist/chunk-6GCU5LM7.cjs.map +0 -1
- package/dist/chunk-CGVT7IFM.cjs.map +0 -1
- package/dist/chunk-IJMKS4XG.cjs.map +0 -1
- package/dist/chunk-IRIDGVV2.cjs.map +0 -1
- package/dist/chunk-JITR3QYC.js.map +0 -1
- package/dist/chunk-JSXAKNHQ.js.map +0 -1
- package/dist/chunk-JUVLHPQI.js.map +0 -1
- package/dist/chunk-NPMO67H6.js.map +0 -1
- package/dist/chunk-O5ACQLWB.js.map +0 -1
- package/dist/chunk-QTSTAWK3.cjs.map +0 -1
- package/dist/chunk-X4YCRWXO.cjs.map +0 -1
- package/dist/chunk-XRAO7JBH.js.map +0 -1
- package/dist/chunk-ZR6LRRN6.js.map +0 -1
- package/dist/cshtml-ETL7US3D.cjs +0 -13
- package/dist/cshtml-TVLCSBKU.js +0 -7
- package/dist/tsx-PN3P5NJP.cjs.map +0 -1
- package/dist/tsx-UJQQBLY4.js.map +0 -1
package/dist/hooks/index.cjs
CHANGED
|
@@ -1,245 +1,248 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../chunk-
|
|
5
|
-
require('../chunk-
|
|
3
|
+
var chunkVLZJP6FH_cjs = require('../chunk-VLZJP6FH.cjs');
|
|
4
|
+
require('../chunk-IPMRZNNS.cjs');
|
|
5
|
+
require('../chunk-2MP66EX3.cjs');
|
|
6
6
|
var chunkBPJM3L7O_cjs = require('../chunk-BPJM3L7O.cjs');
|
|
7
7
|
var chunkZK3WUWET_cjs = require('../chunk-ZK3WUWET.cjs');
|
|
8
8
|
require('../chunk-YAF2X7W5.cjs');
|
|
9
9
|
require('../chunk-F2LXD7RI.cjs');
|
|
10
|
-
require('../chunk-
|
|
11
|
-
require('../chunk-
|
|
10
|
+
require('../chunk-TSRDXJUG.cjs');
|
|
11
|
+
require('../chunk-RO55MFZA.cjs');
|
|
12
|
+
require('../chunk-3LBTW4A3.cjs');
|
|
13
|
+
require('../chunk-U2LA7LBX.cjs');
|
|
14
|
+
require('../chunk-GSCW3WIQ.cjs');
|
|
12
15
|
require('../chunk-QJOVCH5A.cjs');
|
|
13
16
|
|
|
14
17
|
|
|
15
18
|
|
|
16
19
|
Object.defineProperty(exports, "PROJECTS_STALE_TIME_MS", {
|
|
17
20
|
enumerable: true,
|
|
18
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunkVLZJP6FH_cjs.PROJECTS_STALE_TIME_MS; }
|
|
19
22
|
});
|
|
20
23
|
Object.defineProperty(exports, "applyColumnFuseFilters", {
|
|
21
24
|
enumerable: true,
|
|
22
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunkVLZJP6FH_cjs.applyColumnFuseFilters; }
|
|
23
26
|
});
|
|
24
27
|
Object.defineProperty(exports, "createFuseSearcher", {
|
|
25
28
|
enumerable: true,
|
|
26
|
-
get: function () { return
|
|
29
|
+
get: function () { return chunkVLZJP6FH_cjs.createFuseSearcher; }
|
|
27
30
|
});
|
|
28
31
|
Object.defineProperty(exports, "createQueryKeyFactory", {
|
|
29
32
|
enumerable: true,
|
|
30
|
-
get: function () { return
|
|
33
|
+
get: function () { return chunkVLZJP6FH_cjs.createQueryKeyFactory; }
|
|
31
34
|
});
|
|
32
35
|
Object.defineProperty(exports, "defaultFuseSearchOptions", {
|
|
33
36
|
enumerable: true,
|
|
34
|
-
get: function () { return
|
|
37
|
+
get: function () { return chunkVLZJP6FH_cjs.defaultFuseSearchOptions; }
|
|
35
38
|
});
|
|
36
39
|
Object.defineProperty(exports, "defaultPathSegmentFormatter", {
|
|
37
40
|
enumerable: true,
|
|
38
|
-
get: function () { return
|
|
41
|
+
get: function () { return chunkVLZJP6FH_cjs.defaultPathSegmentFormatter; }
|
|
39
42
|
});
|
|
40
43
|
Object.defineProperty(exports, "fuseFilter", {
|
|
41
44
|
enumerable: true,
|
|
42
|
-
get: function () { return
|
|
45
|
+
get: function () { return chunkVLZJP6FH_cjs.fuseFilter; }
|
|
43
46
|
});
|
|
44
47
|
Object.defineProperty(exports, "fuseSearch", {
|
|
45
48
|
enumerable: true,
|
|
46
|
-
get: function () { return
|
|
49
|
+
get: function () { return chunkVLZJP6FH_cjs.fuseSearch; }
|
|
47
50
|
});
|
|
48
51
|
Object.defineProperty(exports, "fuseSearchWithIndex", {
|
|
49
52
|
enumerable: true,
|
|
50
|
-
get: function () { return
|
|
53
|
+
get: function () { return chunkVLZJP6FH_cjs.fuseSearchWithIndex; }
|
|
51
54
|
});
|
|
52
55
|
Object.defineProperty(exports, "getPathSegments", {
|
|
53
56
|
enumerable: true,
|
|
54
|
-
get: function () { return
|
|
57
|
+
get: function () { return chunkVLZJP6FH_cjs.getPathSegments; }
|
|
55
58
|
});
|
|
56
59
|
Object.defineProperty(exports, "useBlocksAppConfigStore", {
|
|
57
60
|
enumerable: true,
|
|
58
|
-
get: function () { return
|
|
61
|
+
get: function () { return chunkVLZJP6FH_cjs.useBlocksAppConfigStore; }
|
|
59
62
|
});
|
|
60
63
|
Object.defineProperty(exports, "useBoolean", {
|
|
61
64
|
enumerable: true,
|
|
62
|
-
get: function () { return
|
|
65
|
+
get: function () { return chunkVLZJP6FH_cjs.useBoolean; }
|
|
63
66
|
});
|
|
64
67
|
Object.defineProperty(exports, "useCopyToClipboard", {
|
|
65
68
|
enumerable: true,
|
|
66
|
-
get: function () { return
|
|
69
|
+
get: function () { return chunkVLZJP6FH_cjs.useCopyToClipboard; }
|
|
67
70
|
});
|
|
68
71
|
Object.defineProperty(exports, "useCountDown", {
|
|
69
72
|
enumerable: true,
|
|
70
|
-
get: function () { return
|
|
73
|
+
get: function () { return chunkVLZJP6FH_cjs.useCountDown; }
|
|
71
74
|
});
|
|
72
75
|
Object.defineProperty(exports, "useDebounce", {
|
|
73
76
|
enumerable: true,
|
|
74
|
-
get: function () { return
|
|
77
|
+
get: function () { return chunkVLZJP6FH_cjs.useDebounce; }
|
|
75
78
|
});
|
|
76
79
|
Object.defineProperty(exports, "useDebouncedFuseFilter", {
|
|
77
80
|
enumerable: true,
|
|
78
|
-
get: function () { return
|
|
81
|
+
get: function () { return chunkVLZJP6FH_cjs.useDebouncedFuseFilter; }
|
|
79
82
|
});
|
|
80
83
|
Object.defineProperty(exports, "useDisableProject", {
|
|
81
84
|
enumerable: true,
|
|
82
|
-
get: function () { return
|
|
85
|
+
get: function () { return chunkVLZJP6FH_cjs.useDisableProject; }
|
|
83
86
|
});
|
|
84
87
|
Object.defineProperty(exports, "useFuseIndex", {
|
|
85
88
|
enumerable: true,
|
|
86
|
-
get: function () { return
|
|
89
|
+
get: function () { return chunkVLZJP6FH_cjs.useFuseIndex; }
|
|
87
90
|
});
|
|
88
91
|
Object.defineProperty(exports, "useFuseSearch", {
|
|
89
92
|
enumerable: true,
|
|
90
|
-
get: function () { return
|
|
93
|
+
get: function () { return chunkVLZJP6FH_cjs.useFuseSearch; }
|
|
91
94
|
});
|
|
92
95
|
Object.defineProperty(exports, "useGetAllServices", {
|
|
93
96
|
enumerable: true,
|
|
94
|
-
get: function () { return
|
|
97
|
+
get: function () { return chunkVLZJP6FH_cjs.useGetAllServices; }
|
|
95
98
|
});
|
|
96
99
|
Object.defineProperty(exports, "useGetBlocksNotificationConfig", {
|
|
97
100
|
enumerable: true,
|
|
98
|
-
get: function () { return
|
|
101
|
+
get: function () { return chunkVLZJP6FH_cjs.useGetBlocksNotificationConfig; }
|
|
99
102
|
});
|
|
100
103
|
Object.defineProperty(exports, "useGetEnvRepositories", {
|
|
101
104
|
enumerable: true,
|
|
102
|
-
get: function () { return
|
|
105
|
+
get: function () { return chunkVLZJP6FH_cjs.useGetEnvRepositories; }
|
|
103
106
|
});
|
|
104
107
|
Object.defineProperty(exports, "useGetMyOrganizations", {
|
|
105
108
|
enumerable: true,
|
|
106
|
-
get: function () { return
|
|
109
|
+
get: function () { return chunkVLZJP6FH_cjs.useGetMyOrganizations; }
|
|
107
110
|
});
|
|
108
111
|
Object.defineProperty(exports, "useGetNotifications", {
|
|
109
112
|
enumerable: true,
|
|
110
|
-
get: function () { return
|
|
113
|
+
get: function () { return chunkVLZJP6FH_cjs.useGetNotifications; }
|
|
111
114
|
});
|
|
112
115
|
Object.defineProperty(exports, "useGetProject", {
|
|
113
116
|
enumerable: true,
|
|
114
|
-
get: function () { return
|
|
117
|
+
get: function () { return chunkVLZJP6FH_cjs.useGetProject; }
|
|
115
118
|
});
|
|
116
119
|
Object.defineProperty(exports, "useGetProjects", {
|
|
117
120
|
enumerable: true,
|
|
118
|
-
get: function () { return
|
|
121
|
+
get: function () { return chunkVLZJP6FH_cjs.useGetProjects; }
|
|
119
122
|
});
|
|
120
123
|
Object.defineProperty(exports, "useIcon", {
|
|
121
124
|
enumerable: true,
|
|
122
|
-
get: function () { return
|
|
125
|
+
get: function () { return chunkVLZJP6FH_cjs.useIcon; }
|
|
123
126
|
});
|
|
124
127
|
Object.defineProperty(exports, "useImpersonationStatusChecker", {
|
|
125
128
|
enumerable: true,
|
|
126
|
-
get: function () { return
|
|
129
|
+
get: function () { return chunkVLZJP6FH_cjs.useImpersonationStatusChecker; }
|
|
127
130
|
});
|
|
128
131
|
Object.defineProperty(exports, "useInitiateRedirect", {
|
|
129
132
|
enumerable: true,
|
|
130
|
-
get: function () { return
|
|
133
|
+
get: function () { return chunkVLZJP6FH_cjs.useInitiateRedirect; }
|
|
131
134
|
});
|
|
132
135
|
Object.defineProperty(exports, "useKeyboardShortcut", {
|
|
133
136
|
enumerable: true,
|
|
134
|
-
get: function () { return
|
|
137
|
+
get: function () { return chunkVLZJP6FH_cjs.useKeyboardShortcut; }
|
|
135
138
|
});
|
|
136
139
|
Object.defineProperty(exports, "useLanguage", {
|
|
137
140
|
enumerable: true,
|
|
138
|
-
get: function () { return
|
|
141
|
+
get: function () { return chunkVLZJP6FH_cjs.useLanguage; }
|
|
139
142
|
});
|
|
140
143
|
Object.defineProperty(exports, "useLanguageSwitcher", {
|
|
141
144
|
enumerable: true,
|
|
142
|
-
get: function () { return
|
|
145
|
+
get: function () { return chunkVLZJP6FH_cjs.useLanguageSwitcher; }
|
|
143
146
|
});
|
|
144
147
|
Object.defineProperty(exports, "useLogin", {
|
|
145
148
|
enumerable: true,
|
|
146
|
-
get: function () { return
|
|
149
|
+
get: function () { return chunkVLZJP6FH_cjs.useLogin; }
|
|
147
150
|
});
|
|
148
151
|
Object.defineProperty(exports, "useLogo", {
|
|
149
152
|
enumerable: true,
|
|
150
|
-
get: function () { return
|
|
153
|
+
get: function () { return chunkVLZJP6FH_cjs.useLogo; }
|
|
151
154
|
});
|
|
152
155
|
Object.defineProperty(exports, "useLogout", {
|
|
153
156
|
enumerable: true,
|
|
154
|
-
get: function () { return
|
|
157
|
+
get: function () { return chunkVLZJP6FH_cjs.useLogout; }
|
|
155
158
|
});
|
|
156
159
|
Object.defineProperty(exports, "useMarkAllAsRead", {
|
|
157
160
|
enumerable: true,
|
|
158
|
-
get: function () { return
|
|
161
|
+
get: function () { return chunkVLZJP6FH_cjs.useMarkAllAsRead; }
|
|
159
162
|
});
|
|
160
163
|
Object.defineProperty(exports, "useMarkAsRead", {
|
|
161
164
|
enumerable: true,
|
|
162
|
-
get: function () { return
|
|
165
|
+
get: function () { return chunkVLZJP6FH_cjs.useMarkAsRead; }
|
|
163
166
|
});
|
|
164
167
|
Object.defineProperty(exports, "useMediaQuery", {
|
|
165
168
|
enumerable: true,
|
|
166
|
-
get: function () { return
|
|
169
|
+
get: function () { return chunkVLZJP6FH_cjs.useMediaQuery; }
|
|
167
170
|
});
|
|
168
171
|
Object.defineProperty(exports, "usePathSegments", {
|
|
169
172
|
enumerable: true,
|
|
170
|
-
get: function () { return
|
|
173
|
+
get: function () { return chunkVLZJP6FH_cjs.usePathSegments; }
|
|
171
174
|
});
|
|
172
175
|
Object.defineProperty(exports, "usePopoverWidth", {
|
|
173
176
|
enumerable: true,
|
|
174
|
-
get: function () { return
|
|
177
|
+
get: function () { return chunkVLZJP6FH_cjs.usePopoverWidth; }
|
|
175
178
|
});
|
|
176
179
|
Object.defineProperty(exports, "usePrefetchRedirect", {
|
|
177
180
|
enumerable: true,
|
|
178
|
-
get: function () { return
|
|
181
|
+
get: function () { return chunkVLZJP6FH_cjs.usePrefetchRedirect; }
|
|
179
182
|
});
|
|
180
183
|
Object.defineProperty(exports, "useQueryClientKit", {
|
|
181
184
|
enumerable: true,
|
|
182
|
-
get: function () { return
|
|
185
|
+
get: function () { return chunkVLZJP6FH_cjs.useQueryClientKit; }
|
|
183
186
|
});
|
|
184
187
|
Object.defineProperty(exports, "useQueryStatesKit", {
|
|
185
188
|
enumerable: true,
|
|
186
|
-
get: function () { return
|
|
189
|
+
get: function () { return chunkVLZJP6FH_cjs.useQueryStatesKit; }
|
|
187
190
|
});
|
|
188
191
|
Object.defineProperty(exports, "useRecordClaimedTenant", {
|
|
189
192
|
enumerable: true,
|
|
190
|
-
get: function () { return
|
|
193
|
+
get: function () { return chunkVLZJP6FH_cjs.useRecordClaimedTenant; }
|
|
191
194
|
});
|
|
192
195
|
Object.defineProperty(exports, "useScopedPath", {
|
|
193
196
|
enumerable: true,
|
|
194
|
-
get: function () { return
|
|
197
|
+
get: function () { return chunkVLZJP6FH_cjs.useScopedPath; }
|
|
195
198
|
});
|
|
196
199
|
Object.defineProperty(exports, "useSessionTenantGuard", {
|
|
197
200
|
enumerable: true,
|
|
198
|
-
get: function () { return
|
|
201
|
+
get: function () { return chunkVLZJP6FH_cjs.useSessionTenantGuard; }
|
|
199
202
|
});
|
|
200
203
|
Object.defineProperty(exports, "useSignOut", {
|
|
201
204
|
enumerable: true,
|
|
202
|
-
get: function () { return
|
|
205
|
+
get: function () { return chunkVLZJP6FH_cjs.useSignOut; }
|
|
203
206
|
});
|
|
204
207
|
Object.defineProperty(exports, "useSignUpAffordance", {
|
|
205
208
|
enumerable: true,
|
|
206
|
-
get: function () { return
|
|
209
|
+
get: function () { return chunkVLZJP6FH_cjs.useSignUpAffordance; }
|
|
207
210
|
});
|
|
208
211
|
Object.defineProperty(exports, "useSignUpRedirect", {
|
|
209
212
|
enumerable: true,
|
|
210
|
-
get: function () { return
|
|
213
|
+
get: function () { return chunkVLZJP6FH_cjs.useSignUpRedirect; }
|
|
211
214
|
});
|
|
212
215
|
Object.defineProperty(exports, "useStartImpersonation", {
|
|
213
216
|
enumerable: true,
|
|
214
|
-
get: function () { return
|
|
217
|
+
get: function () { return chunkVLZJP6FH_cjs.useStartImpersonation; }
|
|
215
218
|
});
|
|
216
219
|
Object.defineProperty(exports, "useStatusFirstOnTabReturn", {
|
|
217
220
|
enumerable: true,
|
|
218
|
-
get: function () { return
|
|
221
|
+
get: function () { return chunkVLZJP6FH_cjs.useStatusFirstOnTabReturn; }
|
|
219
222
|
});
|
|
220
223
|
Object.defineProperty(exports, "useStopImpersonation", {
|
|
221
224
|
enumerable: true,
|
|
222
|
-
get: function () { return
|
|
225
|
+
get: function () { return chunkVLZJP6FH_cjs.useStopImpersonation; }
|
|
223
226
|
});
|
|
224
227
|
Object.defineProperty(exports, "useTheme", {
|
|
225
228
|
enumerable: true,
|
|
226
|
-
get: function () { return
|
|
229
|
+
get: function () { return chunkVLZJP6FH_cjs.useTheme; }
|
|
227
230
|
});
|
|
228
231
|
Object.defineProperty(exports, "useUpdateProject", {
|
|
229
232
|
enumerable: true,
|
|
230
|
-
get: function () { return
|
|
233
|
+
get: function () { return chunkVLZJP6FH_cjs.useUpdateProject; }
|
|
231
234
|
});
|
|
232
235
|
Object.defineProperty(exports, "useUpdateRepositories", {
|
|
233
236
|
enumerable: true,
|
|
234
|
-
get: function () { return
|
|
237
|
+
get: function () { return chunkVLZJP6FH_cjs.useUpdateRepositories; }
|
|
235
238
|
});
|
|
236
239
|
Object.defineProperty(exports, "useUpdateTenantGroup", {
|
|
237
240
|
enumerable: true,
|
|
238
|
-
get: function () { return
|
|
241
|
+
get: function () { return chunkVLZJP6FH_cjs.useUpdateTenantGroup; }
|
|
239
242
|
});
|
|
240
243
|
Object.defineProperty(exports, "useValidateCNameProject", {
|
|
241
244
|
enumerable: true,
|
|
242
|
-
get: function () { return
|
|
245
|
+
get: function () { return chunkVLZJP6FH_cjs.useValidateCNameProject; }
|
|
243
246
|
});
|
|
244
247
|
Object.defineProperty(exports, "useFilteredMenus", {
|
|
245
248
|
enumerable: true,
|
package/dist/hooks/index.d.cts
CHANGED
|
@@ -699,7 +699,7 @@ declare const useGetAllServices: (options: IGetAllServicesPayload) => _tanstack_
|
|
|
699
699
|
declare function useTheme(): {
|
|
700
700
|
theme: Theme;
|
|
701
701
|
setTheme: (newTheme: Theme) => void;
|
|
702
|
-
resolvedTheme: "
|
|
702
|
+
resolvedTheme: "light" | "dark";
|
|
703
703
|
};
|
|
704
704
|
|
|
705
705
|
declare const useImpersonationStatusChecker: () => _tanstack_react_query.UseQueryResult<NoInfer<ImpersonationStatusResponse>, Error>;
|
package/dist/hooks/index.d.ts
CHANGED
|
@@ -699,7 +699,7 @@ declare const useGetAllServices: (options: IGetAllServicesPayload) => _tanstack_
|
|
|
699
699
|
declare function useTheme(): {
|
|
700
700
|
theme: Theme;
|
|
701
701
|
setTheme: (newTheme: Theme) => void;
|
|
702
|
-
resolvedTheme: "
|
|
702
|
+
resolvedTheme: "light" | "dark";
|
|
703
703
|
};
|
|
704
704
|
|
|
705
705
|
declare const useImpersonationStatusChecker: () => _tanstack_react_query.UseQueryResult<NoInfer<ImpersonationStatusResponse>, Error>;
|
package/dist/hooks/index.js
CHANGED
|
@@ -1,12 +1,15 @@
|
|
|
1
|
-
export { PROJECTS_STALE_TIME_MS, applyColumnFuseFilters, createFuseSearcher, createQueryKeyFactory, defaultFuseSearchOptions, defaultPathSegmentFormatter, fuseFilter, fuseSearch, fuseSearchWithIndex, getPathSegments, useBlocksAppConfigStore, useBoolean, useCopyToClipboard, useCountDown, useDebounce, useDebouncedFuseFilter, useDisableProject, useFuseIndex, useFuseSearch, useGetAllServices, useGetBlocksNotificationConfig, useGetEnvRepositories, useGetMyOrganizations, useGetNotifications, useGetProject, useGetProjects, useIcon, useImpersonationStatusChecker, useInitiateRedirect, useKeyboardShortcut, useLanguage, useLanguageSwitcher, useLogin, useLogo, useLogout, useMarkAllAsRead, useMarkAsRead, useMediaQuery, usePathSegments, usePopoverWidth, usePrefetchRedirect, useQueryClientKit, useQueryStatesKit, useRecordClaimedTenant, useScopedPath, useSessionTenantGuard, useSignOut, useSignUpAffordance, useSignUpRedirect, useStartImpersonation, useStatusFirstOnTabReturn, useStopImpersonation, useTheme, useUpdateProject, useUpdateRepositories, useUpdateTenantGroup, useValidateCNameProject } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
3
|
-
import '../chunk-
|
|
1
|
+
export { PROJECTS_STALE_TIME_MS, applyColumnFuseFilters, createFuseSearcher, createQueryKeyFactory, defaultFuseSearchOptions, defaultPathSegmentFormatter, fuseFilter, fuseSearch, fuseSearchWithIndex, getPathSegments, useBlocksAppConfigStore, useBoolean, useCopyToClipboard, useCountDown, useDebounce, useDebouncedFuseFilter, useDisableProject, useFuseIndex, useFuseSearch, useGetAllServices, useGetBlocksNotificationConfig, useGetEnvRepositories, useGetMyOrganizations, useGetNotifications, useGetProject, useGetProjects, useIcon, useImpersonationStatusChecker, useInitiateRedirect, useKeyboardShortcut, useLanguage, useLanguageSwitcher, useLogin, useLogo, useLogout, useMarkAllAsRead, useMarkAsRead, useMediaQuery, usePathSegments, usePopoverWidth, usePrefetchRedirect, useQueryClientKit, useQueryStatesKit, useRecordClaimedTenant, useScopedPath, useSessionTenantGuard, useSignOut, useSignUpAffordance, useSignUpRedirect, useStartImpersonation, useStatusFirstOnTabReturn, useStopImpersonation, useTheme, useUpdateProject, useUpdateRepositories, useUpdateTenantGroup, useValidateCNameProject } from '../chunk-3OO2YVXW.js';
|
|
2
|
+
import '../chunk-UDFH7SJI.js';
|
|
3
|
+
import '../chunk-7ZZ3KLZD.js';
|
|
4
4
|
export { useFilteredMenus, useIsActiveMenu, useIsMobile } from '../chunk-AHCHUUXM.js';
|
|
5
5
|
export { reducer, toast, useToast } from '../chunk-XUQVWFG5.js';
|
|
6
6
|
import '../chunk-3MLPBMH2.js';
|
|
7
7
|
import '../chunk-BRHE44FE.js';
|
|
8
|
-
import '../chunk-
|
|
9
|
-
import '../chunk-
|
|
8
|
+
import '../chunk-POJIHGRY.js';
|
|
9
|
+
import '../chunk-JYA5S4XN.js';
|
|
10
|
+
import '../chunk-SQG7DJNY.js';
|
|
11
|
+
import '../chunk-Z4ZDSA2A.js';
|
|
12
|
+
import '../chunk-3V7O45KN.js';
|
|
10
13
|
import '../chunk-PL4HS6R6.js';
|
|
11
14
|
//# sourceMappingURL=index.js.map
|
|
12
15
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
require('../chunk-GAQGM46C.cjs');
|
|
4
|
+
var chunkOPMWK5SY_cjs = require('../chunk-OPMWK5SY.cjs');
|
|
5
|
+
require('../chunk-TSRDXJUG.cjs');
|
|
6
|
+
require('../chunk-3LBTW4A3.cjs');
|
|
7
|
+
require('../chunk-GSCW3WIQ.cjs');
|
|
8
|
+
require('../chunk-QJOVCH5A.cjs');
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
Object.defineProperty(exports, "COMMON_MODULE", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function () { return chunkOPMWK5SY_cjs.COMMON_MODULE; }
|
|
15
|
+
});
|
|
16
|
+
Object.defineProperty(exports, "DEFAULT_LANGUAGE", {
|
|
17
|
+
enumerable: true,
|
|
18
|
+
get: function () { return chunkOPMWK5SY_cjs.DEFAULT_LANGUAGE; }
|
|
19
|
+
});
|
|
20
|
+
Object.defineProperty(exports, "FALLBACK_LANGUAGES", {
|
|
21
|
+
enumerable: true,
|
|
22
|
+
get: function () { return chunkOPMWK5SY_cjs.FALLBACK_LANGUAGES; }
|
|
23
|
+
});
|
|
24
|
+
Object.defineProperty(exports, "MISSING_VALUE", {
|
|
25
|
+
enumerable: true,
|
|
26
|
+
get: function () { return chunkOPMWK5SY_cjs.MISSING_VALUE; }
|
|
27
|
+
});
|
|
28
|
+
Object.defineProperty(exports, "SUPPORTED_LANGUAGES", {
|
|
29
|
+
enumerable: true,
|
|
30
|
+
get: function () { return chunkOPMWK5SY_cjs.SUPPORTED_LANGUAGES; }
|
|
31
|
+
});
|
|
32
|
+
Object.defineProperty(exports, "configureI18n", {
|
|
33
|
+
enumerable: true,
|
|
34
|
+
get: function () { return chunkOPMWK5SY_cjs.configureI18n; }
|
|
35
|
+
});
|
|
36
|
+
Object.defineProperty(exports, "cultureOf", {
|
|
37
|
+
enumerable: true,
|
|
38
|
+
get: function () { return chunkOPMWK5SY_cjs.cultureOf; }
|
|
39
|
+
});
|
|
40
|
+
Object.defineProperty(exports, "defaultLanguageIn", {
|
|
41
|
+
enumerable: true,
|
|
42
|
+
get: function () { return chunkOPMWK5SY_cjs.defaultLanguageIn; }
|
|
43
|
+
});
|
|
44
|
+
Object.defineProperty(exports, "getLanguageCode", {
|
|
45
|
+
enumerable: true,
|
|
46
|
+
get: function () { return chunkOPMWK5SY_cjs.getLanguageCode; }
|
|
47
|
+
});
|
|
48
|
+
Object.defineProperty(exports, "interpolate", {
|
|
49
|
+
enumerable: true,
|
|
50
|
+
get: function () { return chunkOPMWK5SY_cjs.interpolate; }
|
|
51
|
+
});
|
|
52
|
+
Object.defineProperty(exports, "loadLanguages", {
|
|
53
|
+
enumerable: true,
|
|
54
|
+
get: function () { return chunkOPMWK5SY_cjs.loadLanguages; }
|
|
55
|
+
});
|
|
56
|
+
Object.defineProperty(exports, "loadModule", {
|
|
57
|
+
enumerable: true,
|
|
58
|
+
get: function () { return chunkOPMWK5SY_cjs.loadModule; }
|
|
59
|
+
});
|
|
60
|
+
Object.defineProperty(exports, "registerTranslations", {
|
|
61
|
+
enumerable: true,
|
|
62
|
+
get: function () { return chunkOPMWK5SY_cjs.registerTranslations; }
|
|
63
|
+
});
|
|
64
|
+
Object.defineProperty(exports, "remoteKey", {
|
|
65
|
+
enumerable: true,
|
|
66
|
+
get: function () { return chunkOPMWK5SY_cjs.remoteKey; }
|
|
67
|
+
});
|
|
68
|
+
Object.defineProperty(exports, "resetI18nRequests", {
|
|
69
|
+
enumerable: true,
|
|
70
|
+
get: function () { return chunkOPMWK5SY_cjs.resetI18nRequests; }
|
|
71
|
+
});
|
|
72
|
+
Object.defineProperty(exports, "resetLanguages", {
|
|
73
|
+
enumerable: true,
|
|
74
|
+
get: function () { return chunkOPMWK5SY_cjs.resetLanguages; }
|
|
75
|
+
});
|
|
76
|
+
Object.defineProperty(exports, "resolveLanguage", {
|
|
77
|
+
enumerable: true,
|
|
78
|
+
get: function () { return chunkOPMWK5SY_cjs.resolveLanguage; }
|
|
79
|
+
});
|
|
80
|
+
Object.defineProperty(exports, "resolveLanguageIn", {
|
|
81
|
+
enumerable: true,
|
|
82
|
+
get: function () { return chunkOPMWK5SY_cjs.resolveLanguageIn; }
|
|
83
|
+
});
|
|
84
|
+
Object.defineProperty(exports, "splitKey", {
|
|
85
|
+
enumerable: true,
|
|
86
|
+
get: function () { return chunkOPMWK5SY_cjs.splitKey; }
|
|
87
|
+
});
|
|
88
|
+
Object.defineProperty(exports, "tStatic", {
|
|
89
|
+
enumerable: true,
|
|
90
|
+
get: function () { return chunkOPMWK5SY_cjs.tStatic; }
|
|
91
|
+
});
|
|
92
|
+
Object.defineProperty(exports, "toLanguageCode", {
|
|
93
|
+
enumerable: true,
|
|
94
|
+
get: function () { return chunkOPMWK5SY_cjs.toLanguageCode; }
|
|
95
|
+
});
|
|
96
|
+
Object.defineProperty(exports, "toProjectLanguages", {
|
|
97
|
+
enumerable: true,
|
|
98
|
+
get: function () { return chunkOPMWK5SY_cjs.toProjectLanguages; }
|
|
99
|
+
});
|
|
100
|
+
Object.defineProperty(exports, "translate", {
|
|
101
|
+
enumerable: true,
|
|
102
|
+
get: function () { return chunkOPMWK5SY_cjs.translate; }
|
|
103
|
+
});
|
|
104
|
+
Object.defineProperty(exports, "useDocumentLanguage", {
|
|
105
|
+
enumerable: true,
|
|
106
|
+
get: function () { return chunkOPMWK5SY_cjs.useDocumentLanguage; }
|
|
107
|
+
});
|
|
108
|
+
Object.defineProperty(exports, "useI18nStore", {
|
|
109
|
+
enumerable: true,
|
|
110
|
+
get: function () { return chunkOPMWK5SY_cjs.useI18nStore; }
|
|
111
|
+
});
|
|
112
|
+
Object.defineProperty(exports, "useLanguageCode", {
|
|
113
|
+
enumerable: true,
|
|
114
|
+
get: function () { return chunkOPMWK5SY_cjs.useLanguageCode; }
|
|
115
|
+
});
|
|
116
|
+
Object.defineProperty(exports, "useLanguagesStore", {
|
|
117
|
+
enumerable: true,
|
|
118
|
+
get: function () { return chunkOPMWK5SY_cjs.useLanguagesStore; }
|
|
119
|
+
});
|
|
120
|
+
Object.defineProperty(exports, "useT", {
|
|
121
|
+
enumerable: true,
|
|
122
|
+
get: function () { return chunkOPMWK5SY_cjs.useT; }
|
|
123
|
+
});
|
|
124
|
+
//# sourceMappingURL=index.cjs.map
|
|
125
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.cjs"}
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
import * as zustand from 'zustand';
|
|
2
|
+
|
|
3
|
+
interface SupportedLanguage {
|
|
4
|
+
/** Code the apps store and show (`en`): the culture's language part. */
|
|
5
|
+
code: string;
|
|
6
|
+
/** Culture code of the language in the localization service (`en-US`). */
|
|
7
|
+
culture: string;
|
|
8
|
+
title: string;
|
|
9
|
+
/** The project's default language. */
|
|
10
|
+
isDefault?: boolean;
|
|
11
|
+
}
|
|
12
|
+
/** Language of the text bundled in the apps; it is never fetched. */
|
|
13
|
+
declare const DEFAULT_LANGUAGE = "en";
|
|
14
|
+
declare const COMMON_MODULE = "common";
|
|
15
|
+
/** Shown until the project's languages are known, and when the service cannot be reached. */
|
|
16
|
+
declare const FALLBACK_LANGUAGES: readonly SupportedLanguage[];
|
|
17
|
+
/**
|
|
18
|
+
* @deprecated The languages come from the project (`useLanguagesStore`). Kept for apps
|
|
19
|
+
* that still render their own selector from it.
|
|
20
|
+
*/
|
|
21
|
+
declare const SUPPORTED_LANGUAGES: readonly SupportedLanguage[];
|
|
22
|
+
/** `en-US` → `en`. */
|
|
23
|
+
declare const toLanguageCode: (culture: string) => string;
|
|
24
|
+
interface LanguagesState {
|
|
25
|
+
languages: readonly SupportedLanguage[];
|
|
26
|
+
/** True once the project's list is known (from the service or the cache). */
|
|
27
|
+
loaded: boolean;
|
|
28
|
+
setLanguages: (languages: readonly SupportedLanguage[]) => void;
|
|
29
|
+
}
|
|
30
|
+
declare const useLanguagesStore: zustand.UseBoundStore<zustand.StoreApi<LanguagesState>>;
|
|
31
|
+
/**
|
|
32
|
+
* Turns the service's languages (`{ languageName, languageCode, isDefault }`, either casing)
|
|
33
|
+
* into the app list: one entry per language code (the project's default culture wins, then
|
|
34
|
+
* the first one), English always present because the apps ship English.
|
|
35
|
+
*/
|
|
36
|
+
declare const toProjectLanguages: (value: unknown) => SupportedLanguage[] | null;
|
|
37
|
+
/** Test helper: forgets the loaded list. */
|
|
38
|
+
declare const resetLanguages: () => void;
|
|
39
|
+
/**
|
|
40
|
+
* Loads the project's languages (`/api/Language/Gets` with the project key) once per page
|
|
41
|
+
* session. The cached list shows at once; a failed request keeps the cache or English only,
|
|
42
|
+
* and is tried again later.
|
|
43
|
+
*/
|
|
44
|
+
declare const loadLanguages: () => Promise<void>;
|
|
45
|
+
/** The language the UI starts in: the project's default, else English. */
|
|
46
|
+
declare const defaultLanguageIn: (languages: readonly SupportedLanguage[]) => string;
|
|
47
|
+
/**
|
|
48
|
+
* The language to show for a stored choice. Before the project's list is known any code is
|
|
49
|
+
* kept (its text falls back to English if missing); afterwards a language the project does
|
|
50
|
+
* not offer, or no choice at all, gives the project's default.
|
|
51
|
+
*/
|
|
52
|
+
declare const resolveLanguageIn: (language: string | null | undefined, languages: readonly SupportedLanguage[], loaded: boolean) => string;
|
|
53
|
+
declare const resolveLanguage: (language?: string | null) => string;
|
|
54
|
+
/** Culture code the localization service uses for an app language (`en` → `en-US`). */
|
|
55
|
+
declare const cultureOf: (language: string) => string;
|
|
56
|
+
|
|
57
|
+
type Dictionary = Readonly<Record<string, string>>;
|
|
58
|
+
type TranslateValues = Readonly<Record<string, string | number>>;
|
|
59
|
+
interface DictionarySource {
|
|
60
|
+
language: string;
|
|
61
|
+
dictionary?: Dictionary;
|
|
62
|
+
}
|
|
63
|
+
declare const MISSING_VALUE = "[ KEY MISSING ]";
|
|
64
|
+
declare const interpolate: (template: string, values?: TranslateValues) => string;
|
|
65
|
+
/**
|
|
66
|
+
* Finds the text for a key in the first source that has it (chosen language
|
|
67
|
+
* first, bundled English last) and fills `{{name}}` placeholders with the
|
|
68
|
+
* given values. A `count` value picks the plural form (`KEY_one`,
|
|
69
|
+
* `KEY_other`). Returns the key itself only when no source has it, which the
|
|
70
|
+
* key check reports as a bug.
|
|
71
|
+
*/
|
|
72
|
+
declare const translate: (sources: readonly DictionarySource[], key: string, values?: TranslateValues) => string;
|
|
73
|
+
|
|
74
|
+
interface I18nState {
|
|
75
|
+
/** English text shipped with the app, per module. Source of truth for English. */
|
|
76
|
+
bundled: Record<string, Dictionary>;
|
|
77
|
+
/** Published text loaded from the localization service, keyed `<language>:<module>`. */
|
|
78
|
+
remote: Record<string, Dictionary>;
|
|
79
|
+
registerBundle: (module: string, dictionary: Dictionary) => void;
|
|
80
|
+
setRemote: (language: string, module: string, dictionary: Dictionary) => void;
|
|
81
|
+
}
|
|
82
|
+
declare const remoteKey: (language: string, module: string) => string;
|
|
83
|
+
declare const useI18nStore: zustand.UseBoundStore<zustand.StoreApi<I18nState>>;
|
|
84
|
+
/**
|
|
85
|
+
* Registers the bundled English text of a module. Call once per module at app
|
|
86
|
+
* start (for example from `app/i18n/index.ts`), before the first render.
|
|
87
|
+
*/
|
|
88
|
+
declare const registerTranslations: (module: string, dictionary: Dictionary) => void;
|
|
89
|
+
|
|
90
|
+
interface I18nConfig {
|
|
91
|
+
/** Origin of the localization service; `/api/Key/GetUilmFile` and `/api/Language/Gets` are called on it. */
|
|
92
|
+
baseUrl?: () => string;
|
|
93
|
+
/** Project key sent as `X-Blocks-Key`. */
|
|
94
|
+
blocksKey?: () => string;
|
|
95
|
+
/** Request timeout in ms. */
|
|
96
|
+
timeoutMs?: number;
|
|
97
|
+
/** Wait before a failed request is tried again, in ms. */
|
|
98
|
+
retryAfterMs?: number;
|
|
99
|
+
}
|
|
100
|
+
declare const configureI18n: (next: I18nConfig) => void;
|
|
101
|
+
|
|
102
|
+
/** Test helper: forgets which modules were requested. */
|
|
103
|
+
declare const resetI18nRequests: () => void;
|
|
104
|
+
/**
|
|
105
|
+
* Loads the published text of one module in one language. English is never
|
|
106
|
+
* fetched: the bundled English in the app is the source of truth. Safe to call
|
|
107
|
+
* on every render; a module is requested once per page session.
|
|
108
|
+
*/
|
|
109
|
+
declare const loadModule: (language: string, module: string) => Promise<void>;
|
|
110
|
+
|
|
111
|
+
type TFunction = (key: string, values?: TranslateValues) => string;
|
|
112
|
+
/** `common:SAVE` → module `common`, key `SAVE`; `SAVE` → the given module. */
|
|
113
|
+
declare const splitKey: (module: string, key: string) => {
|
|
114
|
+
module: string;
|
|
115
|
+
key: string;
|
|
116
|
+
};
|
|
117
|
+
/** The language the UI shows now (`en`, `de`, …): the user's choice if the project offers it, else the project's default. */
|
|
118
|
+
declare const useLanguageCode: () => string;
|
|
119
|
+
/** Keeps `<html lang>` on the language the UI shows, for screen readers and browser translation. */
|
|
120
|
+
declare const useDocumentLanguage: () => string;
|
|
121
|
+
declare const getLanguageCode: () => string;
|
|
122
|
+
/**
|
|
123
|
+
* Text for one module (`<repo>.<feature>`). Keys of the shared module are
|
|
124
|
+
* written `common:KEY`. Loads the published text for the chosen language and
|
|
125
|
+
* falls back to the bundled English while it loads or when it fails.
|
|
126
|
+
*/
|
|
127
|
+
declare const useT: (module: string) => {
|
|
128
|
+
t: TFunction;
|
|
129
|
+
language: string;
|
|
130
|
+
};
|
|
131
|
+
/**
|
|
132
|
+
* Text outside React (constants, schemas, table columns). Call it when the
|
|
133
|
+
* value is used, never at import time, or a language change is missed.
|
|
134
|
+
*/
|
|
135
|
+
declare const tStatic: (module: string, key: string, values?: TranslateValues) => string;
|
|
136
|
+
|
|
137
|
+
export { COMMON_MODULE, DEFAULT_LANGUAGE, type Dictionary, type DictionarySource, FALLBACK_LANGUAGES, type I18nConfig, MISSING_VALUE, SUPPORTED_LANGUAGES, type SupportedLanguage, type TFunction, type TranslateValues, configureI18n, cultureOf, defaultLanguageIn, getLanguageCode, interpolate, loadLanguages, loadModule, registerTranslations, remoteKey, resetI18nRequests, resetLanguages, resolveLanguage, resolveLanguageIn, splitKey, tStatic, toLanguageCode, toProjectLanguages, translate, useDocumentLanguage, useI18nStore, useLanguageCode, useLanguagesStore, useT };
|