@plitzi/plitzi-sdk 0.37.1 → 0.37.3

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 (38) hide show
  1. package/CHANGELOG.md +1314 -0
  2. package/dist/App.d.ts +1 -4
  3. package/dist/index.d.ts +13 -8
  4. package/dist/index.html +2 -1
  5. package/dist/modules/App/AppMain.d.ts +1 -2
  6. package/dist/modules/App/SpaceThemeProvider.d.ts +19 -0
  7. package/dist/modules/App/ThemedRoot.d.ts +1 -1
  8. package/dist/modules/Element/elements/PlitziSdk/PlitziSdk.d.ts +2 -2
  9. package/dist/modules/Element/elements/PlitziSdk/index.d.ts +2 -2
  10. package/dist/modules/Navigation/NavigationProvider.d.ts +1 -1
  11. package/dist/modules/Network/NetworkContextProvider.d.ts +1 -1
  12. package/dist/modules/Network/graphqlClient.d.ts +18 -0
  13. package/dist/modules/Plugins/PluginsContextProvider.d.ts +1 -1
  14. package/dist/modules/Sdk/Sdk.d.ts +1 -4
  15. package/dist/modules/Sdk/components/OverQuotaNotice.d.ts +3 -3
  16. package/dist/modules/Sdk/components/index.d.ts +1 -3
  17. package/dist/modules/Sdk/renderModes/IframeMode.d.ts +1 -2
  18. package/dist/modules/Sdk/renderModes/RawMode.d.ts +1 -2
  19. package/dist/modules/Sdk/renderModes/ShadowMode.d.ts +1 -2
  20. package/dist/modules/Segments/SegmentsContextProvider.d.ts +1 -1
  21. package/dist/modules/Space/SpaceContainer.d.ts +1 -1
  22. package/dist/modules/Space/SpaceContainerInternal.d.ts +1 -1
  23. package/dist/plitzi-sdk-devtools-Q71kUXbL.js +294 -0
  24. package/dist/plitzi-sdk-devtools-Q71kUXbL.js.gz +0 -0
  25. package/dist/plitzi-sdk-devtools.css +1 -1
  26. package/dist/plitzi-sdk-devtools.css.gz +0 -0
  27. package/dist/plitzi-sdk.css +1 -1
  28. package/dist/plitzi-sdk.css.gz +0 -0
  29. package/dist/plitzi-sdk.js +146 -616
  30. package/dist/plitzi-sdk.js.gz +0 -0
  31. package/package.json +25 -27
  32. package/dist/modules/App/AppHelper.d.ts +0 -3
  33. package/dist/modules/Sdk/components/MadeInPlitzi.d.ts +0 -5
  34. package/dist/modules/Space/SpaceContext.d.ts +0 -2
  35. package/dist/modules/Space/SpaceContextProvider.d.ts +0 -6
  36. package/dist/rolldown-runtime-CxhCXM28.js +0 -1
  37. package/dist/withElement-DQp0W7sT.js +0 -5
  38. /package/dist/modules/{index.d.ts → Network/graphqlClient.test.d.ts} +0 -0
