@syntrologie/runtime-sdk 2.4.0-canary.7 → 2.4.0-canary.9

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.
@@ -1,10 +1,10 @@
1
1
  import { type ReactNode } from 'react';
2
2
  import type { BatchActionHandle } from './actions/types';
3
- import { type CanvasTheme } from './components/ShadowCanvasOverlay';
4
3
  import type { SmartCanvasController } from './controller';
5
4
  import type { ExperimentClient } from './experiments/types';
6
5
  import type { SmartCanvasRuntime } from './runtime';
7
6
  import type { TelemetryClient } from './telemetry/types';
7
+ import type { CanvasThemeConfig } from './theme';
8
8
  import type { CanvasConfigFetcher } from './types';
9
9
  export interface SmartCanvasAppProps {
10
10
  controller: SmartCanvasController;
@@ -29,8 +29,9 @@ export interface SmartCanvasAppProps {
29
29
  footerSlot?: ReactNode;
30
30
  launcherLabel?: string;
31
31
  canvasHost?: HTMLElement | null;
32
- theme?: Partial<CanvasTheme>;
33
32
  /** Batch handle from eager action application in createSmartCanvas(). Prevents double-apply. */
34
33
  initialBatchHandle?: BatchActionHandle | null;
34
+ /** Workspace-level theme for 3-layer inheritance (defaults → workspace → config) */
35
+ workspaceTheme?: CanvasThemeConfig;
35
36
  }
36
- export declare function SmartCanvasApp({ controller, fetcher, configUri, configUriFeatureKey, configFeatureKey, fetchCredentials, pollIntervalMs, experiments, telemetry, runtime, overlayFetcher, overlayConfigUri, overlayConfigFeatureKey, overlayFetchCredentials, footerSlot, launcherLabel, canvasHost, theme, initialBatchHandle, }: SmartCanvasAppProps): import("react/jsx-runtime").JSX.Element;
37
+ export declare function SmartCanvasApp({ controller, fetcher, configUri, configUriFeatureKey, configFeatureKey, fetchCredentials, pollIntervalMs, experiments, telemetry, runtime, overlayFetcher, overlayConfigUri, overlayConfigFeatureKey, overlayFetchCredentials, footerSlot, launcherLabel, canvasHost, initialBatchHandle, workspaceTheme, }: SmartCanvasAppProps): import("react/jsx-runtime").JSX.Element;
package/dist/api.d.ts CHANGED
@@ -4,13 +4,13 @@
4
4
  * Entry point for the SmartCanvas SDK. Creates and manages the canvas element,
5
5
  * handles configuration, and coordinates between the ActionEngine and UI.
6
6
  */
7
- import type { CanvasTheme } from './components/ShadowCanvasOverlay';
8
7
  import type { ExperimentClient } from './experiments/types';
9
8
  import type { OverlayRecipeFetcher } from './overlays/fetcher';
10
9
  import type { ActionHandler, AppearanceConfig, RenderProps } from './render/types';
11
10
  import type { SmartCanvasRuntime } from './runtime';
12
11
  import { type SmartCanvasElement } from './SmartCanvasElement';
13
12
  import type { TelemetryClient } from './telemetry/types';
13
+ import type { CanvasThemeConfig } from './theme';
14
14
  import type { CanvasConfigFetcher, CanvasConfigResponse } from './types';
15
15
  export interface SmartCanvasIntegrations {
16
16
  experiments?: ExperimentClient;
@@ -35,16 +35,16 @@ export interface SmartCanvasConfig {
35
35
  className?: string;
36
36
  };
37
37
  editorUrl?: string;
38
- theme?: Partial<CanvasTheme>;
39
38
  /**
40
39
  * v2 Runtime instance.
41
40
  * Required for action execution. If not provided, actions will not be applied.
42
41
  */
43
42
  runtime?: SmartCanvasRuntime;
44
- autoDetectTheme?: boolean;
45
43
  appearance?: AppearanceConfig;
46
44
  renderProps?: RenderProps;
47
45
  actionHandlers?: ActionHandler;
46
+ /** Workspace-level theme for 3-layer inheritance (defaults → workspace → config) */
47
+ workspaceTheme?: CanvasThemeConfig;
48
48
  }
49
49
  /**
50
50
  * Handle for interacting with a SmartCanvas instance.
@@ -59,11 +59,6 @@ export interface SmartCanvasHandle {
59
59
  * Get the current config.
60
60
  */
61
61
  getConfig(): Promise<CanvasConfigResponse>;
62
- /**
63
- * Update the config and re-apply actions.
64
- * This is the primary way to modify what the canvas displays.
65
- */
66
- updateConfig(newConfig: CanvasConfigResponse): Promise<void>;
67
62
  /**
68
63
  * Enable or disable the canvas.
69
64
  * When disabled, all actions are reverted.