🏗️ Use tsup for bot and typebot-js packages
This commit is contained in:
committed by
Baptiste Arnaud
parent
0b58f4e976
commit
84163c6585
@ -11,16 +11,12 @@
|
||||
margin: 0;
|
||||
}
|
||||
</style>
|
||||
<script src="../dist/index.umd.min.js"></script>
|
||||
<script src="../dist/index.global.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<script>
|
||||
const { open } = Typebot.initBubble({
|
||||
Typebot.initBubble({
|
||||
url: 'https://typebot.io/typebot-support',
|
||||
button: {
|
||||
color: 'green',
|
||||
iconUrl: 'https://image.flaticon.com/icons/png/512/5138/5138352.png',
|
||||
},
|
||||
proactiveMessage: {
|
||||
avatarUrl:
|
||||
'https://images.unsplash.com/photo-1534528741775-53994a69daeb?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=1000&q=80',
|
||||
@ -31,7 +27,10 @@
|
||||
})
|
||||
</script>
|
||||
<div style="width: 100%; height: 300vh; background-color: aquamarine">
|
||||
<button onclick="(()=>{open()})()" style="width: 200px; height: 60px">
|
||||
<button
|
||||
onclick="Typebot.getBubbleActions().open()"
|
||||
style="width: 200px; height: 60px"
|
||||
>
|
||||
OPEN CHAT
|
||||
</button>
|
||||
</div>
|
||||
|
@ -23,17 +23,19 @@
|
||||
<div id="typebot-container-2" style="width: 1000px; height: 600px"></div>
|
||||
</div>
|
||||
<div id="typebot-container-3" style="width: 1000px; height: 600px"></div>
|
||||
<script src="../dist/index.umd.min.js"></script>
|
||||
<script src="../dist/index.global.js"></script>
|
||||
|
||||
<script>
|
||||
Typebot.initContainer("typebot-container", { publishId: "jamhouse" });
|
||||
Typebot.initContainer("typebot-container-2", {
|
||||
publishId: "lead-generation",
|
||||
});
|
||||
Typebot.initContainer("typebot-container-3", {
|
||||
publishId: "feedback-form",
|
||||
Typebot.initContainer('typebot-container', {
|
||||
url: 'https://viewer.typebot.io/lead-generation-copy-c3yiqz1',
|
||||
})
|
||||
Typebot.initContainer('typebot-container-2', {
|
||||
url: 'https://viewer.typebot.io/kebab',
|
||||
})
|
||||
Typebot.initContainer('typebot-container-3', {
|
||||
url: 'https://viewer.typebot.io/typebot-support',
|
||||
loadWhenVisible: false,
|
||||
});
|
||||
})
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
@ -13,12 +13,12 @@
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<script src="../dist/index.umd.min.js"></script>
|
||||
<script src="../dist/index.global.js"></script>
|
||||
<script>
|
||||
const { open } = Typebot.initPopup({
|
||||
publishId: "feedback-form",
|
||||
publishId: 'feedback-form',
|
||||
delay: 1000,
|
||||
});
|
||||
})
|
||||
</script>
|
||||
<div style="width: 100%; height: 300vh; background-color: aquamarine">
|
||||
<button onclick="(()=>{open()})()">CLICK</button>
|
||||
|
Reference in New Issue
Block a user