@ensembleapp/client-sdk 0.0.3 → 0.0.4

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.
@@ -12,8 +12,8 @@ type UIWidget = {
12
12
  interface UIWidgetDefinition<TSchema extends AnyZodObject = AnyZodObject> {
13
13
  widgetType: string;
14
14
  schema: TSchema;
15
- render: (widget: z.infer<TSchema>) => ReactNode;
15
+ render(widget: z.infer<TSchema>): ReactNode;
16
16
  }
17
- declare const createWidget: <TSchema extends AnyZodObject>({ widgetType, schema, render, }: UIWidgetDefinition<TSchema>) => UIWidgetDefinition;
17
+ declare const createWidget: <TSchema extends AnyZodObject>({ widgetType, schema, render, }: UIWidgetDefinition<TSchema>) => UIWidgetDefinition<TSchema>;
18
18
 
19
19
  export { type UIWidget as U, type WidgetDefinition as W, type UIWidgetDefinition as a, createWidget as c };
package/dist/schemas.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export { U as UIWidget, W as WidgetDefinition } from './schemas-Esi_eGx3.js';
1
+ export { U as UIWidget, W as WidgetDefinition } from './schemas-n2u83F_H.js';
2
2
  import 'json-schema';
3
3
  import 'react';
4
4
  import 'zod';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ensembleapp/client-sdk",
3
- "version": "0.0.3",
3
+ "version": "0.0.4",
4
4
  "description": "React client SDK for chat functionality",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -1,22 +0,0 @@
1
- import type { EmbeddableChatWidgetConfig } from './widget';
2
-
3
- export interface ChatWidgetGlobal {
4
- init: (config: EmbeddableChatWidgetConfig) => Promise<void>;
5
- destroy: () => void;
6
- hide: () => void;
7
- show: () => void;
8
- updateConfig: (config: Partial<EmbeddableChatWidgetConfig>) => void;
9
- updateToken: (token: string) => void;
10
- }
11
-
12
- declare global {
13
- interface Window {
14
- ChatWidget?: ChatWidgetGlobal;
15
- chatWidgetConfig?: EmbeddableChatWidgetConfig;
16
- }
17
- }
18
-
19
- export type { EmbeddableChatWidgetConfig };
20
- export type { ChatWidgetGlobal };
21
-
22
- export {};