package/dist/App.d.ts CHANGED
@@ -25,9 +25,6 @@ export type AppProps = {
25
25
  debugMode?: boolean;
26
26
  isHydrating?: boolean;
27
27
  previewMode?: boolean;
28
- /** Shows the "Made in Plitzi" link over the rendered space; off for embeds that are not a Plitzi site of their
29
- * own (an MCP widget rendered inside a chat, a component mounted in a host app). */
30
- branding?: boolean;
31
28
  /** Set by the server that metered this render: the account behind this space is over its quota, so the page says
32
29
  * so. Never authored — a space cannot turn it off from its own settings. */
33
30
  overQuota?: boolean;
@@ -49,5 +46,5 @@ export type AppProps = {
49
46
  onInitStateManager?: (instance: RuntimeStateInstance) => void;
50
47
  onInitEventBridge?: (instance: EventBridgeContextValue) => void;
51
48
  };
52
- declare const App: ({ className, children, webKey, server, renderMode, routing, debugMode: debugModeProp, themeScope, theme, state, ...sdkProps }: AppProps) => import("react").JSX.Element;
49
+ declare const App: ({ className, children, webKey, server, renderMode, routing, debugMode: debugModeProp, themeScope, theme, state, ...sdkProps }: AppProps) => import('react').JSX.Element;
53
50
  export default App;
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { default as ComponentProvider } from '@plitzi/sdk-elements/Component/ComponentProvider';
2
1
  import { default as sdkComponents } from './modules/Element';
2
+ import { default as ComponentProvider } from '@plitzi/sdk-elements/Component/ComponentProvider';
3
3
  import { default as withElement } from '@plitzi/sdk-elements/Element/hocs/withElement';
4
4
  import { default as useElement } from '@plitzi/sdk-elements/Element/hooks/useElement';
5
5
  import { default as useRscData } from '@plitzi/sdk-elements/Element/hooks/useRscData';
@@ -8,6 +8,7 @@ import { default as PluginManager } from '@plitzi/sdk-elements/Element/PluginMan
8
8
  import { default as PluginRemote } from '@plitzi/sdk-elements/Element/PluginRemote';
9
9
  import { default as ReplicaProvider } from '@plitzi/sdk-elements/Element/ReplicaProvider';
10
10
  import { default as RootElement } from '@plitzi/sdk-elements/Element/RootElement';
11
+ import { default as useChannel, ChannelHandle } from '@plitzi/sdk-elements/realtime/useChannel';
11
12
  import { default as ComponentContext } from '@plitzi/sdk-shared/elements/ComponentContext';
12
13
  import { PlitziServiceProvider } from '@plitzi/sdk-shared/hooks/usePlitziServiceContext';
13
14
  import { default as useRscRefresh } from '@plitzi/sdk-shared/server/rsc/useRscRefresh';
@@ -16,7 +17,9 @@ import { track } from './modules/Analytics';
16
17
  import { ElementContextValue } from '@plitzi/sdk-elements/Element/ElementContext';
17
18
  import { default as EventBridge } from '@plitzi/sdk-event-bridge';
18
19
  import { default as InteractionsManager } from '@plitzi/sdk-interactions/InteractionsManager';
19
- import { ActionRunSummary, AnalyticsConfig, Element, Schema, Style, ComponentPluginFC, ComponentPlugin, InteractionCallback, InteractionCallbackParamValues, Environment, EventBridgeContextValue, HostActions, OfflineDataRaw, RenderMode, Server, RuntimeStateInstance, Theme, ThemeScope, PlitziServiceContextValue as BasePlitziServiceContextValue } from '@plitzi/sdk-shared';
20
+ import { ActionRunSummary, AnalyticsConfig, Element, Schema, Style, ComponentPluginFC, ComponentPlugin, InteractionCallback, InteractionCallbackParamValues, Environment, EventBridgeContextValue, HostActions, OfflineDataRaw, RenderMode, Server, RuntimeStateInstance, Theme, ThemeScope, PlitziServiceContextValue as BasePlitziServiceContextValue, RealtimeMessage } from '@plitzi/sdk-shared';
21
+ import { PluginDeclaration } from '@plitzi/sdk-shared/authoring/declare';
22
+ import { RealtimeMember } from '@plitzi/sdk-shared/realtime';
20
23
  import { ReactNode } from 'react';
21
24
  /**
22
25
  * A registered plugin is a COMPONENT, not a decorated one.
@@ -68,11 +71,13 @@ export type PlitziSdkProps = {
68
71
  debugMode?: boolean;
69
72
  /** What the server ran to build this page, for the dev-tools. Only ever sent to a page allowed to debug them. */
70
73
  actionRuns?: ActionRunSummary[];
74
+ /**
75
+ * Set by the server that rendered this page: `offlineData.style.cache` was left out of the payload because the
76
+ * page's own stylesheet holds it, and `render()` reads it back from there before hydrating.
77
+ */
78
+ styleCacheInDocument?: boolean;
71
79
  isHydrating?: boolean;
72
80
  previewMode?: boolean;
73
- /** Shows the "Made in Plitzi" link over the rendered space; off for embeds that are not a Plitzi site of their
74
- * own (an MCP widget rendered inside a chat, a component mounted in a host app). */
75
- branding?: boolean;
76
81
  /** Set by the server that metered this render: the account behind this space is over its quota, so the page says
77
82
  * so. Never authored — a space cannot turn it off from its own settings. */
78
83
  overQuota?: boolean;
@@ -109,13 +114,13 @@ export type PlitziSdkProps = {
109
114
  theme?: Theme;
110
115
  };
111
116
  declare const PlitziSdk: {
112
- ({ debugMode, isHydrating, children, webKey, environment, renderMode, ...otherProps }: PlitziSdkProps): import("react").JSX.Element;
117
+ ({ debugMode, isHydrating, children, webKey, environment, renderMode, ...otherProps }: PlitziSdkProps): import('react').JSX.Element;
113
118
  Plugin: (_props: import('./modules/Sdk/SdkPlugin').SdkPluginProps) => undefined;
114
119
  };
115
120
  type PlitziServiceContextValue = BasePlitziServiceContextValue<InstanceType<typeof EventBridge>, InstanceType<typeof InteractionsManager>>;
116
121
  declare const usePlitziServiceContext: () => PlitziServiceContextValue;
117
- export { track, useSdkStore as useStore, ComponentProvider, ComponentContext, usePlitziServiceContext, PlitziServiceProvider, RootElement, withElement, JsxManager, PluginManager, sdkComponents, PluginRemote, ReplicaProvider, useElement, useRscData, useRscRefresh };
118
- export type { AnalyticsConfig, ElementContextValue, Element, Schema, Style, ComponentPlugin, ComponentPluginFC, PlitziServiceContextValue, OfflineDataRaw, InteractionCallback, InteractionCallbackParamValues };
122
+ export { track, useSdkStore as useStore, ComponentProvider, ComponentContext, usePlitziServiceContext, PlitziServiceProvider, RootElement, withElement, JsxManager, PluginManager, sdkComponents, PluginRemote, ReplicaProvider, useElement, useRscData, useRscRefresh, useChannel };
123
+ export type { AnalyticsConfig, ElementContextValue, Element, Schema, Style, ComponentPlugin, ComponentPluginFC, PlitziServiceContextValue, OfflineDataRaw, InteractionCallback, InteractionCallbackParamValues, PluginDeclaration, ChannelHandle, RealtimeMember, RealtimeMessage };
119
124
  export declare const version: string;
120
125
  export declare const getStateManager: () => RuntimeStateInstance;
121
126
  export declare const getEventBridge: () => EventBridgeContextValue;
package/dist/index.html CHANGED
@@ -24,6 +24,7 @@
24
24
  "react-dom": "/plitzi-sdk-vendor.js",
25
25
  "react-dom/client": "/plitzi-sdk-vendor.js",
26
26
  "react/jsx-runtime": "/plitzi-sdk-vendor.js",
27
+ "react/compiler-runtime": "/plitzi-sdk-vendor.js",
27
28
  "@plitzi/plitzi-sdk": "/plitzi-sdk.js"
28
29
  }
