@w100n/documents 0.11.0 → 0.12.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.
package/dist/index.js CHANGED
@@ -16,7 +16,7 @@ import {
16
16
  readDocx,
17
17
  texts,
18
18
  writeDocx
19
- } from "./chunk-TNSN4ZQ5.js";
19
+ } from "./chunk-BKUFGMEA.js";
20
20
 
21
21
  // src/DocumentOverlay.tsx
22
22
  import { Download, ExternalLink, FileSpreadsheet, FileText, FileType, Files, Presentation, X as X4 } from "lucide-react";
@@ -2406,8 +2406,8 @@ function PdfView({ bytes, t, language, worker, rights, host, documentId, onSaved
2406
2406
 
2407
2407
  // src/DocumentOverlay.tsx
2408
2408
  import { jsx as jsx5, jsxs as jsxs5 } from "react/jsx-runtime";
2409
- var TextEditor = lazy(() => import("./TextEditor-4YETNX4T.js"));
2410
- var SheetView = lazy(() => import("./SheetView-TXHS5WJC.js"));
2409
+ var TextEditor = lazy(() => import("./TextEditor-OTGUXXRU.js"));
2410
+ var SheetView = lazy(() => import("./SheetView-CIHVWANF.js"));
2411
2411
  var icons = { docx: FileText, markdown: FileType, pdf: Files, sheet: FileSpreadsheet, slides: Presentation };
2412
2412
  var read = { view: true, comment: false, edit: false };
2413
2413
  var quiet = () => {
@@ -2886,8 +2886,8 @@ function Thumb({ host, item, label }) {
2886
2886
 
2887
2887
  // src/DocumentsWorkspace.tsx
2888
2888
  import { Fragment as Fragment7, jsx as jsx8, jsxs as jsxs8 } from "react/jsx-runtime";
2889
- var TextEditor2 = lazy2(() => import("./TextEditor-4YETNX4T.js"));
2890
- var SheetView2 = lazy2(() => import("./SheetView-TXHS5WJC.js"));
2889
+ var TextEditor2 = lazy2(() => import("./TextEditor-OTGUXXRU.js"));
2890
+ var SheetView2 = lazy2(() => import("./SheetView-CIHVWANF.js"));
2891
2891
  var icons2 = { docx: FileText2, markdown: FileType2, pdf: Files2, sheet: FileSpreadsheet2, slides: Presentation2 };
2892
2892
  function DocumentsWorkspace({ host, language = "en", theme = "light", place, onPlace, start, end, aside, actions }) {
2893
2893
  const t = texts[language];
@@ -3199,15 +3199,15 @@ function DocumentsWorkspace({ host, language = "en", theme = "light", place, onP
3199
3199
  );
3200
3200
  return /* @__PURE__ */ jsxs8("div", { className: "w100n-docs", "data-theme": theme, children: [
3201
3201
  /* @__PURE__ */ jsxs8("header", { className: "w100n-docs-bar", children: [
3202
- slot(start),
3202
+ start && /* @__PURE__ */ jsx8("span", { className: "w100n-docs-start w100n-docs-slot", children: slot(start) }),
3203
3203
  narrow && listToggle,
3204
3204
  /* @__PURE__ */ jsx8("span", { className: "w100n-docs-tile", "data-kind": doc.data?.kind, children: /* @__PURE__ */ jsx8(Kind, { "aria-hidden": true }) }),
3205
3205
  /* @__PURE__ */ jsxs8("div", { className: "w100n-docs-heading", children: [
3206
3206
  /* @__PURE__ */ jsx8("strong", { className: "w100n-docs-title", children: doc.data?.name ?? t.documents }),
3207
- crumbs.length > 0 && /* @__PURE__ */ jsx8("span", { className: "w100n-docs-crumbs", children: crumbs.map((item, i) => /* @__PURE__ */ jsxs8("span", { children: [
3207
+ crumbs.length > 0 ? /* @__PURE__ */ jsx8("span", { className: "w100n-docs-crumbs", children: crumbs.map((item, i) => /* @__PURE__ */ jsxs8("span", { children: [
3208
3208
  i > 0 && /* @__PURE__ */ jsx8(ChevronRight2, { "aria-hidden": true }),
3209
3209
  item
3210
- ] }, i)) })
3210
+ ] }, i)) }) : /* @__PURE__ */ jsx8("span", { className: "w100n-docs-hint", children: t.hint })
3211
3211
  ] }),
3212
3212
  doc.data && /* @__PURE__ */ jsx8("span", { className: "w100n-docs-badge", "data-kind": doc.data.kind, children: t.kinds[doc.data.kind] }),
3213
3213
  versionId && /* @__PURE__ */ jsx8("span", { className: "w100n-docs-badge", children: versions.data?.find((v) => v.id === versionId) && date(versions.data.find((v) => v.id === versionId).createdAt) }),
@@ -3230,7 +3230,7 @@ function DocumentsWorkspace({ host, language = "en", theme = "light", place, onP
3230
3230
  ] }),
3231
3231
  doc.data && !versionId && actions?.(doc.data),
3232
3232
  narrow && panelToggle,
3233
- end && /* @__PURE__ */ jsx8("div", { className: "w100n-docs-end", children: slot(end) })
3233
+ end && /* @__PURE__ */ jsx8("div", { className: "w100n-docs-end w100n-docs-slot", children: slot(end) })
3234
3234
  ] }),
3235
3235
  /* @__PURE__ */ jsxs8("div", { ref: body, className: "w100n-docs-body", children: [
3236
3236
  listOpen && /* @__PURE__ */ jsxs8("aside", { className: "w100n-docs-side w100n-docs-list", "aria-label": t.documents, children: [
@@ -3408,8 +3408,8 @@ function DocumentsWorkspace({ host, language = "en", theme = "light", place, onP
3408
3408
  import { lazy as lazy3, Suspense as Suspense3, useRef as useRef7, useState as useState9 } from "react";
3409
3409
  import { Ban as Ban2, Download as Download3, Eye as Eye2, FileDown as FileDown2, FileSpreadsheet as FileSpreadsheet3, FileText as FileText3, FileType as FileType3, Files as Files3, Lock as Lock2, Presentation as Presentation3, UserRound } from "lucide-react";
3410
3410
  import { Fragment as Fragment8, jsx as jsx9, jsxs as jsxs9 } from "react/jsx-runtime";
3411
- var TextEditor3 = lazy3(() => import("./TextEditor-4YETNX4T.js"));
3412
- var SheetView3 = lazy3(() => import("./SheetView-TXHS5WJC.js"));
3411
+ var TextEditor3 = lazy3(() => import("./TextEditor-OTGUXXRU.js"));
3412
+ var SheetView3 = lazy3(() => import("./SheetView-CIHVWANF.js"));
3413
3413
  var icons3 = { docx: FileText3, markdown: FileType3, pdf: Files3, sheet: FileSpreadsheet3, slides: Presentation3 };
3414
3414
  var GuestRefused = class extends Error {
3415
3415
  constructor(reason, file = "", sharedBy = "") {