@w100n/documents 0.16.3 → 0.17.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/{Compare-M57FG4R3.js → Compare-RHAUAKUJ.js} +2 -2
- package/dist/{SheetView-KXFUAILH.js → SheetView-SBLAFGTL.js} +5 -5
- package/dist/{TextEditor-RNHXPYJX.js → TextEditor-X2GSL4QM.js} +119 -27
- package/dist/TextEditor-X2GSL4QM.js.map +1 -0
- package/dist/{chunk-E2FVJNDT.js → chunk-A6AHJCEK.js} +67 -832
- package/dist/chunk-A6AHJCEK.js.map +1 -0
- package/dist/{chunk-XFLYD3JS.js → chunk-ASTNK6WZ.js} +2 -2
- package/dist/{chunk-VNXZVOPN.js → chunk-B7C6NBBQ.js} +929 -1
- package/dist/chunk-B7C6NBBQ.js.map +1 -0
- package/dist/chunk-FFXAOK4A.js +39 -0
- package/dist/chunk-FFXAOK4A.js.map +1 -0
- package/dist/{chunk-EQLBYW42.js → chunk-GSIPTCQH.js} +9 -1
- package/dist/chunk-GSIPTCQH.js.map +1 -0
- package/dist/collab.cjs +170 -2
- package/dist/collab.cjs.map +1 -1
- package/dist/collab.d.cts +1 -1
- package/dist/collab.d.ts +1 -1
- package/dist/collab.js +3 -3
- package/dist/index.cjs +1212 -536
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +324 -0
- package/dist/index.css.map +1 -1
- package/dist/index.d.cts +12 -3
- package/dist/index.d.ts +12 -3
- package/dist/index.js +878 -490
- package/dist/index.js.map +1 -1
- package/dist/kinds.d.cts +1 -1
- package/dist/kinds.d.ts +1 -1
- package/dist/memory.cjs +3 -2
- package/dist/memory.cjs.map +1 -1
- package/dist/memory.d.cts +1 -1
- package/dist/memory.d.ts +1 -1
- package/dist/memory.js +3 -2
- package/dist/memory.js.map +1 -1
- package/dist/{types-BUO0OzOl.d.cts → types-CHmV8GLx.d.cts} +1 -0
- package/dist/{types-BUO0OzOl.d.ts → types-CHmV8GLx.d.ts} +1 -0
- package/package.json +1 -1
- package/dist/TextEditor-RNHXPYJX.js.map +0 -1
- package/dist/chunk-E2FVJNDT.js.map +0 -1
- package/dist/chunk-EQLBYW42.js.map +0 -1
- package/dist/chunk-VNXZVOPN.js.map +0 -1
- /package/dist/{Compare-M57FG4R3.js.map → Compare-RHAUAKUJ.js.map} +0 -0
- /package/dist/{SheetView-KXFUAILH.js.map → SheetView-SBLAFGTL.js.map} +0 -0
- /package/dist/{chunk-XFLYD3JS.js.map → chunk-ASTNK6WZ.js.map} +0 -0
package/dist/index.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import { ReactNode, RefObject } from 'react';
|
|
3
|
-
import { L as Language, D as DocumentsHost, P as Place, a as DocumentFile, G as GuestHost, R as Rights } from './types-
|
|
4
|
-
export { C as Comment, b as DocumentKind, c as DocumentSummary, d as DocumentVersion, F as Fetch, e as GuestFile, f as GuestLink, g as LinkEntry, h as Person, S as Signature, i as SignatureMethod, j as Space } from './types-
|
|
3
|
+
import { L as Language, D as DocumentsHost, P as Place, a as DocumentFile, G as GuestHost, R as Rights } from './types-CHmV8GLx.cjs';
|
|
4
|
+
export { C as Comment, b as DocumentKind, c as DocumentSummary, d as DocumentVersion, F as Fetch, e as GuestFile, f as GuestLink, g as LinkEntry, h as Person, S as Signature, i as SignatureMethod, j as Space } from './types-CHmV8GLx.cjs';
|
|
5
5
|
import { JSONContent } from '@tiptap/core';
|
|
6
6
|
import { I as Img, S as Setup } from './write-BCI8yool.cjs';
|
|
7
7
|
export { kindOf, kinds, matches, readable } from './kinds.cjs';
|
|
@@ -56,6 +56,15 @@ declare function DocumentsWorkspace({ host, language, theme, place, onPlace, sta
|
|
|
56
56
|
actions?: (doc: DocumentFile) => ReactNode;
|
|
57
57
|
}): react.JSX.Element;
|
|
58
58
|
|
|
59
|
+
declare function FilePreview({ url, name, mimeType, size, bytes, pdfWorker }: {
|
|
60
|
+
url: string;
|
|
61
|
+
name: string;
|
|
62
|
+
mimeType?: string;
|
|
63
|
+
size?: number;
|
|
64
|
+
bytes?: (url: string) => Promise<ArrayBuffer>;
|
|
65
|
+
pdfWorker?: () => Worker;
|
|
66
|
+
}): react.JSX.Element | null;
|
|
67
|
+
|
|
59
68
|
type GuestRefusal = 'missing' | 'ended' | 'password' | 'wrong' | 'name' | 'busy';
|
|
60
69
|
declare class GuestRefused extends Error {
|
|
61
70
|
readonly reason: GuestRefusal;
|
|
@@ -160,4 +169,4 @@ declare function SlidesView({ html, name, rights, language, theme, baseUrl, scri
|
|
|
160
169
|
guard?: Guard;
|
|
161
170
|
}): react.JSX.Element;
|
|
162
171
|
|
|
163
|
-
export { type Deck, type DeckKind, DocumentFile, DocumentOverlay, DocumentsHost, DocumentsWorkspace, type DocxModel, GuestDocument, GuestHost, type GuestRefusal, GuestRefused, Language, Place, Rights, type Slide, SlidesView, readDeck, readDocx, writeDeck, writeDocx };
|
|
172
|
+
export { type Deck, type DeckKind, DocumentFile, DocumentOverlay, DocumentsHost, DocumentsWorkspace, type DocxModel, FilePreview, GuestDocument, GuestHost, type GuestRefusal, GuestRefused, Language, Place, Rights, type Slide, SlidesView, readDeck, readDocx, writeDeck, writeDocx };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import { ReactNode, RefObject } from 'react';
|
|
3
|
-
import { L as Language, D as DocumentsHost, P as Place, a as DocumentFile, G as GuestHost, R as Rights } from './types-
|
|
4
|
-
export { C as Comment, b as DocumentKind, c as DocumentSummary, d as DocumentVersion, F as Fetch, e as GuestFile, f as GuestLink, g as LinkEntry, h as Person, S as Signature, i as SignatureMethod, j as Space } from './types-
|
|
3
|
+
import { L as Language, D as DocumentsHost, P as Place, a as DocumentFile, G as GuestHost, R as Rights } from './types-CHmV8GLx.js';
|
|
4
|
+
export { C as Comment, b as DocumentKind, c as DocumentSummary, d as DocumentVersion, F as Fetch, e as GuestFile, f as GuestLink, g as LinkEntry, h as Person, S as Signature, i as SignatureMethod, j as Space } from './types-CHmV8GLx.js';
|
|
5
5
|
import { JSONContent } from '@tiptap/core';
|
|
6
6
|
import { I as Img, S as Setup } from './write-BCI8yool.js';
|
|
7
7
|
export { kindOf, kinds, matches, readable } from './kinds.js';
|
|
@@ -56,6 +56,15 @@ declare function DocumentsWorkspace({ host, language, theme, place, onPlace, sta
|
|
|
56
56
|
actions?: (doc: DocumentFile) => ReactNode;
|
|
57
57
|
}): react.JSX.Element;
|
|
58
58
|
|
|
59
|
+
declare function FilePreview({ url, name, mimeType, size, bytes, pdfWorker }: {
|
|
60
|
+
url: string;
|
|
61
|
+
name: string;
|
|
62
|
+
mimeType?: string;
|
|
63
|
+
size?: number;
|
|
64
|
+
bytes?: (url: string) => Promise<ArrayBuffer>;
|
|
65
|
+
pdfWorker?: () => Worker;
|
|
66
|
+
}): react.JSX.Element | null;
|
|
67
|
+
|
|
59
68
|
type GuestRefusal = 'missing' | 'ended' | 'password' | 'wrong' | 'name' | 'busy';
|
|
60
69
|
declare class GuestRefused extends Error {
|
|
61
70
|
readonly reason: GuestRefusal;
|
|
@@ -160,4 +169,4 @@ declare function SlidesView({ html, name, rights, language, theme, baseUrl, scri
|
|
|
160
169
|
guard?: Guard;
|
|
161
170
|
}): react.JSX.Element;
|
|
162
171
|
|
|
163
|
-
export { type Deck, type DeckKind, DocumentFile, DocumentOverlay, DocumentsHost, DocumentsWorkspace, type DocxModel, GuestDocument, GuestHost, type GuestRefusal, GuestRefused, Language, Place, Rights, type Slide, SlidesView, readDeck, readDocx, writeDeck, writeDocx };
|
|
172
|
+
export { type Deck, type DeckKind, DocumentFile, DocumentOverlay, DocumentsHost, DocumentsWorkspace, type DocxModel, FilePreview, GuestDocument, GuestHost, type GuestRefusal, GuestRefused, Language, Place, Rights, type Slide, SlidesView, readDeck, readDocx, writeDeck, writeDocx };
|