@plitzi/plitzi-sdk 0.30.19

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.
Files changed (51) hide show
  1. package/CHANGELOG.md +2967 -0
  2. package/README.md +1 -0
  3. package/dist/App.d.ts +24 -0
  4. package/dist/config/index.d.ts +2 -0
  5. package/dist/index.d.ts +57 -0
  6. package/dist/index.html +83 -0
  7. package/dist/modules/App/AppHelper.d.ts +3 -0
  8. package/dist/modules/App/AppMain.d.ts +24 -0
  9. package/dist/modules/Collection/CollectionContextProvider.d.ts +8 -0
  10. package/dist/modules/Collection/index.d.ts +1 -0
  11. package/dist/modules/Element/elements/PlitziSdk/PlitziSdk.d.ts +15 -0
  12. package/dist/modules/Element/elements/PlitziSdk/index.d.ts +56 -0
  13. package/dist/modules/Element/index.d.ts +3 -0
  14. package/dist/modules/Interactions/InteractionsSdkContextProvider.d.ts +7 -0
  15. package/dist/modules/Interactions/sources/CollectionSource/CollectionInteractions.d.ts +6 -0
  16. package/dist/modules/Interactions/sources/PageSource/PageInteractions.d.ts +7 -0
  17. package/dist/modules/Navigation/NavigationContextProvider.d.ts +10 -0
  18. package/dist/modules/Network/NetworkContextProvider.d.ts +18 -0
  19. package/dist/modules/Plugins/PluginsContextProvider.d.ts +9 -0
  20. package/dist/modules/Schema/SchemaContextProvider.d.ts +8 -0
  21. package/dist/modules/Sdk/Sdk.d.ts +16 -0
  22. package/dist/modules/Sdk/SdkPlugin.d.ts +11 -0
  23. package/dist/modules/Sdk/components/MadeInPlitzi.d.ts +5 -0
  24. package/dist/modules/Sdk/components/index.d.ts +3 -0
  25. package/dist/modules/Sdk/index.d.ts +3 -0
  26. package/dist/modules/Sdk/renderModes/IframeMode.d.ts +12 -0
  27. package/dist/modules/Sdk/renderModes/RawMode.d.ts +10 -0
  28. package/dist/modules/Sdk/renderModes/ShadowMode.d.ts +11 -0
  29. package/dist/modules/Segments/SegmentsContextProvider.d.ts +6 -0
  30. package/dist/modules/Segments/index.d.ts +1 -0
  31. package/dist/modules/Space/SpaceContainer.d.ts +6 -0
  32. package/dist/modules/Space/SpaceContainerInternal.d.ts +6 -0
  33. package/dist/modules/Space/SpaceContext.d.ts +2 -0
  34. package/dist/modules/Space/SpaceContextProvider.d.ts +6 -0
  35. package/dist/modules/index.d.ts +1 -0
  36. package/dist/plitzi-sdk-dev-vendor.js +15564 -0
  37. package/dist/plitzi-sdk-dev-vendor.js.gz +0 -0
  38. package/dist/plitzi-sdk-dev-vendor.js.map +1 -0
  39. package/dist/plitzi-sdk-dev-vendor.js.map.gz +0 -0
  40. package/dist/plitzi-sdk-devtools.css +2 -0
  41. package/dist/plitzi-sdk-devtools.css.gz +0 -0
  42. package/dist/plitzi-sdk-vendor.js +1 -0
  43. package/dist/plitzi-sdk-vendor.js.gz +0 -0
  44. package/dist/plitzi-sdk.css +2 -0
  45. package/dist/plitzi-sdk.css.gz +0 -0
  46. package/dist/plitzi-sdk.js +556 -0
  47. package/dist/plitzi-sdk.js.gz +0 -0
  48. package/dist/robots.txt +2 -0
  49. package/dist/serviceWorker.d.ts +2 -0
  50. package/dist/vendor-entry.d.ts +17 -0
  51. package/package.json +148 -0
