Allow user to share a flow publicly and make it duplicatable

Closes #360
This commit is contained in:
Baptiste Arnaud
2023-11-23 12:05:31 +01:00
parent 8a07392821
commit bb41226a04
130 changed files with 1150 additions and 2012 deletions

View File

@@ -40,7 +40,7 @@
"@typebot.io/tsconfig": "workspace:*",
"tsup": "6.5.0",
"typebot-js": "workspace:*",
"typescript": "5.2.2",
"typescript": "5.3.2",
"@typebot.io/lib": "workspace:*"
},
"peerDependencies": {

View File

@@ -18,7 +18,7 @@
"jest-environment-jsdom": "29.4.1",
"prettier": "2.8.3",
"ts-jest": "29.0.5",
"typescript": "5.2.2",
"typescript": "5.3.2",
"@typebot.io/tsconfig": "workspace:*"
}
}

View File

@@ -43,6 +43,6 @@
"rollup-plugin-postcss": "4.0.2",
"rollup-plugin-typescript-paths": "1.4.0",
"tailwindcss": "3.3.3",
"typescript": "5.2.2"
"typescript": "5.3.2"
}
}

View File

@@ -35,7 +35,7 @@
"rollup-plugin-typescript-paths": "1.4.0",
"tslib": "2.6.0",
"tsx": "3.12.7",
"typescript": "5.2.2"
"typescript": "5.3.2"
},
"peerDependencies": {
"next": "12.x || 13.x",

View File

@@ -39,7 +39,7 @@
"rollup-plugin-typescript-paths": "1.4.0",
"tslib": "2.6.0",
"tsx": "3.12.7",
"typescript": "5.2.2"
"typescript": "5.3.2"
},
"peerDependencies": {
"react": "18.x"

View File

@@ -15,7 +15,7 @@
"@types/nodemailer": "6.4.8",
"next": "13.5.4",
"nodemailer": "6.9.3",
"typescript": "5.2.2"
"typescript": "5.3.2"
},
"peerDependencies": {
"next": "13.0.0",

View File

@@ -22,6 +22,6 @@
"prisma": "5.0.0",
"@typebot.io/tsconfig": "workspace:*",
"tsx": "3.12.7",
"typescript": "5.2.2"
"typescript": "5.3.2"
}
}

View File

@@ -36,6 +36,11 @@ export const settingsSchema = z.object({
typingEmulation: typingEmulation.optional(),
metadata: metadataSchema.optional(),
whatsApp: whatsAppSettingsSchema.optional(),
publicShare: z
.object({
isEnabled: z.boolean().optional(),
})
.optional(),
})
export type Settings = z.infer<typeof settingsSchema>

View File

@@ -15,6 +15,6 @@
"devDependencies": {
"@typebot.io/prisma": "workspace:*",
"@typebot.io/tsconfig": "workspace:*",
"typescript": "5.2.2"
"typescript": "5.3.2"
}
}

View File

@@ -32,7 +32,7 @@
"prompts": "2.4.2",
"stripe": "12.13.0",
"tsx": "3.12.7",
"typescript": "5.2.2",
"typescript": "5.3.2",
"zod": "3.22.4"
},
"dependencies": {