mirror of
https://github.com/formbricks/formbricks.git
synced 2025-12-29 09:50:10 -06:00
Compare commits
4 Commits
v3.11.0
...
testing/ts
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
449b56fd40 | ||
|
|
2b1ffa90f9 | ||
|
|
d595794fb6 | ||
|
|
2d3dec7834 |
@@ -29,6 +29,17 @@
|
|||||||
"import": "./dist/website.js",
|
"import": "./dist/website.js",
|
||||||
"require": "./dist/website.umd.cjs",
|
"require": "./dist/website.umd.cjs",
|
||||||
"types": "./dist/website.d.ts"
|
"types": "./dist/website.d.ts"
|
||||||
|
},
|
||||||
|
"./*": "./dist/*"
|
||||||
|
},
|
||||||
|
"typesVersions": {
|
||||||
|
"*": {
|
||||||
|
"app": [
|
||||||
|
"./dist/app.d.ts"
|
||||||
|
],
|
||||||
|
"website": [
|
||||||
|
"./dist/website.d.ts"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
@@ -3,8 +3,6 @@
|
|||||||
"include": ["src", "package.json", "../types/surveys.d.ts"],
|
"include": ["src", "package.json", "../types/surveys.d.ts"],
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"strict": true,
|
"strict": true,
|
||||||
"module": "ESNext",
|
|
||||||
"moduleResolution": "Bundler",
|
|
||||||
"allowImportingTsExtensions": true,
|
"allowImportingTsExtensions": true,
|
||||||
"resolveJsonModule": true,
|
"resolveJsonModule": true,
|
||||||
"isolatedModules": true,
|
"isolatedModules": true,
|
||||||
|
|||||||
@@ -28,7 +28,8 @@
|
|||||||
"import": "./dist/website.js",
|
"import": "./dist/website.js",
|
||||||
"require": "./dist/website.cjs",
|
"require": "./dist/website.cjs",
|
||||||
"types": "./dist/website.d.ts"
|
"types": "./dist/website.d.ts"
|
||||||
}
|
},
|
||||||
|
"./*": "./dist/*"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite build --watch --mode dev",
|
"dev": "vite build --watch --mode dev",
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { TFormbricksApp } from "@formbricks/js-core/app";
|
import { TFormbricksApp } from "@formbricks/js-core/dist/app";
|
||||||
import { TFormbricksWebsite } from "@formbricks/js-core/website";
|
import { TFormbricksWebsite } from "@formbricks/js-core/dist/website";
|
||||||
|
|
||||||
import { loadFormbricksToProxy } from "./shared/loadFormbricks";
|
import { loadFormbricksToProxy } from "./shared/loadFormbricks";
|
||||||
|
|
||||||
|
|||||||
@@ -3,8 +3,6 @@
|
|||||||
"include": ["src", "package.json"],
|
"include": ["src", "package.json"],
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"strict": true,
|
"strict": true,
|
||||||
"module": "ESNext",
|
|
||||||
"moduleResolution": "Bundler",
|
|
||||||
"declaration": true,
|
"declaration": true,
|
||||||
"allowImportingTsExtensions": true,
|
"allowImportingTsExtensions": true,
|
||||||
"resolveJsonModule": true,
|
"resolveJsonModule": true,
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
import { useMemo, useState } from "preact/hooks";
|
import { useMemo, useState } from "preact/hooks";
|
||||||
// @ts-expect-error
|
|
||||||
import { JSXInternal } from "preact/src/jsx";
|
import { JSXInternal } from "preact/src/jsx";
|
||||||
|
|
||||||
import { getOriginalFileNameFromUrl } from "@formbricks/lib/storage/utils";
|
import { getOriginalFileNameFromUrl } from "@formbricks/lib/storage/utils";
|
||||||
@@ -101,6 +100,7 @@ export const FileInput = ({
|
|||||||
const handleDragOver = (e: JSXInternal.TargetedDragEvent<HTMLLabelElement>) => {
|
const handleDragOver = (e: JSXInternal.TargetedDragEvent<HTMLLabelElement>) => {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
|
// @ts-expect-error
|
||||||
e.dataTransfer.dropEffect = "copy";
|
e.dataTransfer.dropEffect = "copy";
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -108,6 +108,7 @@ export const FileInput = ({
|
|||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
|
|
||||||
|
// @ts-expect-error
|
||||||
handleFileSelection(e.dataTransfer.files);
|
handleFileSelection(e.dataTransfer.files);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -5,10 +5,10 @@
|
|||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"outDir": "./dist",
|
"outDir": "./dist",
|
||||||
"declaration": true,
|
"declaration": true,
|
||||||
"moduleResolution": "Bundler",
|
"moduleResolution": "node",
|
||||||
"lib": ["ESNext", "DOM"],
|
"lib": ["es2022", "dom", "dom.iterable"],
|
||||||
"module": "esnext",
|
"module": "ESNext",
|
||||||
"target": "ES2021",
|
"target": "ES2022",
|
||||||
"strict": true,
|
"strict": true,
|
||||||
"esModuleInterop": true,
|
"esModuleInterop": true,
|
||||||
"skipLibCheck": true,
|
"skipLibCheck": true,
|
||||||
|
|||||||
67
pnpm-lock.yaml
generated
67
pnpm-lock.yaml
generated
@@ -650,7 +650,7 @@ importers:
|
|||||||
version: 5.2.11(terser@5.31.0)
|
version: 5.2.11(terser@5.31.0)
|
||||||
vite-plugin-dts:
|
vite-plugin-dts:
|
||||||
specifier: ^3.9.1
|
specifier: ^3.9.1
|
||||||
version: 3.9.1(typescript@5.4.5)(vite@5.2.11)
|
version: 3.9.1(typescript@4.9.5)(vite@5.2.11)
|
||||||
|
|
||||||
packages/js-core:
|
packages/js-core:
|
||||||
devDependencies:
|
devDependencies:
|
||||||
@@ -10464,6 +10464,26 @@ packages:
|
|||||||
'@vue/shared': 3.4.27
|
'@vue/shared': 3.4.27
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
|
/@vue/language-core@1.8.27(typescript@4.9.5):
|
||||||
|
resolution: {integrity: sha512-L8Kc27VdQserNaCUNiSFdDl9LWT24ly8Hpwf1ECy3aFb9m6bDhBGQYOujDm21N7EW3moKIOKEanQwe1q5BK+mA==}
|
||||||
|
peerDependencies:
|
||||||
|
typescript: '*'
|
||||||
|
peerDependenciesMeta:
|
||||||
|
typescript:
|
||||||
|
optional: true
|
||||||
|
dependencies:
|
||||||
|
'@volar/language-core': 1.11.1
|
||||||
|
'@volar/source-map': 1.11.1
|
||||||
|
'@vue/compiler-dom': 3.4.27
|
||||||
|
'@vue/shared': 3.4.27
|
||||||
|
computeds: 0.0.1
|
||||||
|
minimatch: 9.0.4
|
||||||
|
muggle-string: 0.3.1
|
||||||
|
path-browserify: 1.0.1
|
||||||
|
typescript: 4.9.5
|
||||||
|
vue-template-compiler: 2.7.16
|
||||||
|
dev: true
|
||||||
|
|
||||||
/@vue/language-core@1.8.27(typescript@5.4.5):
|
/@vue/language-core@1.8.27(typescript@5.4.5):
|
||||||
resolution: {integrity: sha512-L8Kc27VdQserNaCUNiSFdDl9LWT24ly8Hpwf1ECy3aFb9m6bDhBGQYOujDm21N7EW3moKIOKEanQwe1q5BK+mA==}
|
resolution: {integrity: sha512-L8Kc27VdQserNaCUNiSFdDl9LWT24ly8Hpwf1ECy3aFb9m6bDhBGQYOujDm21N7EW3moKIOKEanQwe1q5BK+mA==}
|
||||||
peerDependencies:
|
peerDependencies:
|
||||||
@@ -20032,6 +20052,12 @@ packages:
|
|||||||
resolution: {integrity: sha512-/aCDEGatGvZ2BIk+HmLf4ifCJFwvKFNb9/JeZPMulfgFracn9QFcAf5GO8B/mweUjSoblS5In0cWhqpfs/5PQA==}
|
resolution: {integrity: sha512-/aCDEGatGvZ2BIk+HmLf4ifCJFwvKFNb9/JeZPMulfgFracn9QFcAf5GO8B/mweUjSoblS5In0cWhqpfs/5PQA==}
|
||||||
dev: false
|
dev: false
|
||||||
|
|
||||||
|
/typescript@4.9.5:
|
||||||
|
resolution: {integrity: sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g==}
|
||||||
|
engines: {node: '>=4.2.0'}
|
||||||
|
hasBin: true
|
||||||
|
dev: true
|
||||||
|
|
||||||
/typescript@5.1.6:
|
/typescript@5.1.6:
|
||||||
resolution: {integrity: sha512-zaWCozRZ6DLEWAWFrVDz1H6FVXzUSfTy5FUMWsQlU8Ym5JP9eO4xkTIROFCQvhQf61z6O/G6ugw3SgAnvvm+HA==}
|
resolution: {integrity: sha512-zaWCozRZ6DLEWAWFrVDz1H6FVXzUSfTy5FUMWsQlU8Ym5JP9eO4xkTIROFCQvhQf61z6O/G6ugw3SgAnvvm+HA==}
|
||||||
engines: {node: '>=14.17'}
|
engines: {node: '>=14.17'}
|
||||||
@@ -20402,6 +20428,31 @@ packages:
|
|||||||
- terser
|
- terser
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
|
/vite-plugin-dts@3.9.1(typescript@4.9.5)(vite@5.2.11):
|
||||||
|
resolution: {integrity: sha512-rVp2KM9Ue22NGWB8dNtWEr+KekN3rIgz1tWD050QnRGlriUCmaDwa7qA5zDEjbXg5lAXhYMSBJtx3q3hQIJZSg==}
|
||||||
|
engines: {node: ^14.18.0 || >=16.0.0}
|
||||||
|
peerDependencies:
|
||||||
|
typescript: '*'
|
||||||
|
vite: '*'
|
||||||
|
peerDependenciesMeta:
|
||||||
|
vite:
|
||||||
|
optional: true
|
||||||
|
dependencies:
|
||||||
|
'@microsoft/api-extractor': 7.43.0
|
||||||
|
'@rollup/pluginutils': 5.1.0(rollup@3.29.4)
|
||||||
|
'@vue/language-core': 1.8.27(typescript@4.9.5)
|
||||||
|
debug: 4.3.4
|
||||||
|
kolorist: 1.8.0
|
||||||
|
magic-string: 0.30.10
|
||||||
|
typescript: 4.9.5
|
||||||
|
vite: 5.2.11(terser@5.31.0)
|
||||||
|
vue-tsc: 1.8.27(typescript@4.9.5)
|
||||||
|
transitivePeerDependencies:
|
||||||
|
- '@types/node'
|
||||||
|
- rollup
|
||||||
|
- supports-color
|
||||||
|
dev: true
|
||||||
|
|
||||||
/vite-plugin-dts@3.9.1(typescript@5.4.5)(vite@5.2.11):
|
/vite-plugin-dts@3.9.1(typescript@5.4.5)(vite@5.2.11):
|
||||||
resolution: {integrity: sha512-rVp2KM9Ue22NGWB8dNtWEr+KekN3rIgz1tWD050QnRGlriUCmaDwa7qA5zDEjbXg5lAXhYMSBJtx3q3hQIJZSg==}
|
resolution: {integrity: sha512-rVp2KM9Ue22NGWB8dNtWEr+KekN3rIgz1tWD050QnRGlriUCmaDwa7qA5zDEjbXg5lAXhYMSBJtx3q3hQIJZSg==}
|
||||||
engines: {node: ^14.18.0 || >=16.0.0}
|
engines: {node: ^14.18.0 || >=16.0.0}
|
||||||
@@ -20598,6 +20649,18 @@ packages:
|
|||||||
he: 1.2.0
|
he: 1.2.0
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
|
/vue-tsc@1.8.27(typescript@4.9.5):
|
||||||
|
resolution: {integrity: sha512-WesKCAZCRAbmmhuGl3+VrdWItEvfoFIPXOvUJkjULi+x+6G/Dy69yO3TBRJDr9eUlmsNAwVmxsNZxvHKzbkKdg==}
|
||||||
|
hasBin: true
|
||||||
|
peerDependencies:
|
||||||
|
typescript: '*'
|
||||||
|
dependencies:
|
||||||
|
'@volar/typescript': 1.11.1
|
||||||
|
'@vue/language-core': 1.8.27(typescript@4.9.5)
|
||||||
|
semver: 7.6.2
|
||||||
|
typescript: 4.9.5
|
||||||
|
dev: true
|
||||||
|
|
||||||
/vue-tsc@1.8.27(typescript@5.4.5):
|
/vue-tsc@1.8.27(typescript@5.4.5):
|
||||||
resolution: {integrity: sha512-WesKCAZCRAbmmhuGl3+VrdWItEvfoFIPXOvUJkjULi+x+6G/Dy69yO3TBRJDr9eUlmsNAwVmxsNZxvHKzbkKdg==}
|
resolution: {integrity: sha512-WesKCAZCRAbmmhuGl3+VrdWItEvfoFIPXOvUJkjULi+x+6G/Dy69yO3TBRJDr9eUlmsNAwVmxsNZxvHKzbkKdg==}
|
||||||
hasBin: true
|
hasBin: true
|
||||||
@@ -21109,4 +21172,4 @@ packages:
|
|||||||
|
|
||||||
/zwitch@2.0.4:
|
/zwitch@2.0.4:
|
||||||
resolution: {integrity: sha512-bXE4cR/kVZhKZX/RjPEflHaKVhUVl85noU3v6b8apfQEc1x4A+zBxjZ4lN8LqGd6WZ3dl98pY4o717VFmoPp+A==}
|
resolution: {integrity: sha512-bXE4cR/kVZhKZX/RjPEflHaKVhUVl85noU3v6b8apfQEc1x4A+zBxjZ4lN8LqGd6WZ3dl98pY4o717VFmoPp+A==}
|
||||||
dev: false
|
dev: false
|
||||||
|
|||||||
Reference in New Issue
Block a user