@botonic/plugin-flow-builder 0.22.2 → 0.22.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.
@@ -1,4 +1,4 @@
1
- import { WhatsappButtonListRowProps } from '@botonic/react/lib/cjs/components/whatsapp-button-list';
1
+ import { WhatsappButtonListRowProps } from '@botonic/react';
2
2
  import { ContentFieldsBase } from '../content-fields-base';
3
3
  import { HtWhatsappButtonListRow } from '../hubtype-fields';
4
4
  export declare class FlowWhatsappButtonListRow extends ContentFieldsBase {
@@ -1,4 +1,4 @@
1
- import { WhatsappButtonListSectionProps } from '@botonic/react/lib/cjs/components/whatsapp-button-list';
1
+ import { WhatsappButtonListSectionProps } from '@botonic/react';
2
2
  import { HtWhatsappButtonListSection } from '../hubtype-fields';
3
3
  import { ContentFieldsBase } from './../content-fields-base';
4
4
  import { FlowWhatsappButtonListRow } from './flow-whatsapp-button-list-row';
@@ -23,10 +23,7 @@ class FlowWhatsappButtonList extends content_fields_base_1.ContentFieldsBase {
23
23
  return newWhatsappButtonList;
24
24
  }
25
25
  toBotonic(id) {
26
- return (react_2.default.createElement(react_1.WhatsappButtonList, { key: id, body: this.text, action: {
27
- button: this.listButtonText,
28
- sections: this.sections.map(section => section.toBotonic()),
29
- } }));
26
+ return (react_2.default.createElement(react_1.WhatsappButtonList, { key: id, body: this.text, button: this.listButtonText, sections: this.sections.map(section => section.toBotonic()) }));
30
27
  }
31
28
  }
32
29
  exports.FlowWhatsappButtonList = FlowWhatsappButtonList;
