@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.
- package/README.md +1 -1
- package/dist/actions/index.d.ts +1 -1
- package/dist/actions/types.d.ts +89 -0
- package/dist/api/client.d.ts +4 -0
- package/dist/cli/sync.js +34 -4
- package/dist/components/PagePilot/styles.d.ts +1 -1
- package/dist/components/Panel/styles.d.ts +1 -1
- package/dist/core/Pillar.d.ts +7 -13
- package/dist/core/config.d.ts +29 -29
- package/dist/pillar.esm.js +1 -1
- package/dist/tools/index.d.ts +1 -0
- package/dist/tools/types.d.ts +54 -7
- package/dist/utils/tracing.d.ts +43 -0
- package/package.json +6 -3
- package/dist/actions/definitions/analytics.d.ts +0 -18
- package/dist/actions/definitions/content.d.ts +0 -40
- package/dist/actions/definitions/index.d.ts +0 -26
- package/dist/actions/definitions/navigation.d.ts +0 -65
- package/dist/actions/definitions/settings.d.ts +0 -162
- package/dist/actions/definitions/sources.d.ts +0 -44
- package/dist/actions/definitions/support.d.ts +0 -15
- package/dist/actions/definitions/team.d.ts +0 -120
- package/dist/api/ag-ui-adapter.d.ts +0 -76
- package/dist/api/ag-ui-bridge.d.ts +0 -49
- package/dist/api/ag-ui-client.d.ts +0 -102
- package/dist/api/ag-ui-handler.d.ts +0 -89
- package/dist/components/Button/FloatingButton.d.ts +0 -46
- package/dist/components/Panel/TabNavigation.d.ts +0 -16
- package/dist/components/Progress/AGUIProgress.d.ts +0 -15
- package/dist/components/Tooltips/Tooltip.d.ts +0 -46
- package/dist/components/Tooltips/TooltipManager.d.ts +0 -41
- package/dist/components/Tooltips/index.d.ts +0 -6
- package/dist/components/Tooltips/styles.d.ts +0 -5
- package/dist/components/Views/ArticleChatView.d.ts +0 -10
- package/dist/components/Views/ArticleView.d.ts +0 -10
- package/dist/components/Views/CategoryView.d.ts +0 -11
- package/dist/components/Views/HelpCenterArticles.d.ts +0 -17
- package/dist/components/Views/SearchView.d.ts +0 -10
- package/dist/components/Views/SupportView.d.ts +0 -15
- package/dist/components/shared/ArticleCard.d.ts +0 -17
- package/dist/components/shared/CategoryCard.d.ts +0 -17
- package/dist/content/extensions/AccordionNode.d.ts +0 -10
- package/dist/content/extensions/CalloutNode.d.ts +0 -11
- package/dist/content/extensions/index.d.ts +0 -5
- package/dist/content/index.d.ts +0 -5
- package/dist/content/renderer.d.ts +0 -24
- package/dist/store/tooltips.d.ts +0 -21
- package/dist/utils/helpdesk.d.ts +0 -33
- package/dist/utils/markdown.d.ts +0 -9
package/dist/content/index.d.ts
DELETED
|
@@ -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;
|
package/dist/store/tooltips.d.ts
DELETED
|
@@ -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;
|
package/dist/utils/helpdesk.d.ts
DELETED
|
@@ -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;
|
package/dist/utils/markdown.d.ts
DELETED