@botonic/plugin-flow-builder 0.44.2 → 0.45.0-alpha.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.
- package/lib/cjs/action/ai-agent.d.ts +2 -2
- package/lib/cjs/action/ai-agent.js.map +1 -1
- package/lib/cjs/action/fallback.d.ts +2 -2
- package/lib/cjs/action/fallback.js.map +1 -1
- package/lib/cjs/action/first-interaction.d.ts +2 -2
- package/lib/cjs/action/first-interaction.js +1 -1
- package/lib/cjs/action/first-interaction.js.map +1 -1
- package/lib/cjs/action/index.d.ts +4 -4
- package/lib/cjs/action/index.js.map +1 -1
- package/lib/cjs/action/knowledge-bases.d.ts +2 -2
- package/lib/cjs/action/payload.d.ts +2 -2
- package/lib/cjs/action/payload.js.map +1 -1
- package/lib/cjs/api.d.ts +3 -3
- package/lib/cjs/api.js +10 -5
- package/lib/cjs/api.js.map +1 -1
- package/lib/cjs/content-fields/content-fields-base.d.ts +4 -2
- package/lib/cjs/content-fields/content-fields-base.js +21 -2
- package/lib/cjs/content-fields/content-fields-base.js.map +1 -1
- package/lib/cjs/content-fields/flow-ai-agent.d.ts +3 -3
- package/lib/cjs/content-fields/flow-ai-agent.js +3 -1
- package/lib/cjs/content-fields/flow-ai-agent.js.map +1 -1
- package/lib/cjs/content-fields/flow-bot-action.d.ts +3 -3
- package/lib/cjs/content-fields/flow-bot-action.js.map +1 -1
- package/lib/cjs/content-fields/flow-button.d.ts +4 -4
- package/lib/cjs/content-fields/flow-button.js +6 -5
- package/lib/cjs/content-fields/flow-button.js.map +1 -1
- package/lib/cjs/content-fields/flow-capture-user-input.d.ts +2 -2
- package/lib/cjs/content-fields/flow-carousel.d.ts +4 -4
- package/lib/cjs/content-fields/flow-carousel.js +1 -1
- package/lib/cjs/content-fields/flow-carousel.js.map +1 -1
- package/lib/cjs/content-fields/flow-channel-conditional.d.ts +3 -3
- package/lib/cjs/content-fields/flow-channel-conditional.js.map +1 -1
- package/lib/cjs/content-fields/flow-country-conditional.d.ts +3 -3
- package/lib/cjs/content-fields/flow-country-conditional.js.map +1 -1
- package/lib/cjs/content-fields/flow-custom-conditional.d.ts +3 -3
- package/lib/cjs/content-fields/flow-custom-conditional.js +1 -2
- package/lib/cjs/content-fields/flow-custom-conditional.js.map +1 -1
- package/lib/cjs/content-fields/flow-element.d.ts +4 -4
- package/lib/cjs/content-fields/flow-element.js +3 -3
- package/lib/cjs/content-fields/flow-element.js.map +1 -1
- package/lib/cjs/content-fields/flow-go-to-flow.d.ts +3 -3
- package/lib/cjs/content-fields/flow-go-to-flow.js.map +1 -1
- package/lib/cjs/content-fields/flow-handoff.d.ts +3 -3
- package/lib/cjs/content-fields/flow-handoff.js +2 -2
- package/lib/cjs/content-fields/flow-handoff.js.map +1 -1
- package/lib/cjs/content-fields/flow-image.d.ts +2 -2
- package/lib/cjs/content-fields/flow-image.js +1 -1
- package/lib/cjs/content-fields/flow-image.js.map +1 -1
- package/lib/cjs/content-fields/flow-knowledge-base.d.ts +2 -2
- package/lib/cjs/content-fields/flow-knowledge-base.js.map +1 -1
- package/lib/cjs/content-fields/flow-queue-status-conditional.d.ts +3 -3
- package/lib/cjs/content-fields/flow-queue-status-conditional.js.map +1 -1
- package/lib/cjs/content-fields/flow-rating.d.ts +2 -2
- package/lib/cjs/content-fields/flow-rating.js +3 -3
- package/lib/cjs/content-fields/flow-rating.js.map +1 -1
- package/lib/cjs/content-fields/flow-text.d.ts +5 -5
- package/lib/cjs/content-fields/flow-text.js +1 -1
- package/lib/cjs/content-fields/flow-text.js.map +1 -1
- package/lib/cjs/content-fields/flow-video.d.ts +2 -2
- package/lib/cjs/content-fields/flow-video.js +1 -1
- package/lib/cjs/content-fields/flow-video.js.map +1 -1
- package/lib/cjs/content-fields/flow-webview.d.ts +2 -2
- package/lib/cjs/content-fields/flow-webview.js.map +1 -1
- package/lib/cjs/content-fields/flow-whatsapp-cta-url-button.d.ts +3 -3
- package/lib/cjs/content-fields/flow-whatsapp-cta-url-button.js +10 -6
- package/lib/cjs/content-fields/flow-whatsapp-cta-url-button.js.map +1 -1
- package/lib/cjs/content-fields/flow-whatsapp-template.d.ts +2 -2
- package/lib/cjs/content-fields/flow-whatsapp-template.js.map +1 -1
- package/lib/cjs/content-fields/hubtype-fields/ai-agent.d.ts +2 -2
- package/lib/cjs/content-fields/hubtype-fields/bot-action.d.ts +2 -2
- package/lib/cjs/content-fields/hubtype-fields/button.d.ts +1 -1
- package/lib/cjs/content-fields/hubtype-fields/capture-user-input.d.ts +2 -2
- package/lib/cjs/content-fields/hubtype-fields/carousel.d.ts +3 -3
- package/lib/cjs/content-fields/hubtype-fields/channel-conditional.d.ts +3 -3
- package/lib/cjs/content-fields/hubtype-fields/common.d.ts +2 -2
- package/lib/cjs/content-fields/hubtype-fields/country-conditional.d.ts +3 -3
- package/lib/cjs/content-fields/hubtype-fields/custom-conditional.d.ts +3 -3
- package/lib/cjs/content-fields/hubtype-fields/fallback.d.ts +2 -2
- package/lib/cjs/content-fields/hubtype-fields/function.d.ts +2 -2
- package/lib/cjs/content-fields/hubtype-fields/go-to-flow.d.ts +2 -2
- package/lib/cjs/content-fields/hubtype-fields/handoff.d.ts +2 -2
- package/lib/cjs/content-fields/hubtype-fields/image.d.ts +2 -2
- package/lib/cjs/content-fields/hubtype-fields/keyword.d.ts +2 -2
- package/lib/cjs/content-fields/hubtype-fields/knowledge-base.d.ts +2 -2
- package/lib/cjs/content-fields/hubtype-fields/nodes.d.ts +21 -21
- package/lib/cjs/content-fields/hubtype-fields/payload.d.ts +1 -1
- package/lib/cjs/content-fields/hubtype-fields/queue-status-conditional.d.ts +3 -3
- package/lib/cjs/content-fields/hubtype-fields/rating.d.ts +2 -2
- package/lib/cjs/content-fields/hubtype-fields/smart-intent.d.ts +2 -2
- package/lib/cjs/content-fields/hubtype-fields/text.d.ts +3 -3
- package/lib/cjs/content-fields/hubtype-fields/url.d.ts +1 -1
- package/lib/cjs/content-fields/hubtype-fields/video.d.ts +2 -2
- package/lib/cjs/content-fields/hubtype-fields/webview.d.ts +2 -2
- package/lib/cjs/content-fields/hubtype-fields/whatsapp-button-list.d.ts +2 -2
- package/lib/cjs/content-fields/hubtype-fields/whatsapp-cta-url-button.d.ts +4 -4
- package/lib/cjs/content-fields/hubtype-fields/whatsapp-template.d.ts +4 -4
- package/lib/cjs/content-fields/whatsapp-button-list/flow-whatsapp-button-list-row.d.ts +3 -3
- package/lib/cjs/content-fields/whatsapp-button-list/flow-whatsapp-button-list-row.js +2 -2
- package/lib/cjs/content-fields/whatsapp-button-list/flow-whatsapp-button-list-row.js.map +1 -1
- package/lib/cjs/content-fields/whatsapp-button-list/flow-whatsapp-button-list-section.d.ts +3 -3
- package/lib/cjs/content-fields/whatsapp-button-list/flow-whatsapp-button-list-section.js +3 -2
- package/lib/cjs/content-fields/whatsapp-button-list/flow-whatsapp-button-list-section.js.map +1 -1
- package/lib/cjs/content-fields/whatsapp-button-list/flow-whatsapp-button-list.d.ts +3 -3
- package/lib/cjs/content-fields/whatsapp-button-list/flow-whatsapp-button-list.js +3 -2
- package/lib/cjs/content-fields/whatsapp-button-list/flow-whatsapp-button-list.js.map +1 -1
- package/lib/cjs/filters/index.d.ts +3 -3
- package/lib/cjs/flow-factory.d.ts +4 -4
- package/lib/cjs/functions/index.d.ts +2 -2
- package/lib/cjs/helpers.d.ts +2 -2
- package/lib/cjs/index.d.ts +6 -5
- package/lib/cjs/index.js +5 -1
- package/lib/cjs/index.js.map +1 -1
- package/lib/cjs/tracking.d.ts +3 -3
- package/lib/cjs/tracking.js.map +1 -1
- package/lib/cjs/types.d.ts +4 -3
- package/lib/cjs/types.js.map +1 -1
- package/lib/cjs/user-input/capture-user-input-api.d.ts +3 -3
- package/lib/cjs/user-input/capture-user-input-api.js.map +1 -1
- package/lib/cjs/user-input/index.d.ts +3 -3
- package/lib/cjs/user-input/index.js.map +1 -1
- package/lib/cjs/user-input/keyword.d.ts +3 -3
- package/lib/cjs/user-input/keyword.js.map +1 -1
- package/lib/cjs/user-input/smart-intent.d.ts +3 -3
- package/lib/cjs/user-input/smart-intent.js +6 -3
- package/lib/cjs/user-input/smart-intent.js.map +1 -1
- package/lib/cjs/utils.d.ts +2 -3
- package/lib/cjs/utils.js +0 -21
- package/lib/cjs/utils.js.map +1 -1
- package/lib/cjs/webview/contents-context.d.ts +1 -1
- package/lib/cjs/webview/types.d.ts +1 -1
- package/lib/cjs/webview/use-webview-contents.d.ts +1 -1
- package/lib/esm/action/ai-agent.d.ts +2 -2
- package/lib/esm/action/ai-agent.js.map +1 -1
- package/lib/esm/action/fallback.d.ts +2 -2
- package/lib/esm/action/fallback.js.map +1 -1
- package/lib/esm/action/first-interaction.d.ts +2 -2
- package/lib/esm/action/first-interaction.js +1 -1
- package/lib/esm/action/first-interaction.js.map +1 -1
- package/lib/esm/action/index.d.ts +4 -4
- package/lib/esm/action/index.js.map +1 -1
- package/lib/esm/action/knowledge-bases.d.ts +2 -2
- package/lib/esm/action/payload.d.ts +2 -2
- package/lib/esm/action/payload.js.map +1 -1
- package/lib/esm/api.d.ts +3 -3
- package/lib/esm/api.js +10 -5
- package/lib/esm/api.js.map +1 -1
- package/lib/esm/content-fields/content-fields-base.d.ts +4 -2
- package/lib/esm/content-fields/content-fields-base.js +21 -2
- package/lib/esm/content-fields/content-fields-base.js.map +1 -1
- package/lib/esm/content-fields/flow-ai-agent.d.ts +3 -3
- package/lib/esm/content-fields/flow-ai-agent.js +3 -1
- package/lib/esm/content-fields/flow-ai-agent.js.map +1 -1
- package/lib/esm/content-fields/flow-bot-action.d.ts +3 -3
- package/lib/esm/content-fields/flow-bot-action.js.map +1 -1
- package/lib/esm/content-fields/flow-button.d.ts +4 -4
- package/lib/esm/content-fields/flow-button.js +6 -5
- package/lib/esm/content-fields/flow-button.js.map +1 -1
- package/lib/esm/content-fields/flow-capture-user-input.d.ts +2 -2
- package/lib/esm/content-fields/flow-carousel.d.ts +4 -4
- package/lib/esm/content-fields/flow-carousel.js +1 -1
- package/lib/esm/content-fields/flow-carousel.js.map +1 -1
- package/lib/esm/content-fields/flow-channel-conditional.d.ts +3 -3
- package/lib/esm/content-fields/flow-channel-conditional.js.map +1 -1
- package/lib/esm/content-fields/flow-country-conditional.d.ts +3 -3
- package/lib/esm/content-fields/flow-country-conditional.js.map +1 -1
- package/lib/esm/content-fields/flow-custom-conditional.d.ts +3 -3
- package/lib/esm/content-fields/flow-custom-conditional.js +1 -2
- package/lib/esm/content-fields/flow-custom-conditional.js.map +1 -1
- package/lib/esm/content-fields/flow-element.d.ts +4 -4
- package/lib/esm/content-fields/flow-element.js +3 -3
- package/lib/esm/content-fields/flow-element.js.map +1 -1
- package/lib/esm/content-fields/flow-go-to-flow.d.ts +3 -3
- package/lib/esm/content-fields/flow-go-to-flow.js.map +1 -1
- package/lib/esm/content-fields/flow-handoff.d.ts +3 -3
- package/lib/esm/content-fields/flow-handoff.js +2 -2
- package/lib/esm/content-fields/flow-handoff.js.map +1 -1
- package/lib/esm/content-fields/flow-image.d.ts +2 -2
- package/lib/esm/content-fields/flow-image.js +1 -1
- package/lib/esm/content-fields/flow-image.js.map +1 -1
- package/lib/esm/content-fields/flow-knowledge-base.d.ts +2 -2
- package/lib/esm/content-fields/flow-knowledge-base.js.map +1 -1
- package/lib/esm/content-fields/flow-queue-status-conditional.d.ts +3 -3
- package/lib/esm/content-fields/flow-queue-status-conditional.js.map +1 -1
- package/lib/esm/content-fields/flow-rating.d.ts +2 -2
- package/lib/esm/content-fields/flow-rating.js +3 -3
- package/lib/esm/content-fields/flow-rating.js.map +1 -1
- package/lib/esm/content-fields/flow-text.d.ts +5 -5
- package/lib/esm/content-fields/flow-text.js +1 -1
- package/lib/esm/content-fields/flow-text.js.map +1 -1
- package/lib/esm/content-fields/flow-video.d.ts +2 -2
- package/lib/esm/content-fields/flow-video.js +1 -1
- package/lib/esm/content-fields/flow-video.js.map +1 -1
- package/lib/esm/content-fields/flow-webview.d.ts +2 -2
- package/lib/esm/content-fields/flow-webview.js.map +1 -1
- package/lib/esm/content-fields/flow-whatsapp-cta-url-button.d.ts +3 -3
- package/lib/esm/content-fields/flow-whatsapp-cta-url-button.js +10 -6
- package/lib/esm/content-fields/flow-whatsapp-cta-url-button.js.map +1 -1
- package/lib/esm/content-fields/flow-whatsapp-template.d.ts +2 -2
- package/lib/esm/content-fields/flow-whatsapp-template.js.map +1 -1
- package/lib/esm/content-fields/hubtype-fields/ai-agent.d.ts +2 -2
- package/lib/esm/content-fields/hubtype-fields/bot-action.d.ts +2 -2
- package/lib/esm/content-fields/hubtype-fields/button.d.ts +1 -1
- package/lib/esm/content-fields/hubtype-fields/capture-user-input.d.ts +2 -2
- package/lib/esm/content-fields/hubtype-fields/carousel.d.ts +3 -3
- package/lib/esm/content-fields/hubtype-fields/channel-conditional.d.ts +3 -3
- package/lib/esm/content-fields/hubtype-fields/common.d.ts +2 -2
- package/lib/esm/content-fields/hubtype-fields/country-conditional.d.ts +3 -3
- package/lib/esm/content-fields/hubtype-fields/custom-conditional.d.ts +3 -3
- package/lib/esm/content-fields/hubtype-fields/fallback.d.ts +2 -2
- package/lib/esm/content-fields/hubtype-fields/function.d.ts +2 -2
- package/lib/esm/content-fields/hubtype-fields/go-to-flow.d.ts +2 -2
- package/lib/esm/content-fields/hubtype-fields/handoff.d.ts +2 -2
- package/lib/esm/content-fields/hubtype-fields/image.d.ts +2 -2
- package/lib/esm/content-fields/hubtype-fields/keyword.d.ts +2 -2
- package/lib/esm/content-fields/hubtype-fields/knowledge-base.d.ts +2 -2
- package/lib/esm/content-fields/hubtype-fields/nodes.d.ts +21 -21
- package/lib/esm/content-fields/hubtype-fields/payload.d.ts +1 -1
- package/lib/esm/content-fields/hubtype-fields/queue-status-conditional.d.ts +3 -3
- package/lib/esm/content-fields/hubtype-fields/rating.d.ts +2 -2
- package/lib/esm/content-fields/hubtype-fields/smart-intent.d.ts +2 -2
- package/lib/esm/content-fields/hubtype-fields/text.d.ts +3 -3
- package/lib/esm/content-fields/hubtype-fields/url.d.ts +1 -1
- package/lib/esm/content-fields/hubtype-fields/video.d.ts +2 -2
- package/lib/esm/content-fields/hubtype-fields/webview.d.ts +2 -2
- package/lib/esm/content-fields/hubtype-fields/whatsapp-button-list.d.ts +2 -2
- package/lib/esm/content-fields/hubtype-fields/whatsapp-cta-url-button.d.ts +4 -4
- package/lib/esm/content-fields/hubtype-fields/whatsapp-template.d.ts +4 -4
- package/lib/esm/content-fields/whatsapp-button-list/flow-whatsapp-button-list-row.d.ts +3 -3
- package/lib/esm/content-fields/whatsapp-button-list/flow-whatsapp-button-list-row.js +2 -2
- package/lib/esm/content-fields/whatsapp-button-list/flow-whatsapp-button-list-row.js.map +1 -1
- package/lib/esm/content-fields/whatsapp-button-list/flow-whatsapp-button-list-section.d.ts +3 -3
- package/lib/esm/content-fields/whatsapp-button-list/flow-whatsapp-button-list-section.js +3 -2
- package/lib/esm/content-fields/whatsapp-button-list/flow-whatsapp-button-list-section.js.map +1 -1
- package/lib/esm/content-fields/whatsapp-button-list/flow-whatsapp-button-list.d.ts +3 -3
- package/lib/esm/content-fields/whatsapp-button-list/flow-whatsapp-button-list.js +3 -2
- package/lib/esm/content-fields/whatsapp-button-list/flow-whatsapp-button-list.js.map +1 -1
- package/lib/esm/filters/index.d.ts +3 -3
- package/lib/esm/flow-factory.d.ts +4 -4
- package/lib/esm/functions/index.d.ts +2 -2
- package/lib/esm/helpers.d.ts +2 -2
- package/lib/esm/index.d.ts +6 -5
- package/lib/esm/index.js +5 -1
- package/lib/esm/index.js.map +1 -1
- package/lib/esm/tracking.d.ts +3 -3
- package/lib/esm/tracking.js.map +1 -1
- package/lib/esm/types.d.ts +4 -3
- package/lib/esm/types.js.map +1 -1
- package/lib/esm/user-input/capture-user-input-api.d.ts +3 -3
- package/lib/esm/user-input/capture-user-input-api.js.map +1 -1
- package/lib/esm/user-input/index.d.ts +3 -3
- package/lib/esm/user-input/index.js.map +1 -1
- package/lib/esm/user-input/keyword.d.ts +3 -3
- package/lib/esm/user-input/keyword.js.map +1 -1
- package/lib/esm/user-input/smart-intent.d.ts +3 -3
- package/lib/esm/user-input/smart-intent.js +6 -3
- package/lib/esm/user-input/smart-intent.js.map +1 -1
- package/lib/esm/utils.d.ts +2 -3
- package/lib/esm/utils.js +0 -21
- package/lib/esm/utils.js.map +1 -1
- package/lib/esm/webview/contents-context.d.ts +1 -1
- package/lib/esm/webview/types.d.ts +1 -1
- package/lib/esm/webview/use-webview-contents.d.ts +1 -1
- package/package.json +5 -8
- package/src/action/ai-agent.ts +7 -7
- package/src/action/fallback.ts +5 -5
- package/src/action/first-interaction.ts +5 -5
- package/src/action/index.tsx +6 -6
- package/src/action/knowledge-bases.ts +7 -7
- package/src/action/payload.ts +4 -4
- package/src/api.ts +31 -21
- package/src/content-fields/content-fields-base.ts +32 -4
- package/src/content-fields/flow-ai-agent.tsx +11 -4
- package/src/content-fields/flow-bot-action.tsx +4 -4
- package/src/content-fields/flow-button.tsx +15 -12
- package/src/content-fields/flow-capture-user-input.tsx +2 -2
- package/src/content-fields/flow-carousel.tsx +6 -7
- package/src/content-fields/flow-channel-conditional.tsx +4 -4
- package/src/content-fields/flow-country-conditional.tsx +4 -4
- package/src/content-fields/flow-custom-conditional.tsx +5 -6
- package/src/content-fields/flow-element.tsx +16 -7
- package/src/content-fields/flow-go-to-flow.tsx +4 -4
- package/src/content-fields/flow-handoff.tsx +11 -5
- package/src/content-fields/flow-image.tsx +3 -4
- package/src/content-fields/flow-knowledge-base.tsx +2 -4
- package/src/content-fields/flow-queue-status-conditional.tsx +4 -5
- package/src/content-fields/flow-rating.tsx +5 -5
- package/src/content-fields/flow-text.tsx +10 -7
- package/src/content-fields/flow-video.tsx +3 -4
- package/src/content-fields/flow-webview.tsx +3 -3
- package/src/content-fields/flow-whatsapp-cta-url-button.tsx +25 -22
- package/src/content-fields/flow-whatsapp-template.tsx +10 -11
- package/src/content-fields/hubtype-fields/ai-agent.ts +2 -2
- package/src/content-fields/hubtype-fields/bot-action.ts +2 -2
- package/src/content-fields/hubtype-fields/button.ts +1 -1
- package/src/content-fields/hubtype-fields/capture-user-input.ts +2 -2
- package/src/content-fields/hubtype-fields/carousel.ts +3 -3
- package/src/content-fields/hubtype-fields/channel-conditional.ts +3 -3
- package/src/content-fields/hubtype-fields/common.ts +5 -2
- package/src/content-fields/hubtype-fields/country-conditional.ts +3 -3
- package/src/content-fields/hubtype-fields/custom-conditional.ts +3 -3
- package/src/content-fields/hubtype-fields/fallback.ts +2 -2
- package/src/content-fields/hubtype-fields/function.ts +2 -2
- package/src/content-fields/hubtype-fields/go-to-flow.ts +2 -2
- package/src/content-fields/hubtype-fields/handoff.ts +2 -2
- package/src/content-fields/hubtype-fields/image.ts +2 -2
- package/src/content-fields/hubtype-fields/keyword.ts +2 -2
- package/src/content-fields/hubtype-fields/knowledge-base.ts +2 -2
- package/src/content-fields/hubtype-fields/nodes.ts +21 -21
- package/src/content-fields/hubtype-fields/payload.ts +1 -1
- package/src/content-fields/hubtype-fields/queue-status-conditional.ts +3 -3
- package/src/content-fields/hubtype-fields/rating.ts +2 -2
- package/src/content-fields/hubtype-fields/smart-intent.ts +2 -2
- package/src/content-fields/hubtype-fields/text.ts +3 -3
- package/src/content-fields/hubtype-fields/url.ts +1 -1
- package/src/content-fields/hubtype-fields/video.ts +2 -2
- package/src/content-fields/hubtype-fields/webview.ts +2 -2
- package/src/content-fields/hubtype-fields/whatsapp-button-list.ts +2 -2
- package/src/content-fields/hubtype-fields/whatsapp-cta-url-button.ts +4 -4
- package/src/content-fields/hubtype-fields/whatsapp-template.ts +4 -4
- package/src/content-fields/whatsapp-button-list/flow-whatsapp-button-list-row.tsx +11 -5
- package/src/content-fields/whatsapp-button-list/flow-whatsapp-button-list-section.tsx +10 -5
- package/src/content-fields/whatsapp-button-list/flow-whatsapp-button-list.tsx +14 -9
- package/src/filters/index.ts +3 -3
- package/src/flow-factory.ts +5 -5
- package/src/functions/index.ts +2 -2
- package/src/helpers.ts +2 -2
- package/src/index.ts +24 -19
- package/src/tracking.ts +5 -5
- package/src/types.ts +8 -7
- package/src/user-input/capture-user-input-api.ts +4 -4
- package/src/user-input/index.ts +6 -3
- package/src/user-input/keyword.ts +4 -4
- package/src/user-input/smart-intent.ts +14 -8
- package/src/utils.ts +3 -35
- package/src/webview/contents-context.ts +1 -1
- package/src/webview/types.ts +1 -1
- package/src/webview/use-webview-contents.ts +6 -6
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { HtBaseNode } from './common';
|
|
2
|
-
import { HtFunctionResult } from './function';
|
|
3
|
-
import { HtNodeWithContentType } from './node-types';
|
|
1
|
+
import type { HtBaseNode } from './common';
|
|
2
|
+
import type { HtFunctionResult } from './function';
|
|
3
|
+
import type { HtNodeWithContentType } from './node-types';
|
|
4
4
|
export interface HtCountryConditionalNode extends HtBaseNode {
|
|
5
5
|
type: HtNodeWithContentType.FUNCTION;
|
|
6
6
|
content: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { HtBaseNode } from './common';
|
|
2
|
-
import { HtFunctionArguments, HtFunctionResult } from './function';
|
|
3
|
-
import { HtNodeWithContentType } from './node-types';
|
|
1
|
+
import type { HtBaseNode } from './common';
|
|
2
|
+
import type { HtFunctionArguments, HtFunctionResult } from './function';
|
|
3
|
+
import type { HtNodeWithContentType } from './node-types';
|
|
4
4
|
export interface HtCustomConditionalNode extends HtBaseNode {
|
|
5
5
|
type: HtNodeWithContentType.FUNCTION;
|
|
6
6
|
content: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { HtBaseNode, HtNodeLink } from './common';
|
|
2
|
-
import { HtNodeWithContentType } from './node-types';
|
|
1
|
+
import type { HtBaseNode, HtNodeLink } from './common';
|
|
2
|
+
import type { HtNodeWithContentType } from './node-types';
|
|
3
3
|
export interface HtFallbackNode extends HtBaseNode {
|
|
4
4
|
type: HtNodeWithContentType.FALLBACK;
|
|
5
5
|
content: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { HtBaseNode, HtNodeLink } from './common';
|
|
2
|
-
import { HtNodeWithContentType } from './node-types';
|
|
1
|
+
import type { HtBaseNode, HtNodeLink } from './common';
|
|
2
|
+
import type { HtNodeWithContentType } from './node-types';
|
|
3
3
|
export declare enum HtArgumentType {
|
|
4
4
|
BOOLEAN = "boolean",
|
|
5
5
|
NUMBER = "number",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { HtBaseNode } from './common';
|
|
2
|
-
import { HtNodeWithContentType } from './node-types';
|
|
1
|
+
import type { HtBaseNode } from './common';
|
|
2
|
+
import type { HtNodeWithContentType } from './node-types';
|
|
3
3
|
export interface HtGoToFlow extends HtBaseNode {
|
|
4
4
|
id: string;
|
|
5
5
|
type: HtNodeWithContentType.GO_TO_FLOW;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { HtBaseNode, HtPayloadLocale, HtQueueLocale } from './common';
|
|
2
|
-
import { HtNodeWithContentType } from './node-types';
|
|
1
|
+
import type { HtBaseNode, HtPayloadLocale, HtQueueLocale } from './common';
|
|
2
|
+
import type { HtNodeWithContentType } from './node-types';
|
|
3
3
|
export interface HtHandoffNode extends HtBaseNode {
|
|
4
4
|
type: HtNodeWithContentType.HANDOFF;
|
|
5
5
|
content: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { HtBaseNode, HtMediaFileLocale } from './common';
|
|
2
|
-
import { HtNodeWithContentType } from './node-types';
|
|
1
|
+
import type { HtBaseNode, HtMediaFileLocale } from './common';
|
|
2
|
+
import type { HtNodeWithContentType } from './node-types';
|
|
3
3
|
export interface HtImageNode extends HtBaseNode {
|
|
4
4
|
type: HtNodeWithContentType.IMAGE;
|
|
5
5
|
content: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { HtBaseNode, HtInputLocale, HtTextLocale } from './common';
|
|
2
|
-
import { HtNodeWithContentType } from './node-types';
|
|
1
|
+
import type { HtBaseNode, HtInputLocale, HtTextLocale } from './common';
|
|
2
|
+
import type { HtNodeWithContentType } from './node-types';
|
|
3
3
|
export interface HtKeywordNode extends HtBaseNode {
|
|
4
4
|
type: HtNodeWithContentType.KEYWORD;
|
|
5
5
|
content: {
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import { HtAiAgentNode } from './ai-agent';
|
|
2
|
-
import { HtBotActionNode } from './bot-action';
|
|
3
|
-
import { HtCaptureUserInputNode } from './capture-user-input';
|
|
4
|
-
import { HtCarouselNode } from './carousel';
|
|
5
|
-
import { HtFallbackNode } from './fallback';
|
|
6
|
-
import { HtFunctionNode } from './function';
|
|
7
|
-
import { HtGoToFlow } from './go-to-flow';
|
|
8
|
-
import { HtHandoffNode } from './handoff';
|
|
9
|
-
import { HtImageNode } from './image';
|
|
10
|
-
import { HtKeywordNode } from './keyword';
|
|
11
|
-
import { HtKnowledgeBaseNode } from './knowledge-base';
|
|
12
|
-
import { HtPayloadNode } from './payload';
|
|
13
|
-
import { HtRatingNode } from './rating';
|
|
14
|
-
import { HtSmartIntentNode } from './smart-intent';
|
|
15
|
-
import { HtTextNode } from './text';
|
|
16
|
-
import { HtUrlNode } from './url';
|
|
17
|
-
import { HtVideoNode } from './video';
|
|
18
|
-
import { HtWebviewNode } from './webview';
|
|
19
|
-
import { HtWhatsappButtonListNode } from './whatsapp-button-list';
|
|
20
|
-
import { HtWhatsappCTAUrlButtonNode } from './whatsapp-cta-url-button';
|
|
21
|
-
import { HtWhatsappTemplateNode } from './whatsapp-template';
|
|
1
|
+
import type { HtAiAgentNode } from './ai-agent';
|
|
2
|
+
import type { HtBotActionNode } from './bot-action';
|
|
3
|
+
import type { HtCaptureUserInputNode } from './capture-user-input';
|
|
4
|
+
import type { HtCarouselNode } from './carousel';
|
|
5
|
+
import type { HtFallbackNode } from './fallback';
|
|
6
|
+
import type { HtFunctionNode } from './function';
|
|
7
|
+
import type { HtGoToFlow } from './go-to-flow';
|
|
8
|
+
import type { HtHandoffNode } from './handoff';
|
|
9
|
+
import type { HtImageNode } from './image';
|
|
10
|
+
import type { HtKeywordNode } from './keyword';
|
|
11
|
+
import type { HtKnowledgeBaseNode } from './knowledge-base';
|
|
12
|
+
import type { HtPayloadNode } from './payload';
|
|
13
|
+
import type { HtRatingNode } from './rating';
|
|
14
|
+
import type { HtSmartIntentNode } from './smart-intent';
|
|
15
|
+
import type { HtTextNode } from './text';
|
|
16
|
+
import type { HtUrlNode } from './url';
|
|
17
|
+
import type { HtVideoNode } from './video';
|
|
18
|
+
import type { HtWebviewNode } from './webview';
|
|
19
|
+
import type { HtWhatsappButtonListNode } from './whatsapp-button-list';
|
|
20
|
+
import type { HtWhatsappCTAUrlButtonNode } from './whatsapp-cta-url-button';
|
|
21
|
+
import type { HtWhatsappTemplateNode } from './whatsapp-template';
|
|
22
22
|
export type HtNodeWithContent = HtTextNode | HtImageNode | HtVideoNode | HtCarouselNode | HtHandoffNode | HtKeywordNode | HtFunctionNode | HtFallbackNode | HtWhatsappButtonListNode | HtWhatsappCTAUrlButtonNode | HtSmartIntentNode | HtKnowledgeBaseNode | HtBotActionNode | HtAiAgentNode | HtRatingNode | HtWebviewNode | HtGoToFlow | HtWhatsappTemplateNode | HtCaptureUserInputNode;
|
|
23
23
|
export type HtNodeWithoutContent = HtUrlNode | HtPayloadNode;
|
|
24
24
|
export type HtNodeComponent = HtNodeWithContent | HtNodeWithoutContent;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { HtBaseNode, HtNodeLink } from './common';
|
|
2
|
-
import { HtFunctionArguments, HtFunctionResult } from './function';
|
|
3
|
-
import { HtNodeWithContentType } from './node-types';
|
|
1
|
+
import type { HtBaseNode, HtNodeLink } from './common';
|
|
2
|
+
import type { HtFunctionArguments, HtFunctionResult } from './function';
|
|
3
|
+
import type { HtNodeWithContentType } from './node-types';
|
|
4
4
|
export type HtQueueStatusConditionalResultMapping = [
|
|
5
5
|
{
|
|
6
6
|
result: 'open';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { HtBaseNode, HtNodeLink, HtTextLocale } from './common';
|
|
2
|
-
import { HtNodeWithContentType } from './node-types';
|
|
1
|
+
import type { HtBaseNode, HtNodeLink, HtTextLocale } from './common';
|
|
2
|
+
import type { HtNodeWithContentType } from './node-types';
|
|
3
3
|
export declare enum RatingType {
|
|
4
4
|
Stars = "stars",
|
|
5
5
|
Smileys = "smileys"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { HtButton } from './button';
|
|
2
|
-
import { HtBaseNode, HtTextLocale } from './common';
|
|
3
|
-
import { HtButtonStyle, HtNodeWithContentType } from './node-types';
|
|
1
|
+
import type { HtButton } from './button';
|
|
2
|
+
import type { HtBaseNode, HtTextLocale } from './common';
|
|
3
|
+
import type { HtButtonStyle, HtNodeWithContentType } from './node-types';
|
|
4
4
|
export interface HtTextNode extends HtBaseNode {
|
|
5
5
|
type: HtNodeWithContentType.TEXT;
|
|
6
6
|
content: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { HtBaseNode, HtVideoLocale } from './common';
|
|
2
|
-
import { HtNodeWithContentType } from './node-types';
|
|
1
|
+
import type { HtBaseNode, HtVideoLocale } from './common';
|
|
2
|
+
import type { HtNodeWithContentType } from './node-types';
|
|
3
3
|
export interface HtVideoNode extends HtBaseNode {
|
|
4
4
|
type: HtNodeWithContentType.VIDEO;
|
|
5
5
|
content: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { HtBaseNode, HtNodeLink } from './common';
|
|
2
|
-
import { HtNodeWithContentType } from './node-types';
|
|
1
|
+
import type { HtBaseNode, HtNodeLink } from './common';
|
|
2
|
+
import type { HtNodeWithContentType } from './node-types';
|
|
3
3
|
export interface HtWebviewExits {
|
|
4
4
|
id: string;
|
|
5
5
|
name: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { HtBaseNode, HtNodeLink, HtTextLocale } from './common';
|
|
2
|
-
import { HtNodeWithContentType } from './node-types';
|
|
1
|
+
import type { HtBaseNode, HtNodeLink, HtTextLocale } from './common';
|
|
2
|
+
import type { HtNodeWithContentType } from './node-types';
|
|
3
3
|
export interface HtWhatsappButtonListRow {
|
|
4
4
|
id: string;
|
|
5
5
|
text: HtTextLocale[];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { WhatsappCTAUrlHeaderType } from '@botonic/react';
|
|
2
|
-
import { HtButton } from './button';
|
|
3
|
-
import { HtBaseNode, HtMediaFileLocale, HtTextLocale } from './common';
|
|
4
|
-
import { HtNodeWithContentType } from './node-types';
|
|
1
|
+
import type { WhatsappCTAUrlHeaderType } from '@botonic/react';
|
|
2
|
+
import type { HtButton } from './button';
|
|
3
|
+
import type { HtBaseNode, HtMediaFileLocale, HtTextLocale } from './common';
|
|
4
|
+
import type { HtNodeWithContentType } from './node-types';
|
|
5
5
|
export interface HtWhatsappCTAUrlButtonNode extends HtBaseNode {
|
|
6
6
|
type: HtNodeWithContentType.WHATSAPP_CTA_URL_BUTTON;
|
|
7
7
|
content: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { WhatsAppTemplateButtonSubType, WhatsAppTemplateComponentType, WhatsAppTemplateParameterType } from '@botonic/react';
|
|
2
|
-
import { HtButton } from './button';
|
|
3
|
-
import { HtBaseNode, HtMediaFileLocale } from './common';
|
|
4
|
-
import { HtNodeWithContentType } from './node-types';
|
|
1
|
+
import type { WhatsAppTemplateButtonSubType, WhatsAppTemplateComponentType, WhatsAppTemplateParameterType } from '@botonic/react';
|
|
2
|
+
import type { HtButton } from './button';
|
|
3
|
+
import type { HtBaseNode, HtMediaFileLocale } from './common';
|
|
4
|
+
import type { HtNodeWithContentType } from './node-types';
|
|
5
5
|
type HtWhatsAppTemplateButton = {
|
|
6
6
|
type: WhatsAppTemplateButtonSubType.URL;
|
|
7
7
|
text: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ActionRequest, WhatsappButtonListRowProps } from '@botonic/react';
|
|
2
|
-
import { FlowBuilderApi } from '../../api';
|
|
1
|
+
import type { ActionRequest, WhatsappButtonListRowProps } from '@botonic/react';
|
|
2
|
+
import type { FlowBuilderApi } from '../../api';
|
|
3
3
|
import { ContentFieldsBase } from '../content-fields-base';
|
|
4
|
-
import { HtWhatsappButtonListRow } from '../hubtype-fields';
|
|
4
|
+
import type { HtWhatsappButtonListRow } from '../hubtype-fields';
|
|
5
5
|
export declare class FlowWhatsappButtonListRow extends ContentFieldsBase {
|
|
6
6
|
title: string;
|
|
7
7
|
description: string;
|
|
@@ -11,8 +11,8 @@ class FlowWhatsappButtonListRow extends content_fields_base_1.ContentFieldsBase
|
|
|
11
11
|
}
|
|
12
12
|
static fromHubtypeCMS(component, locale, cmsApi) {
|
|
13
13
|
const newRow = new FlowWhatsappButtonListRow(component.id);
|
|
14
|
-
newRow.title =
|
|
15
|
-
newRow.description =
|
|
14
|
+
newRow.title = FlowWhatsappButtonListRow.getTextByLocale(locale, component.text);
|
|
15
|
+
newRow.description = FlowWhatsappButtonListRow.getTextByLocale(locale, component.description);
|
|
16
16
|
newRow.targetId = cmsApi.getPayload(component.target);
|
|
17
17
|
return newRow;
|
|
18
18
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"flow-whatsapp-button-list-row.js","sourceRoot":"","sources":["../../../../src/content-fields/whatsapp-button-list/flow-whatsapp-button-list-row.tsx"],"names":[],"mappings":";;;AAGA,+CAAuD;AACvD,gEAA0D;AAG1D,MAAa,yBAA0B,SAAQ,uCAAiB;IAAhE;;QACS,UAAK,GAAG,EAAE,CAAA;QACV,gBAAW,GAAG,EAAE,CAAA;
|
|
1
|
+
{"version":3,"file":"flow-whatsapp-button-list-row.js","sourceRoot":"","sources":["../../../../src/content-fields/whatsapp-button-list/flow-whatsapp-button-list-row.tsx"],"names":[],"mappings":";;;AAGA,+CAAuD;AACvD,gEAA0D;AAG1D,MAAa,yBAA0B,SAAQ,uCAAiB;IAAhE;;QACS,UAAK,GAAG,EAAE,CAAA;QACV,gBAAW,GAAG,EAAE,CAAA;IA6CzB,CAAC;IA1CC,MAAM,CAAC,cAAc,CACnB,SAAkC,EAClC,MAAc,EACd,MAAsB;QAEtB,MAAM,MAAM,GAAG,IAAI,yBAAyB,CAAC,SAAS,CAAC,EAAE,CAAC,CAAA;QAC1D,MAAM,CAAC,KAAK,GAAG,yBAAyB,CAAC,eAAe,CACtD,MAAM,EACN,SAAS,CAAC,IAAI,CACf,CAAA;QACD,MAAM,CAAC,WAAW,GAAG,yBAAyB,CAAC,eAAe,CAC5D,MAAM,EACN,SAAS,CAAC,WAAW,CACtB,CAAA;QACD,MAAM,CAAC,QAAQ,GAAG,MAAM,CAAC,UAAU,CAAC,SAAS,CAAC,MAAM,CAAC,CAAA;QAErD,OAAO,MAAM,CAAA;IACf,CAAC;IAED,6DAA6D;IAC7D,KAAK,CAAC,SAAS,CAAC,QAAuB;QACrC,0FAA0F;IAC5F,CAAC;IAED,SAAS,CACP,QAAgB,EAChB,YAAoB;QAEpB,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC;YACnB,OAAO,CAAC,KAAK,CAAC,oBAAoB,IAAI,CAAC,KAAK,iBAAiB,CAAC,CAAA;YAC9D,OAAO,SAAS,CAAA;QAClB,CAAC;QACD,OAAO;YACL,EAAE,EAAE,IAAI,CAAC,QAAQ,CAAC,QAAQ,EAAE,YAAY,CAAC;YACzC,KAAK,EAAE,IAAI,CAAC,KAAK;YACjB,WAAW,EAAE,IAAI,CAAC,WAAW;SAC9B,CAAA;IACH,CAAC;IAEO,QAAQ,CAAC,QAAgB,EAAE,YAAoB;QACrD,OAAO,GAAG,IAAI,CAAC,QAAQ,GAAG,iCAAqB,GAAG,YAAY,IAAI,QAAQ,EAAE,CAAA;IAC9E,CAAC;CACF;AA/CD,8DA+CC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ActionRequest, WhatsappButtonListSectionProps } from '@botonic/react';
|
|
2
|
-
import { FlowBuilderApi } from '../../api';
|
|
1
|
+
import type { ActionRequest, WhatsappButtonListSectionProps } from '@botonic/react';
|
|
2
|
+
import type { FlowBuilderApi } from '../../api';
|
|
3
3
|
import { ContentFieldsBase } from '../content-fields-base';
|
|
4
|
-
import { HtWhatsappButtonListSection } from '../hubtype-fields';
|
|
4
|
+
import type { HtWhatsappButtonListSection } from '../hubtype-fields';
|
|
5
5
|
import { FlowWhatsappButtonListRow } from './flow-whatsapp-button-list-row';
|
|
6
6
|
export declare class FlowWhatsappButtonListSection extends ContentFieldsBase {
|
|
7
7
|
title: string;
|
|
@@ -11,7 +11,7 @@ class FlowWhatsappButtonListSection extends content_fields_base_1.ContentFieldsB
|
|
|
11
11
|
}
|
|
12
12
|
static fromHubtypeCMS(component, locale, cmsApi) {
|
|
13
13
|
const newButton = new FlowWhatsappButtonListSection(component.id);
|
|
14
|
-
newButton.title =
|
|
14
|
+
newButton.title = FlowWhatsappButtonListSection.getTextByLocale(locale, component.title);
|
|
15
15
|
newButton.rows = component.rows.map(row => flow_whatsapp_button_list_row_1.FlowWhatsappButtonListRow.fromHubtypeCMS(row, locale, cmsApi));
|
|
16
16
|
return newButton;
|
|
17
17
|
}
|
|
@@ -22,8 +22,9 @@ class FlowWhatsappButtonListSection extends content_fields_base_1.ContentFieldsB
|
|
|
22
22
|
toBotonic(sectionIndex) {
|
|
23
23
|
const rows = this.rows.reduce((acc, row, rowIndex) => {
|
|
24
24
|
const botonicRow = row.toBotonic(rowIndex, sectionIndex);
|
|
25
|
-
if (botonicRow)
|
|
25
|
+
if (botonicRow) {
|
|
26
26
|
acc.push(botonicRow);
|
|
27
|
+
}
|
|
27
28
|
return acc;
|
|
28
29
|
}, []);
|
|
29
30
|
return { title: this.title, rows };
|
package/lib/esm/content-fields/whatsapp-button-list/flow-whatsapp-button-list-section.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"flow-whatsapp-button-list-section.js","sourceRoot":"","sources":["../../../../src/content-fields/whatsapp-button-list/flow-whatsapp-button-list-section.tsx"],"names":[],"mappings":";;;AAOA,gEAA0D;AAE1D,mFAA2E;AAE3E,MAAa,6BAA8B,SAAQ,uCAAiB;IAApE;;QACS,UAAK,GAAG,EAAE,CAAA;QACV,SAAI,GAAgC,EAAE,CAAA;
|
|
1
|
+
{"version":3,"file":"flow-whatsapp-button-list-section.js","sourceRoot":"","sources":["../../../../src/content-fields/whatsapp-button-list/flow-whatsapp-button-list-section.tsx"],"names":[],"mappings":";;;AAOA,gEAA0D;AAE1D,mFAA2E;AAE3E,MAAa,6BAA8B,SAAQ,uCAAiB;IAApE;;QACS,UAAK,GAAG,EAAE,CAAA;QACV,SAAI,GAAgC,EAAE,CAAA;IAqC/C,CAAC;IAnCC,MAAM,CAAC,cAAc,CACnB,SAAsC,EACtC,MAAc,EACd,MAAsB;QAEtB,MAAM,SAAS,GAAG,IAAI,6BAA6B,CAAC,SAAS,CAAC,EAAE,CAAC,CAAA;QACjE,SAAS,CAAC,KAAK,GAAG,6BAA6B,CAAC,eAAe,CAC7D,MAAM,EACN,SAAS,CAAC,KAAK,CAChB,CAAA;QACD,SAAS,CAAC,IAAI,GAAG,SAAS,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CACxC,yDAAyB,CAAC,cAAc,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,CAAC,CAC9D,CAAA;QACD,OAAO,SAAS,CAAA;IAClB,CAAC;IAED,6DAA6D;IAC7D,KAAK,CAAC,SAAS,CAAC,QAAuB;QACrC,0FAA0F;IAC5F,CAAC;IAED,SAAS,CAAC,YAAoB;QAC5B,MAAM,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC,MAAM,CAC3B,CAAC,GAAiC,EAAE,GAAG,EAAE,QAAQ,EAAE,EAAE;YACnD,MAAM,UAAU,GAAG,GAAG,CAAC,SAAS,CAAC,QAAQ,EAAE,YAAY,CAAC,CAAA;YACxD,IAAI,UAAU,EAAE,CAAC;gBACf,GAAG,CAAC,IAAI,CAAC,UAAU,CAAC,CAAA;YACtB,CAAC;YACD,OAAO,GAAG,CAAA;QACZ,CAAC,EACD,EAAE,CACH,CAAA;QAED,OAAO,EAAE,KAAK,EAAE,IAAI,CAAC,KAAK,EAAE,IAAI,EAAE,CAAA;IACpC,CAAC;CACF;AAvCD,sEAuCC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ActionRequest } from '@botonic/react';
|
|
2
|
-
import { FlowBuilderApi } from '../../api';
|
|
1
|
+
import { type ActionRequest } from '@botonic/react';
|
|
2
|
+
import type { FlowBuilderApi } from '../../api';
|
|
3
3
|
import { ContentFieldsBase } from '../content-fields-base';
|
|
4
|
-
import { HtWhatsappButtonListNode } from '../hubtype-fields';
|
|
4
|
+
import type { HtWhatsappButtonListNode } from '../hubtype-fields';
|
|
5
5
|
import { FlowWhatsappButtonListSection } from './flow-whatsapp-button-list-section';
|
|
6
6
|
export declare class FlowWhatsappButtonList extends ContentFieldsBase {
|
|
7
7
|
text: string;
|
|
@@ -17,8 +17,9 @@ class FlowWhatsappButtonList extends content_fields_base_1.ContentFieldsBase {
|
|
|
17
17
|
static fromHubtypeCMS(component, locale, cmsApi) {
|
|
18
18
|
const newWhatsappButtonList = new FlowWhatsappButtonList(component.id);
|
|
19
19
|
newWhatsappButtonList.code = component.code;
|
|
20
|
-
newWhatsappButtonList.text =
|
|
21
|
-
newWhatsappButtonList.listButtonText =
|
|
20
|
+
newWhatsappButtonList.text = FlowWhatsappButtonList.getTextByLocale(locale, component.content.text);
|
|
21
|
+
newWhatsappButtonList.listButtonText =
|
|
22
|
+
FlowWhatsappButtonList.getTextByLocale(locale, component.content.button_text);
|
|
22
23
|
newWhatsappButtonList.sections = component.content.sections.map(section => flow_whatsapp_button_list_section_1.FlowWhatsappButtonListSection.fromHubtypeCMS(section, locale, cmsApi));
|
|
23
24
|
newWhatsappButtonList.followUp = component.follow_up;
|
|
24
25
|
return newWhatsappButtonList;
|
|
@@ -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,wCAA0C;AAC1C,
|
|
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,wCAA0C;AAC1C,0CAKuB;AAGvB,6CAAgD;AAChD,gEAA0D;AAE1D,2FAAmF;AAEnF,MAAa,sBAAuB,SAAQ,uCAAiB;IAA7D;;QACS,SAAI,GAAG,EAAE,CAAA;QACT,mBAAc,GAAG,EAAE,CAAA;QACnB,aAAQ,GAAoC,EAAE,CAAA;IA4DvD,CAAC;IA1DC,MAAM,CAAC,cAAc,CACnB,SAAmC,EACnC,MAAc,EACd,MAAsB;QAEtB,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,sBAAsB,CAAC,eAAe,CACjE,MAAM,EACN,SAAS,CAAC,OAAO,CAAC,IAAI,CACvB,CAAA;QACD,qBAAqB,CAAC,cAAc;YAClC,sBAAsB,CAAC,eAAe,CACpC,MAAM,EACN,SAAS,CAAC,OAAO,CAAC,WAAW,CAC9B,CAAA;QACH,qBAAqB,CAAC,QAAQ,GAAG,SAAS,CAAC,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAC,OAAO,CAAC,EAAE,CACxE,iEAA6B,CAAC,cAAc,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,CAAC,CACtE,CAAA;QACD,qBAAqB,CAAC,QAAQ,GAAG,SAAS,CAAC,SAAS,CAAA;QAEpD,OAAO,qBAAqB,CAAA;IAC9B,CAAC;IAED,KAAK,CAAC,SAAS,CAAC,OAAsB;QACpC,MAAM,IAAA,0BAAe,EAAC,OAAO,EAAE,IAAI,CAAC,CAAA;IACtC,CAAC;IAED,SAAS,CAAC,EAAU,EAAE,OAAsB;QAC1C,MAAM,YAAY,GAAG,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,IAAI,EAAE,OAAO,CAAC,CAAA;QAE9D,IAAI,CAAC,IAAA,iBAAU,EAAC,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC;YACjC,MAAM,IAAI,GAAG,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,CAAA;YAC3D,MAAM,OAAO,GAAG,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC,CAC9B,uBAAC,cAAM,IAAc,OAAO,EAAE,GAAG,CAAC,QAAQ,YACvC,GAAG,CAAC,KAAK,IADC,GAAG,CAAC,EAAE,CAEV,CACV,CAAC,CAAA;YAEF,OAAO,CACL,wBAAC,YAAI,eACF,YAAY,EACZ,OAAO,IACH,CACR,CAAA;QACH,CAAC;QAED,OAAO,CACL,uBAAC,0BAAkB,IAEjB,IAAI,EAAE,YAAY,EAClB,MAAM,EAAE,IAAI,CAAC,cAAc,EAC3B,QAAQ,EAAE,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,CACpD,OAAO,CAAC,SAAS,CAAC,YAAY,CAAC,CAChC,IALI,EAAE,CAMa,CACvB,CAAA;IACH,CAAC;CACF;AA/DD,wDA+DC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { BotContext } from '@botonic/core';
|
|
2
|
-
import { FlowContent } from '../content-fields';
|
|
3
|
-
import { ContentFilter } from '../types';
|
|
1
|
+
import type { BotContext } from '@botonic/core';
|
|
2
|
+
import type { FlowContent } from '../content-fields';
|
|
3
|
+
import type { ContentFilter } from '../types';
|
|
4
4
|
interface ContentFilterExecutorOptions {
|
|
5
5
|
filters: ContentFilter[];
|
|
6
6
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ActionRequest } from '@botonic/react';
|
|
2
|
-
import { FlowBuilderApi } from './api';
|
|
3
|
-
import { FlowContent } from './content-fields';
|
|
4
|
-
import { HtNodeComponent } from './content-fields/hubtype-fields';
|
|
1
|
+
import type { ActionRequest } from '@botonic/react';
|
|
2
|
+
import type { FlowBuilderApi } from './api';
|
|
3
|
+
import { type FlowContent } from './content-fields';
|
|
4
|
+
import { type HtNodeComponent } from './content-fields/hubtype-fields';
|
|
5
5
|
export declare class FlowFactory {
|
|
6
6
|
currentRequest: ActionRequest;
|
|
7
7
|
cmsApi: FlowBuilderApi;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ActionRequest } from '@botonic/react';
|
|
2
|
-
import { HtFunctionArgument, HtFunctionArguments, HtFunctionNode } from '../content-fields/hubtype-fields';
|
|
1
|
+
import type { ActionRequest } from '@botonic/react';
|
|
2
|
+
import type { HtFunctionArgument, HtFunctionArguments, HtFunctionNode } from '../content-fields/hubtype-fields';
|
|
3
3
|
export declare const DEFAULT_FUNCTION_NAMES: string[];
|
|
4
4
|
export declare class CustomFunction {
|
|
5
5
|
functions: Record<any, any>;
|
package/lib/esm/helpers.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { ResolvedPlugins } from '@botonic/core';
|
|
2
|
-
import BotonicPluginFlowBuilder from './index';
|
|
1
|
+
import type { ResolvedPlugins } from '@botonic/core';
|
|
2
|
+
import type BotonicPluginFlowBuilder from './index';
|
|
3
3
|
export declare function getFlowBuilderPlugin(plugins: ResolvedPlugins): BotonicPluginFlowBuilder;
|
package/lib/esm/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Plugin, PluginPreRequest, ResolvedPlugins, Session } from '@botonic/core';
|
|
1
|
+
import { type Plugin, type PluginPreRequest, type ResolvedPlugins, type Session } from '@botonic/core';
|
|
2
2
|
import { FlowBuilderApi } from './api';
|
|
3
|
-
import { FlowContent } from './content-fields';
|
|
4
|
-
import { HtNodeWithContent } from './content-fields/hubtype-fields';
|
|
5
|
-
import { AiAgentFunction, BotonicPluginFlowBuilderOptions, ContentFilter, FlowBuilderJSONVersion, InShadowingConfig, KnowledgeBaseFunction, PayloadParamsBase, RatingSubmittedInfo, TrackEventFunction } from './types';
|
|
6
|
-
import { SmartIntentsInferenceConfig } from './user-input/smart-intent';
|
|
3
|
+
import type { FlowContent } from './content-fields';
|
|
4
|
+
import { type HtNodeWithContent } from './content-fields/hubtype-fields';
|
|
5
|
+
import { type AiAgentFunction, type BotonicPluginFlowBuilderOptions, type ContentFilter, FlowBuilderJSONVersion, type InShadowingConfig, type KnowledgeBaseFunction, type PayloadParamsBase, type RatingSubmittedInfo, type TrackEventFunction } from './types';
|
|
6
|
+
import type { SmartIntentsInferenceConfig } from './user-input/smart-intent';
|
|
7
7
|
export default class BotonicPluginFlowBuilder implements Plugin {
|
|
8
8
|
cmsApi: FlowBuilderApi;
|
|
9
9
|
private flow?;
|
|
@@ -35,6 +35,7 @@ export default class BotonicPluginFlowBuilder implements Plugin {
|
|
|
35
35
|
getPayloadParams<T extends PayloadParamsBase>(payload: string): T;
|
|
36
36
|
getFlowName(flowId: string): string;
|
|
37
37
|
getRatingSubmittedInfo(payload: string): RatingSubmittedInfo;
|
|
38
|
+
setInShadowing(inShadowing: InShadowingConfig): void;
|
|
38
39
|
}
|
|
39
40
|
export * from './action';
|
|
40
41
|
export { AGENT_RATING_PAYLOAD, EMPTY_PAYLOAD } from './constants';
|
package/lib/esm/index.js
CHANGED
|
@@ -32,6 +32,7 @@ class BotonicPluginFlowBuilder {
|
|
|
32
32
|
allowKeywords: options.inShadowing?.allowKeywords || false,
|
|
33
33
|
allowSmartIntents: options.inShadowing?.allowSmartIntents || false,
|
|
34
34
|
allowKnowledgeBases: options.inShadowing?.allowKnowledgeBases || false,
|
|
35
|
+
allowAiAgents: options.inShadowing?.allowAiAgents || false,
|
|
35
36
|
};
|
|
36
37
|
this.contentFilters = options.contentFilters || [];
|
|
37
38
|
this.customRatingMessageEnabled =
|
|
@@ -130,7 +131,7 @@ class BotonicPluginFlowBuilder {
|
|
|
130
131
|
return contents;
|
|
131
132
|
}
|
|
132
133
|
// TODO: prevent infinite recursive calls
|
|
133
|
-
if (content
|
|
134
|
+
if (content?.followUp) {
|
|
134
135
|
return this.getContentsById(content.followUp.id, contents);
|
|
135
136
|
}
|
|
136
137
|
else if (node.follow_up) {
|
|
@@ -158,6 +159,9 @@ class BotonicPluginFlowBuilder {
|
|
|
158
159
|
possibleValues,
|
|
159
160
|
};
|
|
160
161
|
}
|
|
162
|
+
setInShadowing(inShadowing) {
|
|
163
|
+
this.inShadowing = inShadowing;
|
|
164
|
+
}
|
|
161
165
|
}
|
|
162
166
|
exports.default = BotonicPluginFlowBuilder;
|
|
163
167
|
tslib_1.__exportStar(require("./action"), exports);
|
package/lib/esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;AAAA,wCAOsB;AAEtB,+BAAmC;AAEnC,+BAAsC;AACtC,2CAKoB;AAEpB,oEAKwC;AACxC,iDAA4C;AAC5C,2CAAoE;AACpE,mCAUgB;AAChB,6CAAwD;AAExD,mCAAiE;AAEjE,2EAA2E;AAE3E,MAAqB,wBAAwB;IAmB3C,YAAY,OAA8D;QACxE,IAAI,CAAC,MAAM,GAAG,OAAO,CAAC,MAAM,IAAI,qCAAyB,CAAA;QACzD,IAAI,CAAC,WAAW,GAAG,OAAO,CAAC,WAAW,IAAI,8BAAsB,CAAC,MAAM,CAAA;QACvE,IAAI,CAAC,IAAI,GAAG,OAAO,CAAC,IAAI,CAAA;QACxB,IAAI,CAAC,cAAc,GAAG,IAAA,6BAAqB,EAAC,OAAO,CAAC,cAAc,CAAC,CAAA;QACnE,IAAI,CAAC,UAAU,GAAG,OAAO,CAAC,UAAU,CAAA;QACpC,IAAI,CAAC,wBAAwB,GAAG,OAAO,CAAC,wBAAwB,CAAA;QAChE,IAAI,CAAC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ACpD,MAAM,CAAC,EAAE,CAAC,MAAM,CAAC,IAAI,CACtB,CAAA;QACD,MAAM,cAAc,GAAG,UAAU,CAAC,OAAO,CAAC,OAAO,CAAC,GAAG,CACnD,MAAM,CAAC,EAAE,CAAC,MAAM,CAAC,KAAK,CACvB,CAAA;QAED,OAAO;YACL,GAAG,YAAY;YACf,eAAe;YACf,cAAc;SACf,CAAA;IACH,CAAC;IAED,cAAc,CAAC,WAA8B;QAC3C,IAAI,CAAC,WAAW,GAAG,WAAW,CAAA;IAChC,CAAC;CACF;AApOD,2CAoOC;AAED,mDAAwB;AACxB,yCAAiE;AAAxD,iHAAA,oBAAoB,OAAA;AAAE,0GAAA,aAAa,OAAA;AAC5C,2DAAgC;AAEhC,uCAA6C;AAApC,4GAAA,gBAAgB,OAAA;AACzB,iCAMgB;AAHd,+GAAA,sBAAsB,OAAA;AAIxB,oDAAyB"}
|
package/lib/esm/tracking.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { EventAction } from '@botonic/core';
|
|
2
|
-
import { ActionRequest } from '@botonic/react';
|
|
3
|
-
import { FlowBuilderApi } from './api';
|
|
4
|
-
import { FlowContent } from './content-fields';
|
|
2
|
+
import type { ActionRequest } from '@botonic/react';
|
|
3
|
+
import type { FlowBuilderApi } from './api';
|
|
4
|
+
import type { FlowContent } from './content-fields';
|
|
5
5
|
export declare function trackEvent(request: ActionRequest, eventAction: EventAction, args?: Record<string, any>): Promise<void>;
|
|
6
6
|
export declare function trackFlowContent(request: ActionRequest, contents: FlowContent[]): Promise<void>;
|
|
7
7
|
export declare function trackOneContent(request: ActionRequest, content: FlowContent, cmsApi?: FlowBuilderApi): Promise<void>;
|
package/lib/esm/tracking.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tracking.js","sourceRoot":"","sources":["../../src/tracking.ts"],"names":[],"mappings":";;AAYA,gCAUC;AAED,4CASC;AAED,0CAmBC;AAsDD,8FASC;AArHD,
|
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;AACH,CAAC;AAED,SAAgB,yCAAyC,CACvD,OAAsB,EACtB,EAAU;IAEV,MAAM,iBAAiB,GAAG,IAAA,8BAAoB,EAAC,OAAO,CAAC,OAAO,CAAC,CAAA;IAC/D,MAAM,MAAM,GAAG,iBAAiB,CAAC,MAAM,CAAA;IACvC,MAAM,WAAW,GAAG,MAAM,CAAC,WAAW,CAAoB,EAAE,CAAC,CAAA;IAE7D,OAAO,6BAA6B,CAAC,OAAO,EAAE,WAAW,CAAC,CAAA;AAC5D,CAAC"}
|
package/lib/esm/types.d.ts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { AiAgentArgs, BotContext, GuardrailRule, InferenceResponse, KnowledgeBasesResponse, PluginPreRequest, ResolvedPlugins } from '@botonic/core';
|
|
2
|
-
import { FlowContent } from './content-fields';
|
|
3
|
-
import { HtFlowBuilderData, HtRatingButton } from './content-fields/hubtype-fields';
|
|
1
|
+
import { AiAgentArgs, type BotContext, GuardrailRule, type InferenceResponse, type KnowledgeBasesResponse, type PluginPreRequest, type ResolvedPlugins } from '@botonic/core';
|
|
2
|
+
import type { FlowContent } from './content-fields';
|
|
3
|
+
import type { HtFlowBuilderData, HtRatingButton } from './content-fields/hubtype-fields';
|
|
4
4
|
export interface InShadowingConfig {
|
|
5
5
|
allowKeywords: boolean;
|
|
6
6
|
allowSmartIntents: boolean;
|
|
7
7
|
allowKnowledgeBases: boolean;
|
|
8
|
+
allowAiAgents: boolean;
|
|
8
9
|
}
|
|
9
10
|
export interface BotonicPluginFlowBuilderOptions<TPlugins extends ResolvedPlugins = ResolvedPlugins, TExtraData = any> {
|
|
10
11
|
apiUrl?: string;
|
package/lib/esm/types.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":";;;AAsFA,IAAY,kBAGX;AAHD,WAAY,kBAAkB;IAC5B,+CAAyB,CAAA;IACzB,iDAA2B,CAAA;AAC7B,CAAC,EAHW,kBAAkB,kCAAlB,kBAAkB,QAG7B;AAED,IAAY,sBAGX;AAHD,WAAY,sBAAsB;IAChC,yCAAe,CAAA;IACf,2CAAiB,CAAA;AACnB,CAAC,EAHW,sBAAsB,sCAAtB,sBAAsB,QAGjC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ActionRequest } from '@botonic/react';
|
|
2
|
-
import { FlowBuilderApi } from '../api';
|
|
3
|
-
import { HtCaptureUserInputNode } from '../content-fields/hubtype-fields';
|
|
1
|
+
import type { ActionRequest } from '@botonic/react';
|
|
2
|
+
import type { FlowBuilderApi } from '../api';
|
|
3
|
+
import { type HtCaptureUserInputNode } from '../content-fields/hubtype-fields';
|
|
4
4
|
interface AiCaptureResponseSuccess {
|
|
5
5
|
success: true;
|
|
6
6
|
value: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"capture-user-input-api.js","sourceRoot":"","sources":["../../../src/user-input/capture-user-input-api.ts"],"names":[],"mappings":";;;;AAAA,
|
|
1
|
+
{"version":3,"file":"capture-user-input-api.js","sourceRoot":"","sources":["../../../src/user-input/capture-user-input-api.ts"],"names":[],"mappings":";;;;AAAA,wCAAuE;AAEvE,0DAAyB;AAGzB,sDAAwD;AACxD,qEAGyC;AACzC,wCAAiD;AACjD,0CAGoB;AACpB,oCAA2C;AAa3C,MAAa,mBAAmB;IAI9B,YAAY,MAAsB,EAAE,OAAsB;QACxD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAA;QACpB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAA;IACxB,CAAC;IAED,KAAK,CAAC,aAAa;QACjB,IACE,IAAA,wBAAgB,EAAC,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC;YACpC,IAAI,CAAC,MAAM,CAAC,sBAAsB,EAAE,EACpC,CAAC;YACD,MAAM,oBAAoB,G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CAAC,OAAO,CAAC,KAAK,CAAC,IAAc;YAC5C,cAAc;YACd,SAAS,EAAE,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,UAAU;SACzC,CAAA;QACD,MAAM,EAAE,MAAM,EAAE,GAAG,SAAS,EAAE,GAAG,KAAK,CAAA;QACtC,MAAM,IAAA,qBAAU,EAAC,IAAI,CAAC,OAAO,EAAE,MAAM,EAAE,SAAS,CAAC,CAAA;IACnD,CAAC;CACF;AA7GD,kDA6GC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ActionRequest } from '@botonic/react';
|
|
2
|
-
import { FlowBuilderApi } from '../api';
|
|
3
|
-
import { SmartIntentsInferenceConfig } from './smart-intent';
|
|
1
|
+
import type { ActionRequest } from '@botonic/react';
|
|
2
|
+
import type { FlowBuilderApi } from '../api';
|
|
3
|
+
import { type SmartIntentsInferenceConfig } from './smart-intent';
|
|
4
4
|
export declare function getNextPayloadByUserInput(cmsApi: FlowBuilderApi, locale: string, request: ActionRequest, smartIntentsConfig: SmartIntentsInferenceConfig): Promise<string | undefined>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/user-input/index.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/user-input/index.ts"],"names":[],"mappings":";;AAeA,8DA2CC;AAvDD,oCAIiB;AACjB,qEAA8D;AAC9D,uCAA0C;AAC1C,iDAGuB;AAEhB,KAAK,UAAU,yBAAyB,CAC7C,MAAsB,EACtB,MAAc,EACd,OAAsB,EACtB,kBAA+C;IAE/C,IAAI,IAAA,wBAAgB,EAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC;QACpC,IAAI,MAAM,CAAC,sBAAsB,EAAE,EAAE,CAAC;YACpC,MAAM,mBAAmB,GAAG,IAAI,4CAAmB,CACjD,MAAM,EACN,OAAmC,CACpC,CAAA;YACD,OAAO,MAAM,mBAAmB,CAAC,aAAa,EAAE,CAAA;QAClD,CAAC;QAED,IAAI,IAAA,yBAAiB,EAAC,OAAO,CAAC,EAAE,CAAC;YAC/B,MAAM,cAAc,GAAG,IAAI,wBAAc,CAAC;gBACxC,MAAM;gBACN,MAAM;gBACN,OAAO;aACR,CAAC,CAAA;YACF,MAAM,WAAW,GAAG,MAAM,cAAc,CAAC,cAAc,CACrD,OAAO,CAAC,KAAK,CAAC,IAAK,CACpB,CAAA;YACD,IAAI,WAAW,EAAE,CAAC;gBAChB,OAAO,MAAM,CAAC,UAAU,CAAC,WAAW,CAAC,MAAM,CAAC,CAAA;YAC9C,CAAC;QACH,CAAC;QAED,IAAI,IAAA,6BAAqB,EAAC,OAAO,CAAC,EAAE,CAAC;YACnC,MAAM,eAAe,GAAG,IAAI,8BAAe,CACzC,MAAM,EACN,OAAO,EACP,kBAAkB,CACnB,CAAA;YACD,MAAM,eAAe,GAAG,MAAM,eAAe,CAAC,cAAc,EAAE,CAAA;YAC9D,IAAI,eAAe,EAAE,CAAC;gBACpB,OAAO,MAAM,CAAC,UAAU,CAAC,eAAe,CAAC,MAAM,CAAC,CAAA;YAClD,CAAC;QACH,CAAC;IACH,CAAC;IAED,OAAO,SAAS,CAAA;AAClB,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ActionRequest } from '@botonic/react';
|
|
2
|
-
import { FlowBuilderApi } from '../api';
|
|
3
|
-
import { HtKeywordNode } from '../content-fields/hubtype-fields';
|
|
1
|
+
import type { ActionRequest } from '@botonic/react';
|
|
2
|
+
import type { FlowBuilderApi } from '../api';
|
|
3
|
+
import type { HtKeywordNode } from '../content-fields/hubtype-fields';
|
|
4
4
|
interface KeywordProps {
|
|
5
5
|
cmsApi: FlowBuilderApi;
|
|
6
6
|
locale: string;
|