@@ -1 +1 @@
1
- {"version":3,"file":"flow-whatsapp-button-list.js","sourceRoot":"","sources":["../../../../src/content-fields/whatsapp-button-list/flow-whatsapp-button-list.tsx"],"names":[],"mappings":";;;;AAAA,0CAAmD;AACnD,0DAAyB;AAGzB,kEAA4D;AAC5D,2FAAmF;AAEnF,MAAa,sBAAuB,SAAQ,uCAAiB;IAA7D;;QACS,SAAI,GAAG,EAAE,CAAA;QACT,SAAI,GAAG,EAAE,CAAA;QACT,mBAAc,GAAG,EAAE,CAAA;QACnB,aAAQ,GAAoC,EAAE,CAAA;IAkCvD,CAAC;IAhCC,MAAM,CAAC,cAAc,CACnB,SAAmC,EACnC,MAAc;QAEd,MAAM,qBAAqB,GAAG,IAAI,sBAAsB,CAAC,SAAS,CAAC,EAAE,CAAC,CAAA;QACtE,qBAAqB,CAAC,IAAI,GAAG,SAAS,CAAC,IAAI,CAAA;QAC3C,qBAAqB,CAAC,IAAI,GAAG,IAAI,CAAC,eAAe,CAC/C,MAAM,EACN,SAAS,CAAC,OAAO,CAAC,IAAI,CACvB,CAAA;QACD,qBAAqB,CAAC,cAAc,GAAG,IAAI,CAAC,eAAe,CACzD,MAAM,EACN,SAAS,CAAC,OAAO,CAAC,WAAW,CAC9B,CAAA;QACD,qBAAqB,CAAC,QAAQ,GAAG,SAAS,CAAC,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAC,OAAO,CAAC,EAAE,CACxE,iEAA6B,CAAC,cAAc,CAAC,OAAO,EAAE,MAAM,CAAC,CAC9D,CAAA;QACD,OAAO,qBAAqB,CAAA;IAC9B,CAAC;IAED,SAAS,CAAC,EAAU;QAClB,OAAO,CACL,8BAAC,0BAAkB,IACjB,GAAG,EAAE,EAAE,EACP,IAAI,EAAE,IAAI,CAAC,IAAI,EACf,MAAM,EAAE;gBACN,MAAM,EAAE,IAAI,CAAC,cAAc;gBAC3B,QAAQ,EAAE,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,OAAO,CAAC,EAAE,CAAC,OAAO,CAAC,SAAS,EAAE,CAAC;aAC5D,GACmB,CACvB,CAAA;IACH,CAAC;CACF;AAtCD,wDAsCC"}
1
+ {"version":3,"file":"flow-whatsapp-button-list.js","sourceRoot":"","sources":["../../../../src/content-fields/whatsapp-button-list/flow-whatsapp-button-list.tsx"],"names":[],"mappings":";;;;AAAA,0CAAmD;AACnD,0DAAyB;AAGzB,kEAA4D;AAC5D,2FAAmF;AAEnF,MAAa,sBAAuB,SAAQ,uCAAiB;IAA7D;;QACS,SAAI,GAAG,EAAE,CAAA;QACT,SAAI,GAAG,EAAE,CAAA;QACT,mBAAc,GAAG,EAAE,CAAA;QACnB,aAAQ,GAAoC,EAAE,CAAA;IAgCvD,CAAC;IA9BC,MAAM,CAAC,cAAc,CACnB,SAAmC,EACnC,MAAc;QAEd,MAAM,qBAAqB,GAAG,IAAI,sBAAsB,CAAC,SAAS,CAAC,EAAE,CAAC,CAAA;QACtE,qBAAqB,CAAC,IAAI,GAAG,SAAS,CAAC,IAAI,CAAA;QAC3C,qBAAqB,CAAC,IAAI,GAAG,IAAI,CAAC,eAAe,CAC/C,MAAM,EACN,SAAS,CAAC,OAAO,CAAC,IAAI,CACvB,CAAA;QACD,qBAAqB,CAAC,cAAc,GAAG,IAAI,CAAC,eAAe,CACzD,MAAM,EACN,SAAS,CAAC,OAAO,CAAC,WAAW,CAC9B,CAAA;QACD,qBAAqB,CAAC,QAAQ,GAAG,SAAS,CAAC,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAC,OAAO,CAAC,EAAE,CACxE,iEAA6B,CAAC,cAAc,CAAC,OAAO,EAAE,MAAM,CAAC,CAC9D,CAAA;QACD,OAAO,qBAAqB,CAAA;IAC9B,CAAC;IAED,SAAS,CAAC,EAAU;QAClB,OAAO,CACL,8BAAC,0BAAkB,IACjB,GAAG,EAAE,EAAE,EACP,IAAI,EAAE,IAAI,CAAC,IAAI,EACf,MAAM,EAAE,IAAI,CAAC,cAAc,EAC3B,QAAQ,EAAE,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,OAAO,CAAC,EAAE,CAAC,OAAO,CAAC,SAAS,EAAE,CAAC,GACvC,CACvB,CAAA;IACH,CAAC;CACF;AApCD,wDAoCC"}
@@ -1,4 +1,4 @@
1
- import { WhatsappButtonListRowProps } from '@botonic/react/lib/cjs/components/whatsapp-button-list';
1
+ import { WhatsappButtonListRowProps } from '@botonic/react';
2
2
  import { ContentFieldsBase } from '../content-fields-base';
3
3
  import { HtWhatsappButtonListRow } from '../hubtype-fields';
