@arbidocs/coedit 0.4.111 → 0.4.112
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/commands.cjs +687 -0
- package/dist/commands.cjs.map +1 -1
- package/dist/commands.d.cts +263 -157
- package/dist/commands.d.ts +263 -157
- package/dist/commands.js +646 -2
- package/dist/commands.js.map +1 -1
- package/dist/port-ip7WByvH.d.cts +188 -0
- package/dist/port-ip7WByvH.d.ts +188 -0
- package/dist/server.cjs +675 -65
- package/dist/server.cjs.map +1 -1
- package/dist/server.d.cts +15 -4
- package/dist/server.d.ts +15 -4
- package/dist/server.js +676 -67
- package/dist/server.js.map +1 -1
- package/dist/template.d.cts +3 -17
- package/dist/template.d.ts +3 -17
- package/dist/track-eYC94jTp.d.cts +17 -0
- package/dist/track-eYC94jTp.d.ts +17 -0
- package/package.json +1 -1
package/dist/template.d.cts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
export { R as Revision, t as trackInsertion } from './track-eYC94jTp.cjs';
|
|
2
|
+
|
|
1
3
|
interface ApplyTemplateOptions {
|
|
2
4
|
/** Record the template in settings.xml (`w:attachedTemplate`), e.g. "House template.dotx". */
|
|
3
5
|
attachedTemplate?: string;
|
|
@@ -50,22 +52,6 @@ declare function buildingBlockFragment(template: Uint8Array, name: string): Uint
|
|
|
50
52
|
/** A fragment's body as clipboard HTML the editor's paste recognises as its own. */
|
|
51
53
|
declare function fragmentClipboardHtml(fragment: Uint8Array, covered?: boolean): string;
|
|
52
54
|
|
|
53
|
-
/** Who made a tracked change and when (`w:author`, `w:date`). */
|
|
54
|
-
interface Revision {
|
|
55
|
-
author: string;
|
|
56
|
-
/** ISO 8601, seconds precision, e.g. `2026-10-19T09:30:00Z`. */
|
|
57
|
-
date: string;
|
|
58
|
-
}
|
|
59
|
-
/**
|
|
60
|
-
* The fragment with every run wrapped in `w:ins` and every new paragraph mark marked inserted. A
|
|
61
|
-
* table row is marked inserted as a whole, its cells left as they are: the editor rejects an
|
|
62
|
-
* inserted row whose content is tracked as well only partly. A run is not descended into, so a
|
|
63
|
-
* text box goes in with its run. `covered`: the fragment's last paragraph mark is pasted too (a
|
|
64
|
-
* block before the caret's paragraph); otherwise the last paragraph runs into the text after the
|
|
65
|
-
* caret and its mark is not new.
|
|
66
|
-
*/
|
|
67
|
-
declare function trackInsertion(fragment: Uint8Array, revision: Revision, covered: boolean): Uint8Array;
|
|
68
|
-
|
|
69
55
|
interface StyleDifference {
|
|
70
56
|
styleId: string;
|
|
71
57
|
name: string;
|
|
@@ -122,4 +108,4 @@ declare class TemplateError extends Error {
|
|
|
122
108
|
constructor(message: string);
|
|
123
109
|
}
|
|
124
110
|
|
|
125
|
-
export { type ApplyTemplateOptions, type ApplyTemplateReport, type BuildingBlockInfo, LEGAL_BUILDING_BLOCKS, LEGAL_NUM, type LegalTemplateOptions, type LinkedLevel, type
|
|
111
|
+
export { type ApplyTemplateOptions, type ApplyTemplateReport, type BuildingBlockInfo, LEGAL_BUILDING_BLOCKS, LEGAL_NUM, type LegalTemplateOptions, type LinkedLevel, type StyleDifference, type StyleDivergence, TemplateError, applyTemplate, attachedTemplateOf, buildingBlockFragment, composeWithTemplate, defaultLegalTemplate, fragmentClipboardHtml, linkedLevelStyles, listBuildingBlocks, newFromTemplate, styleDivergence };
|
package/dist/template.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
export { R as Revision, t as trackInsertion } from './track-eYC94jTp.js';
|
|
2
|
+
|
|
1
3
|
interface ApplyTemplateOptions {
|
|
2
4
|
/** Record the template in settings.xml (`w:attachedTemplate`), e.g. "House template.dotx". */
|
|
3
5
|
attachedTemplate?: string;
|
|
@@ -50,22 +52,6 @@ declare function buildingBlockFragment(template: Uint8Array, name: string): Uint
|
|
|
50
52
|
/** A fragment's body as clipboard HTML the editor's paste recognises as its own. */
|
|
51
53
|
declare function fragmentClipboardHtml(fragment: Uint8Array, covered?: boolean): string;
|
|
52
54
|
|
|
53
|
-
/** Who made a tracked change and when (`w:author`, `w:date`). */
|
|
54
|
-
interface Revision {
|
|
55
|
-
author: string;
|
|
56
|
-
/** ISO 8601, seconds precision, e.g. `2026-10-19T09:30:00Z`. */
|
|
57
|
-
date: string;
|
|
58
|
-
}
|
|
59
|
-
/**
|
|
60
|
-
* The fragment with every run wrapped in `w:ins` and every new paragraph mark marked inserted. A
|
|
61
|
-
* table row is marked inserted as a whole, its cells left as they are: the editor rejects an
|
|
62
|
-
* inserted row whose content is tracked as well only partly. A run is not descended into, so a
|
|
63
|
-
* text box goes in with its run. `covered`: the fragment's last paragraph mark is pasted too (a
|
|
64
|
-
* block before the caret's paragraph); otherwise the last paragraph runs into the text after the
|
|
65
|
-
* caret and its mark is not new.
|
|
66
|
-
*/
|
|
67
|
-
declare function trackInsertion(fragment: Uint8Array, revision: Revision, covered: boolean): Uint8Array;
|
|
68
|
-
|
|
69
55
|
interface StyleDifference {
|
|
70
56
|
styleId: string;
|
|
71
57
|
name: string;
|
|
@@ -122,4 +108,4 @@ declare class TemplateError extends Error {
|
|
|
122
108
|
constructor(message: string);
|
|
123
109
|
}
|
|
124
110
|
|
|
125
|
-
export { type ApplyTemplateOptions, type ApplyTemplateReport, type BuildingBlockInfo, LEGAL_BUILDING_BLOCKS, LEGAL_NUM, type LegalTemplateOptions, type LinkedLevel, type
|
|
111
|
+
export { type ApplyTemplateOptions, type ApplyTemplateReport, type BuildingBlockInfo, LEGAL_BUILDING_BLOCKS, LEGAL_NUM, type LegalTemplateOptions, type LinkedLevel, type StyleDifference, type StyleDivergence, TemplateError, applyTemplate, attachedTemplateOf, buildingBlockFragment, composeWithTemplate, defaultLegalTemplate, fragmentClipboardHtml, linkedLevelStyles, listBuildingBlocks, newFromTemplate, styleDivergence };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/** Who made a tracked change and when (`w:author`, `w:date`). */
|
|
2
|
+
interface Revision {
|
|
3
|
+
author: string;
|
|
4
|
+
/** ISO 8601, seconds precision, e.g. `2026-10-19T09:30:00Z`. */
|
|
5
|
+
date: string;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* The fragment with every run wrapped in `w:ins` and every new paragraph mark marked inserted. A
|
|
9
|
+
* table row is marked inserted as a whole, its cells left as they are: the editor rejects an
|
|
10
|
+
* inserted row whose content is tracked as well only partly. A run is not descended into, so a
|
|
11
|
+
* text box goes in with its run. `covered`: the fragment's last paragraph mark is pasted too (a
|
|
12
|
+
* block before the caret's paragraph); otherwise the last paragraph runs into the text after the
|
|
13
|
+
* caret and its mark is not new.
|
|
14
|
+
*/
|
|
15
|
+
declare function trackInsertion(fragment: Uint8Array, revision: Revision, covered: boolean): Uint8Array;
|
|
16
|
+
|
|
17
|
+
export { type Revision as R, trackInsertion as t };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/** Who made a tracked change and when (`w:author`, `w:date`). */
|
|
2
|
+
interface Revision {
|
|
3
|
+
author: string;
|
|
4
|
+
/** ISO 8601, seconds precision, e.g. `2026-10-19T09:30:00Z`. */
|
|
5
|
+
date: string;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* The fragment with every run wrapped in `w:ins` and every new paragraph mark marked inserted. A
|
|
9
|
+
* table row is marked inserted as a whole, its cells left as they are: the editor rejects an
|
|
10
|
+
* inserted row whose content is tracked as well only partly. A run is not descended into, so a
|
|
11
|
+
* text box goes in with its run. `covered`: the fragment's last paragraph mark is pasted too (a
|
|
12
|
+
* block before the caret's paragraph); otherwise the last paragraph runs into the text after the
|
|
13
|
+
* caret and its mark is not new.
|
|
14
|
+
*/
|
|
15
|
+
declare function trackInsertion(fragment: Uint8Array, revision: Revision, covered: boolean): Uint8Array;
|
|
16
|
+
|
|
17
|
+
export { type Revision as R, trackInsertion as t };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arbidocs/coedit",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.112",
|
|
4
4
|
"description": "Real-time collaboration for the ARBI native DOCX editor: a Yjs mirror of the canonical OOXML package, session, and server runtime",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|