@pillar-ai/sdk 0.1.26 → 0.1.27

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.
@@ -76,16 +76,16 @@ export declare class Pillar {
76
76
  /**
77
77
  * Create or get the shared root container for all Pillar UI elements.
78
78
  * Uses isolation: isolate to create a new stacking context.
79
- * Z-index varies by panel mode:
80
- * - Push mode: 1000 (above typical navbars but not extreme)
81
- * - Hover/overlay mode: 9999 (floats above host app content)
79
+ * Z-index varies by panel mode (configurable via zIndex option):
80
+ * - Push mode: config.zIndex.push (default: 1)
81
+ * - Hover/overlay mode: config.zIndex.hover (default: 9999)
82
82
  */
83
83
  private _createRootContainer;
84
84
  /**
85
85
  * Subscribe to hover mode changes and update root container z-index.
86
- * Push mode uses a moderate z-index (1000) so the panel sits alongside content
87
- * without dominating the stacking order. Hover/overlay mode uses a high z-index
88
- * (9999) so the panel floats above the host app.
86
+ * Push mode uses a low z-index so the panel sits alongside content without
87
+ * dominating the stacking order. Hover/overlay mode uses a high z-index
88
+ * so the panel floats above the host app.
89
89
  */
90
90
  private _subscribeToHoverModeForRoot;
91
91
  /**
@@ -302,6 +302,25 @@ export interface MobileTriggerConfig {
302
302
  */
303
303
  offset?: number;
304
304
  }
305
+ /**
306
+ * Z-index configuration for the SDK root container.
307
+ * Controls stacking order relative to host app content.
308
+ */
309
+ export interface ZIndexConfig {
310
+ /**
311
+ * Z-index when panel is in push mode (shifts content aside).
312
+ * Use a low value so the panel sits alongside content without
313
+ * dominating the stacking order.
314
+ * @default 1
315
+ */
316
+ push?: number;
317
+ /**
318
+ * Z-index when panel is in hover/overlay mode (floats over content).
319
+ * Use a high value so the panel floats above host app content.
320
+ * @default 9999
321
+ */
322
+ hover?: number;
323
+ }
305
324
  export interface PillarConfig {
306
325
  /**
307
326
  * Your product key from the Pillar app.
@@ -370,6 +389,11 @@ export interface PillarConfig {
370
389
  * ```
371
390
  */
372
391
  customCSS?: string;
392
+ /**
393
+ * Z-index configuration for the SDK root container.
394
+ * Controls stacking order relative to host app content.
395
+ */
396
+ zIndex?: ZIndexConfig;
373
397
  /** Called when the SDK is initialized and ready. */
374
398
  onReady?: () => void;
375
399
  /** Called when the SDK encounters an error. */
@@ -457,6 +481,7 @@ export interface ResolvedConfig {
457
481
  sidebarTabs: SidebarTabConfig[];
458
482
  theme: ResolvedThemeConfig;
459
483
  customCSS?: string;
484
+ zIndex: Required<ZIndexConfig>;
460
485
  onReady?: () => void;
461
486
  onError?: (error: Error) => void;
462
487
  }
package/dist/index.d.ts CHANGED
@@ -20,7 +20,7 @@
20
20
  */
21
21
  export { EventEmitter, type CardCallbacks, type CardRenderer, type PillarEvents, type TaskExecutePayload, } from "./core/events";
22
22
  export { Pillar, type ChatContext, type PillarState, type ToolInfo } from "./core/Pillar";
23
- export { DEFAULT_SIDEBAR_TABS, type DOMScanningConfig, type EdgeTriggerConfig, type InteractionHighlightConfig, type MobileTriggerConfig, type MobileTriggerIcon, type MobileTriggerPosition, type MobileTriggerSize, type PanelConfig, type PanelMode, type PanelPosition, type PillarConfig, type ResolvedConfig, type ResolvedDOMScanningConfig, type ResolvedInteractionHighlightConfig, type ResolvedMobileTriggerConfig, type ResolvedPanelConfig, type ResolvedSuggestionsConfig, type ResolvedThemeConfig, type SidebarTabConfig, type SuggestionsConfig, type TextSelectionConfig, type ThemeColors, type ThemeConfig, type ThemeMode, type UrlParamsConfig, } from "./core/config";
23
+ export { DEFAULT_SIDEBAR_TABS, type DOMScanningConfig, type EdgeTriggerConfig, type InteractionHighlightConfig, type MobileTriggerConfig, type MobileTriggerIcon, type MobileTriggerPosition, type MobileTriggerSize, type PanelConfig, type PanelMode, type PanelPosition, type PillarConfig, type ResolvedConfig, type ResolvedDOMScanningConfig, type ResolvedInteractionHighlightConfig, type ResolvedMobileTriggerConfig, type ResolvedPanelConfig, type ResolvedSuggestionsConfig, type ResolvedThemeConfig, type SidebarTabConfig, type SuggestionsConfig, type TextSelectionConfig, type ThemeColors, type ThemeConfig, type ThemeMode, type UrlParamsConfig, type ZIndexConfig, } from "./core/config";
24
24
  export { type AssistantContext, type Context, type Suggestion, type UserProfile, } from "./core/context";
25
25
  export { clearRegistry, getToolCount, getToolDefinition, getToolNames, getClientInfo, getHandler, getManifest, hasTool, setClientInfo, type ToolDataSchema, type ToolDataSchemaProperty, type ToolDataType, type ToolDefinition, type ToolDefinitions, type ToolManifest, type ToolManifestEntry, type ToolNames, type ToolType, type ToolTypeDataMap, type ToolExecuteResult, type ToolSchema, type ClientInfo, type CopyTextData, type ExternalLinkData, type InlineUIData, type NavigateToolData, type TriggerToolData, type QueryToolData, type Platform, type SyncToolDefinition, type SyncToolDefinitions, type TypedOnTask, type TypedPillarMethods, type TypedTaskHandler, getActionCount, getActionDefinition, getActionNames, hasAction, type ActionDataSchema, type ActionDataSchemaProperty, type ActionDataType, type ActionDefinition, type ActionDefinitions, type ActionManifest, type ActionManifestEntry, type ActionNames, type ActionType, type ActionTypeDataMap, type ActionResult, type ActionSchema, type NavigateActionData, type TriggerActionData, type QueryActionData, type SyncActionDefinition, type SyncActionDefinitions, } from "./tools";
26
26
  export { APIClient, type ArticleSummary, type ChatMessage, type ChatResponse, type ProgressEvent, } from "./api/client";