@coristen/widget 0.1.11 → 0.1.13

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 CHANGED
@@ -16,5 +16,5 @@ export default function App() {
16
16
  ```
17
17
 
18
18
  Use `CoristenDock` for a side panel and `CoristenModal` for a modal. See the
19
- [Coristen documentation](https://github.com/brayanj4y/coristen/tree/master/apps/docs/content/docs)
19
+ [Coristen documentation](https://coristen-docs.vercel.app/)
20
20
  for installation, identity, security, and API details.
package/dist/api.d.ts CHANGED
@@ -50,8 +50,10 @@ export type WidgetSettings = {
50
50
  accentSendIcon: boolean;
51
51
  radius: "none" | "sm" | "md" | "lg";
52
52
  bubbleIcon: string;
53
+ bubbleImageUrl: string | null;
53
54
  bubbleColor: string;
54
55
  showPoweredBy: boolean;
56
+ collectEmail: boolean;
55
57
  maxAttachmentSizeMb: number;
56
58
  allowedAttachmentTypes: string[];
57
59
  };
@@ -62,6 +64,7 @@ export declare const widgetApi: {
62
64
  }, WidgetSuggestion[], string | undefined>;
63
65
  workspace: import("convex/server").FunctionReference<"query", "public", {
64
66
  workspaceId: string;
67
+ sessionToken: string;
65
68
  }, WidgetSettings | null, string | undefined>;
66
69
  visitorProfile: import("convex/server").FunctionReference<"query", "public", {
67
70
  workspaceId: string;
@@ -69,13 +72,13 @@ export declare const widgetApi: {
69
72
  sessionToken: string;
70
73
  }, {
71
74
  name: string;
72
- email: string;
75
+ email?: string;
73
76
  } | null, string | undefined>;
74
77
  openWebsite: import("convex/server").FunctionReference<"mutation", "public", {
75
78
  workspaceId: string;
76
79
  visitorId: string;
77
- name: string;
78
- email: string;
80
+ name?: string;
81
+ email?: string;
79
82
  currentPage: string;
80
83
  referrer: string;
81
84
  browser: string;
package/dist/index.d.ts CHANGED
@@ -30,7 +30,7 @@ export type CoristenDockProps = CoristenWidgetProps & {
30
30
  side?: "left" | "right";
31
31
  trigger: WidgetTriggerElement;
32
32
  };
33
- export type WidgetAppearance = Partial<Pick<WidgetSettings, "brandColor" | "logoUrl" | "position" | "theme" | "tintedGrayscale" | "accentEnabled" | "accentHeader" | "accentSendIcon" | "radius" | "bubbleIcon" | "bubbleColor" | "showPoweredBy">>;
33
+ export type WidgetAppearance = Partial<Pick<WidgetSettings, "brandColor" | "logoUrl" | "position" | "theme" | "tintedGrayscale" | "accentEnabled" | "accentHeader" | "accentSendIcon" | "radius" | "bubbleIcon" | "bubbleImageUrl" | "bubbleColor" | "showPoweredBy">>;
34
34
  export declare function CoristenWidget(props: CoristenWidgetProps): import("react").JSX.Element;
35
35
  export declare function CoristenModal({ trigger, ...props }: CoristenModalProps): import("react").JSX.Element;
36
36
  export declare function CoristenDock({ children, side, trigger, open: controlledOpen, onOpenChange, defaultOpen, appearance, ...props }: CoristenDockProps): import("react").JSX.Element;