29
30
  }
@@ -57,7 +58,7 @@
57
58
  render(
58
59
  'plitzi',
59
60
  {
60
- webKey: 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxIiwib3JpZ2lucyI6WyJodHRwczovL3dlYnNpdGUucGxpdHppLmFwcCIsImh0dHBzOi8vcGxpdHppLmxvY2FsIiwiaHR0cHM6Ly9hcHAucGxpdHppLmxvY2FsIiwiaHR0cHM6Ly9hcHAucGxpdHppLmxvY2FsOjMwMDAiLCJodHRwczovL2FwcC5wbGl0emkubG9jYWw6MzAwMSIsImh0dHBzOi8vc3NyLnBsaXR6aS5sb2NhbCIsImh0dHBzOi8vc2VydmVyLnBsaXR6aS5sb2NhbCIsImh0dHA6Ly9sb2NhbGhvc3Q6MzAwMCIsImh0dHA6Ly9sb2NhbGhvc3Q6ODA4MCIsImh0dHA6Ly8xMjcuMC4wLjE6ODA4MCJdLCJpc3MiOiJodHRwczovL3NlcnZlci5wbGl0emkubG9jYWwiLCJhdWQiOlsiaHR0cHM6Ly9wbGl0emkubG9jYWwiLCJodHRwczovL2FwcC5wbGl0emkubG9jYWwiLCJodHRwczovL2FwcC5wbGl0emkubG9jYWw6MzAwMCIsImh0dHBzOi8vYXBwLnBsaXR6aS5sb2NhbDozMDAxIiwiaHR0cHM6Ly9hcGkucGxpdHppLmxvY2FsIiwiaHR0cHM6Ly9zc3IucGxpdHppLmxvY2FsIiwiaHR0cHM6Ly9zZXJ2ZXIucGxpdHppLmxvY2FsIiwiaHR0cHM6Ly9tY3AucGxpdHppLmxvY2FsIiwiaHR0cHM6Ly9hdXRoLnBsaXR6aS5sb2NhbCIsImh0dHA6Ly8xMjcuMC4wLjE6NTMwMCIsImh0dHA6Ly9sb2NhbGhvc3Q6NTE4MCJdLCJzY29wZSI6InNwYWNlOnJlbmRlciIsImlhdCI6MTc4OTg0OTYyMywianRpIjoiMmM0ZTRkNDI1NzEzMTI4YyIsIm5iZiI6MTc4OTg0OTYyM30.VKxz7K9A8tvKnCwWLnB02NgAQY7Oftr6NzAXH8v4nsU',
61
+ webKey: 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxIiwib3JpZ2lucyI6WyJodHRwczovL3dlYnNpdGUucGxpdHppLmFwcCIsImh0dHBzOi8vcGxpdHppLmxvY2FsIiwiaHR0cHM6Ly9hcHAucGxpdHppLmxvY2FsIiwiaHR0cHM6Ly9hcHAucGxpdHppLmxvY2FsOjMwMDAiLCJodHRwczovL2FwcC5wbGl0emkubG9jYWw6MzAwMSIsImh0dHBzOi8vc3NyLnBsaXR6aS5sb2NhbCIsImh0dHBzOi8vc2VydmVyLnBsaXR6aS5sb2NhbCIsImh0dHA6Ly9sb2NhbGhvc3Q6MzAwMCIsImh0dHA6Ly9sb2NhbGhvc3Q6ODA4MCIsImh0dHA6Ly8xMjcuMC4wLjE6ODA4MCIsImh0dHBzOi8vZGV2LnBsaXR6aS5jb20iLCJodHRwczovL3BsaXR6aS5jb20iLCJodHRwczovL3N0Zy5wbGl0emkuY29tIl0sImlzcyI6Imh0dHBzOi8vc2VydmVyLnBsaXR6aS5sb2NhbCIsImF1ZCI6WyJodHRwczovL3BsaXR6aS5sb2NhbCIsImh0dHBzOi8vYXBwLnBsaXR6aS5sb2NhbCIsImh0dHBzOi8vYXBwLnBsaXR6aS5sb2NhbDozMDAwIiwiaHR0cHM6Ly9hcHAucGxpdHppLmxvY2FsOjMwMDEiLCJodHRwczovL2FwaS5wbGl0emkubG9jYWwiLCJodHRwczovL3Nzci5wbGl0emkubG9jYWwiLCJodHRwczovL3NlcnZlci5wbGl0emkubG9jYWwiLCJodHRwczovL21jcC5wbGl0emkubG9jYWwiLCJodHRwczovL2F1dGgucGxpdHppLmxvY2FsIiwiaHR0cDovLzEyNy4wLjAuMTo1MzAwIiwiaHR0cDovL2xvY2FsaG9zdDo1MTgwIl0sInNjb3BlIjoic3BhY2U6cmVuZGVyIiwiaWF0IjoxNzkwMjEzMjg5LCJqdGkiOiJhZDgyN2EyMjliZjhlMzk3IiwibmJmIjoxNzkwMjEzMjg5fQ.dedpVVA5Nv3Xr7nEOZ8UmEJcIamF9AHGnLgqQyDV8-k',
61
62
  environment: 'main',
62
63
  revision: 0,
63
64
  renderMode: 'raw',
@@ -16,7 +16,6 @@ export type AppMainProps = {
16
16
  sdkDevToolsStylePath?: string;
17
17
  previewMode?: boolean;
18
18
  debugMode?: boolean;
19
- branding?: boolean;
20
19
  /** Set by the server that metered this render: the account behind this space is over its quota. */
21
20
  overQuota?: boolean;
22
21
  analytics?: AnalyticsConfig;
@@ -28,5 +27,5 @@ export type AppMainProps = {
28
27
  onInitStateManager?: (instance: RuntimeStateInstance) => void;
29
28
  onInitEventBridge?: (instance: EventBridgeContextValue) => void;
30
29
  };
31
- declare const AppMain: ({ revision, webKey, webId, environment, currentPageId, server, isHydrating, offlineMode, offlineData, offlineDataType, instanceId, renderMode, sdkStylePath, sdkDevToolsStylePath, previewMode, debugMode, overQuota, analytics, onInitEventBridge, hostData, hostActions, onInitStateManager, ...sdkProps }: AppMainProps) => import("react").JSX.Element;
30
+ declare const AppMain: ({ revision, webKey, webId, environment, currentPageId, server, isHydrating, offlineMode, offlineData, offlineDataType, instanceId, renderMode, sdkStylePath, sdkDevToolsStylePath, previewMode, debugMode, overQuota, analytics, onInitEventBridge, hostData, hostActions, onInitStateManager, ...sdkProps }: AppMainProps) => import('react').JSX.Element;
32
31
  export default AppMain;
@@ -0,0 +1,19 @@
1
+ import { ThemeScope } from '@plitzi/sdk-shared';
2
+ import { Theme } from '@plitzi/sdk-shared/types';
3
+ import { ReactNode } from 'react';
4
+ export type SpaceThemeProviderProps = {
5
+ scope: ThemeScope;
6
+ /** A theme the host already settled — the cookie a server read — which wins over everything here. */
7
+ theme?: Theme;
8
+ children?: ReactNode;
9
+ };
10
+ /**
11
+ * The theme provider, starting where the SPACE says to start.
12
+ *
13
+ * `style.theme.default` is what a space declares a first visit looks like; the provider was mounted with a hard-coded
14
+ * `system`, so the setting was stored, edited in the builder and written by authoring, and never rendered. It is read
15
+ * from the store because a space fetched after mount arrives there late — the provider re-applies its default when
16
+ * it does, and a visitor's own choice (the cookie) still wins.
17
+ */
18
+ declare const SpaceThemeProvider: ({ scope, theme, children }: SpaceThemeProviderProps) => import('react').JSX.Element;
19
+ export default SpaceThemeProvider;
@@ -16,5 +16,5 @@ export type ThemedRootProps = {
16
16
  * `system` writes nothing, here as everywhere else: with no class the space inherits whatever the host document
17
17
  * settled on, which for an embedded surface is the right default.
18
18
  */
19
- declare const ThemedRoot: ({ className, scoped, children }: ThemedRootProps) => import("react").JSX.Element;
19
+ declare const ThemedRoot: ({ className, scoped, children }: ThemedRootProps) => import('react').JSX.Element;
20
20
  export default ThemedRoot;
@@ -6,9 +6,9 @@ export type PlitziSdkProps = {
6
6
  spaceKey?: string;
7
7
  environment?: Environment;
8
8
  };
9
- declare const PlitziSdk: ({ ref, className, spaceKey, environment }: PlitziSdkProps) => import("react").JSX.Element;
9
+ declare const PlitziSdk: ({ ref, className, spaceKey, environment }: PlitziSdkProps) => import('react').JSX.Element;
10
10
  declare const _default: {
11
- (props: import('@plitzi/sdk-elements/Element/hocs/withElement').WithElementProps<PlitziSdkProps>): import("react").JSX.Element;
11
+ (props: import('@plitzi/sdk-elements/Element/hocs/withElement').WithElementProps<PlitziSdkProps>): import('react').JSX.Element;
12
12
  displayName: string;
13
13
  };
14
14
  export default _default;
@@ -1,5 +1,5 @@
1
1
  declare const PlitziSdk: {
2
- (props: import('@plitzi/sdk-elements/Element/hocs/withElement').WithElementProps<import('./PlitziSdk').PlitziSdkProps>): import("react").JSX.Element;
2
+ (props: import('@plitzi/sdk-elements/Element/hocs/withElement').WithElementProps<import('./PlitziSdk').PlitziSdkProps>): import('react').JSX.Element;
3
3
  displayName: string;
4
4
  } & {
5
5
  type: string;
@@ -36,7 +36,7 @@ declare const PlitziSdk: {
36
36
  license: string;
37
37
  website: string;
38
38
  backgroundColor: string;
39
- icon: import("react").JSX.Element;
39
+ icon: import('react').JSX.Element;
40
40
  };
41
41
  defaultStyle: {
42
42
  name: string;
@@ -3,5 +3,5 @@ export type NavigationProviderProps = {
3
3
  children: ReactNode;
4
4
  currentPageId?: string;
5
5
  };
6
- declare const NavigationProvider: ({ children, currentPageId: currentPageIdProp }: NavigationProviderProps) => string | number | bigint | boolean | Iterable<ReactNode> | Promise<string | number | bigint | boolean | import('react').ReactPortal | import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | import("react").JSX.Element | null | undefined;
6
+ declare const NavigationProvider: ({ children, currentPageId: currentPageIdProp }: NavigationProviderProps) => string | number | bigint | boolean | Iterable<ReactNode> | Promise<string | number | bigint | boolean | import('react').ReactPortal | import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | import('react').JSX.Element | null | undefined;
7
7
  export default NavigationProvider;
@@ -12,5 +12,5 @@ export type NetworkContextProviderProps = {
12
12
  offlineData?: OfflineDataRaw;
13
13
  offlineDataType?: 'json' | 'yaml';
14
14
  };
15
- declare const NetworkContextProvider: ({ children, server, revision, webKey, webId, userKey, instanceId, offlineMode, offlineData, offlineDataType }: NetworkContextProviderProps) => import("react").JSX.Element | null;
15
+ declare const NetworkContextProvider: ({ children, server, revision, webKey, webId, userKey, instanceId, offlineMode, offlineData, offlineDataType }: NetworkContextProviderProps) => import('react').JSX.Element | null;
16
16
  export default NetworkContextProvider;
@@ -0,0 +1,18 @@
1
+ /** Where a request stopped: never reached the server, refused by it, or answered with errors in place of data. */
2
+ export type GraphqlFailure = 'network' | 'http' | 'graphql';
3
+ export declare class GraphqlRequestError extends Error {
4
+ readonly failure: GraphqlFailure;
5
+ readonly statusCode?: number;
6
+ constructor(message: string, failure: GraphqlFailure, statusCode?: number);
7
+ }
8
+ export type GraphqlClient = {
9
+ request: <T>(document: string, variables?: Record<string, unknown>) => Promise<T>;
10
+ };
11
+ /**
12
+ * What the SDK sends its server: a handful of queries, always to the network, never cached, never subscribed to. A
13
+ * GraphQL client with a normalized cache would be most of the SDK's weight for that, so this is a `fetch`.
14
+ *
15
+ * A refusal still counts for the session: it goes to the auth-failure channel, the way the builder's Apollo link sends
16
+ * it, so a session revoked elsewhere is noticed by whichever request is refused next.
17
+ */
18
+ export declare const createGraphqlClient: (uri: string, webKey: string) => GraphqlClient;
@@ -4,5 +4,5 @@ export type PluginsContextProviderProps = {
4
4
  plugins?: Record<string, ComponentDefinition>;
5
5
  sdkStylePath?: string;
6
6
  };
7
- declare const PluginsContextProvider: ({ children, plugins: pluginsProp, sdkStylePath }: PluginsContextProviderProps) => import("react").JSX.Element;
7
+ declare const PluginsContextProvider: ({ children, plugins: pluginsProp, sdkStylePath }: PluginsContextProviderProps) => import('react').JSX.Element;
8
8
  export default PluginsContextProvider;
@@ -1,14 +1,11 @@
1
1
  import { Server } from '@plitzi/sdk-shared';
2
2
  export type SdkProps = {
3
3
  externalStyle?: string;
4
- /** Shows the "Made in Plitzi" link over the rendered space. Off for embeds that are not a Plitzi site of their
5
- * own — an MCP widget inside a chat, a component mounted in a host app. */
6
- branding?: boolean;
7
4
  sdkStylePath?: string;
8
5
  server?: Server;
9
6
  };
10
7
  declare const Sdk: {
11
- ({ externalStyle, branding, sdkStylePath, server }: SdkProps): import("react").JSX.Element;
8
+ ({ externalStyle, sdkStylePath, server }: SdkProps): import('react').JSX.Element;
12
9
  Plugin: (_props: import('./SdkPlugin').SdkPluginProps) => undefined;
13
10
  };
14
11
  export default Sdk;
@@ -2,11 +2,11 @@
2
2
  * What a site says while it is over its plan's quota.
3
3
  *
4
4
  * The server decides this, not the page: `render.overQuota` is set from what metering answered for THIS render, so
5
- * a space cannot turn it off from its own settings — the same reason the "Made in Plitzi" badge is forced on while
6
- * degraded. It renders nothing at all the rest of the time, which is every render of every paid or in-quota space.
5
+ * a space cannot turn it off from its own settings. It renders nothing at all the rest of the time, which is every
6
+ * render of every paid or in-quota space.
7
7
  *
8
8
  * Deliberately a line and a link rather than a modal or an interstitial: the site still works, its visitors are not
9
9
  * the ones who can fix this, and the person who can is the one who recognises their own site.
10
10
  */
11
- declare const OverQuotaNotice: () => import("react").JSX.Element | null;
11
+ declare const OverQuotaNotice: () => import('react').JSX.Element | null;
12
12
  export default OverQuotaNotice;
@@ -1,4 +1,2 @@
1
- import { default as MadeInPlitzi } from './MadeInPlitzi';
2
1
  import { default as OverQuotaNotice } from './OverQuotaNotice';
3
- export * from './MadeInPlitzi';
4
- export { MadeInPlitzi, OverQuotaNotice };
2
+ export { OverQuotaNotice };
@@ -4,10 +4,9 @@ import { RefObject } from 'react';
4
4
  export type IframeModeProps = {
5
5
  pageId?: string;
6
6
  style?: string;
7
- branding?: boolean;
8
7
  plitziContextValue: PlitziServiceContextValue;
9
8
  assets: Record<string, Asset>;
10
9
  ref: RefObject<HTMLIFrameElement | null>;
11
10
  };
12
- declare const _default: import('react').MemoExoticComponent<({ pageId, style, branding, plitziContextValue, assets, ref }: IframeModeProps) => import("react").JSX.Element>;
11
+ declare const _default: import('react').MemoExoticComponent<({ pageId, style, plitziContextValue, assets, ref }: IframeModeProps) => import('react').JSX.Element>;
13
12
  export default _default;
@@ -4,8 +4,7 @@ export type RawModeProps = {
4
4
  renderMode?: RenderMode;
5
5
  pageId?: string;
6
6
  style?: string;
7
- branding?: boolean;
8
7
  plitziContextValue: PlitziServiceContextValue;
9
8
  };
10
- declare const _default: import('react').MemoExoticComponent<({ pageId, style, branding, plitziContextValue, renderMode }: RawModeProps) => import("react").JSX.Element>;
9
+ declare const _default: import('react').MemoExoticComponent<({ pageId, style, plitziContextValue, renderMode }: RawModeProps) => import('react').JSX.Element>;
11
10
  export default _default;
@@ -4,9 +4,8 @@ export type ShadowModeProps = {
4
4
  pageId?: string;
5
5
  sdkStylePath?: string;
6
6
  style?: string;
7
- branding?: boolean;
8
7
  plitziContextValue: PlitziServiceContextValue;
9
8
  assets: Record<string, Asset>;
10
9
  };
11
- declare const _default: import('react').MemoExoticComponent<({ pageId, sdkStylePath, style, branding, plitziContextValue, assets }: ShadowModeProps) => import("react").JSX.Element>;
10
+ declare const _default: import('react').MemoExoticComponent<({ pageId, sdkStylePath, style, plitziContextValue, assets }: ShadowModeProps) => import('react').JSX.Element>;
12
11
  export default _default;
@@ -2,5 +2,5 @@ import { ReactNode } from 'react';
2
2
  export type SegmentsContextProviderProps = {
3
3
  children: ReactNode;
4
4
  };
5
- declare const SegmentsContextProvider: ({ children }: SegmentsContextProviderProps) => import("react").JSX.Element;
5
+ declare const SegmentsContextProvider: ({ children }: SegmentsContextProviderProps) => import('react').JSX.Element;
6
6
  export default SegmentsContextProvider;
@@ -2,5 +2,5 @@ import { ReactNode } from 'react';
2
2
  export type SpaceContainerProps = {
3
3
  children: ReactNode;
4
4
  };
5
- declare const SpaceContainer: ({ children }: SpaceContainerProps) => import("react").JSX.Element;
5
+ declare const SpaceContainer: ({ children }: SpaceContainerProps) => import('react').JSX.Element;
6
6
  export default SpaceContainer;
@@ -2,5 +2,5 @@ import { ReactNode } from 'react';
2
2
  export type SpaceContainerInternalProps = {
3
3
  children: ReactNode;
4
4
  };
5
- declare const SpaceContainerInternal: ({ children }: SpaceContainerInternalProps) => import("react").JSX.Element;
5
+ declare const SpaceContainerInternal: ({ children }: SpaceContainerInternalProps) => import('react').JSX.Element;
6
6
  export default SpaceContainerInternal;