@w100n/documents 0.14.0 → 0.15.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/{SheetView-4TPL7DES.js → SheetView-72KXS4DM.js} +4 -4
- package/dist/{TextEditor-VBHWUOZR.js → TextEditor-NSICFE6U.js} +173 -5
- package/dist/TextEditor-NSICFE6U.js.map +1 -0
- package/dist/{chunk-DR3TTJWZ.js → chunk-M4OQG3EN.js} +388 -36
- package/dist/chunk-M4OQG3EN.js.map +1 -0
- package/dist/{chunk-RCQODE2Z.js → chunk-OXC4PUOC.js} +2 -2
- package/dist/{chunk-5MH4WDW4.js → chunk-Z7UNJ4ND.js} +66 -10
- package/dist/chunk-Z7UNJ4ND.js.map +1 -0
- package/dist/collab.cjs +450 -44
- package/dist/collab.cjs.map +1 -1
- package/dist/collab.js +2 -2
- package/dist/index.cjs +712 -131
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +159 -0
- package/dist/index.css.map +1 -1
- package/dist/index.js +8 -8
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/TextEditor-VBHWUOZR.js.map +0 -1
- package/dist/chunk-5MH4WDW4.js.map +0 -1
- package/dist/chunk-DR3TTJWZ.js.map +0 -1
- /package/dist/{SheetView-4TPL7DES.js.map → SheetView-72KXS4DM.js.map} +0 -0
- /package/dist/{chunk-RCQODE2Z.js.map → chunk-OXC4PUOC.js.map} +0 -0
package/dist/index.js
CHANGED
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
readDocx,
|
|
18
18
|
texts,
|
|
19
19
|
writeDocx
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-M4OQG3EN.js";
|
|
21
21
|
|
|
22
22
|
// src/DocumentOverlay.tsx
|
|
23
23
|
import { Download, ExternalLink, FileSpreadsheet, FileText, FileType, Files, Presentation, X as X4 } from "lucide-react";
|
|
@@ -2407,8 +2407,8 @@ function PdfView({ bytes, t, language, worker, rights, host, documentId, onSaved
|
|
|
2407
2407
|
|
|
2408
2408
|
// src/DocumentOverlay.tsx
|
|
2409
2409
|
import { jsx as jsx5, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
2410
|
-
var TextEditor = lazy(() => import("./TextEditor-
|
|
2411
|
-
var SheetView = lazy(() => import("./SheetView-
|
|
2410
|
+
var TextEditor = lazy(() => import("./TextEditor-NSICFE6U.js"));
|
|
2411
|
+
var SheetView = lazy(() => import("./SheetView-72KXS4DM.js"));
|
|
2412
2412
|
var icons = { docx: FileText, markdown: FileType, pdf: Files, sheet: FileSpreadsheet, slides: Presentation };
|
|
2413
2413
|
var read = { view: true, comment: false, edit: false };
|
|
2414
2414
|
var quiet = () => {
|
|
@@ -3097,8 +3097,8 @@ function Thumb({ host, item, label }) {
|
|
|
3097
3097
|
|
|
3098
3098
|
// src/DocumentsWorkspace.tsx
|
|
3099
3099
|
import { Fragment as Fragment8, jsx as jsx9, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
3100
|
-
var TextEditor2 = lazy2(() => import("./TextEditor-
|
|
3101
|
-
var SheetView2 = lazy2(() => import("./SheetView-
|
|
3100
|
+
var TextEditor2 = lazy2(() => import("./TextEditor-NSICFE6U.js"));
|
|
3101
|
+
var SheetView2 = lazy2(() => import("./SheetView-72KXS4DM.js"));
|
|
3102
3102
|
var icons3 = { docx: FileText3, markdown: FileType3, pdf: Files2, sheet: FileSpreadsheet3, slides: Presentation3 };
|
|
3103
3103
|
function DocumentsWorkspace({ host, language = "en", theme = "light", place, onPlace, start, end, aside, actions }) {
|
|
3104
3104
|
const t = texts[language];
|
|
@@ -3712,7 +3712,7 @@ function DocumentsWorkspace({ host, language = "en", theme = "light", place, onP
|
|
|
3712
3712
|
/* @__PURE__ */ jsx9("div", { className: "w100n-docs-head", children: /* @__PURE__ */ jsxs9("div", { className: "w100n-docs-row", children: [
|
|
3713
3713
|
/* @__PURE__ */ jsx9("div", { className: "w100n-docs-tabs", role: "tablist", "aria-label": t.details, "data-compact": panelTabs.length > 3, onKeyDown: rove, children: panelTabs.map(([key, Icon, label]) => /* @__PURE__ */ jsxs9("button", { type: "button", role: "tab", "aria-selected": tab === key, tabIndex: tab === key ? 0 : -1, "aria-label": label, title: label, onClick: () => setTab(key), children: [
|
|
3714
3714
|
/* @__PURE__ */ jsx9(Icon, { "aria-hidden": true }),
|
|
3715
|
-
(panelTabs.length < 4 || tab === key) && label
|
|
3715
|
+
(panelTabs.length < 4 || tab === key && panelTabs.length < 5) && /* @__PURE__ */ jsx9("span", { children: label })
|
|
3716
3716
|
] }, key)) }),
|
|
3717
3717
|
/* @__PURE__ */ jsx9("button", { type: "button", className: "w100n-docs-close", onClick: () => side("panel", false), "aria-label": t.closePanel, title: t.closePanel, children: /* @__PURE__ */ jsx9(X6, { "aria-hidden": true }) })
|
|
3718
3718
|
] }) }),
|
|
@@ -3876,8 +3876,8 @@ function DocumentsWorkspace({ host, language = "en", theme = "light", place, onP
|
|
|
3876
3876
|
import { lazy as lazy3, Suspense as Suspense3, useRef as useRef7, useState as useState10 } from "react";
|
|
3877
3877
|
import { Ban as Ban2, Download as Download3, Eye as Eye2, FileDown as FileDown2, FileSpreadsheet as FileSpreadsheet4, FileText as FileText4, FileType as FileType4, Files as Files3, Lock as Lock2, Presentation as Presentation4, UserRound } from "lucide-react";
|
|
3878
3878
|
import { Fragment as Fragment9, jsx as jsx10, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
3879
|
-
var TextEditor3 = lazy3(() => import("./TextEditor-
|
|
3880
|
-
var SheetView3 = lazy3(() => import("./SheetView-
|
|
3879
|
+
var TextEditor3 = lazy3(() => import("./TextEditor-NSICFE6U.js"));
|
|
3880
|
+
var SheetView3 = lazy3(() => import("./SheetView-72KXS4DM.js"));
|
|
3881
3881
|
var icons4 = { docx: FileText4, markdown: FileType4, pdf: Files3, sheet: FileSpreadsheet4, slides: Presentation4 };
|
|
3882
3882
|
var GuestRefused = class extends Error {
|
|
3883
3883
|
constructor(reason, file = "", sharedBy = "") {
|