@tramvai/tokens-render 2.89.2 → 2.91.1
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/index.d.ts +21 -0
- package/lib/index.es.js +2 -1
- package/lib/index.js +2 -0
- package/package.json +2 -2
package/lib/index.d.ts
CHANGED
|
@@ -201,3 +201,24 @@ export declare const REACT_SERVER_RENDER_MODE: ("sync" & {
|
|
|
201
201
|
}) | ("streaming" & {
|
|
202
202
|
__type?: "base token" | undefined;
|
|
203
203
|
});
|
|
204
|
+
export interface WebpackStats {
|
|
205
|
+
assetsByChunkName: Record<string, string[]>;
|
|
206
|
+
namedChunkGroups?: Record<string, {
|
|
207
|
+
name: string;
|
|
208
|
+
chunks: string[];
|
|
209
|
+
assets: string[];
|
|
210
|
+
}>;
|
|
211
|
+
entrypoints: Record<string, {
|
|
212
|
+
name: string;
|
|
213
|
+
chunks: string[];
|
|
214
|
+
assets: string[];
|
|
215
|
+
}>;
|
|
216
|
+
publicPath: string;
|
|
217
|
+
[key: string]: any;
|
|
218
|
+
}
|
|
219
|
+
type FetchWebpackStatsFn = (payload?: {
|
|
220
|
+
modern?: boolean;
|
|
221
|
+
}) => Promise<WebpackStats>;
|
|
222
|
+
export declare const FETCH_WEBPACK_STATS_TOKEN: FetchWebpackStatsFn & {
|
|
223
|
+
__type?: "base token" | undefined;
|
|
224
|
+
};
|
package/lib/index.es.js
CHANGED
|
@@ -124,5 +124,6 @@ const RENDER_FLOW_AFTER_TOKEN = createToken('render flow after', {
|
|
|
124
124
|
});
|
|
125
125
|
const MODERN_SATISFIES_TOKEN = createToken('modernSatisfies');
|
|
126
126
|
const REACT_SERVER_RENDER_MODE = createToken('reactServerRenderMode');
|
|
127
|
+
const FETCH_WEBPACK_STATS_TOKEN = createToken('fetchWebpackStatsFn');
|
|
127
128
|
|
|
128
|
-
export { CUSTOM_RENDER, DEFAULT_ERROR_BOUNDARY_COMPONENT, DEFAULT_FOOTER_COMPONENT, DEFAULT_HEADER_COMPONENT, DEFAULT_LAYOUT_COMPONENT, EXTEND_RENDER, HTML_ATTRS, LAYOUT_OPTIONS, MODERN_SATISFIES_TOKEN, POLYFILL_CONDITION, REACT_SERVER_RENDER_MODE, RENDERER_CALLBACK, RENDER_FLOW_AFTER_TOKEN, RENDER_MODE, RENDER_SLOTS, RESOURCES_REGISTRY, RESOURCE_INLINE_OPTIONS, TRAMVAI_RENDER_MODE, USE_REACT_STRICT_MODE };
|
|
129
|
+
export { CUSTOM_RENDER, DEFAULT_ERROR_BOUNDARY_COMPONENT, DEFAULT_FOOTER_COMPONENT, DEFAULT_HEADER_COMPONENT, DEFAULT_LAYOUT_COMPONENT, EXTEND_RENDER, FETCH_WEBPACK_STATS_TOKEN, HTML_ATTRS, LAYOUT_OPTIONS, MODERN_SATISFIES_TOKEN, POLYFILL_CONDITION, REACT_SERVER_RENDER_MODE, RENDERER_CALLBACK, RENDER_FLOW_AFTER_TOKEN, RENDER_MODE, RENDER_SLOTS, RESOURCES_REGISTRY, RESOURCE_INLINE_OPTIONS, TRAMVAI_RENDER_MODE, USE_REACT_STRICT_MODE };
|
package/lib/index.js
CHANGED
|
@@ -127,6 +127,7 @@ const RENDER_FLOW_AFTER_TOKEN = dippy.createToken('render flow after', {
|
|
|
127
127
|
});
|
|
128
128
|
const MODERN_SATISFIES_TOKEN = dippy.createToken('modernSatisfies');
|
|
129
129
|
const REACT_SERVER_RENDER_MODE = dippy.createToken('reactServerRenderMode');
|
|
130
|
+
const FETCH_WEBPACK_STATS_TOKEN = dippy.createToken('fetchWebpackStatsFn');
|
|
130
131
|
|
|
131
132
|
Object.defineProperty(exports, 'ResourceType', {
|
|
132
133
|
enumerable: true,
|
|
@@ -139,6 +140,7 @@ exports.DEFAULT_FOOTER_COMPONENT = DEFAULT_FOOTER_COMPONENT;
|
|
|
139
140
|
exports.DEFAULT_HEADER_COMPONENT = DEFAULT_HEADER_COMPONENT;
|
|
140
141
|
exports.DEFAULT_LAYOUT_COMPONENT = DEFAULT_LAYOUT_COMPONENT;
|
|
141
142
|
exports.EXTEND_RENDER = EXTEND_RENDER;
|
|
143
|
+
exports.FETCH_WEBPACK_STATS_TOKEN = FETCH_WEBPACK_STATS_TOKEN;
|
|
142
144
|
exports.HTML_ATTRS = HTML_ATTRS;
|
|
143
145
|
exports.LAYOUT_OPTIONS = LAYOUT_OPTIONS;
|
|
144
146
|
exports.MODERN_SATISFIES_TOKEN = MODERN_SATISFIES_TOKEN;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tramvai/tokens-render",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.91.1",
|
|
4
4
|
"description": "Tramvai tokens for @tramvai/module-render",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "lib/index.es.js",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"watch": "tsc -w"
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
21
|
-
"@tramvai/react": "2.
|
|
21
|
+
"@tramvai/react": "2.91.1"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"@tinkoff/htmlpagebuilder": "0.5.8"
|