@tramvai/tokens-render 5.49.1 → 6.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/index.d.ts +4 -5
- package/lib/index.es.js +2 -2
- package/lib/index.js +2 -2
- package/lib/slots.d.ts +1 -0
- package/lib/slots.es.js +2 -1
- package/lib/slots.js +2 -0
- package/package.json +4 -4
package/lib/index.d.ts
CHANGED
|
@@ -213,12 +213,12 @@ export { StorageRecord as ResourceType };
|
|
|
213
213
|
export declare const RENDER_FLOW_AFTER_TOKEN: (() => Promise<void>) & {
|
|
214
214
|
__type?: "multi token" | undefined;
|
|
215
215
|
};
|
|
216
|
-
export declare const
|
|
216
|
+
export declare const BACK_FORWARD_CACHE_ENABLED: (false & {
|
|
217
217
|
__type?: "base token" | undefined;
|
|
218
218
|
}) | (true & {
|
|
219
219
|
__type?: "base token" | undefined;
|
|
220
220
|
});
|
|
221
|
-
export declare const
|
|
221
|
+
export declare const INLINE_WEBPACK_RUNTIME: (false & {
|
|
222
222
|
__type?: "base token" | undefined;
|
|
223
223
|
}) | (true & {
|
|
224
224
|
__type?: "base token" | undefined;
|
|
@@ -234,6 +234,7 @@ export declare const REACT_STREAMING_RENDER_TIMEOUT: number & {
|
|
|
234
234
|
};
|
|
235
235
|
export interface WebpackStats {
|
|
236
236
|
assetsByChunkName: Record<string, string[]>;
|
|
237
|
+
integrities?: Record<string, string>;
|
|
237
238
|
namedChunkGroups?: Record<string, {
|
|
238
239
|
name: string;
|
|
239
240
|
chunks: string[];
|
|
@@ -247,9 +248,7 @@ export interface WebpackStats {
|
|
|
247
248
|
publicPath: string;
|
|
248
249
|
[key: string]: any;
|
|
249
250
|
}
|
|
250
|
-
type FetchWebpackStatsFn = (
|
|
251
|
-
modern?: boolean;
|
|
252
|
-
}) => Promise<WebpackStats>;
|
|
251
|
+
type FetchWebpackStatsFn = () => Promise<WebpackStats>;
|
|
253
252
|
export declare const FETCH_WEBPACK_STATS_TOKEN: FetchWebpackStatsFn & {
|
|
254
253
|
__type?: "base token" | undefined;
|
|
255
254
|
};
|
package/lib/index.es.js
CHANGED
|
@@ -131,8 +131,8 @@ const TRAMVAI_RENDER_MODE = createToken('tramvaiRenderMode');
|
|
|
131
131
|
const RENDER_FLOW_AFTER_TOKEN = createToken('render flow after', {
|
|
132
132
|
multi: true,
|
|
133
133
|
});
|
|
134
|
-
const MODERN_SATISFIES_TOKEN = createToken('modernSatisfies');
|
|
135
134
|
const BACK_FORWARD_CACHE_ENABLED = createToken('back forward cache');
|
|
135
|
+
const INLINE_WEBPACK_RUNTIME = createToken('inline webpack runtime');
|
|
136
136
|
// @todo ReactServerRenderMode or () => ReactServerRenderMode
|
|
137
137
|
const REACT_SERVER_RENDER_MODE = createToken('reactServerRenderMode');
|
|
138
138
|
const REACT_STREAMING_RENDER_TIMEOUT = createToken('react streaming render timeout');
|
|
@@ -144,4 +144,4 @@ const ASSETS_PREFIX_TOKEN = createToken('tramvai assets prefix', {
|
|
|
144
144
|
});
|
|
145
145
|
const DEFAULT_ASSETS_PREFIX_TOKEN = createToken('tramvai default assets prefix', { scope: Scope.SINGLETON });
|
|
146
146
|
|
|
147
|
-
export { ASSETS_PREFIX_TOKEN, BACK_FORWARD_CACHE_ENABLED, CUSTOM_RENDER, DEFAULT_ASSETS_PREFIX_TOKEN, DEFAULT_ERROR_BOUNDARY_COMPONENT, DEFAULT_FOOTER_COMPONENT, DEFAULT_HEADER_COMPONENT, DEFAULT_LAYOUT_COMPONENT, EXTEND_RENDER, FETCH_WEBPACK_STATS_TOKEN, HTML_ATTRS,
|
|
147
|
+
export { ASSETS_PREFIX_TOKEN, BACK_FORWARD_CACHE_ENABLED, CUSTOM_RENDER, DEFAULT_ASSETS_PREFIX_TOKEN, DEFAULT_ERROR_BOUNDARY_COMPONENT, DEFAULT_FOOTER_COMPONENT, DEFAULT_HEADER_COMPONENT, DEFAULT_LAYOUT_COMPONENT, EXTEND_RENDER, FETCH_WEBPACK_STATS_TOKEN, HTML_ATTRS, INLINE_WEBPACK_RUNTIME, LAYOUT_OPTIONS, POLYFILL_CONDITION, REACT_SERVER_RENDER_MODE, REACT_STREAMING_RENDER_TIMEOUT, 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
|
@@ -134,8 +134,8 @@ const TRAMVAI_RENDER_MODE = dippy.createToken('tramvaiRenderMode');
|
|
|
134
134
|
const RENDER_FLOW_AFTER_TOKEN = dippy.createToken('render flow after', {
|
|
135
135
|
multi: true,
|
|
136
136
|
});
|
|
137
|
-
const MODERN_SATISFIES_TOKEN = dippy.createToken('modernSatisfies');
|
|
138
137
|
const BACK_FORWARD_CACHE_ENABLED = dippy.createToken('back forward cache');
|
|
138
|
+
const INLINE_WEBPACK_RUNTIME = dippy.createToken('inline webpack runtime');
|
|
139
139
|
// @todo ReactServerRenderMode or () => ReactServerRenderMode
|
|
140
140
|
const REACT_SERVER_RENDER_MODE = dippy.createToken('reactServerRenderMode');
|
|
141
141
|
const REACT_STREAMING_RENDER_TIMEOUT = dippy.createToken('react streaming render timeout');
|
|
@@ -163,8 +163,8 @@ exports.DEFAULT_LAYOUT_COMPONENT = DEFAULT_LAYOUT_COMPONENT;
|
|
|
163
163
|
exports.EXTEND_RENDER = EXTEND_RENDER;
|
|
164
164
|
exports.FETCH_WEBPACK_STATS_TOKEN = FETCH_WEBPACK_STATS_TOKEN;
|
|
165
165
|
exports.HTML_ATTRS = HTML_ATTRS;
|
|
166
|
+
exports.INLINE_WEBPACK_RUNTIME = INLINE_WEBPACK_RUNTIME;
|
|
166
167
|
exports.LAYOUT_OPTIONS = LAYOUT_OPTIONS;
|
|
167
|
-
exports.MODERN_SATISFIES_TOKEN = MODERN_SATISFIES_TOKEN;
|
|
168
168
|
exports.POLYFILL_CONDITION = POLYFILL_CONDITION;
|
|
169
169
|
exports.REACT_SERVER_RENDER_MODE = REACT_SERVER_RENDER_MODE;
|
|
170
170
|
exports.REACT_STREAMING_RENDER_TIMEOUT = REACT_STREAMING_RENDER_TIMEOUT;
|
package/lib/slots.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export declare const HEAD_META: "head:meta";
|
|
2
2
|
export declare const HEAD_PERFORMANCE: "head:performance";
|
|
3
3
|
export declare const HEAD_CORE_STYLES: "head:core-styles";
|
|
4
|
+
export declare const HEAD_WEBPACK_RUNTIME: "head:webpack-runtime";
|
|
4
5
|
export declare const HEAD_POLYFILLS: "head:polyfills";
|
|
5
6
|
export declare const HEAD_CORE_SCRIPTS: "head:core-scripts";
|
|
6
7
|
export declare const HEAD_DYNAMIC_SCRIPTS: "head:dynamic-scripts";
|
package/lib/slots.es.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
const HEAD_META = 'head:meta';
|
|
2
2
|
const HEAD_PERFORMANCE = 'head:performance';
|
|
3
3
|
const HEAD_CORE_STYLES = 'head:core-styles';
|
|
4
|
+
const HEAD_WEBPACK_RUNTIME = 'head:webpack-runtime';
|
|
4
5
|
const HEAD_POLYFILLS = 'head:polyfills';
|
|
5
6
|
const HEAD_CORE_SCRIPTS = 'head:core-scripts';
|
|
6
7
|
const HEAD_DYNAMIC_SCRIPTS = 'head:dynamic-scripts';
|
|
@@ -12,4 +13,4 @@ const BODY_END = 'body:end';
|
|
|
12
13
|
const BODY_TAIL_ANALYTICS = 'body:tail:analytics';
|
|
13
14
|
const BODY_TAIL = 'body:tail';
|
|
14
15
|
|
|
15
|
-
export { BODY_END, BODY_START, BODY_TAIL, BODY_TAIL_ANALYTICS, HEAD_ANALYTICS, HEAD_CORE_SCRIPTS, HEAD_CORE_STYLES, HEAD_DYNAMIC_SCRIPTS, HEAD_ICONS, HEAD_META, HEAD_PERFORMANCE, HEAD_POLYFILLS, REACT_RENDER };
|
|
16
|
+
export { BODY_END, BODY_START, BODY_TAIL, BODY_TAIL_ANALYTICS, HEAD_ANALYTICS, HEAD_CORE_SCRIPTS, HEAD_CORE_STYLES, HEAD_DYNAMIC_SCRIPTS, HEAD_ICONS, HEAD_META, HEAD_PERFORMANCE, HEAD_POLYFILLS, HEAD_WEBPACK_RUNTIME, REACT_RENDER };
|
package/lib/slots.js
CHANGED
|
@@ -5,6 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
const HEAD_META = 'head:meta';
|
|
6
6
|
const HEAD_PERFORMANCE = 'head:performance';
|
|
7
7
|
const HEAD_CORE_STYLES = 'head:core-styles';
|
|
8
|
+
const HEAD_WEBPACK_RUNTIME = 'head:webpack-runtime';
|
|
8
9
|
const HEAD_POLYFILLS = 'head:polyfills';
|
|
9
10
|
const HEAD_CORE_SCRIPTS = 'head:core-scripts';
|
|
10
11
|
const HEAD_DYNAMIC_SCRIPTS = 'head:dynamic-scripts';
|
|
@@ -28,4 +29,5 @@ exports.HEAD_ICONS = HEAD_ICONS;
|
|
|
28
29
|
exports.HEAD_META = HEAD_META;
|
|
29
30
|
exports.HEAD_PERFORMANCE = HEAD_PERFORMANCE;
|
|
30
31
|
exports.HEAD_POLYFILLS = HEAD_POLYFILLS;
|
|
32
|
+
exports.HEAD_WEBPACK_RUNTIME = HEAD_WEBPACK_RUNTIME;
|
|
31
33
|
exports.REACT_RENDER = REACT_RENDER;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tramvai/tokens-render",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "6.59.0",
|
|
4
4
|
"description": "Tramvai tokens for @tramvai/module-render",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "lib/index.es.js",
|
|
@@ -18,13 +18,13 @@
|
|
|
18
18
|
"watch": "tsc -w"
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
21
|
-
"@tramvai/react": "
|
|
21
|
+
"@tramvai/react": "6.59.0"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@tinkoff/htmlpagebuilder": "0.
|
|
24
|
+
"@tinkoff/htmlpagebuilder": "0.9.0"
|
|
25
25
|
},
|
|
26
26
|
"peerDependencies": {
|
|
27
|
-
"@tinkoff/dippy": "0.
|
|
27
|
+
"@tinkoff/dippy": "0.12.3",
|
|
28
28
|
"react": ">=16.14.0",
|
|
29
29
|
"tslib": "^2.4.0"
|
|
30
30
|
},
|