@pillar-ai/sdk 0.1.1 → 0.1.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.
@@ -9,33 +9,6 @@ import type { ExecutionPlan } from '../core/plan';
9
9
  import type { Workflow } from '../core/workflow';
10
10
  import type { UserContextItem } from '../types/user-context';
11
11
  import type { ChatImage, ImageUploadResponse } from './mcp-client';
12
- export interface TooltipData {
13
- id: string;
14
- tooltip_id: string;
15
- name: string;
16
- content: string;
17
- content_html: string;
18
- article_slug?: string;
19
- article_title?: string;
20
- show_learn_more: boolean;
21
- trigger: 'hover' | 'click' | 'focus' | 'icon';
22
- position: 'top' | 'bottom' | 'left' | 'right' | 'auto';
23
- }
24
- export interface ArticleData {
25
- id: string;
26
- title: string;
27
- slug: string;
28
- excerpt?: string;
29
- /** TipTap JSON content - preferred for rendering */
30
- body_json?: Record<string, unknown>;
31
- /** Legacy HTML content - fallback if body_json not available */
32
- content_html?: string;
33
- category_name?: string;
34
- category_slug?: string;
35
- reading_time?: number;
36
- updated_at: string;
37
- related_articles?: ArticleSummary[];
38
- }
39
12
  export interface ArticleSummary {
40
13
  id: string;
41
14
  title: string;
@@ -125,7 +98,6 @@ export declare class APIClient {
125
98
  * @returns Server config or null if fetch fails (SDK continues with defaults)
126
99
  */
127
100
  fetchEmbedConfig(): Promise<ServerEmbedConfig | null>;
128
- getTooltips(ids?: string[]): Promise<TooltipData[]>;
129
101
  /**
130
102
  * Get AI-generated suggested questions for the home view.
131
103
  * Returns action-oriented questions based on the help center's content.
@@ -2,7 +2,6 @@
2
2
  * Components Index
3
3
  */
4
4
  export { Panel, PanelContent, Header, ChatInput, PANEL_STYLES } from './Panel';
5
- export { Tooltip, TooltipManager, TOOLTIP_STYLES } from './Tooltips';
6
5
  export { FloatingButton } from './Button';
7
6
  export { PillarProvider, usePillar, useAPI, useEvents } from './context';
8
7
  export * from './shared';
@@ -16,7 +16,6 @@ export declare class Pillar {
16
16
  private _api;
17
17
  private _mcpClient;
18
18
  private _planExecutor;
19
- private _tooltipManager;
20
19
  private _textSelectionManager;
21
20
  private _panel;
22
21
  private _floatingButton;
@@ -126,18 +125,6 @@ export declare class Pillar {
126
125
  * pillar.setTextSelectionEnabled(true);
127
126
  */
128
127
  setTextSelectionEnabled(enabled: boolean): void;
129
- /**
130
- * Manually trigger tooltip scan
131
- */
132
- scanTooltips(): void;
133
- /**
134
- * Show a specific tooltip
135
- */
136
- showTooltip(tooltipId: string): void;
137
- /**
138
- * Hide a specific tooltip
139
- */
140
- hideTooltip(tooltipId: string): void;
141
128
  /**
142
129
  * Mount the panel to a specific container element.
143
130
  * Used for manual mounting mode (e.g., from React component).
@@ -6,8 +6,6 @@ export type PanelPosition = 'left' | 'right';
6
6
  export type PanelMode = 'overlay' | 'push';
7
7
  export type FloatingButtonPosition = 'bottom-right' | 'bottom-left' | 'top-right' | 'top-left';
8
8
  export type FloatingButtonStyle = 'floating' | 'edge';
9
- export type TooltipTrigger = 'hover' | 'click' | 'focus' | 'icon';
10
- export type TooltipPosition = 'top' | 'bottom' | 'left' | 'right' | 'auto';
11
9
  export type ThemeMode = 'light' | 'dark' | 'auto';
12
10
  /**
13
11
  * Sidebar tab configuration
@@ -105,10 +103,6 @@ export interface FloatingButtonConfig {
105
103
  */
106
104
  style?: FloatingButtonStyle;
107
105
  }
108
- export interface TooltipsConfig {
109
- enabled?: boolean;
110
- defaultTrigger?: TooltipTrigger;
111
- }
112
106
  export interface UrlParamsConfig {
113
107
  /** Whether to check URL params for auto-opening the panel (default: true) */
114
108
  enabled?: boolean;
@@ -145,7 +139,6 @@ export interface PillarConfig {
145
139
  version?: string;
146
140
  panel?: PanelConfig;
147
141
  floatingButton?: FloatingButtonConfig;
148
- tooltips?: TooltipsConfig;
149
142
  urlParams?: UrlParamsConfig;
150
143
  textSelection?: TextSelectionConfig;
151
144
  sidebarTabs?: SidebarTabConfig[];
@@ -197,7 +190,6 @@ export interface ResolvedConfig {
197
190
  version?: string;
198
191
  panel: ResolvedPanelConfig;
199
192
  floatingButton: Required<FloatingButtonConfig>;
200
- tooltips: Required<TooltipsConfig>;
201
193
  urlParams: Required<UrlParamsConfig>;
202
194
  textSelection: Required<TextSelectionConfig>;
203
195
  sidebarTabs: SidebarTabConfig[];
@@ -115,15 +115,6 @@ export interface PillarEvents {
115
115
  view: string;
116
116
  params?: Record<string, string>;
117
117
  };
118
- 'tooltip:shown': {
119
- tooltipId: string;
120
- };
121
- 'tooltip:hidden': {
122
- tooltipId: string;
123
- };
124
- 'tooltip:click': {
125
- tooltipId: string;
126
- };
127
118
  'article:view': {
128
119
  articleSlug: string;
129
120
  };
package/dist/index.d.ts CHANGED
@@ -22,11 +22,11 @@
22
22
  */
23
23
  export { Pillar, type PillarState } from './core/Pillar';
24
24
  export { EventEmitter, type PillarEvents, type TaskExecutePayload, type CardRenderer, type CardCallbacks } from './core/events';
25
- export { type PillarConfig, type ResolvedConfig, type ResolvedPanelConfig, type PanelConfig, type FloatingButtonConfig, type TooltipsConfig, type UrlParamsConfig, type TextSelectionConfig, type UserContext, type PanelPosition, type PanelMode, type FloatingButtonPosition, type FloatingButtonStyle, type TooltipTrigger, type TooltipPosition, type ThemeMode, type ThemeColors, type ThemeConfig, type ResolvedThemeConfig, type SidebarTabConfig, DEFAULT_SIDEBAR_TABS, } from './core/config';
25
+ export { type PillarConfig, type ResolvedConfig, type ResolvedPanelConfig, type PanelConfig, type FloatingButtonConfig, type UrlParamsConfig, type TextSelectionConfig, type UserContext, type PanelPosition, type PanelMode, type FloatingButtonPosition, type FloatingButtonStyle, type ThemeMode, type ThemeColors, type ThemeConfig, type ResolvedThemeConfig, type SidebarTabConfig, DEFAULT_SIDEBAR_TABS, } from './core/config';
26
26
  export { type ProductContext, type UserProfile, type Suggestion, type AssistantContext, } from './core/context';
27
27
  export { type PlanStatus, type StepStatus, type ExecutionLocation, type ExecutionPlan, type ExecutionStep, type PlanEvents, } from './core/plan';
28
28
  export { defineActions, setClientInfo, getClientInfo, getHandler, getActionDefinition, hasAction, getActionNames, getManifest, clearRegistry, getActionCount, type ActionType, type ActionDataSchema, type ActionDefinition, type ActionDefinitions, type ActionManifest, type ActionManifestEntry, type ClientInfo, type Platform, type SyncActionDefinition, type SyncActionDefinitions, type ActionTypeDataMap, type NavigateActionData, type TriggerActionData, type InlineUIData, type ExternalLinkData, type CopyTextData, type ActionDataType, type ActionNames, type TypedTaskHandler, type TypedOnTask, type TypedPillarMethods, } from './actions';
29
- export { APIClient, type TooltipData, type ArticleData, type ArticleSummary, type ChatMessage, type ChatResponse, type ProgressEvent, } from './api/client';
29
+ export { APIClient, type ArticleSummary, type ChatMessage, type ChatResponse, type ProgressEvent, } from './api/client';
30
30
  export { type ChatImage, type ImageUploadResponse, } from './api/mcp-client';
31
31
  import { Pillar } from './core/Pillar';
32
32
  export default Pillar;