@pi-outpost/embed 0.30.0 → 0.32.0

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,6 +1,6 @@
1
- import { C as e, D as t, E as n, S as r, T as i, a, b as o, d as s, f as c, i as l, r as u, t as d, w as f, x as p } from "./conversationHistory-BDtVdjM-.js";
1
+ import { C as e, D as t, E as n, S as r, T as i, a, b as o, d as s, f as c, i as l, r as u, t as d, w as f, x as p } from "./conversationHistory-BylZCAb1.js";
2
2
  import { _ as m, n as h, t as g } from "./lib-BgQYQRfw.js";
3
- import { a as _, i as v, o as y, r as b, t as x } from "./workspacePath-CfDl0V4n.js";
3
+ import { a as _, i as v, o as y, r as b, t as x } from "./workspacePath-CpsPdoMU.js";
4
4
  import { n as S, t as ee } from "./findInPage-xFP831JH.js";
5
5
  import { Suspense as C, createElement as te, createRef as ne, forwardRef as w, lazy as re, memo as T, useCallback as E, useContext as D, useEffect as O, useId as k, useImperativeHandle as A, useLayoutEffect as j, useMemo as M, useReducer as ie, useRef as N, useState as P } from "react";
6
6
  import { createRoot as F } from "react-dom/client";
@@ -2666,7 +2666,7 @@ function nr({ text: e, path: t, serverUrl: n, token: r, template: i }) {
2666
2666
  if (!(d.current || Date.now() - f.current[i] < 750)) {
2667
2667
  d.current = !0, f.current[i] = Date.now(), c(i), o("working"), u(null);
2668
2668
  try {
2669
- let { downloadDocx: a, downloadDocxInTemplate: s } = await import("./docxExport-DfoUfB8p.js");
2669
+ let { downloadDocx: a, downloadDocxInTemplate: s } = await import("./docxExport-DK8uhXvT.js");
2670
2670
  await (i === "template" ? s : a)(e, t, {
2671
2671
  serverUrl: n,
2672
2672
  token: r
@@ -2757,7 +2757,7 @@ function rr({ query: e, onQueryChange: t, matchCount: n, truncated: r = !1, curr
2757
2757
  }
2758
2758
  //#endregion
2759
2759
  //#region ../ui/src/components/FileViewer.tsx
2760
- var ir = re(() => import("./PdfViewer-CDo7oG-p.js")), ar = 250, or = "(min-width: 768px)";
2760
+ var ir = re(() => import("./PdfViewer-vJS_KjBR.js")), ar = 250, or = "(min-width: 768px)";
2761
2761
  function sr() {
2762
2762
  let [e, t] = P(() => window.matchMedia?.(or).matches ?? !0);
2763
2763
  return O(() => {
@@ -20140,7 +20140,7 @@ var Up = w(function({ serverUrl: e = "", rootElement: n, initialTheme: r, token:
20140
20140
  ]), ur = E(async () => {
20141
20141
  cr(null), or("preparing…");
20142
20142
  try {
20143
- let { exportConversation: t } = await import("./conversationExport-C6_QGm7R.js");
20143
+ let { exportConversation: t } = await import("./conversationExport-QWEGKkKB.js");
20144
20144
  await t({
20145
20145
  items: d.items,
20146
20146
  olderItems: d.olderHistory?.remaining ?? 0,
@@ -0,0 +1 @@
1
+ function e(e){return/^[a-z][a-z0-9+.-]*:/i.test(e)||e.startsWith(`//`)}function t(e,t){let n=t.split(/[?#]/)[0],r=n.startsWith(`/`)?n.split(`/`):[...e.split(`/`).slice(0,-1),...n.split(`/`)],i=[];for(let e of r)e!==``&&e!==`.`&&(e===`..`?i.pop():i.push(e));return i.join(`/`)}function n(e){return/\.(png|jpe?g|gif|webp|svg|avif)$/i.test(e)}function r(e){return/\.pdf$/i.test(e)}function i(e){return/\.(docx|xlsx|pptx|msg|eml|emlx)$/i.test(e)}function a(e,t,n,r){let i=n?`&token=${encodeURIComponent(n)}`:``,a=r===void 0?``:`&v=${encodeURIComponent(String(r))}`;return`${e}/files/raw?path=${encodeURIComponent(t)}${i}${a}`}Object.defineProperty(exports,"a",{enumerable:!0,get:function(){return a}}),Object.defineProperty(exports,"i",{enumerable:!0,get:function(){return r}}),Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return e}}),Object.defineProperty(exports,"o",{enumerable:!0,get:function(){return t}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return n}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return i}});
@@ -14,7 +14,7 @@ function r(e) {
14
14
  return /\.pdf$/i.test(e);
15
15
  }
16
16
  function i(e) {
17
- return /\.(docx|xlsx|pptx)$/i.test(e);
17
+ return /\.(docx|xlsx|pptx|msg|eml|emlx)$/i.test(e);
18
18
  }
19
19
  function a(e, t, n, r) {
20
20
  let i = n ? `&token=${encodeURIComponent(n)}` : "", a = r === void 0 ? "" : `&v=${encodeURIComponent(String(r))}`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pi-outpost/embed",
3
- "version": "0.30.0",
3
+ "version": "0.32.0",
4
4
  "type": "module",
5
5
  "description": "Mount pi-outpost as a Shadow-DOM-isolated widget inside another web app.",
6
6
  "license": "MIT",
@@ -1 +0,0 @@
1
- function e(e){return/^[a-z][a-z0-9+.-]*:/i.test(e)||e.startsWith(`//`)}function t(e,t){let n=t.split(/[?#]/)[0],r=n.startsWith(`/`)?n.split(`/`):[...e.split(`/`).slice(0,-1),...n.split(`/`)],i=[];for(let e of r)e!==``&&e!==`.`&&(e===`..`?i.pop():i.push(e));return i.join(`/`)}function n(e){return/\.(png|jpe?g|gif|webp|svg|avif)$/i.test(e)}function r(e){return/\.pdf$/i.test(e)}function i(e){return/\.(docx|xlsx|pptx)$/i.test(e)}function a(e,t,n,r){let i=n?`&token=${encodeURIComponent(n)}`:``,a=r===void 0?``:`&v=${encodeURIComponent(String(r))}`;return`${e}/files/raw?path=${encodeURIComponent(t)}${i}${a}`}Object.defineProperty(exports,"a",{enumerable:!0,get:function(){return a}}),Object.defineProperty(exports,"i",{enumerable:!0,get:function(){return r}}),Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return e}}),Object.defineProperty(exports,"o",{enumerable:!0,get:function(){return t}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return n}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return i}});