diff --git a/apps/builder/src/features/publish/components/embeds/modals/WordpressModal/instructions/WordpressBubbleInstructions.tsx b/apps/builder/src/features/publish/components/embeds/modals/WordpressModal/instructions/WordpressBubbleInstructions.tsx index 8b712680fb..48b0c46dfc 100644 --- a/apps/builder/src/features/publish/components/embeds/modals/WordpressModal/instructions/WordpressBubbleInstructions.tsx +++ b/apps/builder/src/features/publish/components/embeds/modals/WordpressModal/instructions/WordpressBubbleInstructions.tsx @@ -8,12 +8,17 @@ import { Link, Stack, Text, + Code, } from '@chakra-ui/react' import { BubbleProps } from '@typebot.io/nextjs' import { useState } from 'react' import { BubbleSettings } from '../../../settings/BubbleSettings/BubbleSettings' import { parseApiHostValue, parseInitBubbleCode } from '../../../snippetParsers' import { parseDefaultBubbleTheme } from '../../Javascript/instructions/JavascriptBubbleInstructions' +import packageJson from '../../../../../../../../../../packages/embeds/js/package.json' +import { isCloudProdInstance } from '@/helpers/isCloudProdInstance' + +const typebotCloudLibraryVersion = '0.2' type Props = { publicId: string @@ -52,6 +57,14 @@ export const WordpressBubbleInstructions = ({ publicId }: Props) => { + + Set Library version to{' '} + + {isCloudProdInstance() + ? typebotCloudLibraryVersion + : packageJson.version} + + + + Set Library version to{' '} + + {isCloudProdInstance() + ? typebotCloudLibraryVersion + : packageJson.version} + + +
+ + +
+
diff --git a/packages/embeds/wordpress/trunk/public/class-typebot-public.php b/packages/embeds/wordpress/trunk/public/class-typebot-public.php index 8c25cae005..1cd927c517 100644 --- a/packages/embeds/wordpress/trunk/public/class-typebot-public.php +++ b/packages/embeds/wordpress/trunk/public/class-typebot-public.php @@ -40,7 +40,8 @@ public function add_head_code() function typebot_script() { - echo '