@tramvai/module-page-render-mode 2.56.2 → 2.59.0
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/lib/staticPages/backgroundFetchService.d.ts +7 -1
- package/lib/staticPages.d.ts +267 -65
- package/lib/tokens.d.ts +64 -14
- package/package.json +17 -14
|
@@ -18,6 +18,12 @@ export declare class BackgroundFetchService {
|
|
|
18
18
|
port: string;
|
|
19
19
|
deviceType: string;
|
|
20
20
|
modern: string;
|
|
21
|
-
}): Promise<
|
|
21
|
+
}): Promise<void | {
|
|
22
|
+
body: string;
|
|
23
|
+
headers: {
|
|
24
|
+
[k: string]: string[];
|
|
25
|
+
};
|
|
26
|
+
status: number;
|
|
27
|
+
}>;
|
|
22
28
|
}
|
|
23
29
|
export {};
|
package/lib/staticPages.d.ts
CHANGED
|
@@ -1,98 +1,300 @@
|
|
|
1
1
|
import type { Counter } from 'prom-client';
|
|
2
2
|
import { BackgroundFetchService } from './staticPages/backgroundFetchService';
|
|
3
3
|
import { StaticPagesService } from './staticPages/staticPagesService';
|
|
4
|
-
export declare const STATIC_PAGES_BACKGROUND_FETCH_SERVICE:
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
export declare const
|
|
4
|
+
export declare const STATIC_PAGES_BACKGROUND_FETCH_SERVICE: BackgroundFetchService & {
|
|
5
|
+
__type?: "base token";
|
|
6
|
+
};
|
|
7
|
+
export declare const STATIC_PAGES_GET_CACHE_KEY_TOKEN: (() => string) & {
|
|
8
|
+
__type?: "base token";
|
|
9
|
+
};
|
|
10
|
+
export declare const STATIC_PAGES_CACHE_HIT_METRIC_TOKEN: Counter<any> & {
|
|
11
|
+
__type?: "base token";
|
|
12
|
+
};
|
|
13
|
+
export declare const STATIC_PAGES_SERVICE: StaticPagesService & {
|
|
14
|
+
__type?: "base token";
|
|
15
|
+
};
|
|
8
16
|
export declare const staticPagesProviders: (import("@tinkoff/dippy/lib/Provider").ValueProvider<Counter<any>> | import("@tinkoff/dippy/lib/Provider").ClassProviderWithDeps<{
|
|
9
|
-
metrics: import("@
|
|
17
|
+
metrics: import("@tramvai/tokens-metrics").Metrics & {
|
|
18
|
+
__type?: "base token";
|
|
19
|
+
};
|
|
10
20
|
}, Counter<any>> | import("@tinkoff/dippy/lib/Provider").ClassProviderWithoutDeps<Counter<any>> | import("@tinkoff/dippy/lib/Provider").FactoryProviderWithDeps<{
|
|
11
|
-
metrics: import("@
|
|
21
|
+
metrics: import("@tramvai/tokens-metrics").Metrics & {
|
|
22
|
+
__type?: "base token";
|
|
23
|
+
};
|
|
12
24
|
}, Counter<any>> | import("@tinkoff/dippy/lib/Provider").FactoryProviderWithoutDeps<Counter<any>> | import("@tinkoff/dippy/lib/Provider").ValueProvider<import("@tramvai/tokens-common").Cache<Map<string, import("./tokens").StaticPagesCacheEntry>>> | import("@tinkoff/dippy/lib/Provider").ClassProviderWithDeps<{
|
|
13
|
-
createCache: import("@
|
|
14
|
-
|
|
25
|
+
createCache: import("@tramvai/tokens-common").CacheFactory & {
|
|
26
|
+
__type?: "base token";
|
|
27
|
+
};
|
|
28
|
+
staticPagesOptions: import("./tokens").StaticPagesOptions & {
|
|
29
|
+
__type?: "base token";
|
|
30
|
+
};
|
|
15
31
|
}, import("@tramvai/tokens-common").Cache<Map<string, import("./tokens").StaticPagesCacheEntry>>> | import("@tinkoff/dippy/lib/Provider").ClassProviderWithoutDeps<import("@tramvai/tokens-common").Cache<Map<string, import("./tokens").StaticPagesCacheEntry>>> | import("@tinkoff/dippy/lib/Provider").FactoryProviderWithDeps<{
|
|
16
|
-
createCache: import("@
|
|
17
|
-
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
32
|
+
createCache: import("@tramvai/tokens-common").CacheFactory & {
|
|
33
|
+
__type?: "base token";
|
|
34
|
+
};
|
|
35
|
+
staticPagesOptions: import("./tokens").StaticPagesOptions & {
|
|
36
|
+
__type?: "base token";
|
|
37
|
+
};
|
|
38
|
+
}, import("@tramvai/tokens-common").Cache<Map<string, import("./tokens").StaticPagesCacheEntry>>> | import("@tinkoff/dippy/lib/Provider").FactoryProviderWithoutDeps<import("@tramvai/tokens-common").Cache<Map<string, import("./tokens").StaticPagesCacheEntry>>> | import("@tinkoff/dippy/lib/Provider").ValueProvider<import("./tokens").StaticPagesOptions & {
|
|
39
|
+
__type?: "base token";
|
|
40
|
+
}> | import("@tinkoff/dippy/lib/Provider").ClassProviderWithDeps<unknown, import("./tokens").StaticPagesOptions & {
|
|
41
|
+
__type?: "base token";
|
|
42
|
+
}> | import("@tinkoff/dippy/lib/Provider").ClassProviderWithoutDeps<import("./tokens").StaticPagesOptions & {
|
|
43
|
+
__type?: "base token";
|
|
44
|
+
}> | import("@tinkoff/dippy/lib/Provider").FactoryProviderWithDeps<unknown, import("./tokens").StaticPagesOptions & {
|
|
45
|
+
__type?: "base token";
|
|
46
|
+
}> | import("@tinkoff/dippy/lib/Provider").FactoryProviderWithoutDeps<import("./tokens").StaticPagesOptions & {
|
|
47
|
+
__type?: "base token";
|
|
48
|
+
}> | import("@tinkoff/dippy/lib/Provider").ClassProviderWithDeps<{
|
|
49
|
+
requestManager: import("@tramvai/tokens-common").RequestManager & {
|
|
50
|
+
__type?: "base token";
|
|
51
|
+
};
|
|
52
|
+
userAgent: import("@tinkoff/user-agent").UserAgent & {
|
|
53
|
+
__type?: "base token";
|
|
54
|
+
};
|
|
55
|
+
modern: (false & {
|
|
56
|
+
__type?: "base token";
|
|
57
|
+
}) | (true & {
|
|
58
|
+
__type?: "base token";
|
|
59
|
+
});
|
|
22
60
|
}, () => string> | import("@tinkoff/dippy/lib/Provider").FactoryProviderWithDeps<{
|
|
23
|
-
requestManager: import("@
|
|
24
|
-
|
|
25
|
-
|
|
61
|
+
requestManager: import("@tramvai/tokens-common").RequestManager & {
|
|
62
|
+
__type?: "base token";
|
|
63
|
+
};
|
|
64
|
+
userAgent: import("@tinkoff/user-agent").UserAgent & {
|
|
65
|
+
__type?: "base token";
|
|
66
|
+
};
|
|
67
|
+
modern: (false & {
|
|
68
|
+
__type?: "base token";
|
|
69
|
+
}) | (true & {
|
|
70
|
+
__type?: "base token";
|
|
71
|
+
});
|
|
26
72
|
}, () => string> | import("@tinkoff/dippy/lib/Provider").ClassProviderWithDeps<{
|
|
27
|
-
requestManager: import("@
|
|
73
|
+
requestManager: import("@tramvai/tokens-common").RequestManager & {
|
|
74
|
+
__type?: "base token";
|
|
75
|
+
};
|
|
28
76
|
}, () => boolean> | import("@tinkoff/dippy/lib/Provider").FactoryProviderWithDeps<{
|
|
29
|
-
requestManager: import("@
|
|
77
|
+
requestManager: import("@tramvai/tokens-common").RequestManager & {
|
|
78
|
+
__type?: "base token";
|
|
79
|
+
};
|
|
30
80
|
}, () => boolean> | import("@tinkoff/dippy/lib/Provider").ClassProviderWithDeps<unknown, () => boolean> | import("@tinkoff/dippy/lib/Provider").FactoryProviderWithDeps<unknown, () => boolean> | import("@tinkoff/dippy/lib/Provider").ValueProvider<BackgroundFetchService> | import("@tinkoff/dippy/lib/Provider").ClassProviderWithDeps<{
|
|
31
|
-
logger: import("@
|
|
32
|
-
|
|
81
|
+
logger: import("@tramvai/tokens-common").Logger & ((configOrName: string | {
|
|
82
|
+
[key: string]: any;
|
|
83
|
+
name: string;
|
|
84
|
+
}) => import("@tramvai/tokens-common").Logger) & {
|
|
85
|
+
__type?: "base token";
|
|
86
|
+
};
|
|
87
|
+
backgroundFetchEnabled: (() => boolean) & {
|
|
88
|
+
__type?: "base token";
|
|
89
|
+
};
|
|
33
90
|
}, BackgroundFetchService> | import("@tinkoff/dippy/lib/Provider").ClassProviderWithoutDeps<BackgroundFetchService> | import("@tinkoff/dippy/lib/Provider").FactoryProviderWithDeps<{
|
|
34
|
-
logger: import("@
|
|
35
|
-
|
|
91
|
+
logger: import("@tramvai/tokens-common").Logger & ((configOrName: string | {
|
|
92
|
+
[key: string]: any;
|
|
93
|
+
name: string;
|
|
94
|
+
}) => import("@tramvai/tokens-common").Logger) & {
|
|
95
|
+
__type?: "base token";
|
|
96
|
+
};
|
|
97
|
+
backgroundFetchEnabled: (() => boolean) & {
|
|
98
|
+
__type?: "base token";
|
|
99
|
+
};
|
|
36
100
|
}, BackgroundFetchService> | import("@tinkoff/dippy/lib/Provider").FactoryProviderWithoutDeps<BackgroundFetchService> | import("@tinkoff/dippy/lib/Provider").ValueProvider<StaticPagesService> | import("@tinkoff/dippy/lib/Provider").ClassProviderWithDeps<{
|
|
37
|
-
getCacheKey:
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
101
|
+
getCacheKey: (() => string) & {
|
|
102
|
+
__type?: "base token";
|
|
103
|
+
};
|
|
104
|
+
requestManager: import("@tramvai/tokens-common").RequestManager & {
|
|
105
|
+
__type?: "base token";
|
|
106
|
+
};
|
|
107
|
+
responseManager: import("@tramvai/tokens-common").ResponseManager & {
|
|
108
|
+
__type?: "base token";
|
|
109
|
+
};
|
|
110
|
+
response: import("fastify").FastifyReply<import("fastify").RawServerDefault, import("http").IncomingMessage, import("http").ServerResponse<import("http").IncomingMessage>, import("fastify").RouteGenericInterface, unknown, import("fastify").FastifySchema, import("fastify").FastifyTypeProviderDefault, unknown> & {
|
|
111
|
+
__type?: "base token";
|
|
112
|
+
};
|
|
113
|
+
environmentManager: import("@tramvai/tokens-common").EnvironmentManager & {
|
|
114
|
+
__type?: "base token";
|
|
115
|
+
};
|
|
116
|
+
userAgent: import("@tinkoff/user-agent").UserAgent & {
|
|
117
|
+
__type?: "base token";
|
|
118
|
+
};
|
|
119
|
+
modern: (false & {
|
|
120
|
+
__type?: "base token";
|
|
121
|
+
}) | (true & {
|
|
122
|
+
__type?: "base token";
|
|
123
|
+
});
|
|
124
|
+
logger: import("@tramvai/tokens-common").Logger & ((configOrName: string | {
|
|
125
|
+
[key: string]: any;
|
|
126
|
+
name: string;
|
|
127
|
+
}) => import("@tramvai/tokens-common").Logger) & {
|
|
128
|
+
__type?: "base token";
|
|
129
|
+
};
|
|
130
|
+
cache: import("@tramvai/tokens-common").Cache<Map<string, import("./tokens").StaticPagesCacheEntry>> & {
|
|
131
|
+
__type?: "base token";
|
|
132
|
+
};
|
|
46
133
|
modifyCache: {
|
|
47
|
-
token:
|
|
134
|
+
token: ((entry: import("./tokens").StaticPagesCacheEntry) => import("./tokens").StaticPagesCacheEntry) & {
|
|
135
|
+
__type?: "multi token";
|
|
136
|
+
};
|
|
48
137
|
optional: boolean;
|
|
49
138
|
};
|
|
50
|
-
shouldUseCache:
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
139
|
+
shouldUseCache: (() => boolean) & {
|
|
140
|
+
__type?: "base token";
|
|
141
|
+
};
|
|
142
|
+
shouldSetToCache: (() => boolean) & {
|
|
143
|
+
__type?: "base token";
|
|
144
|
+
};
|
|
145
|
+
backgroundFetchService: BackgroundFetchService & {
|
|
146
|
+
__type?: "base token";
|
|
147
|
+
};
|
|
148
|
+
options: import("./tokens").StaticPagesOptions & {
|
|
149
|
+
__type?: "base token";
|
|
150
|
+
};
|
|
151
|
+
cache5xxResponse: (() => boolean) & {
|
|
152
|
+
__type?: "base token";
|
|
153
|
+
};
|
|
55
154
|
}, StaticPagesService> | import("@tinkoff/dippy/lib/Provider").ClassProviderWithoutDeps<StaticPagesService> | import("@tinkoff/dippy/lib/Provider").FactoryProviderWithDeps<{
|
|
56
|
-
getCacheKey:
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
155
|
+
getCacheKey: (() => string) & {
|
|
156
|
+
__type?: "base token";
|
|
157
|
+
};
|
|
158
|
+
requestManager: import("@tramvai/tokens-common").RequestManager & {
|
|
159
|
+
__type?: "base token";
|
|
160
|
+
};
|
|
161
|
+
responseManager: import("@tramvai/tokens-common").ResponseManager & {
|
|
162
|
+
__type?: "base token";
|
|
163
|
+
};
|
|
164
|
+
response: import("fastify").FastifyReply<import("fastify").RawServerDefault, import("http").IncomingMessage, import("http").ServerResponse<import("http").IncomingMessage>, import("fastify").RouteGenericInterface, unknown, import("fastify").FastifySchema, import("fastify").FastifyTypeProviderDefault, unknown> & {
|
|
165
|
+
__type?: "base token";
|
|
166
|
+
};
|
|
167
|
+
environmentManager: import("@tramvai/tokens-common").EnvironmentManager & {
|
|
168
|
+
__type?: "base token";
|
|
169
|
+
};
|
|
170
|
+
userAgent: import("@tinkoff/user-agent").UserAgent & {
|
|
171
|
+
__type?: "base token";
|
|
172
|
+
};
|
|
173
|
+
modern: (false & {
|
|
174
|
+
__type?: "base token";
|
|
175
|
+
}) | (true & {
|
|
176
|
+
__type?: "base token";
|
|
177
|
+
});
|
|
178
|
+
logger: import("@tramvai/tokens-common").Logger & ((configOrName: string | {
|
|
179
|
+
[key: string]: any;
|
|
180
|
+
name: string;
|
|
181
|
+
}) => import("@tramvai/tokens-common").Logger) & {
|
|
182
|
+
__type?: "base token";
|
|
183
|
+
};
|
|
184
|
+
cache: import("@tramvai/tokens-common").Cache<Map<string, import("./tokens").StaticPagesCacheEntry>> & {
|
|
185
|
+
__type?: "base token";
|
|
186
|
+
};
|
|
65
187
|
modifyCache: {
|
|
66
|
-
token:
|
|
188
|
+
token: ((entry: import("./tokens").StaticPagesCacheEntry) => import("./tokens").StaticPagesCacheEntry) & {
|
|
189
|
+
__type?: "multi token";
|
|
190
|
+
};
|
|
67
191
|
optional: boolean;
|
|
68
192
|
};
|
|
69
|
-
shouldUseCache:
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
193
|
+
shouldUseCache: (() => boolean) & {
|
|
194
|
+
__type?: "base token";
|
|
195
|
+
};
|
|
196
|
+
shouldSetToCache: (() => boolean) & {
|
|
197
|
+
__type?: "base token";
|
|
198
|
+
};
|
|
199
|
+
backgroundFetchService: BackgroundFetchService & {
|
|
200
|
+
__type?: "base token";
|
|
201
|
+
};
|
|
202
|
+
options: import("./tokens").StaticPagesOptions & {
|
|
203
|
+
__type?: "base token";
|
|
204
|
+
};
|
|
205
|
+
cache5xxResponse: (() => boolean) & {
|
|
206
|
+
__type?: "base token";
|
|
207
|
+
};
|
|
74
208
|
}, StaticPagesService> | import("@tinkoff/dippy/lib/Provider").FactoryProviderWithoutDeps<StaticPagesService> | import("@tinkoff/dippy/lib/Provider").ValueProvider<() => void> | import("@tinkoff/dippy/lib/Provider").ClassProviderWithDeps<{
|
|
75
|
-
di: import("@tinkoff/dippy").
|
|
209
|
+
di: import("@tinkoff/dippy").Container & {
|
|
210
|
+
__type?: "base token";
|
|
211
|
+
};
|
|
76
212
|
staticPagesCommandLine: {
|
|
77
|
-
token:
|
|
213
|
+
token: ("init" & {
|
|
214
|
+
__type?: "base token";
|
|
215
|
+
}) | ("listen" & {
|
|
216
|
+
__type?: "base token";
|
|
217
|
+
}) | ("customerStart" & {
|
|
218
|
+
__type?: "base token";
|
|
219
|
+
}) | ("resolveUserDeps" & {
|
|
220
|
+
__type?: "base token";
|
|
221
|
+
}) | ("resolvePageDeps" & {
|
|
222
|
+
__type?: "base token";
|
|
223
|
+
}) | ("generatePage" & {
|
|
224
|
+
__type?: "base token";
|
|
225
|
+
}) | ("clear" & {
|
|
226
|
+
__type?: "base token";
|
|
227
|
+
}) | ("spaTransition" & {
|
|
228
|
+
__type?: "base token";
|
|
229
|
+
}) | ("afterSpaTransition" & {
|
|
230
|
+
__type?: "base token";
|
|
231
|
+
}) | ("close" & {
|
|
232
|
+
__type?: "base token";
|
|
233
|
+
});
|
|
78
234
|
optional: boolean;
|
|
79
235
|
};
|
|
80
236
|
}, () => void> | import("@tinkoff/dippy/lib/Provider").ClassProviderWithoutDeps<() => void> | import("@tinkoff/dippy/lib/Provider").FactoryProviderWithDeps<{
|
|
81
|
-
di: import("@tinkoff/dippy").
|
|
237
|
+
di: import("@tinkoff/dippy").Container & {
|
|
238
|
+
__type?: "base token";
|
|
239
|
+
};
|
|
82
240
|
staticPagesCommandLine: {
|
|
83
|
-
token:
|
|
241
|
+
token: ("init" & {
|
|
242
|
+
__type?: "base token";
|
|
243
|
+
}) | ("listen" & {
|
|
244
|
+
__type?: "base token";
|
|
245
|
+
}) | ("customerStart" & {
|
|
246
|
+
__type?: "base token";
|
|
247
|
+
}) | ("resolveUserDeps" & {
|
|
248
|
+
__type?: "base token";
|
|
249
|
+
}) | ("resolvePageDeps" & {
|
|
250
|
+
__type?: "base token";
|
|
251
|
+
}) | ("generatePage" & {
|
|
252
|
+
__type?: "base token";
|
|
253
|
+
}) | ("clear" & {
|
|
254
|
+
__type?: "base token";
|
|
255
|
+
}) | ("spaTransition" & {
|
|
256
|
+
__type?: "base token";
|
|
257
|
+
}) | ("afterSpaTransition" & {
|
|
258
|
+
__type?: "base token";
|
|
259
|
+
}) | ("close" & {
|
|
260
|
+
__type?: "base token";
|
|
261
|
+
});
|
|
84
262
|
optional: boolean;
|
|
85
263
|
};
|
|
86
264
|
}, () => void> | import("@tinkoff/dippy/lib/Provider").FactoryProviderWithoutDeps<() => void> | import("@tinkoff/dippy/lib/Provider").ClassProviderWithDeps<{
|
|
87
|
-
staticPagesService:
|
|
88
|
-
|
|
89
|
-
|
|
265
|
+
staticPagesService: StaticPagesService & {
|
|
266
|
+
__type?: "base token";
|
|
267
|
+
};
|
|
268
|
+
pageService: import("@tramvai/tokens-router").PageService & {
|
|
269
|
+
__type?: "base token";
|
|
270
|
+
};
|
|
271
|
+
defaultRenderMode: ("ssr" & {
|
|
272
|
+
__type?: "base token";
|
|
273
|
+
}) | ("client" & {
|
|
274
|
+
__type?: "base token";
|
|
275
|
+
}) | ("static" & {
|
|
276
|
+
__type?: "base token";
|
|
277
|
+
});
|
|
90
278
|
}, () => void> | import("@tinkoff/dippy/lib/Provider").FactoryProviderWithDeps<{
|
|
91
|
-
staticPagesService:
|
|
92
|
-
|
|
93
|
-
|
|
279
|
+
staticPagesService: StaticPagesService & {
|
|
280
|
+
__type?: "base token";
|
|
281
|
+
};
|
|
282
|
+
pageService: import("@tramvai/tokens-router").PageService & {
|
|
283
|
+
__type?: "base token";
|
|
284
|
+
};
|
|
285
|
+
defaultRenderMode: ("ssr" & {
|
|
286
|
+
__type?: "base token";
|
|
287
|
+
}) | ("client" & {
|
|
288
|
+
__type?: "base token";
|
|
289
|
+
}) | ("static" & {
|
|
290
|
+
__type?: "base token";
|
|
291
|
+
});
|
|
94
292
|
}, () => void> | import("@tinkoff/dippy/lib/Provider").ValueProvider<import("@tramvai/papi").Papi<any, any>> | import("@tinkoff/dippy/lib/Provider").ClassProviderWithDeps<{
|
|
95
|
-
staticPagesCache: import("@
|
|
293
|
+
staticPagesCache: import("@tramvai/tokens-common").Cache<Map<string, import("./tokens").StaticPagesCacheEntry>> & {
|
|
294
|
+
__type?: "base token";
|
|
295
|
+
};
|
|
96
296
|
}, import("@tramvai/papi").Papi<any, any>> | import("@tinkoff/dippy/lib/Provider").ClassProviderWithoutDeps<import("@tramvai/papi").Papi<any, any>> | import("@tinkoff/dippy/lib/Provider").FactoryProviderWithDeps<{
|
|
97
|
-
staticPagesCache: import("@
|
|
297
|
+
staticPagesCache: import("@tramvai/tokens-common").Cache<Map<string, import("./tokens").StaticPagesCacheEntry>> & {
|
|
298
|
+
__type?: "base token";
|
|
299
|
+
};
|
|
98
300
|
}, import("@tramvai/papi").Papi<any, any>> | import("@tinkoff/dippy/lib/Provider").FactoryProviderWithoutDeps<import("@tramvai/papi").Papi<any, any>>)[];
|
package/lib/tokens.d.ts
CHANGED
|
@@ -1,13 +1,29 @@
|
|
|
1
|
-
import type { ComponentType } from 'react';
|
|
2
|
-
import type { TramvaiRenderMode } from '@tramvai/tokens-render';
|
|
3
1
|
import type { Cache, ResponseManager } from '@tramvai/tokens-common';
|
|
4
|
-
export declare const PAGE_RENDER_FALLBACK_COMPONENT_PREFIX:
|
|
2
|
+
export declare const PAGE_RENDER_FALLBACK_COMPONENT_PREFIX: string & {
|
|
3
|
+
__type?: "base token";
|
|
4
|
+
};
|
|
5
5
|
/**
|
|
6
6
|
* @deprecated Use token `TRAMVAI_RENDER_MODE` from `@tramvai/tokens-render`
|
|
7
7
|
*/
|
|
8
|
-
export declare const PAGE_RENDER_DEFAULT_MODE:
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
export declare const PAGE_RENDER_DEFAULT_MODE: ("ssr" & {
|
|
9
|
+
__type?: "base token";
|
|
10
|
+
}) | ("client" & {
|
|
11
|
+
__type?: "base token";
|
|
12
|
+
}) | ("static" & {
|
|
13
|
+
__type?: "base token";
|
|
14
|
+
});
|
|
15
|
+
export declare const PAGE_RENDER_WRAPPER_TYPE: ("layout" & {
|
|
16
|
+
__type?: "base token";
|
|
17
|
+
}) | ("content" & {
|
|
18
|
+
__type?: "base token";
|
|
19
|
+
}) | ("page" & {
|
|
20
|
+
__type?: "base token";
|
|
21
|
+
});
|
|
22
|
+
export declare const PAGE_RENDER_DEFAULT_FALLBACK_COMPONENT: (import("react").ComponentClass<any, any> & {
|
|
23
|
+
__type?: "base token";
|
|
24
|
+
}) | (import("react").FunctionComponent<any> & {
|
|
25
|
+
__type?: "base token";
|
|
26
|
+
});
|
|
11
27
|
export interface StaticPagesCacheEntry {
|
|
12
28
|
updatedAt: number;
|
|
13
29
|
headers: ReturnType<ResponseManager['getHeaders']>;
|
|
@@ -26,11 +42,45 @@ export interface StaticPagesOptions {
|
|
|
26
42
|
*/
|
|
27
43
|
maxSize: number;
|
|
28
44
|
}
|
|
29
|
-
export declare const STATIC_PAGES_CACHE_TOKEN:
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
export declare const
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
export declare const
|
|
36
|
-
|
|
45
|
+
export declare const STATIC_PAGES_CACHE_TOKEN: Cache<Map<string, StaticPagesCacheEntry>> & {
|
|
46
|
+
__type?: "base token";
|
|
47
|
+
};
|
|
48
|
+
export declare const STATIC_PAGES_SHOULD_USE_CACHE: (() => boolean) & {
|
|
49
|
+
__type?: "base token";
|
|
50
|
+
};
|
|
51
|
+
export declare const STATIC_PAGES_SHOULD_SET_TO_CACHE: (() => boolean) & {
|
|
52
|
+
__type?: "base token";
|
|
53
|
+
};
|
|
54
|
+
export declare const STATIC_PAGES_BACKGROUND_FETCH_ENABLED: (() => boolean) & {
|
|
55
|
+
__type?: "base token";
|
|
56
|
+
};
|
|
57
|
+
export declare const STATIC_PAGES_OPTIONS_TOKEN: StaticPagesOptions & {
|
|
58
|
+
__type?: "base token";
|
|
59
|
+
};
|
|
60
|
+
export declare const STATIC_PAGES_COMMAND_LINE: ("init" & {
|
|
61
|
+
__type?: "base token";
|
|
62
|
+
}) | ("listen" & {
|
|
63
|
+
__type?: "base token";
|
|
64
|
+
}) | ("customerStart" & {
|
|
65
|
+
__type?: "base token";
|
|
66
|
+
}) | ("resolveUserDeps" & {
|
|
67
|
+
__type?: "base token";
|
|
68
|
+
}) | ("resolvePageDeps" & {
|
|
69
|
+
__type?: "base token";
|
|
70
|
+
}) | ("generatePage" & {
|
|
71
|
+
__type?: "base token";
|
|
72
|
+
}) | ("clear" & {
|
|
73
|
+
__type?: "base token";
|
|
74
|
+
}) | ("spaTransition" & {
|
|
75
|
+
__type?: "base token";
|
|
76
|
+
}) | ("afterSpaTransition" & {
|
|
77
|
+
__type?: "base token";
|
|
78
|
+
}) | ("close" & {
|
|
79
|
+
__type?: "base token";
|
|
80
|
+
});
|
|
81
|
+
export declare const STATIC_PAGES_MODIFY_CACHE: ((entry: StaticPagesCacheEntry) => StaticPagesCacheEntry) & {
|
|
82
|
+
__type?: "multi token";
|
|
83
|
+
};
|
|
84
|
+
export declare const STATIC_PAGES_CACHE_5xx_RESPONSE: (() => boolean) & {
|
|
85
|
+
__type?: "base token";
|
|
86
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tramvai/module-page-render-mode",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.59.0",
|
|
4
4
|
"description": "Enable different rendering modes for pages",
|
|
5
5
|
"main": "./lib/server.js",
|
|
6
6
|
"module": "./lib/server.es.js",
|
|
@@ -30,21 +30,24 @@
|
|
|
30
30
|
},
|
|
31
31
|
"peerDependencies": {
|
|
32
32
|
"@tinkoff/utils": "^2.1.2",
|
|
33
|
-
"@tinkoff/dippy": "0.8.
|
|
34
|
-
"@tramvai/core": "2.
|
|
35
|
-
"@tramvai/react": "2.
|
|
36
|
-
"@tramvai/papi": "2.
|
|
37
|
-
"@tramvai/module-router": "2.
|
|
38
|
-
"@tramvai/module-client-hints": "2.
|
|
39
|
-
"@tramvai/tokens-common": "2.
|
|
40
|
-
"@tramvai/tokens-core": "2.
|
|
41
|
-
"@tramvai/tokens-render": "2.
|
|
42
|
-
"@tramvai/tokens-router": "2.
|
|
43
|
-
"@tramvai/tokens-server": "2.
|
|
44
|
-
"@tramvai/tokens-server-private": "2.
|
|
45
|
-
"@tramvai/tokens-metrics": "2.
|
|
33
|
+
"@tinkoff/dippy": "0.8.11",
|
|
34
|
+
"@tramvai/core": "2.59.0",
|
|
35
|
+
"@tramvai/react": "2.59.0",
|
|
36
|
+
"@tramvai/papi": "2.59.0",
|
|
37
|
+
"@tramvai/module-router": "2.59.0",
|
|
38
|
+
"@tramvai/module-client-hints": "2.59.0",
|
|
39
|
+
"@tramvai/tokens-common": "2.59.0",
|
|
40
|
+
"@tramvai/tokens-core": "2.59.0",
|
|
41
|
+
"@tramvai/tokens-render": "2.59.0",
|
|
42
|
+
"@tramvai/tokens-router": "2.59.0",
|
|
43
|
+
"@tramvai/tokens-server": "2.59.0",
|
|
44
|
+
"@tramvai/tokens-server-private": "2.59.0",
|
|
45
|
+
"@tramvai/tokens-metrics": "2.59.0",
|
|
46
46
|
"prom-client": "^12.0.0",
|
|
47
47
|
"react": ">=16.14.0",
|
|
48
48
|
"tslib": "^2.4.0"
|
|
49
|
+
},
|
|
50
|
+
"devDependencies": {
|
|
51
|
+
"@types/node-fetch": "^2.6.2"
|
|
49
52
|
}
|
|
50
53
|
}
|