4
4
  export declare class FlowWhatsappButtonListRow extends ContentFieldsBase {
@@ -1,4 +1,4 @@
1
- import { WhatsappButtonListSectionProps } from '@botonic/react/lib/cjs/components/whatsapp-button-list';
1
+ import { WhatsappButtonListSectionProps } from '@botonic/react';
2
2
  import { HtWhatsappButtonListSection } from '../hubtype-fields';
3
3
  import { ContentFieldsBase } from './../content-fields-base';
4
4
  import { FlowWhatsappButtonListRow } from './flow-whatsapp-button-list-row';
@@ -19,10 +19,7 @@ export class FlowWhatsappButtonList extends ContentFieldsBase {
19
19
  return newWhatsappButtonList;
20
20
  }
21
21
  toBotonic(id) {
22
- return (React.createElement(WhatsappButtonList, { key: id, body: this.text, action: {
23
- button: this.listButtonText,
24
- sections: this.sections.map(section => section.toBotonic()),
25
- } }));
22
+ return (React.createElement(WhatsappButtonList, { key: id, body: this.text, button: this.listButtonText, sections: this.sections.map(section => section.toBotonic()) }));
26
23
  }
27
24
  }
28
25
  //# sourceMappingURL=flow-whatsapp-button-list.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"flow-whatsapp-button-list.js","sourceRoot":"","sources":["../../../../src/content-fields/whatsapp-button-list/flow-whatsapp-button-list.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAA;AACnD,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAA;AAC5D,OAAO,EAAE,6BAA6B,EAAE,MAAM,qCAAqC,CAAA;AAEnF,MAAM,OAAO,sBAAuB,SAAQ,iBAAiB;IAA7D;;QACS,SAAI,GAAG,EAAE,CAAA;QACT,SAAI,GAAG,EAAE,CAAA;QACT,mBAAc,GAAG,EAAE,CAAA;QACnB,aAAQ,GAAoC,EAAE,CAAA;IAkCvD,CAAC;IAhCC,MAAM,CAAC,cAAc,CACnB,SAAmC,EACnC,MAAc;QAEd,MAAM,qBAAqB,GAAG,IAAI,sBAAsB,CAAC,SAAS,CAAC,EAAE,CAAC,CAAA;QACtE,qBAAqB,CAAC,IAAI,GAAG,SAAS,CAAC,IAAI,CAAA;QAC3C,qBAAqB,CAAC,IAAI,GAAG,IAAI,CAAC,eAAe,CAC/C,MAAM,EACN,SAAS,CAAC,OAAO,CAAC,IAAI,CACvB,CAAA;QACD,qBAAqB,CAAC,cAAc,GAAG,IAAI,CAAC,eAAe,CACzD,MAAM,EACN,SAAS,CAAC,OAAO,CAAC,WAAW,CAC9B,CAAA;QACD,qBAAqB,CAAC,QAAQ,GAAG,SAAS,CAAC,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAC,OAAO,CAAC,EAAE,CACxE,6BAA6B,CAAC,cAAc,CAAC,OAAO,EAAE,MAAM,CAAC,CAC9D,CAAA;QACD,OAAO,qBAAqB,CAAA;IAC9B,CAAC;IAED,SAAS,CAAC,EAAU;QAClB,OAAO,CACL,oBAAC,kBAAkB,IACjB,GAAG,EAAE,EAAE,EACP,IAAI,EAAE,IAAI,CAAC,IAAI,EACf,MAAM,EAAE;gBACN,MAAM,EAAE,IAAI,CAAC,cAAc;gBAC3B,QAAQ,EAAE,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,OAAO,CAAC,EAAE,CAAC,OAAO,CAAC,SAAS,EAAE,CAAC;aAC5D,GACmB,CACvB,CAAA;IACH,CAAC;CACF"}
