@plitzi/plitzi-sdk 0.31.2 → 0.32.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/dist/App.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { Environment, EventBridgeContextValue, OfflineDataRaw, RenderMode, Server, StateManagerContextValue } from '@plitzi/sdk-shared';
1
+ import { Environment, EventBridgeContextValue, OfflineDataRaw, RenderMode, Server, RuntimeStateInstance } from '@plitzi/sdk-shared';
2
2
  import { ReactNode } from 'react';
3
3
  export type AppProps = {
4
4
  className?: string;
@@ -17,8 +17,8 @@ export type AppProps = {
17
17
  previewMode?: boolean;
18
18
  externalStyle?: string;
19
19
  state?: Record<string, unknown>;
20
- onInitStateManager?: (instance: StateManagerContextValue) => void;
20
+ onInitStateManager?: (instance: RuntimeStateInstance) => void;
21
21
  onInitEventBridge?: (instance: EventBridgeContextValue) => void;
22
22
  };
23
- declare const App: ({ className, children, webKey, server, renderMode, debugMode: debugModeProp, ...sdkProps }: AppProps) => import("react/jsx-runtime").JSX.Element;
23
+ declare const App: ({ className, children, webKey, server, renderMode, debugMode: debugModeProp, state, ...sdkProps }: AppProps) => import("react/jsx-runtime").JSX.Element;
24
24
  export default App;
package/dist/index.d.ts CHANGED
@@ -13,7 +13,7 @@ import { PlitziServiceProvider } from '@plitzi/sdk-shared/hooks/usePlitziService
13
13
  import { default as useRscData } from '@plitzi/sdk-shared/server/hooks/useRscData';
14
14
  import { default as EventBridge } from '@plitzi/sdk-event-bridge';
15
15
  import { default as InteractionsManager } from '@plitzi/sdk-interactions/InteractionsManager';
16
- import { Element, Schema, Style, ComponentPluginFC, ComponentPlugin, InteractionCallback, InteractionCallbackParamValues, Environment, EventBridgeContextValue, OfflineDataRaw, RenderMode, Server, StateManagerContextValue, PlitziServiceContextValue as BasePlitziServiceContextValue } from '@plitzi/sdk-shared';
16
+ import { Element, Schema, Style, ComponentPluginFC, ComponentPlugin, InteractionCallback, InteractionCallbackParamValues, Environment, EventBridgeContextValue, OfflineDataRaw, RenderMode, Server, RuntimeStateInstance, PlitziServiceContextValue as BasePlitziServiceContextValue } from '@plitzi/sdk-shared';
17
17
  import { ReactNode } from 'react';
18
18
  export declare function render(widgetContainer: string, params?: PlitziSdkProps, plugins?: Record<string, {
19
19
  component: ComponentPlugin;
@@ -52,6 +52,6 @@ declare const usePlitziServiceContext: () => PlitziServiceContextValue;
52
52
  export { ComponentProvider, ComponentContext, usePlitziServiceContext, PlitziServiceProvider, RootElement, withElement, JsxManager, PluginManager, sdkComponents, PluginRemote, ReplicaProvider, useElement, useRscData, ElementContext };
53
53
  export type { ElementContextValue, Element, Schema, Style, ComponentPlugin, ComponentPluginFC, PlitziServiceContextValue, OfflineDataRaw, InteractionCallback, InteractionCallbackParamValues };
54
54
  export declare const version: string;
55
- export declare const getStateManager: () => StateManagerContextValue;
55
+ export declare const getStateManager: () => RuntimeStateInstance;
56
56
  export declare const getEventBridge: () => EventBridgeContextValue;
57
57
  export default PlitziSdk;
@@ -1,4 +1,4 @@
1
- import { Environment, Server, RenderMode, StateManagerContextValue, EventBridgeContextValue, OfflineDataRaw } from '@plitzi/sdk-shared';
1
+ import { Environment, Server, RenderMode, RuntimeStateInstance, EventBridgeContextValue, OfflineDataRaw } from '@plitzi/sdk-shared';
2
2
  export type AppMainProps = {
3
3
  revision?: number;
4
4
  webKey?: string;
@@ -17,8 +17,8 @@ export type AppMainProps = {
17
17
  previewMode?: boolean;
18
18
  debugMode?: boolean;
19
19
  state?: Record<string, unknown>;
20
- onInitStateManager?: (instance: StateManagerContextValue) => void;
20
+ onInitStateManager?: (instance: RuntimeStateInstance) => void;
21
21
  onInitEventBridge?: (instance: EventBridgeContextValue) => void;
22
22
  };
23
- declare const AppMain: ({ revision, webKey, webId, environment, currentPageId, server, isHydrating, offlineMode, offlineData, offlineDataType, instanceId, renderMode, sdkStylePath, sdkDevToolsStylePath, previewMode, debugMode, state, onInitEventBridge, onInitStateManager, ...sdkProps }: AppMainProps) => import("react/jsx-runtime").JSX.Element;
23
+ declare const AppMain: ({ revision, webKey, webId, environment, currentPageId, server, isHydrating, offlineMode, offlineData, offlineDataType, instanceId, renderMode, sdkStylePath, sdkDevToolsStylePath, previewMode, debugMode, onInitEventBridge, onInitStateManager, ...sdkProps }: AppMainProps) => import("react/jsx-runtime").JSX.Element;
24
24
  export default AppMain;