@botonic/react 0.43.0-alpha.1 → 0.43.1

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.
@@ -1,6 +1,6 @@
1
1
  export const ESCAPED_LINE_BREAK: "<br>";
2
- export function renderMarkdown(text: any): string;
3
- export function renderLinks(text: any): string;
2
+ export function renderMarkdown(text: any): any;
3
+ export function renderLinks(text: any): any;
4
4
  export function serializeMarkdown(children: any): any;
5
5
  export function toMarkdownChildren(children: any): any;
6
6
  export function getMarkdownStyle(getThemeFn: any, defaultColor: any): any;
@@ -28,9 +28,15 @@ export interface WhatsappTemplateHeaderImageParameter {
28
28
  link: string;
29
29
  };
30
30
  }
31
+ export interface WhatsappTemplateHeaderVideoParameter {
32
+ type: WhatsAppTemplateParameterType.VIDEO;
33
+ video: {
34
+ link: string;
35
+ };
36
+ }
31
37
  export interface WhatsappTemplateComponentHeader {
32
38
  type: WhatsAppTemplateComponentType.HEADER;
33
- parameters: WhatsappTemplateHeaderTextParameter[] | WhatsappTemplateHeaderImageParameter[];
39
+ parameters: WhatsappTemplateHeaderTextParameter[] | WhatsappTemplateHeaderImageParameter[] | WhatsappTemplateHeaderVideoParameter[];
34
40
  }
35
41
  export interface WhatsappTemplateComponentBody {
36
42
  type: WhatsAppTemplateComponentType.BODY;
@@ -1,6 +1,6 @@
1
1
  export const ESCAPED_LINE_BREAK: "<br>";
2
- export function renderMarkdown(text: any): string;
3
- export function renderLinks(text: any): string;
2
+ export function renderMarkdown(text: any): any;
3
+ export function renderLinks(text: any): any;
4
4
  export function serializeMarkdown(children: any): any;
5
5
  export function toMarkdownChildren(children: any): any;
6
6
  export function getMarkdownStyle(getThemeFn: any, defaultColor: any): any;
@@ -28,9 +28,15 @@ export interface WhatsappTemplateHeaderImageParameter {
28
28
  link: string;
29
29
  };
30
30
  }
31
+ export interface WhatsappTemplateHeaderVideoParameter {
32
+ type: WhatsAppTemplateParameterType.VIDEO;
33
+ video: {
34
+ link: string;
35
+ };
36
+ }
31
37
  export interface WhatsappTemplateComponentHeader {
32
38
  type: WhatsAppTemplateComponentType.HEADER;
33
- parameters: WhatsappTemplateHeaderTextParameter[] | WhatsappTemplateHeaderImageParameter[];
39
+ parameters: WhatsappTemplateHeaderTextParameter[] | WhatsappTemplateHeaderImageParameter[] | WhatsappTemplateHeaderVideoParameter[];
34
40
  }
35
41
  export interface WhatsappTemplateComponentBody {
36
42
  type: WhatsAppTemplateComponentType.BODY;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@botonic/react",
3
- "version": "0.43.0-alpha.1",
3
+ "version": "0.43.1",
4
4
  "license": "MIT",
5
5
  "description": "Build Chatbots using React",
6
6
  "main": "./lib/cjs",
@@ -20,8 +20,8 @@
20
20
  "lint_core": "../../node_modules/.bin/eslint_d --cache --quiet '.*.js' '*.js' 'src/**/*.js*' --fix"
21
21
  },
22
22
  "dependencies": {
23
- "@botonic/core": "0.43.0-alpha.1",
24
- "axios": "^1.12.2",
23
+ "@botonic/core": "^0.43.0",
24
+ "axios": "^1.13.2",
25
25
  "emoji-picker-react": "^4.12.0",
26
26
  "lodash.merge": "^4.6.2",
27
27
  "markdown-it": "^12.3.2",
@@ -80,4 +80,4 @@
80
80
  "javascript",
81
81
  "react"
82
82
  ]
83
- }
83
+ }
@@ -33,15 +33,19 @@ export interface WhatsappTemplateHeaderImageParameter {
33
33
  }
34
34
  }
35
35
 
36
+ export interface WhatsappTemplateHeaderVideoParameter {
37
+ type: WhatsAppTemplateParameterType.VIDEO
38
+ video: {
39
+ link: string
40
+ }
41
+ }
42
+
36
43
  export interface WhatsappTemplateComponentHeader {
37
44
  type: WhatsAppTemplateComponentType.HEADER
38
45
  parameters:
39
46
  | WhatsappTemplateHeaderTextParameter[]
40
47
  | WhatsappTemplateHeaderImageParameter[]
41
- // | {
42
- // type: WhatsAppTemplateParameterType.VIDEO
43
- // video: string
44
- // }[]
48
+ | WhatsappTemplateHeaderVideoParameter[]
45
49
  // | {
46
50
  // type: WhatsAppTemplateParameterType.DOCUMENT
47
51
  // document: string