package/README.md ADDED
@@ -0,0 +1 @@
1
+ # plitzi-sdk
package/dist/App.d.ts ADDED
@@ -0,0 +1,24 @@
1
+ import { Environment, EventBridgeContextValue, OfflineDataRaw, RenderMode, Server, StateManagerContextValue } from '@plitzi/sdk-shared';
2
+ import { ReactNode } from 'react';
3
+ export type AppProps = {
4
+ className?: string;
5
+ children?: ReactNode;
6
+ revision?: number;
7
+ webKey?: string;
8
+ environment?: Environment;
9
+ currentPageId?: string;
10
+ server?: Partial<Server>;
11
+ offlineMode?: boolean;
12
+ offlineData?: OfflineDataRaw;
13
+ offlineDataType?: 'json' | 'yaml';
14
+ renderMode?: RenderMode;
15
+ debugMode?: boolean;
16
+ isHydrating?: boolean;
17
+ previewMode?: boolean;
18
+ externalStyle?: string;
19
+ state?: Record<string, unknown>;
20
+ onInitStateManager?: (instance: StateManagerContextValue) => void;
21
+ onInitEventBridge?: (instance: EventBridgeContextValue) => void;
22
+ };
23
+ declare const App: ({ className, children, webKey, server, renderMode, debugMode: debugModeProp, ...sdkProps }: AppProps) => import("react/jsx-runtime").JSX.Element;
24
+ export default App;
@@ -0,0 +1,2 @@
1
+ import { Server } from '@plitzi/sdk-shared';
2
+ export declare const getEnvironmentServer: (server?: Partial<Server>) => Server;
@@ -0,0 +1,57 @@
1
+ import { default as ComponentProvider } from '@plitzi/sdk-elements/Component/ComponentProvider';
2
+ import { default as sdkComponents } from './modules/Element';
3
+ import { default as withElement } from '@plitzi/sdk-elements/Element/hocs/withElement';
4
+ import { default as JsxManager } from '@plitzi/sdk-elements/Element/JsxManager';
5
+ import { default as PluginManager } from '@plitzi/sdk-elements/Element/PluginManager';
6
+ import { default as PluginRemote } from '@plitzi/sdk-elements/Element/PluginRemote';
7
+ import { default as ReplicaProvider } from '@plitzi/sdk-elements/Element/ReplicaProvider';
8
+ import { default as RootElement } from '@plitzi/sdk-elements/Element/RootElement';
9
+ import { default as ComponentContext } from '@plitzi/sdk-shared/elements/ComponentContext';
10
+ import { default as ElementContext, ElementContextValue } from '@plitzi/sdk-shared/elements/ElementContext';
11
+ import { default as useElement } from '@plitzi/sdk-shared/elements/hooks/useElement';
12
+ import { PlitziServiceProvider } from '@plitzi/sdk-shared/hooks/usePlitziServiceContext';
13
+ import { default as useRscData } from '@plitzi/sdk-shared/server/hooks/useRscData';
14
+ import { default as EventBridge } from '@plitzi/sdk-event-bridge';
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';
17
+ import { ReactNode } from 'react';
18
+ export declare function render(widgetContainer: string, params?: PlitziSdkProps, plugins?: Record<string, {
19
+ component: ComponentPlugin;
20
+ props?: Record<string, unknown>;
21
+ }>, debugMode?: boolean, ssrMode?: boolean): void;
22
+ declare global {
23
+ interface Window {
24
+ plitziCache?: PlitziSdkProps;
25
+ }
26
+ }
27
+ export type PlitziSdkProps = {
28
+ className?: string;
29
+ children?: ReactNode;
30
+ revision?: number;
31
+ webKey?: string;
32
+ environment?: Environment;
33
+ currentPageId?: string;
34
+ server?: Partial<Server>;
35
+ offlineMode?: boolean;
36
+ offlineData?: OfflineDataRaw;
37
+ offlineDataType?: 'json' | 'yaml';
38
+ renderMode?: RenderMode;
39
+ debugMode?: boolean;
40
+ isHydrating?: boolean;
41
+ previewMode?: boolean;
42
+ externalStyle?: string;
43
+ sdkDevToolsStylePath?: string;
44
+ state?: Record<string, unknown>;
45
+ };
46
+ declare const PlitziSdk: {
47
+ ({ debugMode, isHydrating, children, webKey, environment, renderMode, ...otherProps }: PlitziSdkProps): import("react/jsx-runtime").JSX.Element;
48
+ Plugin: (_props: import('./modules/Sdk/SdkPlugin').SdkPluginProps) => undefined;
49
+ };
50
+ type PlitziServiceContextValue = BasePlitziServiceContextValue<InstanceType<typeof EventBridge>, InstanceType<typeof InteractionsManager>>;
51
+ declare const usePlitziServiceContext: () => PlitziServiceContextValue;
52
+ export { ComponentProvider, ComponentContext, usePlitziServiceContext, PlitziServiceProvider, RootElement, withElement, JsxManager, PluginManager, sdkComponents, PluginRemote, ReplicaProvider, useElement, useRscData, ElementContext };
53
+ export type { ElementContextValue, Element, Schema, Style, ComponentPlugin, ComponentPluginFC, PlitziServiceContextValue, OfflineDataRaw, InteractionCallback, InteractionCallbackParamValues };
54
+ export declare const version: string;
55
+ export declare const getStateManager: () => StateManagerContextValue;
56
+ export declare const getEventBridge: () => EventBridgeContextValue;
57
+ export default PlitziSdk;
@@ -0,0 +1,83 @@
1
+ <!doctype html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="utf-8" />
5
+ <title>Plitzi Demo</title>
6
+ <meta name="viewport" content="width=device-width, initial-scale=1" />
7
+ <link rel="shortcut icon" href="https://cdn.plitzi.com/resources/img/favicon.svg" />
8
+
9
+ <link rel="preconnect" href="https://fonts.gstatic.com" />
10
+ <link rel="preconnect" href="https://fonts.googleapis.com" />
11
+ <link rel="preconnect" href="https://cdn.plitzi.com" />
12
+ <link rel="preconnect" href="https://server.plitzi.local:8888" />
13
+ <link rel="preconnect" href="https://api.plitzi.local" />
14
+ <link rel="preconnect" href="https://ssr.plitzi.local:4000" />
15
+
16
+ <link rel="modulepreload" href="/plitzi-sdk-vendor.js" crossorigin />
17
+ <link rel="modulepreload" href="/plitzi-sdk-vendor.js" crossorigin />
18
+ <link rel="modulepreload" href="/plitzi-sdk.js" />
19
+
20
+ <script type="importmap">
21
+ {
22
+ "imports": {
23
+ "react": "/plitzi-sdk-vendor.js",
24
+ "react-dom": "/plitzi-sdk-vendor.js",
25
+ "react-dom/client": "/plitzi-sdk-vendor.js",
26
+ "react/jsx-runtime": "/plitzi-sdk-vendor.js",
27
+ "@plitzi/plitzi-sdk": "/plitzi-sdk.js"
28
+ }
29
+ }
30
+ </script>
31
+
32
+ <link
33
+ rel="preload"
34
+ href="https://fonts.googleapis.com/icon?family=Material+Icons"
35
+ as="style"
36
+ onload="
37
+ this.onload = null;
38
+ this.rel = 'stylesheet';
39
+ "
40
+ />
41
+ <noscript>
42
+ <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet" />
43
+ </noscript>
44
+
45
+ <link href="/plitzi-sdk.css" rel="preload" as="style" />
46
+ <link href="/plitzi-sdk.css" rel="stylesheet" />
47
+ </head>
48
+
49
+ <body>
50
+ <noscript> You need to enable JavaScript to run this app. </noscript>
51
+
52
+ <div id="plitzi" class="plitzi-root-container"></div>
53
+
54
+ <script type="module">
55
+ import { render } from '/plitzi-sdk.js';
56
+
57
+ render(
58
+ 'plitzi',
59
+ {
60
+ webKey:
61
+ 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE3NzY5NzExMDMsImlzcyI6Imh0dHBzOlwvXC9hcGkucGxpdHppLmxvY2FsIiwibmJmIjoxNzc2OTcxMTAzLCJhdWQiOlsiaHR0cHM6XC9cL2FwcC5wbGl0emkubG9jYWwiLCJodHRwczpcL1wvc3NyLnBsaXR6aS5sb2NhbDo0MDAwIiwiaHR0cHM6XC9cL3NlcnZlci5wbGl0emkubG9jYWw6ODg4OCIsImh0dHBzXC9cL2FwcC5wbGl0emkubG9jYWw6MzAwMCIsImh0dHBzOlwvXC9hcHAucGxpdHppLmxvY2FsOjMwMDEiLCJodHRwczpcL1wvd2Vic2l0ZS5wbGl0emkuYXBwIl0sImRhdGEiOnsic3BhY2VJZCI6MX0sInZlcnNpb24iOjF9.D7-CrIEmSoJMwlReT3Qe1zgZjovzEFVw7Ybnni3bfko',
62
+ environment: 'main',
63
+ revision: 0,
64
+ renderMode: 'raw',
65
+ server: {
66
+ basePath: '/',
67
+ // Dashboard
68
+ apiServer: 'https://api.plitzi.local',
69
+ ssrServer: 'https://ssr.plitzi.local:4000',
70
+ // SDK
71
+ nodeServer: 'https://server.plitzi.local:8888',
72
+ graphqlServer: 'https://server.plitzi.local:8888/graphql',
73
+ websocketServer: 'wss://server.plitzi.local:8888',
74
+ subscriptionServer: 'wss://server.plitzi.local:8888/subscriptions'
75
+ },
76
+ state: {}
77
+ },
78
+ {},
79
+ true
80
+ );
81
+ </script>
82
+ </body>
83
+ </html>
@@ -0,0 +1,3 @@
1
+ import { ApolloClient } from '@apollo/client/core';
2
+ import { Server } from '@plitzi/sdk-shared';
3
+ export declare const initClient: (finalServer: Server, webKey: string) => ApolloClient;
@@ -0,0 +1,24 @@
1
+ import { Environment, Server, RenderMode, StateManagerContextValue, EventBridgeContextValue, OfflineDataRaw } from '@plitzi/sdk-shared';
2
+ export type AppMainProps = {
3
+ revision?: number;
4
+ webKey?: string;
5
+ webId: number;
6
+ environment?: Environment;
7
+ currentPageId?: string;
8
+ server: Server;
9
+ isHydrating?: boolean;
10
+ offlineMode?: boolean;
11
+ offlineData?: OfflineDataRaw;
12
+ offlineDataType?: 'json' | 'yaml';
13
+ instanceId?: string;
14
+ renderMode?: RenderMode;
15
+ sdkStylePath?: string;
16
+ sdkDevToolsStylePath?: string;
17
+ previewMode?: boolean;
18
+ debugMode?: boolean;
19
+ state?: Record<string, unknown>;
20
+ onInitStateManager?: (instance: StateManagerContextValue) => void;
21
+ onInitEventBridge?: (instance: EventBridgeContextValue) => void;
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;
24
+ export default AppMain;
@@ -0,0 +1,8 @@
1
+ import { Collection } from '@plitzi/sdk-shared';
2
+ import { ReactNode } from 'react';
3
+ export type CollectionContextProviderProps = {
4
+ children: ReactNode;
5
+ collections?: Record<string, Collection>;
6
+ };
7
+ declare const CollectionContextProvider: ({ children, collections: collectionsProp }: CollectionContextProviderProps) => import("react/jsx-runtime").JSX.Element;
8
+ export default CollectionContextProvider;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,15 @@
1
+ import { Environment } from '@plitzi/sdk-shared';
2
+ import { RefObject } from 'react';
3
+ export type PlitziSdkProps = {
4
+ ref?: RefObject<HTMLElement>;
5
+ className?: string;
6
+ spaceKey?: string;
7
+ environment?: Environment;
8
+ };
9
+ declare const PlitziSdk: ({ ref, className, spaceKey, environment }: PlitziSdkProps) => import("react/jsx-runtime").JSX.Element;
10
+ declare const _default: {
11
+ (props: import('@plitzi/sdk-elements/Element/hocs/withElement').WithElementProps<PlitziSdkProps>): import("react/jsx-runtime").JSX.Element;
12
+ displayName: string;
13
+ };
14
+ export default _default;
15
+ export { PlitziSdk };
@@ -0,0 +1,56 @@
1
+ declare const PlitziSdk: {
2
+ (props: import('@plitzi/sdk-elements/Element/hocs/withElement').WithElementProps<import('./PlitziSdk').PlitziSdkProps>): import("react/jsx-runtime").JSX.Element;
3
+ displayName: string;
4
+ } & {
5
+ type: string;
6
+ content: {
7
+ attributes: {
8
+ spaceId: string;
9
+ spaceKey: string;
10
+ environment: string;
11
+ };
12
+ definition: {
13
+ label: string;
14
+ type: string;
15
+ bindings: {};
16
+ styleSelectors: {
17
+ base: string;
18
+ };
19
+ initialState: {
20
+ visibility: boolean;
21
+ };
22
+ };
23
+ builder: {
24
+ canDelete: boolean;
25
+ canSelect: boolean;
26
+ canDragDrop: boolean;
27
+ canMove: boolean;
28
+ canTemplate: boolean;
29
+ itemsAllowed: never[];
30
+ itemsNotAllowed: never[];
31
+ };
32
+ market: {
33
+ category: string;
34
+ owner: string;
35
+ verified: boolean;
36
+ license: string;
37
+ website: string;
38
+ backgroundColor: string;
39
+ icon: import("react/jsx-runtime").JSX.Element;
40
+ };
41
+ defaultStyle: {
42
+ name: string;
43
+ displayMode: string;
44
+ style: {
45
+ base: {
46
+ default: {
47
+ 'min-width': string;
48
+ 'min-height': string;
49
+ };
50
+ };
51
+ };
52
+ };
53
+ settings: {};
54
+ };
55
+ };
56
+ export default PlitziSdk;
@@ -0,0 +1,3 @@
1
+ import { ComponentPlugin } from '@plitzi/sdk-shared';
2
+ declare const elements: Record<string, ComponentPlugin>;
3
+ export default elements;
@@ -0,0 +1,7 @@
1
+ import { ReactNode } from 'react';
2
+ export type InteractionsSdkContextProviderProps = {
3
+ children: ReactNode;
4
+ previewMode?: boolean;
5
+ };
6
+ declare const InteractionsSdkContextProvider: ({ children, previewMode }: InteractionsSdkContextProviderProps) => import("react/jsx-runtime").JSX.Element;
7
+ export default InteractionsSdkContextProvider;
@@ -0,0 +1,6 @@
1
+ import { ReactNode } from 'react';
2
+ export type CollectionInteractionsProps = {
3
+ children: ReactNode;
4
+ };
5
+ declare const CollectionInteractions: ({ children }: CollectionInteractionsProps) => ReactNode;
6
+ export default CollectionInteractions;
@@ -0,0 +1,7 @@
1
+ import { ReactNode } from 'react';
2
+ export type PageInteractionsProps = {
3
+ children: ReactNode;
4
+ previewMode?: boolean;
5
+ };
6
+ declare const PageInteractions: ({ children, previewMode }: PageInteractionsProps) => ReactNode;
7
+ export default PageInteractions;
@@ -0,0 +1,10 @@
1
+ import { RenderMode } from '@plitzi/sdk-shared';
2
+ import { ReactNode } from 'react';
3
+ export type NavigationContextProviderProps = {
4
+ children: ReactNode;
5
+ renderMode?: RenderMode;
6
+ currentPageId?: string;
7
+ previewMode?: boolean;
8
+ };
9
+ declare const NavigationContextProvider: ({ children, renderMode, currentPageId: currentPageIdProp, previewMode }: NavigationContextProviderProps) => import("react/jsx-runtime").JSX.Element | "Not Found" | "Access Denied";
10
+ export default NavigationContextProvider;
@@ -0,0 +1,18 @@
1
+ import { Environment, OfflineDataRaw, Server } from '@plitzi/sdk-shared';
2
+ import { ReactNode } from 'react';
3
+ export type NetworkContextProviderProps = {
4
+ children: ReactNode;
5
+ server: Server;
6
+ revision?: number;
7
+ webKey?: string;
8
+ webId: number;
9
+ userKey?: string;
10
+ instanceId?: string;
11
+ environment?: Environment;
12
+ offlineMode?: boolean;
13
+ offlineData?: OfflineDataRaw;
14
+ offlineDataType?: 'json' | 'yaml';
15
+ debugMode?: boolean;
16
+ };
17
+ declare const NetworkContextProvider: ({ children, server, revision, webKey, webId, userKey, instanceId, environment, offlineMode, offlineData, offlineDataType, debugMode }: NetworkContextProviderProps) => import("react/jsx-runtime").JSX.Element | null;
18
+ export default NetworkContextProvider;
@@ -0,0 +1,9 @@
1
+ import { ComponentDefinition, RenderMode } from '@plitzi/sdk-shared';
2
+ export type PluginsContextProviderProps = {
3
+ children: React.ReactNode;
4
+ renderMode?: RenderMode;
5
+ plugins?: Record<string, ComponentDefinition>;
6
+ sdkStylePath?: string;
7
+ };
8
+ declare const PluginsContextProvider: ({ children, renderMode, plugins: pluginsProp, sdkStylePath }: PluginsContextProviderProps) => import("react/jsx-runtime").JSX.Element;
9
+ export default PluginsContextProvider;
@@ -0,0 +1,8 @@
1
+ import { Schema } from '@plitzi/sdk-shared';
2
+ import { ReactNode } from 'react';
3
+ export type SchemaContextProviderProps = {
4
+ children: ReactNode;
5
+ schema?: Schema;
6
+ };
7
+ declare const SchemaContextProvider: ({ children, schema: schemaProp }: SchemaContextProviderProps) => ReactNode;
8
+ export default SchemaContextProvider;
@@ -0,0 +1,16 @@
1
+ import { Environment, RenderMode, Server } from '@plitzi/sdk-shared';
2
+ export type SdkProps = {
3
+ renderMode?: RenderMode;
4
+ externalStyle?: string;
5
+ environment?: Environment;
6
+ isHydrating?: boolean;
7
+ previewMode?: boolean;
8
+ debugMode?: boolean;
9
+ sdkStylePath?: string;
10
+ server?: Server;
11
+ };
12
+ declare const Sdk: {
13
+ ({ renderMode, externalStyle, environment, previewMode, isHydrating, debugMode, sdkStylePath, server }: SdkProps): import("react/jsx-runtime").JSX.Element;
14
+ Plugin: (_props: import('./SdkPlugin').SdkPluginProps) => undefined;
15
+ };
16
+ export default Sdk;
@@ -0,0 +1,11 @@
1
+ import { Asset, ComponentDefinition, ComponentPluginFC } from '@plitzi/sdk-shared';
2
+ import { FC } from 'react';
3
+ export type SdkPluginProps = {
4
+ renderType: string;
5
+ component: ComponentPluginFC;
6
+ settings?: FC<any>;
7
+ definition?: ComponentDefinition;
8
+ assets?: Asset[];
9
+ };
10
+ declare const SdkPlugin: (_props: SdkPluginProps) => undefined;
11
+ export default SdkPlugin;
@@ -0,0 +1,5 @@
1
+ export type MadeInPlitziProps = {
2
+ pageId?: string;
3
+ };
4
+ declare const MadeInPlitzi: ({ pageId }: MadeInPlitziProps) => import("react/jsx-runtime").JSX.Element;
5
+ export default MadeInPlitzi;
@@ -0,0 +1,3 @@
1
+ import { default as MadeInPlitzi } from './MadeInPlitzi';
2
+ export * from './MadeInPlitzi';
3
+ export { MadeInPlitzi };
@@ -0,0 +1,3 @@
1
+ import { default as Sdk } from './Sdk';
2
+ export * from './Sdk';
3
+ export default Sdk;
@@ -0,0 +1,12 @@
1
+ import { Asset } from '@plitzi/plitzi-ui/ContainerFrame';
2
+ import { PlitziServiceContextValue } from '@plitzi/sdk-shared/hooks/usePlitziServiceContext';
3
+ import { RefObject } from 'react';
4
+ export type IframeModeProps = {
5
+ pageId?: string;
6
+ style?: string;
7
+ plitziContextValue: PlitziServiceContextValue;
8
+ assets: Record<string, Asset>;
9
+ ref: RefObject<HTMLIFrameElement | null>;
10
+ };
11
+ declare const _default: import('react').MemoExoticComponent<({ pageId, style, plitziContextValue, assets, ref }: IframeModeProps) => import("react/jsx-runtime").JSX.Element>;
12
+ export default _default;
@@ -0,0 +1,10 @@
1
+ import { RenderMode } from '@plitzi/sdk-shared';
2
+ import { PlitziServiceContextValue } from '@plitzi/sdk-shared/hooks/usePlitziServiceContext';
3
+ export type RawModeProps = {
4
+ renderMode?: RenderMode;
5
+ pageId?: string;
6
+ style?: string;
7
+ plitziContextValue: PlitziServiceContextValue;
8
+ };
9
+ declare const _default: import('react').MemoExoticComponent<({ pageId, style, plitziContextValue, renderMode }: RawModeProps) => import("react/jsx-runtime").JSX.Element>;
10
+ export default _default;
@@ -0,0 +1,11 @@
1
+ import { Asset } from '@plitzi/plitzi-ui/ContainerFrame';
2
+ import { PlitziServiceContextValue } from '@plitzi/sdk-shared/hooks/usePlitziServiceContext';
3
+ export type ShadowModeProps = {
4
+ pageId?: string;
5
+ sdkStylePath?: string;
6
+ style?: string;
7
+ plitziContextValue: PlitziServiceContextValue;
8
+ assets: Record<string, Asset>;
9
+ };
10
+ declare const _default: import('react').MemoExoticComponent<({ pageId, sdkStylePath, style, plitziContextValue, assets }: ShadowModeProps) => import("react/jsx-runtime").JSX.Element>;
11
+ export default _default;
@@ -0,0 +1,6 @@
1
+ import { ReactNode } from 'react';
2
+ export type SegmentsContextProviderProps = {
3
+ children: ReactNode;
4
+ };
5
+ declare const SegmentsContextProvider: ({ children }: SegmentsContextProviderProps) => import("react/jsx-runtime").JSX.Element;
6
+ export default SegmentsContextProvider;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,6 @@
1
+ import { ReactNode } from 'react';
2
+ export type SpaceContainerProps = {
3
+ children: ReactNode;
4
+ };
5
+ declare const SpaceContainer: ({ children }: SpaceContainerProps) => import("react/jsx-runtime").JSX.Element;
6
+ export default SpaceContainer;
@@ -0,0 +1,6 @@
1
+ import { ReactNode } from 'react';
2
+ export type SpaceContainerInternalProps = {
3
+ children: ReactNode;
4
+ };
5
+ declare const SpaceContainerInternal: ({ children }: SpaceContainerInternalProps) => import("react/jsx-runtime").JSX.Element;
6
+ export default SpaceContainerInternal;
@@ -0,0 +1,2 @@
1
+ declare const SpaceContext: import('react').Context<Record<string, unknown>>;
2
+ export default SpaceContext;
@@ -0,0 +1,6 @@
1
+ import { ReactNode } from 'react';
2
+ export type SpaceContextProviderProps = {
3
+ children: ReactNode;
4
+ };
5
+ declare const SpaceContextProvider: ({ children }: SpaceContextProviderProps) => import("react/jsx-runtime").JSX.Element;
6
+ export default SpaceContextProvider;
@@ -0,0 +1 @@
1
+ export {};