@ada-support/embed2 1.14.19 → 1.14.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,8 +1,8 @@
1
1
  import type { StartOptions } from "@ada-support/embed-types";
2
2
  import type { MessageService } from "client/lib/message-service";
3
- import type { ProactiveConversation, ProactiveConversationTriggerMethod, ProactiveConversationUrlTriggerConditions, ProactiveConversations } from "./types";
3
+ import type { ProactiveConversation, ProactiveConversations, ProactiveConversationTriggerMethod, ProactiveConversationUrlTriggerConditions } from "./types";
4
4
  export declare function isWithinSchedule(scheduleStart?: string | null, scheduleEnd?: string | null): boolean;
5
- export declare function pickHighestPriorityMatch(matches: Array<[string, ProactiveConversation]>): [string, ProactiveConversation] | undefined;
5
+ export declare function pickHighestPriorityMatch(matches: [string, ProactiveConversation][]): [string, ProactiveConversation] | undefined;
6
6
  export declare function proactiveTriggerImpl({ proactiveConversation, triggerMethod, adaSettings, messageService, language, clearProactiveConversation, }: {
7
7
  proactiveConversation: ProactiveConversation;
8
8
  triggerMethod: ProactiveConversationTriggerMethod | null;
@@ -12,4 +12,4 @@ export declare function proactiveTriggerImpl({ proactiveConversation, triggerMet
12
12
  clearProactiveConversation: () => void;
13
13
  }): void;
14
14
  export declare function evaluateUrlTriggerConditions(conditions: ProactiveConversationUrlTriggerConditions, url: string): boolean;
15
- export declare function selectProactivesToTriggerForUrl(proactiveConversations: ProactiveConversations, url: string, handle: string): Array<[string, ProactiveConversation]>;
15
+ export declare function selectProactivesToTriggerForUrl(proactiveConversations: ProactiveConversations, url: string, handle: string): [string, ProactiveConversation][];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ada-support/embed2",
3
- "version": "1.14.19",
3
+ "version": "1.14.21",
4
4
  "description": "",
5
5
  "main": "dist/npm-entry",
6
6
  "typings": "dist/npm-entry/index-npm.d.ts",
@@ -11,8 +11,9 @@
11
11
  "build": "TS_NODE_PROJECT=wp.tsconfig.json NODE_ENV=production npx webpack --config webpack.prod.ts",
12
12
  "build:npm-types": "tsc --project tsconfig.npm.json --declaration --outDir dist/npm-entry --emitDeclarationOnly --allowJs false --checkJs false",
13
13
  "build:npm": "./npm-build.sh",
14
- "lint": "tsc --noEmit --strict false && ./node_modules/.bin/eslint --report-unused-disable-directives --ext .js,.jsx,.ts,.tsx . --max-warnings 14",
15
- "lint:fix": "yarn lint --fix",
14
+ "lint": "biome check",
15
+ "lint:fix": "biome check --write",
16
+ "lint:ci": "biome ci",
16
17
  "test": "jest --detectOpenHandles",
17
18
  "check-types": "./node_modules/typescript/bin/tsc --project ./tsconfig.json --noEmit --strict false",
18
19
  "check-types-strict": "./node_modules/typescript/bin/tsc --project ./tsconfig.json --noEmit",
@@ -41,7 +42,6 @@
41
42
  "author": "",
42
43
  "license": "ISC",
43
44
  "devDependencies": {
44
- "@ada-support/eslint-config-ada": "^1.2.5",
45
45
  "@babel/core": "^7.23.2",
46
46
  "@babel/plugin-proposal-class-properties": "^7.16.7",
47
47
  "@babel/plugin-proposal-numeric-separator": "^7.16.7",
@@ -51,6 +51,7 @@
51
51
  "@babel/plugin-transform-runtime": "^7.16.10",
52
52
  "@babel/preset-env": "^7.23.2",
53
53
  "@babel/preset-typescript": "^7.23.2",
54
+ "@biomejs/biome": "2.4.10",
54
55
  "@testing-library/jest-dom": "^5",
55
56
  "@testing-library/preact": "^2.0.1",
56
57
  "@types/jest": "^27.0.2",
@@ -67,18 +68,11 @@
67
68
  "cypress": "^13.0.0",
68
69
  "depcheck": "^1.4.3",
69
70
  "dotenv": "^8.2.0",
70
- "eslint": "^8.8.0",
71
- "eslint-config-prettier": "^8.5.0",
72
- "eslint-plugin-chai-friendly": "^0.7.2",
73
- "eslint-plugin-compat": "^4.0.2",
74
- "eslint-plugin-cypress": "^2.12.1",
75
- "eslint-plugin-sonarjs": "^0.11.0",
76
71
  "html-webpack-plugin": "^5.5.0",
77
72
  "jest": "^27.5.1",
78
73
  "jest-localstorage-mock": "^2.4.0",
79
74
  "mock-xmlhttprequest": "^7.0.4",
80
75
  "npm-run-all": "^4.1.5",
81
- "prettier": "2.7.1",
82
76
  "start-server-and-test": "^2.1.2",
83
77
  "ts-node": "^10.2.1",
84
78
  "tsconfig-paths": "^3.11.0",