@pillar-ai/sdk 0.1.22 → 0.1.24

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 (49) hide show
  1. package/README.md +1 -1
  2. package/dist/actions/index.d.ts +1 -1
  3. package/dist/actions/types.d.ts +89 -0
  4. package/dist/api/client.d.ts +4 -0
  5. package/dist/cli/sync.js +34 -4
  6. package/dist/components/PagePilot/styles.d.ts +1 -1
  7. package/dist/components/Panel/styles.d.ts +1 -1
  8. package/dist/core/Pillar.d.ts +7 -13
  9. package/dist/core/config.d.ts +29 -29
  10. package/dist/pillar.esm.js +1 -1
  11. package/dist/tools/index.d.ts +1 -0
  12. package/dist/tools/types.d.ts +54 -7
  13. package/dist/utils/tracing.d.ts +43 -0
  14. package/package.json +6 -3
  15. package/dist/actions/definitions/analytics.d.ts +0 -18
  16. package/dist/actions/definitions/content.d.ts +0 -40
  17. package/dist/actions/definitions/index.d.ts +0 -26
  18. package/dist/actions/definitions/navigation.d.ts +0 -65
  19. package/dist/actions/definitions/settings.d.ts +0 -162
  20. package/dist/actions/definitions/sources.d.ts +0 -44
  21. package/dist/actions/definitions/support.d.ts +0 -15
  22. package/dist/actions/definitions/team.d.ts +0 -120
  23. package/dist/api/ag-ui-adapter.d.ts +0 -76
  24. package/dist/api/ag-ui-bridge.d.ts +0 -49
  25. package/dist/api/ag-ui-client.d.ts +0 -102
  26. package/dist/api/ag-ui-handler.d.ts +0 -89
  27. package/dist/components/Button/FloatingButton.d.ts +0 -46
  28. package/dist/components/Panel/TabNavigation.d.ts +0 -16
  29. package/dist/components/Progress/AGUIProgress.d.ts +0 -15
  30. package/dist/components/Tooltips/Tooltip.d.ts +0 -46
  31. package/dist/components/Tooltips/TooltipManager.d.ts +0 -41
  32. package/dist/components/Tooltips/index.d.ts +0 -6
  33. package/dist/components/Tooltips/styles.d.ts +0 -5
  34. package/dist/components/Views/ArticleChatView.d.ts +0 -10
  35. package/dist/components/Views/ArticleView.d.ts +0 -10
  36. package/dist/components/Views/CategoryView.d.ts +0 -11
  37. package/dist/components/Views/HelpCenterArticles.d.ts +0 -17
  38. package/dist/components/Views/SearchView.d.ts +0 -10
  39. package/dist/components/Views/SupportView.d.ts +0 -15
  40. package/dist/components/shared/ArticleCard.d.ts +0 -17
  41. package/dist/components/shared/CategoryCard.d.ts +0 -17
  42. package/dist/content/extensions/AccordionNode.d.ts +0 -10
  43. package/dist/content/extensions/CalloutNode.d.ts +0 -11
  44. package/dist/content/extensions/index.d.ts +0 -5
  45. package/dist/content/index.d.ts +0 -5
  46. package/dist/content/renderer.d.ts +0 -24
  47. package/dist/store/tooltips.d.ts +0 -21
  48. package/dist/utils/helpdesk.d.ts +0 -33
  49. package/dist/utils/markdown.d.ts +0 -9
@@ -1,5 +0,0 @@
1
- /**
2
- * Content rendering utilities for the SDK
3
- */
4
- export { renderArticleContent, renderTipTapContent, isJSONContent, } from './renderer';
5
- export type { CalloutType } from './extensions';
@@ -1,24 +0,0 @@
1
- /**
2
- * TipTap Content Renderer
3
- * Converts TipTap JSON content to HTML for display in the SDK panel
4
- */
5
- import type { JSONContent } from '@tiptap/core';
6
- /**
7
- * Check if content is TipTap JSON format (has a 'type' property)
8
- */
9
- export declare function isJSONContent(content: unknown): content is JSONContent;
10
- /**
11
- * Render TipTap JSON content to HTML
12
- *
13
- * @param content - TipTap JSON content object
14
- * @returns HTML string
15
- */
16
- export declare function renderTipTapContent(content: JSONContent): string;
17
- /**
18
- * Render article content to HTML
19
- * Handles both TipTap JSON and legacy HTML string content
20
- *
21
- * @param content - TipTap JSON content or HTML string
22
- * @returns HTML string
23
- */
24
- export declare function renderArticleContent(content: JSONContent | string | null | undefined): string;
@@ -1,21 +0,0 @@
1
- /**
2
- * Tooltips Store
3
- * Signal-based state for tooltip visibility and data
4
- */
5
- import type { TooltipData } from '../api/client';
6
- export interface TooltipInstance {
7
- id: string;
8
- data: TooltipData;
9
- anchor: HTMLElement;
10
- isVisible: boolean;
11
- }
12
- export declare const tooltips: import("@preact/signals-core").Signal<Map<string, TooltipInstance>>;
13
- export declare const visibleTooltipId: import("@preact/signals-core").Signal<string | null>;
14
- export declare const visibleTooltip: import("@preact/signals-core").ReadonlySignal<TooltipInstance | null>;
15
- export declare const tooltipCount: import("@preact/signals-core").ReadonlySignal<number>;
16
- export declare const registerTooltip: (id: string, data: TooltipData, anchor: HTMLElement) => void;
17
- export declare const unregisterTooltip: (id: string) => void;
18
- export declare const showTooltip: (id: string) => void;
19
- export declare const hideTooltip: (id: string) => void;
20
- export declare const hideAllTooltips: () => void;
21
- export declare const resetTooltips: () => void;
@@ -1,33 +0,0 @@
1
- /**
2
- * Help Desk Utilities
3
- * Functions to trigger external help desk widgets (Intercom, Pylon, Zendesk, Freshdesk)
4
- */
5
- import type { HelpDeskProvider } from '../core/config';
6
- declare global {
7
- interface Window {
8
- Intercom?: (command: string, ...args: unknown[]) => void;
9
- Pylon?: (command: string, ...args: unknown[]) => void;
10
- zE?: (widget: string, command: string, ...args: unknown[]) => void;
11
- FreshworksWidget?: (command: string, ...args: unknown[]) => void;
12
- }
13
- }
14
- /**
15
- * Context to pass to help desk when escalating
16
- */
17
- export interface HelpDeskContext {
18
- conversationSummary?: string;
19
- currentPage?: string;
20
- userId?: string;
21
- }
22
- /**
23
- * Trigger the appropriate help desk widget based on provider
24
- */
25
- export declare function triggerHelpDesk(provider: HelpDeskProvider, context?: HelpDeskContext): boolean;
26
- /**
27
- * Open email client with optional subject and body
28
- */
29
- export declare function openEmail(emailAddress: string, subject?: string, body?: string): void;
30
- /**
31
- * Open a URL in a new tab
32
- */
33
- export declare function openUrl(url: string): void;
@@ -1,9 +0,0 @@
1
- /**
2
- * Markdown Renderer
3
- * Uses marked library for parsing markdown to HTML
4
- */
5
- /**
6
- * Render markdown content to HTML
7
- * Used for AI chat responses
8
- */
9
- export declare function renderMarkdown(content: string): string;