1
+ {"version":3,"file":"flow-whatsapp-button-list.js","sourceRoot":"","sources":["../../../../src/content-fields/whatsapp-button-list/flow-whatsapp-button-list.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAA;AACnD,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAA;AAC5D,OAAO,EAAE,6BAA6B,EAAE,MAAM,qCAAqC,CAAA;AAEnF,MAAM,OAAO,sBAAuB,SAAQ,iBAAiB;IAA7D;;QACS,SAAI,GAAG,EAAE,CAAA;QACT,SAAI,GAAG,EAAE,CAAA;QACT,mBAAc,GAAG,EAAE,CAAA;QACnB,aAAQ,GAAoC,EAAE,CAAA;IAgCvD,CAAC;IA9BC,MAAM,CAAC,cAAc,CACnB,SAAmC,EACnC,MAAc;QAEd,MAAM,qBAAqB,GAAG,IAAI,sBAAsB,CAAC,SAAS,CAAC,EAAE,CAAC,CAAA;QACtE,qBAAqB,CAAC,IAAI,GAAG,SAAS,CAAC,IAAI,CAAA;QAC3C,qBAAqB,CAAC,IAAI,GAAG,IAAI,CAAC,eAAe,CAC/C,MAAM,EACN,SAAS,CAAC,OAAO,CAAC,IAAI,CACvB,CAAA;QACD,qBAAqB,CAAC,cAAc,GAAG,IAAI,CAAC,eAAe,CACzD,MAAM,EACN,SAAS,CAAC,OAAO,CAAC,WAAW,CAC9B,CAAA;QACD,qBAAqB,CAAC,QAAQ,GAAG,SAAS,CAAC,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAC,OAAO,CAAC,EAAE,CACxE,6BAA6B,CAAC,cAAc,CAAC,OAAO,EAAE,MAAM,CAAC,CAC9D,CAAA;QACD,OAAO,qBAAqB,CAAA;IAC9B,CAAC;IAED,SAAS,CAAC,EAAU;QAClB,OAAO,CACL,oBAAC,kBAAkB,IACjB,GAAG,EAAE,EAAE,EACP,IAAI,EAAE,IAAI,CAAC,IAAI,EACf,MAAM,EAAE,IAAI,CAAC,cAAc,EAC3B,QAAQ,EAAE,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,OAAO,CAAC,EAAE,CAAC,OAAO,CAAC,SAAS,EAAE,CAAC,GACvC,CACvB,CAAA;IACH,CAAC;CACF"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@botonic/plugin-flow-builder",
3
- "version": "0.22.2",
3
+ "version": "0.22.3",
4
4
  "main": "./lib/cjs/index.js",
5
5
  "module": "./lib/esm/index.js",
6
6
  "description": "Use Flow Builder to show your contents",
@@ -47,7 +47,7 @@
47
47
  },
48
48
  "dependencies": {
49
49
  "@babel/runtime": "^7.21.0",
50
- "@botonic/react": "^0.22.0",
50
+ "@botonic/react": "^0.22.2",
51
51
  "axios": "^1.3.6"
52
52
  }
53
53
  }
package/src/.DS_Store ADDED
Binary file
Binary file
@@ -1,4 +1,4 @@
1
- import { WhatsappButtonListRowProps } from '@botonic/react/lib/cjs/components/whatsapp-button-list'
1
+ import { WhatsappButtonListRowProps } from '@botonic/react'
2
2
 
3
3
  import { ContentFieldsBase } from '../content-fields-base'
4
4
  import { HtWhatsappButtonListRow } from '../hubtype-fields'
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  WhatsappButtonListRowProps,
3
3
  WhatsappButtonListSectionProps,
4
- } from '@botonic/react/lib/cjs/components/whatsapp-button-list'
4
+ } from '@botonic/react'
5
5
 
6
6
  import { HtWhatsappButtonListSection } from '../hubtype-fields'
7
7
  import { ContentFieldsBase } from './../content-fields-base'
@@ -36,10 +36,8 @@ export class FlowWhatsappButtonList extends ContentFieldsBase {
36
36
  <WhatsappButtonList
37
37
  key={id}
38
38
  body={this.text}
39
- action={{
40
- button: this.listButtonText,
41
- sections: this.sections.map(section => section.toBotonic()),
42
- }}
39
+ button={this.listButtonText}
40
+ sections={this.sections.map(section => section.toBotonic())}
43
41
  ></WhatsappButtonList>
44
42
  )
45
43
  }