Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@formbricks/js

Package Overview
Dependencies
Maintainers
1
Versions
73
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@formbricks/js - npm Package Compare versions

Comparing version 0.1.19 to 0.1.20

dist/js/src/components/ConsentQuestion.d.ts

21

dist/js/src/index.d.ts
import type { InitConfig } from "../../types/js";
export type { EnvironmentId, KeyValueData, PersonId, ResponseId, SurveyId } from "@formbricks/api";
declare const formbricks: {
init: (initConfig: InitConfig) => void;
setUserId: (userId: string) => void;
setEmail: (email: string) => void;
setAttribute: (key: string, value: string) => void;
track: (eventName: string, properties?: any) => void;
logout: () => void;
refresh: () => void;
registerRouteChange: () => void;
init: (initConfig: InitConfig) => Promise<void>;
setUserId: (userId: string) => Promise<void>;
setEmail: (email: string) => Promise<void>;
setAttribute: (key: string, value: string) => Promise<void>;
track: (eventName: string, properties?: any) => Promise<void>;
logout: () => Promise<void>;
refresh: () => Promise<void>;
registerRouteChange: () => Promise<void>;
getApi: () => import("@formbricks/api").FormbricksAPI;
getPerson: () => import("../../types/js").Person;
};
export default formbricks;
export { formbricks as default };

@@ -5,4 +5,7 @@ import { Result } from "./errors";

private running;
private resolvePromise;
private commandPromise;
add<A>(checkInitialized: boolean, command: (...args: A[]) => Promise<Result<void, any>> | Result<void, any>, ...args: A[]): void;
wait(): Promise<void>;
private run;
}

@@ -22,1 +22,2 @@ import type { Person } from "../../../types/js";

export declare const resetPerson: () => Promise<Result<void, NetworkError>>;
export declare const getPerson: () => Person;

@@ -5,3 +5,3 @@ import { Question } from "./questions";

surveyId: string;
personId: string;
personId?: string;
response: {

@@ -72,2 +72,3 @@ finished?: boolean;

autoClose?: number | null;
delay: number;
}

@@ -74,0 +75,0 @@ export interface Trigger {

@@ -49,3 +49,3 @@ export interface Choice {

condition: LogicCondition | undefined;
value: number | string | string[] | undefined;
value?: number | string | string[] | undefined;
destination: string | "end" | undefined;

@@ -55,24 +55,24 @@ }

condition: "submitted" | "skipped" | undefined;
value: undefined;
value?: undefined;
}
export interface MultipleChoiceSingleLogic extends LogicBase {
condition: "submitted" | "skipped" | "equals" | "notEquals" | undefined;
value: string;
value?: string;
}
export interface MultipleChoiceMultiLogic extends LogicBase {
condition: "submitted" | "skipped" | "includesAll" | "includesOne" | undefined;
value: string[];
value?: string[];
}
export interface NPSLogic extends LogicBase {
condition: "submitted" | "skipped" | "lessThan" | "lessEqual" | "greaterThan" | "greaterEqual" | "equals" | "notEquals" | undefined;
value: number;
value?: number;
}
export interface CTALogic extends LogicBase {
condition: "submitted" | "skipped" | undefined;
value: undefined;
value?: undefined;
}
export interface RatingLogic extends LogicBase {
condition: "submitted" | "skipped" | "lessThan" | "lessEqual" | "greaterThan" | "greaterEqual" | "equals" | "notEquals" | undefined;
value: number;
value?: number | string;
}
export type Logic = OpenTextLogic | MultipleChoiceSingleLogic | MultipleChoiceMultiLogic | NPSLogic | CTALogic | RatingLogic;

@@ -15,3 +15,2 @@ import type { Question } from "./questions";

};
userAttributes: {}[];
}

@@ -18,0 +17,0 @@ export interface QuestionSummary<T extends Question> {

@@ -24,2 +24,3 @@ import { Question } from "./questions";

autoClose: number | null;
delay: number;
}

@@ -26,0 +27,0 @@ export interface AttributeFilter {

@@ -5,4 +5,4 @@ import { Question } from "./questions";

name: string;
icon: any;
description: string;
icon?: any;
category?: "Product Experience" | "Exploration" | "Growth" | "Increase Revenue" | "Customer Success";

@@ -9,0 +9,0 @@ objectives?: [Objective, Objective?, Objective?];

{
"name": "@formbricks/js",
"version": "0.1.19",
"license": "MIT",
"version": "0.1.20",
"description": "Formbricks-js allows you to connect your app to Formbricks, display surveys and trigger events.",

@@ -37,8 +38,8 @@ "keywords": [

"author": "Formbricks <hola@formbricks.com>",
"license": "MIT",
"dependencies": {},
"devDependencies": {
"@types/enzyme": "^3.10.13",
"@types/jest": "^29.5.1",
"@typescript-eslint/eslint-plugin": "^5.59.2",
"@typescript-eslint/parser": "^5.59.2",
"@types/jest": "^29.5.2",
"@typescript-eslint/eslint-plugin": "^5.59.9",
"@typescript-eslint/parser": "^5.59.9",
"autoprefixer": "^10.4.14",

@@ -48,3 +49,3 @@ "cross-env": "^7.0.3",

"enzyme-adapter-preact-pure": "^4.1.0",
"eslint": "^8.40.0",
"eslint": "^8.42.0",
"eslint-config-preact": "^1.3.0",

@@ -54,9 +55,10 @@ "jest": "^29.5.0",

"microbundle": "^0.15.1",
"postcss": "^8.4.23",
"preact": "10.13.2",
"postcss": "^8.4.24",
"preact": "10.15.1",
"preact-cli": "^3.4.5",
"preact-render-to-string": "^6.0.3",
"rimraf": "^5.0.0",
"preact-render-to-string": "^6.1.0",
"rimraf": "^5.0.1",
"tailwindcss": "^3.3.2",
"typescript": "^5.0.4",
"typescript": "^5.1.3",
"@formbricks/api": "0.1.0",
"eslint-config-formbricks": "1.0.0",

@@ -73,6 +75,3 @@ "@formbricks/types": "0.0.0"

"clean": "rimraf .turbo node_modules dist",
"dev": "microbundle watch --css inline",
"start": "cross-env NODE_OPTIONS=--openssl-legacy-provider preact watch",
"build:widget": "microbundle --css inline",
"build:lib": "microbundle build -i src/component.tsx",
"dev": "microbundle --css inline",
"lint": "eslint '{src,tests}/**/*.{ts,tsx}'",

@@ -79,0 +78,0 @@ "test": "jest",

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc