@sapia-ai/chatbot 2.33.0 → 2.33.1

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.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,12 @@
1
+ ## [2.33.1](https://github.com/PredictiveHire/phapp-fi-widget/compare/v2.33.0...v2.33.1) (2026-03-10)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **common:** [ED-1387] support Vimeo privacy hash in embed URL ([f37eac6](https://github.com/PredictiveHire/phapp-fi-widget/commit/f37eac6517bc97da5ff036254ebb4d688d4702d0))
7
+
8
+
9
+
1
10
  # [2.33.0](https://github.com/PredictiveHire/phapp-fi-widget/compare/v2.32.0...v2.33.0) (2026-03-02)
2
11
 
3
12
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sapia-ai/chatbot",
3
- "version": "2.33.0",
3
+ "version": "2.33.1",
4
4
  "description": "",
5
5
  "main": "predictivehire.js",
6
6
  "scripts": {
package/predictivehire.js CHANGED
@@ -32198,20 +32198,21 @@ let si = {}, RC = class {
32198
32198
  };
32199
32199
  XL || (si = PDe(), wDe(), ADe(), FDe(), kDe(), ODe());
32200
32200
  const bu = () => Kf(GL), MDe = (t) => {
32201
- const e = [/vimeo\.com\/(\d+)/, /player\.vimeo\.com\/video\/(\d+)/, /vimeo\.com\/channels\/[\w-]+\/(\d+)/, /vimeo\.com\/groups\/[\w-]+\/videos\/(\d+)/];
32202
- for (const r of e) {
32203
- const i = t.match(r);
32204
- if (i)
32205
- return i[1];
32201
+ const e = /vimeo\.com\/(video\/|event\/)?(\d+)(?:\/([a-zA-Z0-9]+))?/, r = t.match(e);
32202
+ if (!r) {
32203
+ const a = t.match(/player\.vimeo\.com\/video\/(\d+)/);
32204
+ return a ? { videoId: a[1] } : null;
32206
32205
  }
32207
- return null;
32208
- }, NDe = (t) => {
32209
- const e = new URLSearchParams({
32210
- dnt: "1",
32211
- // Do Not Track
32212
- fullscreen: "1"
32213
- });
32214
- return "https://player.vimeo.com/video/".concat(t, "?").concat(e.toString());
32206
+ const i = r[2];
32207
+ let n = r[3];
32208
+ try {
32209
+ n = new URL(t).searchParams.get("h") || n;
32210
+ } catch (a) {
32211
+ }
32212
+ return { videoId: i, privacyHash: n || void 0 };
32213
+ }, NDe = (t, e) => {
32214
+ const r = new URLSearchParams();
32215
+ return e && r.append("h", e), r.append("dnt", "1"), r.append("fullscreen", "1"), "https://player.vimeo.com/video/".concat(t, "?").concat(r.toString());
32215
32216
  }, LDe = (t) => {
32216
32217
  let { src: e, width: r = "100%", height: i = "100%", onPlay: n, onPause: a, onEnded: o, onError: s } = t;
32217
32218
  const u = Ge(null), l = Ge(null), c = Ge(null), [d, f] = Ve(!1), { assessmentState: { isVideoModuleOpen: h } } = bu();
@@ -32226,7 +32227,7 @@ const bu = () => Kf(GL), MDe = (t) => {
32226
32227
  return;
32227
32228
  }
32228
32229
  const m = document.createElement("iframe");
32229
- m.src = NDe(p), m.width = r, m.height = i, m.frameBorder = "0", m.referrerPolicy = "origin", m.allow = "autoplay; fullscreen; picture-in-picture", m.allowFullscreen = !0, m.style.width = "100%", m.style.height = "100%", m.style.border = "none", u.current.innerHTML = "", u.current.appendChild(m), l.current = m;
32230
+ m.src = NDe(p.videoId, p.privacyHash), m.width = r, m.height = i, m.frameBorder = "0", m.referrerPolicy = "origin", m.allow = "autoplay; fullscreen; picture-in-picture", m.allowFullscreen = !0, m.style.width = "100%", m.style.height = "100%", m.style.border = "none", u.current.innerHTML = "", u.current.appendChild(m), l.current = m;
32230
32231
  const v = new RC(m);
32231
32232
  return c.current = v, v.on("play", () => {
32232
32233
  f(!0), n == null || n();