@vehiclehistory/property-lib 0.0.4 → 0.0.5

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,4 @@
1
- import { IconProps } from './icons.ts';
1
+ import { IconProps } from './icons';
2
2
  import { NamedExoticComponent } from 'react';
3
3
 
4
4
  declare const _default: NamedExoticComponent<IconProps>;
@@ -534,8 +534,8 @@ var D = { exports: {} };
534
534
  d.exports ? (t.default = t, d.exports = t) : window.classNames = t;
535
535
  })();
536
536
  })(D);
537
- var Q = D.exports;
538
- const m = /* @__PURE__ */ U(Q), W = ({
537
+ var W = D.exports;
538
+ const m = /* @__PURE__ */ U(W), Q = ({
539
539
  children: d,
540
540
  className: e,
541
541
  clickHandler: t,
@@ -596,7 +596,7 @@ const m = /* @__PURE__ */ U(Q), W = ({
596
596
  }
597
597
  )
598
598
  ] }) });
599
- }, u1 = A(W), J = ({
599
+ }, u1 = A(Q), J = ({
600
600
  children: d,
601
601
  className: e = "",
602
602
  messages: t = [],
@@ -2156,6 +2156,13 @@ class H {
2156
2156
  async: !1
2157
2157
  });
2158
2158
  }
2159
+ static loadLiveChat() {
2160
+ const e = document.querySelectorAll(".live-chat"), t = document.getElementById("live-chat-btn");
2161
+ for (const a of e)
2162
+ a.addEventListener("click", () => {
2163
+ typeof LiveChatWidget < "u" && (LiveChatWidget.call("maximize"), t == null || t.remove());
2164
+ });
2165
+ }
2159
2166
  static async loadSwiper() {
2160
2167
  const e = "https://cdn.jsdelivr.net/npm", t = `${e}/swiper@9/swiper-bundle.min.js`, a = `${e}/swiper@9/swiper-bundle.min.css`;
2161
2168
  await H.injectLink({ href: a, id: "swiperCss" }), await H.injectScript({ src: t, id: "swiperJs", async: !1 });
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vehiclehistory/property-lib",
3
3
  "description": "Shared UI/Utility Library for Property Sites",
4
- "version": "0.0.4",
4
+ "version": "0.0.5",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+https://github.com/penguin-marketing/vh-recs-ui-library.git"
@@ -24,12 +24,12 @@
24
24
  "lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0"
25
25
  },
26
26
  "dependencies": {
27
- "classnames": "^2.3.2",
27
+ "classnames": "^2.5.1",
28
28
  "react": "^18.3.1",
29
29
  "react-dom": "^18.3.1"
30
30
  },
31
31
  "devDependencies": {
32
- "@types/node": "^22.0.0",
32
+ "@types/node": "^22.0.2",
33
33
  "@types/react": "^18.3.3",
34
34
  "@types/react-dom": "^18.3.0",
35
35
  "@typescript-eslint/eslint-plugin": "^7.15.0",
@@ -40,9 +40,9 @@
40
40
  "eslint-plugin-react-hooks": "^4.6.2",
41
41
  "eslint-plugin-react-refresh": "^0.4.7",
42
42
  "prettier": "^2.8.7",
43
- "typescript": "^5.2.2",
43
+ "typescript": "^5.5.4",
44
44
  "vite": "^5.3.4",
45
- "vite-plugin-dts": "^4.0.0-beta.1",
45
+ "vite-plugin-dts": "^4.0.0-beta.2",
46
46
  "vite-tsconfig-paths": "^4.3.2"
47
47
  }
48
48
  }