@tramvai/tokens-render 1.74.0 → 1.76.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 CHANGED
@@ -124,5 +124,11 @@ declare type ResourceInlineOptions = {
124
124
  * * types Types of resources which should be inlined
125
125
  */
126
126
  export declare const RESOURCE_INLINE_OPTIONS: ResourceInlineOptions;
127
+ /**
128
+ * @description
129
+ * Experimental switcher from ssr to client-side rendering mode
130
+ */
131
+ export declare const TRAMVAI_RENDER_MODE: TramvaiRenderMode;
132
+ export declare type TramvaiRenderMode = 'ssr' | 'client';
127
133
  export { ResourceSlot };
128
134
  export { StorageRecord as ResourceType };
package/lib/index.es.js CHANGED
@@ -134,5 +134,10 @@ const LAYOUT_OPTIONS = createToken('layoutOptions', { multi: true });
134
134
  * * types Types of resources which should be inlined
135
135
  */
136
136
  const RESOURCE_INLINE_OPTIONS = createToken('resourceInlineThreshold');
137
+ /**
138
+ * @description
139
+ * Experimental switcher from ssr to client-side rendering mode
140
+ */
141
+ const TRAMVAI_RENDER_MODE = createToken('tramvaiRenderMode');
137
142
 
138
- 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 };
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 };
package/lib/index.js CHANGED
@@ -138,6 +138,11 @@ const LAYOUT_OPTIONS = dippy.createToken('layoutOptions', { multi: true });
138
138
  * * types Types of resources which should be inlined
139
139
  */
140
140
  const RESOURCE_INLINE_OPTIONS = dippy.createToken('resourceInlineThreshold');
141
+ /**
142
+ * @description
143
+ * Experimental switcher from ssr to client-side rendering mode
144
+ */
145
+ const TRAMVAI_RENDER_MODE = dippy.createToken('tramvaiRenderMode');
141
146
 
142
147
  Object.defineProperty(exports, 'ResourceType', {
143
148
  enumerable: true,
@@ -157,3 +162,4 @@ exports.RENDER_SLOTS = RENDER_SLOTS;
157
162
  exports.RESOURCES_REGISTRY = RESOURCES_REGISTRY;
158
163
  exports.RESOURCE_INLINE_OPTIONS = RESOURCE_INLINE_OPTIONS;
159
164
  exports.ResourceSlot = slots;
165
+ exports.TRAMVAI_RENDER_MODE = TRAMVAI_RENDER_MODE;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tramvai/tokens-render",
3
- "version": "1.74.0",
3
+ "version": "1.76.0",
4
4
  "description": "Tramvai tokens for @tramvai/module-render",
5
5
  "main": "lib/index.js",
6
6
  "module": "lib/index.es.js",