@ada-support/embed2 1.11.3 → 1.11.11

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,4 +1,5 @@
1
1
  import type { AdaEventDataKeyedByEvent, AdaEventKey, AdaEventSubscriptionCallback } from "@ada-support/embed-types";
2
+ export declare function hasEventSubscription(eventKey: AdaEventKey): boolean;
2
3
  export declare function unsubscribeEvent(id: number): void;
3
4
  export declare function subscribeEvent<K extends AdaEventKey>(eventKey: K, callback: AdaEventSubscriptionCallback<K>): number;
4
5
  export declare function publishEvent<K extends AdaEventKey>(eventKey: K, data: AdaEventDataKeyedByEvent[K]): void;
@@ -1,2 +1,3 @@
1
1
  export declare const ANIMATION_DELAY = 50;
2
- export declare const CHAT_FALLBACK_DELAY_MS = 5000;
2
+ export declare const CHAT_FRAME_TIMEOUT_EVENT_MS = 5000;
3
+ export declare const CHAT_FALLBACK_DELAY_MS = 10000;
@@ -15919,7 +15919,7 @@ const client = new BrowserClient({
15919
15919
  return event;
15920
15920
  },
15921
15921
  environment: "production",
15922
- release: "1.11.3-8cc0a0d",
15922
+ release: "1.11.11-96768c4",
15923
15923
  sampleRate: 0.25,
15924
15924
  autoSessionTracking: false,
15925
15925
  // Integrations don't seem to work with Sentry: https://github.com/getsentry/sentry-javascript/issues/2541
@@ -16368,22 +16368,48 @@ let ActionTypes = /*#__PURE__*/function (ActionTypes) {
16368
16368
  ActionTypes["FOCUS_OFF_ADA_TYPE"] = "FOCUS_OFF_ADA";
16369
16369
  return ActionTypes;
16370
16370
  }({});
16371
- ;// CONCATENATED MODULE: ./src/services/helpers.ts
16372
- const NO_OP_FUNCTION = () => {
16373
- // Do nothing
16374
- };
16375
- function isStartOptions(input) {
16376
- if (!(typeof input === "object")) {
16377
- return false;
16378
- }
16379
- if (input === null) {
16380
- return false;
16381
- }
16382
- return typeof input.handle === "string";
16371
+ ;// CONCATENATED MODULE: ./src/client/helpers/event-subscriptions/index.ts
16372
+ let subscriptions = [];
16373
+ function hasEventSubscription(eventKey) {
16374
+ return subscriptions.some(subscription => subscription.eventKey === eventKey);
16375
+ }
16376
+ const getNextUniqueId = (() => {
16377
+ let lastId = 0;
16378
+ return () => {
16379
+ lastId += 1;
16380
+ return lastId;
16381
+ };
16382
+ })();
16383
+ function unsubscribeEvent(id) {
16384
+ subscriptions = subscriptions.filter(s => s.id !== id);
16385
+ }
16386
+ function subscribeEvent(eventKey, callback) {
16387
+ const id = getNextUniqueId();
16388
+ subscriptions.push({
16389
+ eventKey,
16390
+ callback,
16391
+ id
16392
+ });
16393
+ return id;
16394
+ }
16395
+ function publishEvent(eventKey, data) {
16396
+ subscriptions.forEach(subscription => {
16397
+ // Using startsWith instead of === allows subscribing to a specific event OR a namespace,
16398
+ // e.g. ada:campaigns subscribes to ada:campaigns:opened, ada:campaigns:engaged, and
16399
+ // ada:campaigns:shown. Broadcasting this way simultaneously reaches subscriptions
16400
+ // that have subscribed to a specific event, and those that have subscribed to a namespace
16401
+ if (eventKey.startsWith(subscription.eventKey)) {
16402
+ // try/catch to guard against missing or bad callbacks
16403
+ try {
16404
+ subscription.callback(data, {
16405
+ eventKey
16406
+ });
16407
+ } catch {
16408
+ // silently fail and proceed with remaining callbacks
16409
+ }
16410
+ }
16411
+ });
16383
16412
  }
16384
- // EXTERNAL MODULE: ./node_modules/lodash.memoize/index.js
16385
- var lodash_memoize = __webpack_require__(7654);
16386
- var lodash_memoize_default = /*#__PURE__*/__webpack_require__.n(lodash_memoize);
16387
16413
  ;// CONCATENATED MODULE: ./src/common/helpers/http.ts
16388
16414
  /**
16389
16415
  * Vanilla HTTP request. Returns a Promise.
@@ -16428,102 +16454,6 @@ function httpRequest(obj) {
16428
16454
  xhr.send(obj.body);
16429
16455
  });
16430
16456
  }
16431
- ;// CONCATENATED MODULE: ./src/services/logger/index.ts
16432
-
16433
- function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
16434
- function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
16435
-
16436
-
16437
- const DEFAULT_LOG_SAMPLE_RATE = 0.01;
16438
- const DD_BASE_URL = "https://browser-http-intake.logs.datadoghq.com/v1/input/";
16439
- const DD_TOKEN = "pubfe23baedd2ea322bebb5ed2020fa2fa1";
16440
-
16441
- // We need memoization to ensure consistency of logs
16442
- const shouldLog = lodash_memoize_default()(sampleRate => {
16443
- if (!DD_TOKEN || sampleRate === 0) {
16444
- return false;
16445
- }
16446
- return Math.random() < (sampleRate || DEFAULT_LOG_SAMPLE_RATE);
16447
- });
16448
-
16449
- /**
16450
- * Sends log to Datadog
16451
- */
16452
- async function log(message, extra, options) {
16453
- if (!shouldLog(options === null || options === void 0 ? void 0 : options.sampleRate)) {
16454
- return;
16455
- }
16456
- await httpRequest({
16457
- url: `${DD_BASE_URL}${DD_TOKEN}?ddsource=browser&ddtags=version:1.5.0,env:${"production"}`,
16458
- method: "POST",
16459
- body: JSON.stringify(_objectSpread(_objectSpread({
16460
- message
16461
- }, extra), {}, {
16462
- level: (options === null || options === void 0 ? void 0 : options.level) || "info",
16463
- sampleRate: (options === null || options === void 0 ? void 0 : options.sampleRate) || DEFAULT_LOG_SAMPLE_RATE,
16464
- service: "embed",
16465
- env: "production",
16466
- embedVersion: 2,
16467
- version: "1.11.3",
16468
- isNpm: true,
16469
- commitHash: "8cc0a0d"
16470
- }))
16471
- });
16472
- }
16473
- ;// CONCATENATED MODULE: ./src/client/helpers/event-subscriptions/index.ts
16474
-
16475
-
16476
- let subscriptions = [];
16477
- const getNextUniqueId = (() => {
16478
- let lastId = 0;
16479
- return () => {
16480
- lastId += 1;
16481
- return lastId;
16482
- };
16483
- })();
16484
- function unsubscribeEvent(id) {
16485
- subscriptions = subscriptions.filter(s => s.id !== id);
16486
- }
16487
- function subscribeEvent(eventKey, callback) {
16488
- const id = getNextUniqueId();
16489
-
16490
- // Log chat_frame_timeout event subscriptions
16491
- if (eventKey === "ada:chat_frame_timeout") {
16492
- var _document$getElementB;
16493
- const domHandle = (_document$getElementB = document.getElementById("__ada")) === null || _document$getElementB === void 0 ? void 0 : _document$getElementB.getAttribute("data-handle");
16494
- log("Client subscribed to chat_frame_timeout event", {
16495
- handle: domHandle || (isStartOptions(window.adaSettings) ? window.adaSettings.handle : undefined),
16496
- hostPage: window.location.href
16497
- }, {
16498
- sampleRate: 0.1,
16499
- level: "info"
16500
- });
16501
- }
16502
- subscriptions.push({
16503
- eventKey,
16504
- callback,
16505
- id
16506
- });
16507
- return id;
16508
- }
16509
- function publishEvent(eventKey, data) {
16510
- subscriptions.forEach(subscription => {
16511
- // Using startsWith instead of === allows subscribing to a specific event OR a namespace,
16512
- // e.g. ada:campaigns subscribes to ada:campaigns:opened, ada:campaigns:engaged, and
16513
- // ada:campaigns:shown. Broadcasting this way simultaneously reaches subscriptions
16514
- // that have subscribed to a specific event, and those that have subscribed to a namespace
16515
- if (eventKey.startsWith(subscription.eventKey)) {
16516
- // try/catch to guard against missing or bad callbacks
16517
- try {
16518
- subscription.callback(data, {
16519
- eventKey
16520
- });
16521
- } catch {
16522
- // silently fail and proceed with remaining callbacks
16523
- }
16524
- }
16525
- });
16526
- }
16527
16457
  ;// CONCATENATED MODULE: ./src/common/helpers/config-info.ts
16528
16458
  const isProduction = "production" === "production";
16529
16459
  ;// CONCATENATED MODULE: ./src/common/helpers/url/constants.ts
@@ -16541,8 +16471,8 @@ const ports = {
16541
16471
  };
16542
16472
  ;// CONCATENATED MODULE: ./src/common/helpers/url/index.ts
16543
16473
 
16544
- function url_ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
16545
- function url_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? url_ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : url_ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
16474
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
16475
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
16546
16476
 
16547
16477
 
16548
16478
  const DEFAULT_ADA_DOMAIN = "ada";
@@ -16569,7 +16499,7 @@ function getEmbedURL(_ref) {
16569
16499
  } else {
16570
16500
  host = `http://${handle}.localhost:9001`;
16571
16501
  }
16572
- return `${host}/embed/${frameName}/${"8cc0a0d"}/index.html`;
16502
+ return `${host}/embed/${frameName}/${"96768c4"}/index.html`;
16573
16503
  }
16574
16504
  function constructQueryString(query) {
16575
16505
  return Object.keys(query).map(key => {
@@ -16617,7 +16547,7 @@ function getChatURL(_ref3) {
16617
16547
  domain,
16618
16548
  qp
16619
16549
  } = _ref3;
16620
- const queryParams = url_objectSpread(url_objectSpread({}, qp), {}, {
16550
+ const queryParams = _objectSpread(_objectSpread({}, qp), {}, {
16621
16551
  version
16622
16552
  });
16623
16553
  const queryString = constructQueryString(queryParams);
@@ -17110,7 +17040,7 @@ const getInitialState = adaSettings => ({
17110
17040
  wasCampaignShownButNowClosed: false,
17111
17041
  proactiveCampaignHadMessages: false,
17112
17042
  deviceToken: null,
17113
- showFallbackOnTimeout: false
17043
+ showFallbackOnTimeout: true
17114
17044
  });
17115
17045
  ;// CONCATENATED MODULE: ./src/common/helpers/get-intro-for-url.ts
17116
17046
  function getProcessedPath(path) {
@@ -17376,6 +17306,19 @@ const get_browser_language_getBrowserLanguage = () => {
17376
17306
  return browserLanguageString;
17377
17307
  };
17378
17308
  /* harmony default export */ var get_browser_language = (get_browser_language_getBrowserLanguage);
17309
+ ;// CONCATENATED MODULE: ./src/services/helpers.ts
17310
+ const NO_OP_FUNCTION = () => {
17311
+ // Do nothing
17312
+ };
17313
+ function isStartOptions(input) {
17314
+ if (!(typeof input === "object")) {
17315
+ return false;
17316
+ }
17317
+ if (input === null) {
17318
+ return false;
17319
+ }
17320
+ return typeof input.handle === "string";
17321
+ }
17379
17322
  ;// CONCATENATED MODULE: ./src/campaigns/campaign.ts
17380
17323
 
17381
17324
  function campaign_ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
@@ -17698,6 +17641,51 @@ function getButtonText(client) {
17698
17641
  }
17699
17642
  return buttonTextMap[languageKey];
17700
17643
  }
17644
+ // EXTERNAL MODULE: ./node_modules/lodash.memoize/index.js
17645
+ var lodash_memoize = __webpack_require__(7654);
17646
+ var lodash_memoize_default = /*#__PURE__*/__webpack_require__.n(lodash_memoize);
17647
+ ;// CONCATENATED MODULE: ./src/services/logger/index.ts
17648
+
17649
+ function logger_ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
17650
+ function logger_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? logger_ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : logger_ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
17651
+
17652
+
17653
+ const DEFAULT_LOG_SAMPLE_RATE = 0.01;
17654
+ const DD_BASE_URL = "https://browser-http-intake.logs.datadoghq.com/v1/input/";
17655
+ const DD_TOKEN = "pubfe23baedd2ea322bebb5ed2020fa2fa1";
17656
+
17657
+ // We need memoization to ensure consistency of logs
17658
+ const shouldLog = lodash_memoize_default()(sampleRate => {
17659
+ if (!DD_TOKEN || sampleRate === 0) {
17660
+ return false;
17661
+ }
17662
+ return Math.random() < (sampleRate || DEFAULT_LOG_SAMPLE_RATE);
17663
+ });
17664
+
17665
+ /**
17666
+ * Sends log to Datadog
17667
+ */
17668
+ async function log(message, extra, options) {
17669
+ if (!shouldLog(options === null || options === void 0 ? void 0 : options.sampleRate)) {
17670
+ return;
17671
+ }
17672
+ await httpRequest({
17673
+ url: `${DD_BASE_URL}${DD_TOKEN}?ddsource=browser&ddtags=version:1.5.0,env:${"production"}`,
17674
+ method: "POST",
17675
+ body: JSON.stringify(logger_objectSpread(logger_objectSpread({
17676
+ message
17677
+ }, extra), {}, {
17678
+ level: (options === null || options === void 0 ? void 0 : options.level) || "info",
17679
+ sampleRate: (options === null || options === void 0 ? void 0 : options.sampleRate) || DEFAULT_LOG_SAMPLE_RATE,
17680
+ service: "embed",
17681
+ env: "production",
17682
+ embedVersion: 2,
17683
+ version: "1.11.11",
17684
+ isNpm: true,
17685
+ commitHash: "96768c4"
17686
+ }))
17687
+ });
17688
+ }
17701
17689
  ;// CONCATENATED MODULE: ./src/client/helpers/alternative-bot-rollout/index.ts
17702
17690
 
17703
17691
  function alternative_bot_rollout_ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
@@ -18354,8 +18342,8 @@ const loadChatManifest = async () => {
18354
18342
  hostPage: window.location.href,
18355
18343
  manifestUrl: CHAT_MANIFEST_PATH
18356
18344
  }, {
18357
- level: "error",
18358
- sampleRate: 1.0
18345
+ level: "warn",
18346
+ sampleRate: 0.01
18359
18347
  });
18360
18348
  return undefined;
18361
18349
  }
@@ -18367,8 +18355,8 @@ const loadChatManifest = async () => {
18367
18355
  hostPage: window.location.href,
18368
18356
  manifestUrl: CHAT_MANIFEST_PATH
18369
18357
  }, {
18370
- level: "error",
18371
- sampleRate: 1.0
18358
+ level: "warn",
18359
+ sampleRate: 0.01
18372
18360
  });
18373
18361
  return undefined;
18374
18362
  }
@@ -18750,7 +18738,8 @@ function ButtonFrame_mapStateToProps(storeState) {
18750
18738
  /* harmony default export */ var components_ButtonFrame = (connect(ButtonFrame_mapStateToProps)(ButtonFrame));
18751
18739
  ;// CONCATENATED MODULE: ./src/common/constants/timeouts.ts
18752
18740
  const ANIMATION_DELAY = 50;
18753
- const CHAT_FALLBACK_DELAY_MS = 5000;
18741
+ const CHAT_FRAME_TIMEOUT_EVENT_MS = 5000;
18742
+ const CHAT_FALLBACK_DELAY_MS = 10000;
18754
18743
  ;// CONCATENATED MODULE: ./src/common/helpers/is-mobile.ts
18755
18744
  const isMobile = /(iPhone)|(iPod)|(android)|(webOS)/i.exec(navigator.userAgent) !== null;
18756
18745
  ;// CONCATENATED MODULE: ./src/client/components/ChatFrame/chatFrameEvents/chatterEvent/index.ts
@@ -18961,7 +18950,7 @@ class ChatFrame extends d {
18961
18950
  log("Chat frame mount", {
18962
18951
  handle,
18963
18952
  chatUrl: this.url,
18964
- embedVersion: "8cc0a0d".slice(0, 7),
18953
+ embedVersion: "96768c4".slice(0, 7),
18965
18954
  embedSettings: adaSettings
18966
18955
  });
18967
18956
 
@@ -19049,7 +19038,7 @@ class ChatFrame extends d {
19049
19038
  const hostPageUrlParams = new URL(window.location.href).searchParams;
19050
19039
  const smsToken = hostPageUrlParams.get("adaSMSToken");
19051
19040
  const queryParams = {
19052
- embedVersion: "8cc0a0d".slice(0, 7),
19041
+ embedVersion: "96768c4".slice(0, 7),
19053
19042
  greeting,
19054
19043
  language,
19055
19044
  skipGreeting,
@@ -19646,8 +19635,6 @@ class ChatFrame extends d {
19646
19635
  if (currentSrc !== null && currentSrc !== void 0 && currentSrc.startsWith("data:text/html")) {
19647
19636
  return;
19648
19637
  }
19649
-
19650
- // Clear any existing timeout before starting new one (prevents orphaned timeouts)
19651
19638
  this.clearFallbackTimeout();
19652
19639
  this.chatRenderTimeout = window.setTimeout(() => {
19653
19640
  var _this$channel;
@@ -19655,13 +19642,13 @@ class ChatFrame extends d {
19655
19642
  isDrawerOpen: drawerIsOpen
19656
19643
  } = this.props;
19657
19644
 
19658
- // Only show fallback if drawer is STILL open and chat hasn't connected
19645
+ // Only fire event if drawer is STILL open and chat hasn't connected
19659
19646
  if (!((_this$channel = this.channel) !== null && _this$channel !== void 0 && _this$channel.isConnected) && drawerIsOpen) {
19660
19647
  log("Chat frame took over 5 seconds to respond", {
19661
19648
  handle
19662
19649
  }, {
19663
- level: "error",
19664
- sampleRate: 1.0
19650
+ level: "warn",
19651
+ sampleRate: 0.01
19665
19652
  });
19666
19653
 
19667
19654
  // SUP-1141- TODO: Remove chatFrameTimeoutCallback
@@ -19669,30 +19656,29 @@ class ChatFrame extends d {
19669
19656
  chatFrameTimeoutCallback();
19670
19657
  }
19671
19658
  publishEvent("ada:chat_frame_timeout", undefined);
19672
- if (showFallbackOnTimeout) {
19673
- this.setState({
19674
- showFallback: true
19675
- });
19676
- }
19677
19659
  }
19678
- }, CHAT_FALLBACK_DELAY_MS);
19660
+ }, CHAT_FRAME_TIMEOUT_EVENT_MS);
19679
19661
  this.chatRenderTimeoutLater = window.setTimeout(() => {
19680
19662
  var _this$channel2;
19681
19663
  const {
19682
19664
  isDrawerOpen: drawerIsOpen
19683
19665
  } = this.props;
19684
-
19685
- // REMOVE: ONLY FOR LOGGING PURPOSES
19686
- // Only show fallback if drawer is STILL open and chat hasn't connected - 10 second check
19687
19666
  if (!((_this$channel2 = this.channel) !== null && _this$channel2 !== void 0 && _this$channel2.isConnected) && drawerIsOpen) {
19688
19667
  log("Chat frame took over 10 seconds to respond", {
19689
19668
  handle
19690
19669
  }, {
19691
- level: "error",
19692
- sampleRate: 1.0
19670
+ level: "warn",
19671
+ sampleRate: 0.01
19693
19672
  });
19673
+ const hasTimeoutEventSubscription = hasEventSubscription("ada:chat_frame_timeout");
19674
+ const shouldShowFallback = showFallbackOnTimeout !== false && !hasTimeoutEventSubscription;
19675
+ if (shouldShowFallback) {
19676
+ this.setState({
19677
+ showFallback: true
19678
+ });
19679
+ }
19694
19680
  }
19695
- }, CHAT_FALLBACK_DELAY_MS + 5000);
19681
+ }, CHAT_FALLBACK_DELAY_MS);
19696
19682
  }
19697
19683
  render() {
19698
19684
  const {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ada-support/embed2",
3
- "version": "1.11.3",
3
+ "version": "1.11.11",
4
4
  "description": "",
5
5
  "main": "dist/npm-entry",
6
6
  "typings": "dist/npm-entry/index-npm.d.ts",
@@ -34,7 +34,6 @@
34
34
  "bundle-report-intro": "webpack-bundle-analyzer --port 4204 dist/embed/intro/local/stats.json dist/embed/intro/local",
35
35
  "bundle-report-x-storage": "webpack-bundle-analyzer --port 4205 dist/embed/x-storage/local/stats.json dist/embed/x-storage/local",
36
36
  "bundle-report": "DATADOG_TOKEN=test BUNDLE_ANALYSER=true yarn build && run-p bundle-report-entry bundle-report-button bundle-report-mask bundle-report-intro bundle-report-x-storage",
37
- "prepare": "husky install",
38
37
  "check-package-version": "./check-package-version.sh",
39
38
  "audit-dependencies": "yarn audit --groups dependencies"
40
39
  },
@@ -75,10 +74,8 @@
75
74
  "eslint-plugin-cypress": "^2.12.1",
76
75
  "eslint-plugin-sonarjs": "^0.11.0",
77
76
  "html-webpack-plugin": "^5.5.0",
78
- "husky": "^7.0.0",
79
77
  "jest": "^27.5.1",
80
78
  "jest-localstorage-mock": "^2.4.0",
81
- "lint-staged": "^11.2.3",
82
79
  "mock-xmlhttprequest": "^7.0.4",
83
80
  "npm-run-all": "^4.1.5",
84
81
  "prettier": "2.7.1",
@@ -111,14 +108,16 @@
111
108
  "terser": ">=5.14.2",
112
109
  "@babel/traverse": ">=7.23.2",
113
110
  "semver": ">=7.5.2",
114
- "form-data": ">=4.0.4"
111
+ "form-data": ">=4.0.4",
112
+ "diff": "^4.0.4"
115
113
  },
116
114
  "files": [
117
115
  "dist/npm-entry"
118
116
  ],
119
117
  "repository": {
120
118
  "type": "git",
121
- "url": "https://github.com/AdaSupport/embed-2.git"
119
+ "url": "https://github.com/AdaSupport/monorepo.git",
120
+ "directory": "embed-2"
122
121
  },
123
122
  "publishConfig": {
124
123
  "access": "public"