@botpress/webchat 1.0.24 → 1.0.26

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/main.d.ts CHANGED
@@ -1,9 +0,0 @@
1
- export declare const twObject: import("@twind/core").Twind<import("@twind/core").BaseTheme & import("@twind/preset-tailwind").TailwindTheme & import("@twind/preset-container-queries").ContainerQueriesTheme & {
2
- fontFamily: {
3
- sans: string[];
4
- rubik: string[];
5
- plex: string[];
6
- mono: string[];
7
- };
8
- extend: never;
9
- }, unknown>;
@@ -1,13 +1,14 @@
1
1
  import { ComponentProps, ReactNode } from 'react';
2
- import { Configuration, Renderers, WebchatContext } from '../contexts';
3
- import { Theme } from '../schemas';
4
2
  import { type WebChatClient } from '../client';
3
+ import { Configuration, ContextVaue, Renderers, WebchatContext } from '../contexts';
4
+ import { Theme } from '../schemas';
5
5
  type Props = {
6
- styles?: Theme;
6
+ theme?: Theme;
7
7
  renderers?: Renderers;
8
8
  client: WebChatClient;
9
9
  configuration: Configuration;
10
+ defaultState?: Partial<ContextVaue['state']>;
10
11
  children?: ReactNode | ((configuration: Configuration) => ReactNode);
11
12
  } & Omit<ComponentProps<typeof WebchatContext.Provider>, 'value' | 'children'>;
12
- export declare const WebchatProvider: ({ styles, renderers, client, children, configuration, ...props }: Props) => JSX.Element;
13
+ export declare const WebchatProvider: ({ theme: initialTheme, renderers, client, children, configuration, ...props }: Props) => JSX.Element;
13
14
  export {};
@@ -465,7 +465,7 @@ export declare const BlocksSchema: z.ZodObject<{
465
465
  } | undefined;
466
466
  }>>;
