@w100n/documents 0.10.0 → 0.11.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-JYH2ZUZF.js → SheetView-TXHS5WJC.js} +3 -3
- package/dist/{TextEditor-X3X62R46.js → TextEditor-4YETNX4T.js} +6 -5
- package/dist/TextEditor-4YETNX4T.js.map +1 -0
- package/dist/{chunk-CE3AADY6.js → chunk-EM4U6OC5.js} +2 -2
- package/dist/chunk-EM4U6OC5.js.map +1 -0
- package/dist/{chunk-SVRYWMES.js → chunk-FPGPEIW5.js} +2 -2
- package/dist/{chunk-K364NAYP.js → chunk-L765DZPO.js} +6 -1
- package/dist/chunk-L765DZPO.js.map +1 -0
- package/dist/collab.cjs +1 -1
- package/dist/collab.cjs.map +1 -1
- package/dist/collab.js +1 -1
- package/dist/index.cjs +3133 -3105
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +2853 -2853
- package/dist/index.css.map +1 -1
- package/dist/index.d.cts +7 -11
- package/dist/index.d.ts +7 -11
- package/dist/index.js +2801 -2778
- package/dist/index.js.map +1 -1
- package/dist/kinds.cjs +71 -0
- package/dist/kinds.cjs.map +1 -0
- package/dist/kinds.d.cts +11 -0
- package/dist/kinds.d.ts +11 -0
- package/dist/kinds.js +14 -0
- package/dist/kinds.js.map +1 -0
- package/dist/memory.cjs +1 -1
- package/dist/memory.cjs.map +1 -1
- package/dist/memory.js +2 -2
- package/dist/memory.js.map +1 -1
- package/package.json +6 -1
- package/dist/TextEditor-X3X62R46.js.map +0 -1
- package/dist/chunk-CE3AADY6.js.map +0 -1
- package/dist/chunk-K364NAYP.js.map +0 -1
- /package/dist/{SheetView-JYH2ZUZF.js.map → SheetView-TXHS5WJC.js.map} +0 -0
- /package/dist/{chunk-SVRYWMES.js.map → chunk-FPGPEIW5.js.map} +0 -0
package/dist/index.d.cts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
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,
|
|
4
|
-
export { C as Comment, 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-B5oF25dn.cjs';
|
|
3
|
+
import { L as Language, D as DocumentsHost, P as Place, a as DocumentFile, G as GuestHost, R as Rights } from './types-B5oF25dn.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-B5oF25dn.cjs';
|
|
5
5
|
import { JSONContent } from '@tiptap/core';
|
|
6
6
|
import { I as Img } from './write-DaVtTJCS.cjs';
|
|
7
|
+
export { kindOf, kinds, matches, readable } from './kinds.cjs';
|
|
7
8
|
|
|
8
9
|
type DocxModel = {
|
|
9
10
|
doc: JSONContent;
|
|
@@ -21,11 +22,13 @@ type DocxModel = {
|
|
|
21
22
|
declare function readDocx(bytes: ArrayBuffer): Promise<DocxModel>;
|
|
22
23
|
declare function writeDocx(original: ArrayBuffer, doc: JSONContent, load?: (src: string) => Promise<Img>): Promise<ArrayBuffer>;
|
|
23
24
|
|
|
24
|
-
declare function DocumentOverlay({ source, name, info, download, onClose, onOpen, language, theme, worker, host, documentId }: {
|
|
25
|
+
declare function DocumentOverlay({ source, name, mimeType, info, download, actions, onClose, onOpen, language, theme, worker, host, documentId }: {
|
|
25
26
|
source: ArrayBuffer | Blob | string;
|
|
26
27
|
name: string;
|
|
28
|
+
mimeType?: string;
|
|
27
29
|
info?: string;
|
|
28
30
|
download?: string;
|
|
31
|
+
actions?: ReactNode;
|
|
29
32
|
onClose: () => void;
|
|
30
33
|
onOpen?: () => void;
|
|
31
34
|
language?: Language;
|
|
@@ -62,13 +65,6 @@ declare function GuestDocument({ host, language, theme, brand }: {
|
|
|
62
65
|
brand?: ReactNode;
|
|
63
66
|
}): react.JSX.Element;
|
|
64
67
|
|
|
65
|
-
declare const kinds: DocumentKind[];
|
|
66
|
-
declare function kindOf(name: string, mimeType?: string | null): DocumentKind | null;
|
|
67
|
-
declare function matches(doc: {
|
|
68
|
-
name: string;
|
|
69
|
-
kind: DocumentKind;
|
|
70
|
-
}, query: string, kind: DocumentKind | 'all'): boolean;
|
|
71
|
-
|
|
72
68
|
type Attr = {
|
|
73
69
|
value: string;
|
|
74
70
|
at: [number, number] | null;
|
|
@@ -159,4 +155,4 @@ declare function SlidesView({ html, name, rights, language, theme, baseUrl, scri
|
|
|
159
155
|
guard?: Guard;
|
|
160
156
|
}): react.JSX.Element;
|
|
161
157
|
|
|
162
|
-
export { type Deck, type DeckKind, DocumentFile,
|
|
158
|
+
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 };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
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,
|
|
4
|
-
export { C as Comment, 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-B5oF25dn.js';
|
|
3
|
+
import { L as Language, D as DocumentsHost, P as Place, a as DocumentFile, G as GuestHost, R as Rights } from './types-B5oF25dn.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-B5oF25dn.js';
|
|
5
5
|
import { JSONContent } from '@tiptap/core';
|
|
6
6
|
import { I as Img } from './write-DaVtTJCS.js';
|
|
7
|
+
export { kindOf, kinds, matches, readable } from './kinds.js';
|
|
7
8
|
|
|
8
9
|
type DocxModel = {
|
|
9
10
|
doc: JSONContent;
|
|
@@ -21,11 +22,13 @@ type DocxModel = {
|
|
|
21
22
|
declare function readDocx(bytes: ArrayBuffer): Promise<DocxModel>;
|
|
22
23
|
declare function writeDocx(original: ArrayBuffer, doc: JSONContent, load?: (src: string) => Promise<Img>): Promise<ArrayBuffer>;
|
|
23
24
|
|
|
24
|
-
declare function DocumentOverlay({ source, name, info, download, onClose, onOpen, language, theme, worker, host, documentId }: {
|
|
25
|
+
declare function DocumentOverlay({ source, name, mimeType, info, download, actions, onClose, onOpen, language, theme, worker, host, documentId }: {
|
|
25
26
|
source: ArrayBuffer | Blob | string;
|
|
26
27
|
name: string;
|
|
28
|
+
mimeType?: string;
|
|
27
29
|
info?: string;
|
|
28
30
|
download?: string;
|
|
31
|
+
actions?: ReactNode;
|
|
29
32
|
onClose: () => void;
|
|
30
33
|
onOpen?: () => void;
|
|
31
34
|
language?: Language;
|
|
@@ -62,13 +65,6 @@ declare function GuestDocument({ host, language, theme, brand }: {
|
|
|
62
65
|
brand?: ReactNode;
|
|
63
66
|
}): react.JSX.Element;
|
|
64
67
|
|
|
65
|
-
declare const kinds: DocumentKind[];
|
|
66
|
-
declare function kindOf(name: string, mimeType?: string | null): DocumentKind | null;
|
|
67
|
-
declare function matches(doc: {
|
|
68
|
-
name: string;
|
|
69
|
-
kind: DocumentKind;
|
|
70
|
-
}, query: string, kind: DocumentKind | 'all'): boolean;
|
|
71
|
-
|
|
72
68
|
type Attr = {
|
|
73
69
|
value: string;
|
|
74
70
|
at: [number, number] | null;
|
|
@@ -159,4 +155,4 @@ declare function SlidesView({ html, name, rights, language, theme, baseUrl, scri
|
|
|
159
155
|
guard?: Guard;
|
|
160
156
|
}): react.JSX.Element;
|
|
161
157
|
|
|
162
|
-
export { type Deck, type DeckKind, DocumentFile,
|
|
158
|
+
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 };
|