helpdock 0.1.2 → 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.
- package/dist/__tests__/fixtures.d.ts +38 -0
- package/dist/components/ArticleDetail.test.d.ts +1 -0
- package/dist/components/ArticlesTab.test.d.ts +1 -0
- package/dist/components/ContactTab.test.d.ts +1 -0
- package/dist/components/HelpDock.d.ts +1 -1
- package/dist/components/HelpDock.test.d.ts +1 -0
- package/dist/components/Panel.test.d.ts +1 -0
- package/dist/components/WidgetButton.d.ts +5 -0
- package/dist/components/WidgetButton.test.d.ts +1 -0
- package/dist/context/config-context.d.ts +1 -0
- package/dist/helpdock.js +543 -460
- package/dist/helpdock.umd.cjs +70 -19
- package/dist/schema/article.test.d.ts +1 -0
- package/dist/schema/config.d.ts +1 -0
- package/dist/schema/config.test.d.ts +1 -0
- package/dist/services/analytics.test.d.ts +1 -0
- package/dist/services/attachments.test.d.ts +1 -0
- package/dist/services/search.test.d.ts +1 -0
- package/package.json +15 -3
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import type { Article } from "../schema/article";
|
|
2
|
+
import type { HelpDockConfig } from "../schema/config";
|
|
3
|
+
import type { AnalyticsConfig } from "../schema/analytics";
|
|
4
|
+
/**
|
|
5
|
+
* Sample articles for testing
|
|
6
|
+
*/
|
|
7
|
+
export declare const sampleArticles: Article[];
|
|
8
|
+
/**
|
|
9
|
+
* Minimal valid config for testing
|
|
10
|
+
*/
|
|
11
|
+
export declare const minimalConfig: Partial<HelpDockConfig>;
|
|
12
|
+
/**
|
|
13
|
+
* Full config with all options for testing
|
|
14
|
+
*/
|
|
15
|
+
export declare const fullConfig: HelpDockConfig;
|
|
16
|
+
/**
|
|
17
|
+
* Analytics config for testing
|
|
18
|
+
*/
|
|
19
|
+
export declare const analyticsConfig: AnalyticsConfig;
|
|
20
|
+
/**
|
|
21
|
+
* Mock fetch function that returns articles
|
|
22
|
+
*/
|
|
23
|
+
export declare const mockArticlesFetch: () => Promise<{
|
|
24
|
+
articles: {
|
|
25
|
+
id: string;
|
|
26
|
+
title: string;
|
|
27
|
+
description: string;
|
|
28
|
+
tags: string[];
|
|
29
|
+
content: string;
|
|
30
|
+
contentType: "markdown" | "html";
|
|
31
|
+
category?: string | undefined;
|
|
32
|
+
updatedAt?: string | undefined;
|
|
33
|
+
}[];
|
|
34
|
+
}>;
|
|
35
|
+
/**
|
|
36
|
+
* Mock fetch function that throws an error
|
|
37
|
+
*/
|
|
38
|
+
export declare const mockArticlesFetchError: () => Promise<never>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -26,7 +26,7 @@ export declare class HelpDock extends LitElement {
|
|
|
26
26
|
private handleArticleClose;
|
|
27
27
|
private handleToggleExpand;
|
|
28
28
|
private handleSearch;
|
|
29
|
-
updateConfig(config?: HelpDockConfig): void;
|
|
29
|
+
updateConfig(config?: Partial<HelpDockConfig>): void;
|
|
30
30
|
private fetchArticles;
|
|
31
31
|
render(): import("lit-html").TemplateResult<1>;
|
|
32
32
|
static styles: import("lit").CSSResult;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -5,6 +5,11 @@ import { LitElement } from "lit";
|
|
|
5
5
|
*/
|
|
6
6
|
export declare class WidgetButton extends LitElement {
|
|
7
7
|
open: boolean;
|
|
8
|
+
introAnimation: boolean;
|
|
9
|
+
private showPulse;
|
|
10
|
+
private getStorageKey;
|
|
11
|
+
private shouldShowAnimation;
|
|
12
|
+
firstUpdated(): void;
|
|
8
13
|
private _onClick;
|
|
9
14
|
render(): import("lit-html").TemplateResult<1>;
|
|
10
15
|
static styles: import("lit").CSSResult;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|