@tramvai/tokens-render 7.41.3 → 7.43.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 CHANGED
@@ -1,6 +1,7 @@
1
1
  import type { ReactElement, ComponentType } from 'react';
2
2
  import { StorageRecord } from '@tinkoff/htmlpagebuilder';
3
3
  import type { UniversalErrorBoundaryFallbackProps } from '@tramvai/react';
4
+ import type { Middleware } from '@tramvai/types-actions-state-context';
4
5
  import type { JSX } from 'react';
5
6
  import * as ResourceSlot from './slots';
6
7
  /**
@@ -236,6 +237,19 @@ export declare const REACT_SERVER_RENDER_MODE: ("blocking" & {
236
237
  export declare const REACT_STREAMING_RENDER_TIMEOUT: number & {
237
238
  __type?: "base token" | undefined;
238
239
  };
240
+ export interface StoreSyncEvent {
241
+ type: string;
242
+ payload: any;
243
+ store: string | null;
244
+ }
245
+ export declare const STORE_SYNC_EVENTS_SERIALIZE_TOKEN: ((event: StoreSyncEvent) => string) & {
246
+ __type?: "base token" | undefined;
247
+ };
248
+ export declare const STORE_SYNC_EVENTS_TOKEN: Middleware & {
249
+ startStreaming: () => void;
250
+ } & {
251
+ __type?: "base token" | undefined;
252
+ };
239
253
  export interface WebpackStats {
240
254
  assetsByChunkName: Record<string, string[]>;
241
255
  integrities?: Record<string, string>;
package/lib/index.es.js CHANGED
@@ -138,6 +138,8 @@ const INLINE_WEBPACK_RUNTIME = createToken('inline webpack runtime');
138
138
  // @todo ReactServerRenderMode or () => ReactServerRenderMode
139
139
  const REACT_SERVER_RENDER_MODE = createToken('reactServerRenderMode');
140
140
  const REACT_STREAMING_RENDER_TIMEOUT = createToken('react streaming render timeout');
141
+ const STORE_SYNC_EVENTS_SERIALIZE_TOKEN = createToken('tramvai storeSyncEventsSerialize');
142
+ const STORE_SYNC_EVENTS_TOKEN = createToken('tramvai storeSyncEventsController');
141
143
  const FETCH_WEBPACK_STATS_TOKEN = createToken('fetchWebpackStatsFn', {
142
144
  scope: Scope.SINGLETON,
143
145
  });
@@ -148,4 +150,4 @@ const DEFAULT_ASSETS_PREFIX_TOKEN = createToken('tramvai default assets prefix',
148
150
  const RETRY_HOSTNAME_MAP = createToken('tramvai retry assets hostname map');
149
151
  const GET_RETRY_URL = createToken('tramvai get asset retry url');
150
152
 
151
- 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, GET_RETRY_URL, 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, RETRY_HOSTNAME_MAP, TRAMVAI_RENDER_MODE, USE_REACT_STRICT_MODE };
153
+ 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, GET_RETRY_URL, 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, RETRY_HOSTNAME_MAP, STORE_SYNC_EVENTS_SERIALIZE_TOKEN, STORE_SYNC_EVENTS_TOKEN, TRAMVAI_RENDER_MODE, USE_REACT_STRICT_MODE };
package/lib/index.js CHANGED
@@ -141,6 +141,8 @@ const INLINE_WEBPACK_RUNTIME = dippy.createToken('inline webpack runtime');
141
141
  // @todo ReactServerRenderMode or () => ReactServerRenderMode
142
142
  const REACT_SERVER_RENDER_MODE = dippy.createToken('reactServerRenderMode');
143
143
  const REACT_STREAMING_RENDER_TIMEOUT = dippy.createToken('react streaming render timeout');
144
+ const STORE_SYNC_EVENTS_SERIALIZE_TOKEN = dippy.createToken('tramvai storeSyncEventsSerialize');
145
+ const STORE_SYNC_EVENTS_TOKEN = dippy.createToken('tramvai storeSyncEventsController');
144
146
  const FETCH_WEBPACK_STATS_TOKEN = dippy.createToken('fetchWebpackStatsFn', {
145
147
  scope: dippy.Scope.SINGLETON,
146
148
  });
@@ -180,5 +182,7 @@ exports.RENDER_SLOTS = RENDER_SLOTS;
180
182
  exports.RESOURCES_REGISTRY = RESOURCES_REGISTRY;
181
183
  exports.RESOURCE_INLINE_OPTIONS = RESOURCE_INLINE_OPTIONS;
182
184
  exports.RETRY_HOSTNAME_MAP = RETRY_HOSTNAME_MAP;
185
+ exports.STORE_SYNC_EVENTS_SERIALIZE_TOKEN = STORE_SYNC_EVENTS_SERIALIZE_TOKEN;
186
+ exports.STORE_SYNC_EVENTS_TOKEN = STORE_SYNC_EVENTS_TOKEN;
183
187
  exports.TRAMVAI_RENDER_MODE = TRAMVAI_RENDER_MODE;
184
188
  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": "7.41.3",
3
+ "version": "7.43.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": "7.41.3"
21
+ "@tramvai/react": "7.43.1"
22
22
  },
23
23
  "dependencies": {
24
24
  "@tinkoff/htmlpagebuilder": "0.10.2"