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.
@@ -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 {};
@@ -29,6 +29,7 @@ export declare const configContext: {
29
29
  defaultTab: "articles" | "contact";
30
30
  closeOnEscape: boolean;
31
31
  closeOnClickOutside: boolean;
32
+ introAnimation: boolean;
32
33
  contact?: {
33
34
  title: string;
34
35
  fields: ({