boka-human-cliend-v3 0.0.35 → 0.0.36

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.
@@ -5216,8 +5216,8 @@
5216
5216
  },
5217
5217
  src() {
5218
5218
  let { token, product, custType, subCustType, source, terminal = "" } = this;
5219
- let { protocol, host, port } = location;
5220
- let domain = `${protocol}//${host}${port ? ":" + port : ""}`;
5219
+ let { protocol, host } = location;
5220
+ let domain = `${protocol}//${host}`;
5221
5221
  return `${this.host}?token=${token}&product=${product}&custType=${custType}&subCustType=${subCustType}&source=${source}&human=1&isIFrame=true&terminal=${terminal}&domain=${encodeURIComponent(domain)}&time=${(/* @__PURE__ */ new Date()).getTime()}`;
5222
5222
  }
5223
5223
  },
@@ -5353,8 +5353,21 @@
5353
5353
  inertia: true,
5354
5354
  modifiers: [
5355
5355
  interact.modifiers.restrictRect({
5356
- restriction: "body",
5356
+ restriction: "#humanViewOuter",
5357
5357
  endOnly: true
5358
+ /*restriction: () => {
5359
+ const scrollTop = window.pageYOffset || document.documentElement.scrollTop;
5360
+ const scrollLeft = window.pageXOffset || document.documentElement.scrollLeft;
5361
+
5362
+ return {
5363
+ left: scrollLeft,
5364
+ top: scrollTop,
5365
+ right: scrollLeft + window.innerWidth,
5366
+ bottom: scrollTop + window.innerHeight
5367
+ };
5368
+ },
5369
+ elementRect: { left: 0, right: 1, top: 0, bottom: 1 },
5370
+ endOnly: false*/
5358
5371
  })
5359
5372
  ],
5360
5373
  autoScroll: true,
@@ -5380,6 +5393,10 @@
5380
5393
  const _hoisted_4 = ["src"];
5381
5394
  function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
5382
5395
  return vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
5396
+ _cache[7] || (_cache[7] = vue.createElementVNode("div", {
5397
+ id: "humanViewOuter",
5398
+ style: { "position": "fixed", "width": "100vw", "height": "100vh", "top": "0", "left": "0", "display": "none" }
5399
+ }, null, -1)),
5383
5400
  vue.createElementVNode("div", {
5384
5401
  class: vue.normalizeClass(["humanEnterIcon", [$data.unreadCount > 0 ? "unreadCount" : ""]]),
5385
5402
  id: "humanEnterIcon"
@@ -5404,7 +5421,7 @@
5404
5421
  vue.createElementVNode("div", _hoisted_3, [
5405
5422
  vue.createElementVNode("span", {
5406
5423
  onClick: _cache[2] || (_cache[2] = ($event) => $data.visible = false),
5407
- onTouchstart: _cache[3] || (_cache[3] = ($event) => $data.visible = false)
5424
+ onTouchstart: _cache[3] || (_cache[3] = vue.withModifiers(($event) => $data.visible = false, ["stop"]))
5408
5425
  }, [..._cache[4] || (_cache[4] = [
5409
5426
  vue.createElementVNode("img", {
5410
5427
  src: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAABzUlEQVR4AbzV207DQAwE0MKPA18Oe6ydKCnZdJNWRXFsj+ei9IXP25v/Evjdcn9b6a299OG5eCfwq0foCH19uvHiyah6An8gvRwQ+3q58eAVg8pIoGMB/YoI6+vpRssjQt6wWwIdAA5mRQAznyka2mh4wmpfBwIcEMyKEGaeKVyacHnBsm++MCACYnYGsOyjjoObOw9Y9ur3X1hgeyEStLEeRrBadl5uODnRwrIvfRSIQEBoVgxh5nXB3ILRwLJv+lEgIiEDs2IMMyszzKxwYebdehRIxICRWQmAKTNM4cDMw5oJJGbE0KwEKbNywzEf1mwgE4aMzeuCua2x4XwmcGhy5nAm0Fesf8bkwNyyH/bZQIaMY+ZnVNndcLIP+0wgI4YxEQRT5uA4sOy7/VEgA0YRC4BlN8Oy48Ky/+tHgYQMImIMy54Oc8tOA8u+6aNAAsKQGcKy33c3nOC0sOxL3wtEJAiJESz7qOPg5s4Dlr36fSACYh3biwGsjVMPLk3IvGDZN/8PHRByJIRln+00tOHzhNWeLwQ4FNheBLA2XnpoeUTMG7Z8ISBHxDoGuNh58Iq8MvKFOeiIIT3befHkUz2BDh8N1Vt76cNz8f4DAAD//8lliLUAAAAGSURBVAMAfghcOXqadykAAAAASUVORK5CYII=",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "boka-human-cliend-v3",
3
- "version": "0.0.35",
3
+ "version": "0.0.36",
4
4
  "main": "dist/boka-human-v3.umd.js",
5
5
  "scripts": {
6
6
  "dev": "vite",
package/src/demo/App.vue CHANGED
@@ -1,6 +1,7 @@
1
1
  <template>
2
2
  <div id="app">
3
- <BokaHuman :token="'Bearer 8937d9ccf21264a83c3cb29aaf16dc7'" :product="'manageCenterPlus'" :cust-type="'manageCenterPlus'" :sub-cust-type="'standard'" source="g8" :full-screen="1"/>
3
+ <BokaHuman :token="'4e9d58f42ceab334b3b24d31ec437bef'" :product="'web'" :cust-type="''" :sub-cust-type="''" source="bkWeb-PC" :full-screen="0"/>
4
+ <div style="height: 200vh; width: 100vw; background: #fff;"></div>
4
5
  </div>
5
6
  </template>
6
7