@tramvai/tokens-render 1.78.2 → 1.81.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 +9 -4
- package/lib/index.es.js +7 -5
- package/lib/index.js +7 -4
- package/package.json +2 -2
package/lib/index.d.ts
CHANGED
|
@@ -58,12 +58,14 @@ export declare const RESOURCES_REGISTRY: ResourcesRegistry;
|
|
|
58
58
|
*/
|
|
59
59
|
export declare const POLYFILL_CONDITION: string;
|
|
60
60
|
/**
|
|
61
|
-
* @
|
|
62
|
-
*
|
|
63
|
-
*
|
|
64
|
-
* [More details in doc for module-render](https://tramvai.dev/docs/references/modules/render)
|
|
61
|
+
* @deprecated tramvai will automatically detect React version, and use hydrateRoot API for 18+ version
|
|
62
|
+
* For Strict Mode, use token `USE_REACT_STRICT_MODE`
|
|
65
63
|
*/
|
|
66
64
|
export declare const RENDER_MODE: RenderMode;
|
|
65
|
+
/**
|
|
66
|
+
* @description add Strict Mode wrapper, more info available in documentation https://reactjs.org/docs/strict-mode.html
|
|
67
|
+
*/
|
|
68
|
+
export declare const USE_REACT_STRICT_MODE: boolean;
|
|
67
69
|
/**
|
|
68
70
|
* @description
|
|
69
71
|
* A wrapper for app render.
|
|
@@ -112,6 +114,9 @@ export declare type HtmlAttrs = {
|
|
|
112
114
|
[name: string]: string | boolean | Record<string, any> | number;
|
|
113
115
|
};
|
|
114
116
|
};
|
|
117
|
+
/**
|
|
118
|
+
* @deprecated
|
|
119
|
+
*/
|
|
115
120
|
export declare type RenderMode = 'legacy' | 'strict' | 'blocking' | 'concurrent';
|
|
116
121
|
declare type ResourceInlineOptions = {
|
|
117
122
|
threshold: number;
|
package/lib/index.es.js
CHANGED
|
@@ -93,12 +93,14 @@ const RESOURCES_REGISTRY = createToken('resourcesRegistry');
|
|
|
93
93
|
*/
|
|
94
94
|
const POLYFILL_CONDITION = createToken('POLYFILL_CONDITION');
|
|
95
95
|
/**
|
|
96
|
-
* @
|
|
97
|
-
*
|
|
98
|
-
*
|
|
99
|
-
* [More details in doc for module-render](https://tramvai.dev/docs/references/modules/render)
|
|
96
|
+
* @deprecated tramvai will automatically detect React version, and use hydrateRoot API for 18+ version
|
|
97
|
+
* For Strict Mode, use token `USE_REACT_STRICT_MODE`
|
|
100
98
|
*/
|
|
101
99
|
const RENDER_MODE = createToken('RENDER_MODE');
|
|
100
|
+
/**
|
|
101
|
+
* @description add Strict Mode wrapper, more info available in documentation https://reactjs.org/docs/strict-mode.html
|
|
102
|
+
*/
|
|
103
|
+
const USE_REACT_STRICT_MODE = createToken('useReactStrictMode');
|
|
102
104
|
/**
|
|
103
105
|
* @description
|
|
104
106
|
* A wrapper for app render.
|
|
@@ -140,4 +142,4 @@ const RESOURCE_INLINE_OPTIONS = createToken('resourceInlineThreshold');
|
|
|
140
142
|
*/
|
|
141
143
|
const TRAMVAI_RENDER_MODE = createToken('tramvaiRenderMode');
|
|
142
144
|
|
|
143
|
-
export { CUSTOM_RENDER, DEFAULT_FOOTER_COMPONENT, DEFAULT_HEADER_COMPONENT, DEFAULT_LAYOUT_COMPONENT, EXTEND_RENDER, HTML_ATTRS, LAYOUT_OPTIONS, POLYFILL_CONDITION, RENDERER_CALLBACK, RENDER_MODE, RENDER_SLOTS, RESOURCES_REGISTRY, RESOURCE_INLINE_OPTIONS, slots as ResourceSlot, TRAMVAI_RENDER_MODE };
|
|
145
|
+
export { CUSTOM_RENDER, DEFAULT_FOOTER_COMPONENT, DEFAULT_HEADER_COMPONENT, DEFAULT_LAYOUT_COMPONENT, EXTEND_RENDER, HTML_ATTRS, LAYOUT_OPTIONS, POLYFILL_CONDITION, RENDERER_CALLBACK, RENDER_MODE, RENDER_SLOTS, RESOURCES_REGISTRY, RESOURCE_INLINE_OPTIONS, slots as ResourceSlot, TRAMVAI_RENDER_MODE, USE_REACT_STRICT_MODE };
|
package/lib/index.js
CHANGED
|
@@ -97,12 +97,14 @@ const RESOURCES_REGISTRY = dippy.createToken('resourcesRegistry');
|
|
|
97
97
|
*/
|
|
98
98
|
const POLYFILL_CONDITION = dippy.createToken('POLYFILL_CONDITION');
|
|
99
99
|
/**
|
|
100
|
-
* @
|
|
101
|
-
*
|
|
102
|
-
*
|
|
103
|
-
* [More details in doc for module-render](https://tramvai.dev/docs/references/modules/render)
|
|
100
|
+
* @deprecated tramvai will automatically detect React version, and use hydrateRoot API for 18+ version
|
|
101
|
+
* For Strict Mode, use token `USE_REACT_STRICT_MODE`
|
|
104
102
|
*/
|
|
105
103
|
const RENDER_MODE = dippy.createToken('RENDER_MODE');
|
|
104
|
+
/**
|
|
105
|
+
* @description add Strict Mode wrapper, more info available in documentation https://reactjs.org/docs/strict-mode.html
|
|
106
|
+
*/
|
|
107
|
+
const USE_REACT_STRICT_MODE = dippy.createToken('useReactStrictMode');
|
|
106
108
|
/**
|
|
107
109
|
* @description
|
|
108
110
|
* A wrapper for app render.
|
|
@@ -163,3 +165,4 @@ exports.RESOURCES_REGISTRY = RESOURCES_REGISTRY;
|
|
|
163
165
|
exports.RESOURCE_INLINE_OPTIONS = RESOURCE_INLINE_OPTIONS;
|
|
164
166
|
exports.ResourceSlot = slots;
|
|
165
167
|
exports.TRAMVAI_RENDER_MODE = TRAMVAI_RENDER_MODE;
|
|
168
|
+
exports.USE_REACT_STRICT_MODE = USE_REACT_STRICT_MODE;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tramvai/tokens-render",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.81.0",
|
|
4
4
|
"description": "Tramvai tokens for @tramvai/module-render",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "lib/index.es.js",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"@tinkoff/htmlpagebuilder": "0.4.22"
|
|
23
23
|
},
|
|
24
24
|
"peerDependencies": {
|
|
25
|
-
"@tinkoff/dippy": "0.7.
|
|
25
|
+
"@tinkoff/dippy": "0.7.39",
|
|
26
26
|
"react": ">=16.8.0",
|
|
27
27
|
"tslib": "^2.0.3"
|
|
28
28
|
},
|