467
467
  }, "strip", z.ZodTypeAny, {
468
- text: Partial<Record<"link" | "pre" | "text" | "bold" | "italic" | "heading1" | "heading2" | "heading3" | "horizontalRule" | "orderedList" | "unorderedList" | "listItem" | "lineBreak", {
468
+ text: Partial<Record<"link" | "pre" | "text" | "bold" | "lineBreak" | "italic" | "heading1" | "heading2" | "heading3" | "horizontalRule" | "orderedList" | "unorderedList" | "listItem", {
469
469
  className?: string | undefined;
470
470
  style?: CSSProperties | undefined;
471
471
  } | undefined>>;
@@ -576,7 +576,7 @@ export declare const BlocksSchema: z.ZodObject<{
576
576
  } | undefined;
577
577
  } | undefined;
578
578
  }, {
579
- text: Partial<Record<"link" | "pre" | "text" | "bold" | "italic" | "heading1" | "heading2" | "heading3" | "horizontalRule" | "orderedList" | "unorderedList" | "listItem" | "lineBreak", {
579
+ text: Partial<Record<"link" | "pre" | "text" | "bold" | "lineBreak" | "italic" | "heading1" | "heading2" | "heading3" | "horizontalRule" | "orderedList" | "unorderedList" | "listItem", {
580
580
  className?: string | undefined;
581
581
  style?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
582
582
  } | undefined>>;
@@ -2308,7 +2308,7 @@ export declare const ThemeSchema: z.ZodObject<{
2308
2308
  } | undefined;
2309
2309
  }>>;
2310
2310
  }, "strip", z.ZodTypeAny, {
2311
- text: Partial<Record<"link" | "pre" | "text" | "bold" | "italic" | "heading1" | "heading2" | "heading3" | "horizontalRule" | "orderedList" | "unorderedList" | "listItem" | "lineBreak", {
2311
+ text: Partial<Record<"link" | "pre" | "text" | "bold" | "lineBreak" | "italic" | "heading1" | "heading2" | "heading3" | "horizontalRule" | "orderedList" | "unorderedList" | "listItem", {
2312
2312
  className?: string | undefined;
2313
2313
  style?: CSSProperties | undefined;
2314
2314
  } | undefined>>;
@@ -2419,7 +2419,7 @@ export declare const ThemeSchema: z.ZodObject<{
2419
2419
  } | undefined;
2420
2420
  } | undefined;
2421
2421
  }, {
2422
- text: Partial<Record<"link" | "pre" | "text" | "bold" | "italic" | "heading1" | "heading2" | "heading3" | "horizontalRule" | "orderedList" | "unorderedList" | "listItem" | "lineBreak", {
2422
+ text: Partial<Record<"link" | "pre" | "text" | "bold" | "lineBreak" | "italic" | "heading1" | "heading2" | "heading3" | "horizontalRule" | "orderedList" | "unorderedList" | "listItem", {
2423
2423
  className?: string | undefined;
2424
2424
  style?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
2425
2425
  } | undefined>>;
@@ -2550,7 +2550,7 @@ export declare const ThemeSchema: z.ZodObject<{
2550
2550
  } | undefined;
2551
2551
  } | undefined;
2552
2552
  blocks?: {
2553
- text: Partial<Record<"link" | "pre" | "text" | "bold" | "italic" | "heading1" | "heading2" | "heading3" | "horizontalRule" | "orderedList" | "unorderedList" | "listItem" | "lineBreak", {
2553
+ text: Partial<Record<"link" | "pre" | "text" | "bold" | "lineBreak" | "italic" | "heading1" | "heading2" | "heading3" | "horizontalRule" | "orderedList" | "unorderedList" | "listItem", {
2554
2554
  className?: string | undefined;
2555
2555
  style?: CSSProperties | undefined;
2556
2556
  } | undefined>>;
@@ -2681,7 +2681,7 @@ export declare const ThemeSchema: z.ZodObject<{
2681
2681
  } | undefined;
2682
2682
  } | undefined;
2683
2683
  blocks?: {
2684
- text: Partial<Record<"link" | "pre" | "text" | "bold" | "italic" | "heading1" | "heading2" | "heading3" | "horizontalRule" | "orderedList" | "unorderedList" | "listItem" | "lineBreak", {
2684
+ text: Partial<Record<"link" | "pre" | "text" | "bold" | "lineBreak" | "italic" | "heading1" | "heading2" | "heading3" | "horizontalRule" | "orderedList" | "unorderedList" | "listItem", {
2685
2685
  className?: string | undefined;
2686
2686
  style?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
2687
2687
  } | undefined>>;
@@ -3034,7 +3034,7 @@ export declare const ThemeSchema: z.ZodObject<{
3034
3034
  } | undefined;
3035
3035
  } | undefined;
3036
3036
  blocks?: {
3037
- text: Partial<Record<"link" | "pre" | "text" | "bold" | "italic" | "heading1" | "heading2" | "heading3" | "horizontalRule" | "orderedList" | "unorderedList" | "listItem" | "lineBreak", {
3037
+ text: Partial<Record<"link" | "pre" | "text" | "bold" | "lineBreak" | "italic" | "heading1" | "heading2" | "heading3" | "horizontalRule" | "orderedList" | "unorderedList" | "listItem", {
3038
3038
  className?: string | undefined;
3039
3039
  style?: CSSProperties | undefined;
3040
3040
  } | undefined>>;
@@ -3357,7 +3357,7 @@ export declare const ThemeSchema: z.ZodObject<{
3357
3357
  } | undefined;
3358
3358
  } | undefined;
3359
3359
  blocks?: {
3360
- text: Partial<Record<"link" | "pre" | "text" | "bold" | "italic" | "heading1" | "heading2" | "heading3" | "horizontalRule" | "orderedList" | "unorderedList" | "listItem" | "lineBreak", {
3360
+ text: Partial<Record<"link" | "pre" | "text" | "bold" | "lineBreak" | "italic" | "heading1" | "heading2" | "heading3" | "horizontalRule" | "orderedList" | "unorderedList" | "listItem", {
3361
3361
  className?: string | undefined;
3362
3362
  style?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
3363
3363
  } | undefined>>;
@@ -0,0 +1,16 @@
1
+ export declare const tw: import("@twind/core").Twind<import("@twind/core").BaseTheme & import("@twind/preset-tailwind").TailwindTheme & import("@twind/preset-container-queries").ContainerQueriesTheme & {
2
+ fontFamily: {
3
+ sans: string[];
4
+ rubik: string[];
5
+ plex: string[];
6
+ mono: string[];
7
+ };
8
+ extend: never;
9
+ }, CSSStyleSheet>;
10
+ export declare const tx: import("@twind/core").TxFunction;
11
+ export declare const injectGlobal: import("@twind/core").InjectGlobalFunction;
12
+ export declare const keyframes: import("@twind/core").KeyframesFunction & {
13
+ [label: string]: import("@twind/core").KeyframesFunction;
14
+ } & {
15
+ [label: string]: import("@twind/core").KeyframesFunction;
16
+ };
@@ -201,7 +201,7 @@ export declare function withBaseTheme(theme: Theme): {
201
201
  } | undefined;
202
202
  } | undefined;
203
203
  blocks?: {
204
- text: Partial<Record<"link" | "pre" | "text" | "bold" | "italic" | "heading1" | "heading2" | "heading3" | "horizontalRule" | "orderedList" | "unorderedList" | "listItem" | "lineBreak", {
204
+ text: Partial<Record<"link" | "pre" | "text" | "bold" | "lineBreak" | "italic" | "heading1" | "heading2" | "heading3" | "horizontalRule" | "orderedList" | "unorderedList" | "listItem", {
205
205
  className?: string | undefined;
206
206
  style?: import("react").CSSProperties | undefined;
207
207
  } | undefined>>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@botpress/webchat",
3
- "version": "1.0.24",
3
+ "version": "1.0.26",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "main": "./dist/index.umd.cjs",