ooxml-core 1.22.0 → 1.24.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/README.md +7 -2
- package/dist/automation/index.cjs +559 -339
- package/dist/automation/index.d.ts +1 -0
- package/dist/automation/index.d.ts.map +1 -1
- package/dist/automation/index.mjs +558 -340
- package/dist/automation/live.d.ts +89 -0
- package/dist/automation/live.d.ts.map +1 -0
- package/dist/collab/embedding.d.ts +7 -0
- package/dist/collab/embedding.d.ts.map +1 -1
- package/dist/collab/index.cjs +189 -0
- package/dist/collab/index.d.ts +2 -0
- package/dist/collab/index.d.ts.map +1 -1
- package/dist/collab/index.mjs +186 -1
- package/dist/collab/write-back-lifecycle.d.ts +33 -0
- package/dist/collab/write-back-lifecycle.d.ts.map +1 -0
- package/dist/collab/write-back.d.ts +75 -0
- package/dist/collab/write-back.d.ts.map +1 -0
- package/dist/docx/ui/customization.d.ts +30 -0
- package/dist/docx/ui/customization.d.ts.map +1 -0
- package/dist/docx/ui/index.cjs +51 -0
- package/dist/docx/ui/index.d.ts +1 -0
- package/dist/docx/ui/index.d.ts.map +1 -1
- package/dist/docx/ui/index.mjs +46 -1
- package/dist/embedding/backstage.d.ts +48 -0
- package/dist/embedding/backstage.d.ts.map +1 -0
- package/dist/embedding/capabilities.d.ts +60 -0
- package/dist/embedding/capabilities.d.ts.map +1 -0
- package/dist/embedding/customization.d.ts +32 -0
- package/dist/embedding/customization.d.ts.map +1 -0
- package/dist/embedding/index.cjs +229 -0
- package/dist/embedding/index.d.ts +7 -0
- package/dist/embedding/index.d.ts.map +1 -0
- package/dist/embedding/index.mjs +204 -0
- package/dist/embedding/menu-commands.d.ts +66 -0
- package/dist/embedding/menu-commands.d.ts.map +1 -0
- package/dist/embedding/regions.d.ts +58 -0
- package/dist/embedding/regions.d.ts.map +1 -0
- package/dist/embedding/storage.d.ts +111 -0
- package/dist/embedding/storage.d.ts.map +1 -0
- package/dist/index.cjs +233 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +233 -1
- package/dist/visio/collab/baseline.d.ts +36 -0
- package/dist/visio/collab/baseline.d.ts.map +1 -0
- package/dist/visio/collab/bind.d.ts +20 -2
- package/dist/visio/collab/bind.d.ts.map +1 -1
- package/dist/visio/collab/compose-lists.d.ts +27 -0
- package/dist/visio/collab/compose-lists.d.ts.map +1 -0
- package/dist/visio/collab/compose.d.ts +6 -2
- package/dist/visio/collab/compose.d.ts.map +1 -1
- package/dist/visio/collab/fixups.d.ts +5 -0
- package/dist/visio/collab/fixups.d.ts.map +1 -0
- package/dist/visio/collab/index.cjs +1603 -361
- package/dist/visio/collab/index.d.ts +3 -2
- package/dist/visio/collab/index.d.ts.map +1 -1
- package/dist/visio/collab/index.mjs +1596 -362
- package/dist/visio/collab/keys.d.ts +32 -1
- package/dist/visio/collab/keys.d.ts.map +1 -1
- package/dist/visio/collab/package.d.ts +22 -1
- package/dist/visio/collab/package.d.ts.map +1 -1
- package/dist/visio/collab/pieces.d.ts +41 -0
- package/dist/visio/collab/pieces.d.ts.map +1 -0
- package/dist/visio/collab/read-ids.d.ts +35 -0
- package/dist/visio/collab/read-ids.d.ts.map +1 -0
- package/dist/visio/collab/read-parts.d.ts +34 -0
- package/dist/visio/collab/read-parts.d.ts.map +1 -0
- package/dist/visio/collab/read-shapes.d.ts +34 -0
- package/dist/visio/collab/read-shapes.d.ts.map +1 -0
- package/dist/visio/collab/read-util.d.ts +20 -0
- package/dist/visio/collab/read-util.d.ts.map +1 -0
- package/dist/visio/collab/read.d.ts +40 -19
- package/dist/visio/collab/read.d.ts.map +1 -1
- package/dist/visio/collab/schema.d.ts +55 -1
- package/dist/visio/collab/schema.d.ts.map +1 -1
- package/dist/visio/collab/snapshot-contents.d.ts +9 -0
- package/dist/visio/collab/snapshot-contents.d.ts.map +1 -0
- package/dist/visio/collab/snapshot-io.d.ts +26 -0
- package/dist/visio/collab/snapshot-io.d.ts.map +1 -0
- package/dist/visio/collab/snapshot-parts.d.ts +14 -0
- package/dist/visio/collab/snapshot-parts.d.ts.map +1 -0
- package/dist/visio/collab/snapshot.d.ts +31 -24
- package/dist/visio/collab/snapshot.d.ts.map +1 -1
- package/dist/visio/collab/write-parts.d.ts +8 -0
- package/dist/visio/collab/write-parts.d.ts.map +1 -0
- package/dist/visio/collab/write-shapes.d.ts +30 -0
- package/dist/visio/collab/write-shapes.d.ts.map +1 -0
- package/dist/visio/collab/write.d.ts +4 -16
- package/dist/visio/collab/write.d.ts.map +1 -1
- package/dist/visio/collab/zip-store.d.ts +4 -0
- package/dist/visio/collab/zip-store.d.ts.map +1 -0
- package/dist/visio/document-level.d.ts +57 -0
- package/dist/visio/document-level.d.ts.map +1 -0
- package/dist/visio/index.cjs +485 -333
- package/dist/visio/index.d.ts +2 -0
- package/dist/visio/index.d.ts.map +1 -1
- package/dist/visio/index.mjs +484 -334
- package/dist/visio/layers.d.ts +3 -0
- package/dist/visio/layers.d.ts.map +1 -1
- package/dist/visio/package.d.ts +9 -0
- package/dist/visio/package.d.ts.map +1 -1
- package/dist/visio/parse-incremental.d.ts +16 -0
- package/dist/visio/parse-incremental.d.ts.map +1 -0
- package/dist/visio/parser.d.ts +14 -0
- package/dist/visio/parser.d.ts.map +1 -1
- package/dist/visio/shape-metadata.d.ts +3 -0
- package/dist/visio/shape-metadata.d.ts.map +1 -1
- package/dist/visio/ui/collab-options.d.ts +10 -5
- package/dist/visio/ui/collab-options.d.ts.map +1 -1
- package/dist/visio/ui/contract.d.ts +27 -2
- package/dist/visio/ui/contract.d.ts.map +1 -1
- package/dist/visio/ui/customization.d.ts +46 -0
- package/dist/visio/ui/customization.d.ts.map +1 -0
- package/dist/visio/ui/index.cjs +460 -320
- package/dist/visio/ui/index.d.ts +1 -0
- package/dist/visio/ui/index.d.ts.map +1 -1
- package/dist/visio/ui/index.mjs +458 -321
- package/dist/xlsx/ui/commands.d.ts +2 -0
- package/dist/xlsx/ui/commands.d.ts.map +1 -1
- package/dist/xlsx/ui/customization.d.ts +49 -0
- package/dist/xlsx/ui/customization.d.ts.map +1 -0
- package/dist/xlsx/ui/index.cjs +39 -1
- package/dist/xlsx/ui/index.d.ts +1 -0
- package/dist/xlsx/ui/index.d.ts.map +1 -1
- package/dist/xlsx/ui/index.mjs +37 -2
- package/package.json +6 -1
|
@@ -0,0 +1,204 @@
|
|
|
1
|
+
// embedding/storage.ts
|
|
2
|
+
var FILE_COMMAND_EVENT = "file-command";
|
|
3
|
+
function fileCommandDetail(command, fileName) {
|
|
4
|
+
return fileName === void 0 ? { command } : { command, fileName };
|
|
5
|
+
}
|
|
6
|
+
function recoveryStoreOf(storage) {
|
|
7
|
+
if (!storage?.readRecovery || !storage.writeRecovery || !storage.clearRecovery) return void 0;
|
|
8
|
+
return storage;
|
|
9
|
+
}
|
|
10
|
+
function isDocumentStorage(value) {
|
|
11
|
+
return typeof value === "object" && value !== null && typeof value.save === "function";
|
|
12
|
+
}
|
|
13
|
+
var MIME_TYPES = {
|
|
14
|
+
docx: "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
|
|
15
|
+
docm: "application/vnd.ms-word.document.macroEnabled.12",
|
|
16
|
+
dotx: "application/vnd.openxmlformats-officedocument.wordprocessingml.template",
|
|
17
|
+
doc: "application/msword",
|
|
18
|
+
xlsx: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
|
|
19
|
+
xlsm: "application/vnd.ms-excel.sheet.macroEnabled.12",
|
|
20
|
+
xltx: "application/vnd.openxmlformats-officedocument.spreadsheetml.template",
|
|
21
|
+
xls: "application/vnd.ms-excel",
|
|
22
|
+
csv: "text/csv",
|
|
23
|
+
pptx: "application/vnd.openxmlformats-officedocument.presentationml.presentation",
|
|
24
|
+
pptm: "application/vnd.ms-powerpoint.presentation.macroEnabled.12",
|
|
25
|
+
ppsx: "application/vnd.openxmlformats-officedocument.presentationml.slideshow",
|
|
26
|
+
potx: "application/vnd.openxmlformats-officedocument.presentationml.template",
|
|
27
|
+
ppt: "application/vnd.ms-powerpoint",
|
|
28
|
+
vsdx: "application/vnd.ms-visio.drawing",
|
|
29
|
+
vsdm: "application/vnd.ms-visio.drawing.macroEnabled.12",
|
|
30
|
+
vsd: "application/vnd.visio",
|
|
31
|
+
txt: "text/plain",
|
|
32
|
+
json: "application/json"
|
|
33
|
+
};
|
|
34
|
+
function documentMimeType(fileName) {
|
|
35
|
+
const extension = /\.([^./\\]+)$/.exec(fileName)?.[1]?.toLowerCase() ?? "";
|
|
36
|
+
return MIME_TYPES[extension] ?? "application/octet-stream";
|
|
37
|
+
}
|
|
38
|
+
function documentSaveMeta(fileName, reason = "save", mimeType = documentMimeType(fileName)) {
|
|
39
|
+
return { fileName, mimeType, reason };
|
|
40
|
+
}
|
|
41
|
+
async function saveToStorage(storage, bytes, meta) {
|
|
42
|
+
const result = await storage.save(bytes, meta);
|
|
43
|
+
const name = result?.fileName?.trim();
|
|
44
|
+
return name ? name : meta.fileName;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
// embedding/backstage.ts
|
|
48
|
+
function hostBackstageItemId(id) {
|
|
49
|
+
return `host.${id}`;
|
|
50
|
+
}
|
|
51
|
+
function hostBackstagePageId(itemId) {
|
|
52
|
+
return itemId.startsWith("host.") ? itemId.slice(5) : void 0;
|
|
53
|
+
}
|
|
54
|
+
function acceptedHostBackstagePages(pages) {
|
|
55
|
+
const seen = /* @__PURE__ */ new Set();
|
|
56
|
+
const accepted = [];
|
|
57
|
+
for (const page of pages ?? []) {
|
|
58
|
+
if (!page || typeof page.id !== "string" || !page.id || seen.has(page.id)) continue;
|
|
59
|
+
seen.add(page.id);
|
|
60
|
+
accepted.push({ page, index: accepted.length });
|
|
61
|
+
}
|
|
62
|
+
return accepted.sort((a, b) => (a.page.order ?? 0) - (b.page.order ?? 0) || a.index - b.index).map(({ page }) => page);
|
|
63
|
+
}
|
|
64
|
+
function placeHostBackstagePages(items, pages, toEntry) {
|
|
65
|
+
const entries = [...items];
|
|
66
|
+
for (const page of acceptedHostBackstagePages(pages)) {
|
|
67
|
+
const group = page.group ?? "main";
|
|
68
|
+
let at = entries.length;
|
|
69
|
+
while (at > 0 && (entries[at - 1]?.group ?? "main") !== group) at--;
|
|
70
|
+
entries.splice(at === 0 ? entries.length : at, 0, toEntry(page));
|
|
71
|
+
}
|
|
72
|
+
return entries;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
// embedding/capabilities.ts
|
|
76
|
+
var EDITOR_CAPABILITY_IDS = [
|
|
77
|
+
/** Changing the document. `false` opens it read-only, whatever the edit prop says. */
|
|
78
|
+
"edit",
|
|
79
|
+
/** Saving a copy in another format (File > Export, Save As, Download). */
|
|
80
|
+
"export",
|
|
81
|
+
/** Printing (File > Print, the Print commands and Ctrl+P). */
|
|
82
|
+
"print",
|
|
83
|
+
/** Sharing the document with other people (File > Share, Share buttons). */
|
|
84
|
+
"share",
|
|
85
|
+
/** Copying content out (Copy, Cut and their shortcuts). */
|
|
86
|
+
"copy",
|
|
87
|
+
/** Adding and editing comments. */
|
|
88
|
+
"comment",
|
|
89
|
+
/** Tracked changes: turning tracking on, accepting and rejecting. */
|
|
90
|
+
"review",
|
|
91
|
+
/** Find and Replace. */
|
|
92
|
+
"find",
|
|
93
|
+
/** File > New and File > Open. */
|
|
94
|
+
"open",
|
|
95
|
+
/** File > Save. */
|
|
96
|
+
"save",
|
|
97
|
+
/** File > Options and Customize Ribbon. */
|
|
98
|
+
"settings"
|
|
99
|
+
];
|
|
100
|
+
function isCapabilityEnabled(capabilities, id) {
|
|
101
|
+
return capabilities?.[id] !== false;
|
|
102
|
+
}
|
|
103
|
+
function disabledCapabilities(capabilities) {
|
|
104
|
+
if (!capabilities) return [];
|
|
105
|
+
return Object.keys(capabilities).filter((id) => capabilities[id] === false);
|
|
106
|
+
}
|
|
107
|
+
function capabilityHiddenActions(capabilities, map) {
|
|
108
|
+
const hidden = /* @__PURE__ */ new Set();
|
|
109
|
+
for (const id of disabledCapabilities(capabilities))
|
|
110
|
+
for (const action of map[id] ?? []) hidden.add(action);
|
|
111
|
+
return [...hidden];
|
|
112
|
+
}
|
|
113
|
+
function mergeHiddenActions(...lists) {
|
|
114
|
+
const merged = /* @__PURE__ */ new Set();
|
|
115
|
+
for (const list of lists) for (const action of list ?? []) merged.add(action);
|
|
116
|
+
return [...merged];
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
// embedding/menu-commands.ts
|
|
120
|
+
function hostMenuEntryId(id) {
|
|
121
|
+
return `host:${id}`;
|
|
122
|
+
}
|
|
123
|
+
function isHostMenuEntry(entry) {
|
|
124
|
+
return typeof entry === "object" && entry !== null && entry.host === true;
|
|
125
|
+
}
|
|
126
|
+
function resolveHostMenuCommands(commands, context) {
|
|
127
|
+
const top = [];
|
|
128
|
+
const bottom = [];
|
|
129
|
+
const seen = /* @__PURE__ */ new Set();
|
|
130
|
+
for (const command of commands ?? []) {
|
|
131
|
+
if (!command?.id || seen.has(command.id)) continue;
|
|
132
|
+
seen.add(command.id);
|
|
133
|
+
if (command.when && !command.when(context)) continue;
|
|
134
|
+
const disabled = typeof command.disabled === "function" ? command.disabled(context) : command.disabled === true;
|
|
135
|
+
const entry = {
|
|
136
|
+
id: hostMenuEntryId(command.id),
|
|
137
|
+
host: true,
|
|
138
|
+
label: command.label,
|
|
139
|
+
labelKey: "",
|
|
140
|
+
disabled,
|
|
141
|
+
onSelect: () => {
|
|
142
|
+
if (!disabled) command.onSelect(context);
|
|
143
|
+
}
|
|
144
|
+
};
|
|
145
|
+
if (command.icon) entry.icon = command.icon;
|
|
146
|
+
(command.group === "bottom" ? bottom : top).push(entry);
|
|
147
|
+
}
|
|
148
|
+
return { top, bottom };
|
|
149
|
+
}
|
|
150
|
+
function withHostMenuCommands(entries, commands, context) {
|
|
151
|
+
const { top, bottom } = resolveHostMenuCommands(commands, context);
|
|
152
|
+
const middle = entries.map(
|
|
153
|
+
(entry, index) => index === 0 ? { ...entry, separatorBefore: top.length > 0 } : entry
|
|
154
|
+
);
|
|
155
|
+
const first = bottom[0];
|
|
156
|
+
if (first && top.length + middle.length > 0) first.separatorBefore = true;
|
|
157
|
+
return [...top, ...middle, ...bottom];
|
|
158
|
+
}
|
|
159
|
+
function withoutHiddenEntries(entries, hidden) {
|
|
160
|
+
const kept = [];
|
|
161
|
+
let separator = false;
|
|
162
|
+
for (const entry of entries) {
|
|
163
|
+
separator ||= entry.separatorBefore === true;
|
|
164
|
+
if (hidden(entry)) continue;
|
|
165
|
+
const starts = separator && kept.length > 0;
|
|
166
|
+
kept.push(
|
|
167
|
+
entry.separatorBefore === true === starts ? entry : { ...entry, separatorBefore: starts }
|
|
168
|
+
);
|
|
169
|
+
separator = false;
|
|
170
|
+
}
|
|
171
|
+
return kept;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
// embedding/regions.ts
|
|
175
|
+
function hostBackstageRegionId(id) {
|
|
176
|
+
return `backstage.host.${id}`;
|
|
177
|
+
}
|
|
178
|
+
function sameRenderer(a, b) {
|
|
179
|
+
if (a === b) return true;
|
|
180
|
+
if (!a || !b || typeof a !== "object" || typeof b !== "object" || a.element !== b.element)
|
|
181
|
+
return false;
|
|
182
|
+
const left = a.properties ?? {};
|
|
183
|
+
const right = b.properties ?? {};
|
|
184
|
+
const keys = Object.keys(left);
|
|
185
|
+
return keys.length === Object.keys(right).length && keys.every((key) => Object.is(left[key], right[key]));
|
|
186
|
+
}
|
|
187
|
+
function sameRegionContext(a, b, callbackKeys = /* @__PURE__ */ new Set(["close"])) {
|
|
188
|
+
const left = a;
|
|
189
|
+
const right = b;
|
|
190
|
+
for (const key of /* @__PURE__ */ new Set([...Object.keys(left), ...Object.keys(right)])) {
|
|
191
|
+
if (callbackKeys.has(key)) continue;
|
|
192
|
+
const x = left[key];
|
|
193
|
+
const y = right[key];
|
|
194
|
+
if (Array.isArray(x) && Array.isArray(y)) {
|
|
195
|
+
if (!sameItems(x, y)) return false;
|
|
196
|
+
} else if (!Object.is(x, y)) return false;
|
|
197
|
+
}
|
|
198
|
+
return true;
|
|
199
|
+
}
|
|
200
|
+
function sameItems(a, b) {
|
|
201
|
+
return a === b || a.length === b.length && a.every((item, index) => Object.is(item, b[index]));
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
export { EDITOR_CAPABILITY_IDS, FILE_COMMAND_EVENT, acceptedHostBackstagePages, capabilityHiddenActions, disabledCapabilities, documentMimeType, documentSaveMeta, fileCommandDetail, hostBackstageItemId, hostBackstagePageId, hostBackstageRegionId, hostMenuEntryId, isCapabilityEnabled, isDocumentStorage, isHostMenuEntry, mergeHiddenActions, placeHostBackstagePages, recoveryStoreOf, resolveHostMenuCommands, sameRegionContext, sameRenderer, saveToStorage, withHostMenuCommands, withoutHiddenEntries };
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Host context-menu commands: entries a host adds to an editor's right-click menu. Each command
|
|
3
|
+
* is plain data plus callbacks, so one descriptor works in every editor and framework binding.
|
|
4
|
+
* The context `C` is a product's immutable snapshot of what the menu was opened on (the
|
|
5
|
+
* selection, the slide, the cell range); the product documents its shape.
|
|
6
|
+
*/
|
|
7
|
+
/** One host command. Labels are plain text the host has already localised. */
|
|
8
|
+
export interface HostMenuCommand<C> {
|
|
9
|
+
/** Unique among the host commands of one menu; a repeated or empty id is ignored. */
|
|
10
|
+
id: string;
|
|
11
|
+
label: string;
|
|
12
|
+
/** A name from the shared icon set, for products whose menus show icons. */
|
|
13
|
+
icon?: string;
|
|
14
|
+
/** `top` (the default) is a group above the built-in entries; `bottom` one below them. */
|
|
15
|
+
group?: 'top' | 'bottom';
|
|
16
|
+
/** Shown only when this returns true (or is omitted). */
|
|
17
|
+
when?: (context: C) => boolean;
|
|
18
|
+
/** A disabled command is shown greyed out and never runs. */
|
|
19
|
+
disabled?: boolean | ((context: C) => boolean);
|
|
20
|
+
/** Runs after the menu closes, with the context the menu was opened on. */
|
|
21
|
+
onSelect: (context: C) => void;
|
|
22
|
+
}
|
|
23
|
+
/** A host command resolved for one opening of a menu. */
|
|
24
|
+
export interface HostMenuEntry {
|
|
25
|
+
/** `host:<id>`, so a host id can never collide with a built-in entry. */
|
|
26
|
+
id: `host:${string}`;
|
|
27
|
+
host: true;
|
|
28
|
+
label: string;
|
|
29
|
+
/** Kept for menus that look labels up by key; always empty for a host entry. */
|
|
30
|
+
labelKey: string;
|
|
31
|
+
icon?: string;
|
|
32
|
+
separatorBefore?: boolean;
|
|
33
|
+
disabled: boolean;
|
|
34
|
+
danger?: boolean;
|
|
35
|
+
checked?: boolean;
|
|
36
|
+
/** Runs the command (a no-op when disabled). */
|
|
37
|
+
onSelect: () => void;
|
|
38
|
+
}
|
|
39
|
+
/** The menu id of host command `id`. */
|
|
40
|
+
export declare function hostMenuEntryId(id: string): `host:${string}`;
|
|
41
|
+
/** True for an entry made from a host command. */
|
|
42
|
+
export declare function isHostMenuEntry(entry: unknown): entry is HostMenuEntry;
|
|
43
|
+
/** The host entries for one opening of a menu, split by group, in the host's order. */
|
|
44
|
+
export declare function resolveHostMenuCommands<C>(commands: readonly HostMenuCommand<C>[] | null | undefined, context: C): {
|
|
45
|
+
top: HostMenuEntry[];
|
|
46
|
+
bottom: HostMenuEntry[];
|
|
47
|
+
};
|
|
48
|
+
/**
|
|
49
|
+
* A menu with the host commands placed: the `top` group before the built-in entries and the
|
|
50
|
+
* `bottom` group after them, each separated from its neighbours, with no leading or trailing
|
|
51
|
+
* separator.
|
|
52
|
+
*/
|
|
53
|
+
export declare function withHostMenuCommands<E extends {
|
|
54
|
+
id: string;
|
|
55
|
+
separatorBefore?: boolean;
|
|
56
|
+
}, C>(entries: readonly E[], commands: readonly HostMenuCommand<C>[] | null | undefined, context: C): Array<E | HostMenuEntry>;
|
|
57
|
+
/**
|
|
58
|
+
* A menu without its hidden entries, with its groups intact: a hidden entry that starts a group
|
|
59
|
+
* (`separatorBefore`) passes the separator on to the next kept entry, and the first kept entry
|
|
60
|
+
* never starts with one. So hiding entries never merges two groups, never doubles a separator
|
|
61
|
+
* and never leaves one at the top. `entries` is not changed.
|
|
62
|
+
*/
|
|
63
|
+
export declare function withoutHiddenEntries<E extends {
|
|
64
|
+
separatorBefore?: boolean;
|
|
65
|
+
}>(entries: readonly E[], hidden: (entry: E) => boolean): E[];
|
|
66
|
+
//# sourceMappingURL=menu-commands.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"menu-commands.d.ts","sourceRoot":"","sources":["../../embedding/menu-commands.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,8EAA8E;AAC9E,MAAM,WAAW,eAAe,CAAC,CAAC;IACjC,qFAAqF;IACrF,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,4EAA4E;IAC5E,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,0FAA0F;IAC1F,KAAK,CAAC,EAAE,KAAK,GAAG,QAAQ,CAAC;IACzB,yDAAyD;IACzD,IAAI,CAAC,EAAE,CAAC,OAAO,EAAE,CAAC,KAAK,OAAO,CAAC;IAC/B,6DAA6D;IAC7D,QAAQ,CAAC,EAAE,OAAO,GAAG,CAAC,CAAC,OAAO,EAAE,CAAC,KAAK,OAAO,CAAC,CAAC;IAC/C,2EAA2E;IAC3E,QAAQ,EAAE,CAAC,OAAO,EAAE,CAAC,KAAK,IAAI,CAAC;CAC/B;AAED,yDAAyD;AACzD,MAAM,WAAW,aAAa;IAC7B,yEAAyE;IACzE,EAAE,EAAE,QAAQ,MAAM,EAAE,CAAC;IACrB,IAAI,EAAE,IAAI,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,gFAAgF;IAChF,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,QAAQ,EAAE,OAAO,CAAC;IAClB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,gDAAgD;IAChD,QAAQ,EAAE,MAAM,IAAI,CAAC;CACrB;AAED,wCAAwC;AACxC,wBAAgB,eAAe,CAAC,EAAE,EAAE,MAAM,GAAG,QAAQ,MAAM,EAAE,CAE5D;AAED,kDAAkD;AAClD,wBAAgB,eAAe,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,aAAa,CAEtE;AAED,uFAAuF;AACvF,wBAAgB,uBAAuB,CAAC,CAAC,EACxC,QAAQ,EAAE,SAAS,eAAe,CAAC,CAAC,CAAC,EAAE,GAAG,IAAI,GAAG,SAAS,EAC1D,OAAO,EAAE,CAAC,GACR;IAAE,GAAG,EAAE,aAAa,EAAE,CAAC;IAAC,MAAM,EAAE,aAAa,EAAE,CAAA;CAAE,CA0BnD;AAED;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,CAAC,SAAS;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,eAAe,CAAC,EAAE,OAAO,CAAA;CAAE,EAAE,CAAC,EAC1F,OAAO,EAAE,SAAS,CAAC,EAAE,EACrB,QAAQ,EAAE,SAAS,eAAe,CAAC,CAAC,CAAC,EAAE,GAAG,IAAI,GAAG,SAAS,EAC1D,OAAO,EAAE,CAAC,GACR,KAAK,CAAC,CAAC,GAAG,aAAa,CAAC,CAQ1B;AAED;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAAC,CAAC,SAAS;IAAE,eAAe,CAAC,EAAE,OAAO,CAAA;CAAE,EAC3E,OAAO,EAAE,SAAS,CAAC,EAAE,EACrB,MAAM,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,OAAO,GAC3B,CAAC,EAAE,CAaL"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Host regions: places in an editor's layout that a host fills with its own UI (a File tab
|
|
3
|
+
* page, a dialog body, a docked pane). The editor keeps the place and hands it to the host as
|
|
4
|
+
* an empty container; the host fills it in any framework, or none, through ONE of two forms:
|
|
5
|
+
*
|
|
6
|
+
* - a mount function `(container, context) => cleanup | handle`, or
|
|
7
|
+
* - a custom element: its tag name, or `{ element, properties }`. The editor creates it,
|
|
8
|
+
* assigns `properties` once, and keeps its `context` property current.
|
|
9
|
+
*
|
|
10
|
+
* The contract is DOM-free: the container type is a parameter, which every product binds to
|
|
11
|
+
* `HTMLElement` in `ooxml-ui`, where the shared region host mounts it.
|
|
12
|
+
*/
|
|
13
|
+
/** A custom element a region creates (the host registers it). */
|
|
14
|
+
export interface HostRegionElement {
|
|
15
|
+
/** The tag name, for example `acme-policies`. */
|
|
16
|
+
element: string;
|
|
17
|
+
/** Properties assigned to the element once, before it is attached. */
|
|
18
|
+
properties?: Readonly<Record<string, unknown>>;
|
|
19
|
+
}
|
|
20
|
+
/** What a mount function may return to receive context updates and teardown. */
|
|
21
|
+
export interface HostRegionMountResult<Context> {
|
|
22
|
+
/** Called with the new context whenever it changes. */
|
|
23
|
+
update?(context: Context): void;
|
|
24
|
+
/** Called once when the region unmounts. */
|
|
25
|
+
destroy?(): void;
|
|
26
|
+
}
|
|
27
|
+
/** Fills `container` for one region. Returns nothing, a cleanup function or a handle. */
|
|
28
|
+
export type HostRegionMount<Container, Context> = (container: Container, context: Context) => void | (() => void) | HostRegionMountResult<Context>;
|
|
29
|
+
/** Any renderer form a region accepts. A string is a custom element tag name. */
|
|
30
|
+
export type HostRegionRenderer<Container, Context> = HostRegionMount<Container, Context> | HostRegionElement | string;
|
|
31
|
+
/** The context every product's host region receives, at least. */
|
|
32
|
+
export interface HostRegionContextBase {
|
|
33
|
+
/** Which region this renderer fills (for a host File tab page, `backstage.host.<id>`). */
|
|
34
|
+
readonly region: string;
|
|
35
|
+
/** The active UI locale (BCP 47). */
|
|
36
|
+
readonly locale: string;
|
|
37
|
+
/** False when the document is read-only (prop, capability or protection). */
|
|
38
|
+
readonly canEdit: boolean;
|
|
39
|
+
/** Dismisses the region: leaves the File tab, closes a dialog. A no-op where nothing closes. */
|
|
40
|
+
readonly close: () => void;
|
|
41
|
+
}
|
|
42
|
+
/** Region id a host File tab page is mounted under. */
|
|
43
|
+
export type HostBackstageRegionId = `backstage.host.${string}`;
|
|
44
|
+
/** The region id of host File tab page `id`. */
|
|
45
|
+
export declare function hostBackstageRegionId(id: string): HostBackstageRegionId;
|
|
46
|
+
/**
|
|
47
|
+
* True when two renderers are the same: the same function, the same tag, or element specs with
|
|
48
|
+
* the same tag and the same property values (so an inline `{ element, properties }` passed
|
|
49
|
+
* again on every render does not remount).
|
|
50
|
+
*/
|
|
51
|
+
export declare function sameRenderer<Container, Context>(a: HostRegionRenderer<Container, Context> | undefined, b: HostRegionRenderer<Container, Context> | undefined): boolean;
|
|
52
|
+
/**
|
|
53
|
+
* Shallow equality over two region contexts. Arrays (a selection) compare by value, and the
|
|
54
|
+
* fields named in `callbackKeys` are skipped: callbacks are recreated on every render and their
|
|
55
|
+
* identity is not a change.
|
|
56
|
+
*/
|
|
57
|
+
export declare function sameRegionContext(a: object, b: object, callbackKeys?: ReadonlySet<string>): boolean;
|
|
58
|
+
//# sourceMappingURL=regions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"regions.d.ts","sourceRoot":"","sources":["../../embedding/regions.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,iEAAiE;AACjE,MAAM,WAAW,iBAAiB;IACjC,iDAAiD;IACjD,OAAO,EAAE,MAAM,CAAC;IAChB,sEAAsE;IACtE,UAAU,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;CAC/C;AAED,gFAAgF;AAChF,MAAM,WAAW,qBAAqB,CAAC,OAAO;IAC7C,uDAAuD;IACvD,MAAM,CAAC,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAAC;IAChC,4CAA4C;IAC5C,OAAO,CAAC,IAAI,IAAI,CAAC;CACjB;AAED,yFAAyF;AACzF,MAAM,MAAM,eAAe,CAAC,SAAS,EAAE,OAAO,IAAI,CACjD,SAAS,EAAE,SAAS,EACpB,OAAO,EAAE,OAAO,KACZ,IAAI,GAAG,CAAC,MAAM,IAAI,CAAC,GAAG,qBAAqB,CAAC,OAAO,CAAC,CAAC;AAE1D,iFAAiF;AACjF,MAAM,MAAM,kBAAkB,CAAC,SAAS,EAAE,OAAO,IAC9C,eAAe,CAAC,SAAS,EAAE,OAAO,CAAC,GACnC,iBAAiB,GACjB,MAAM,CAAC;AAEV,kEAAkE;AAClE,MAAM,WAAW,qBAAqB;IACrC,0FAA0F;IAC1F,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,qCAAqC;IACrC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,6EAA6E;IAC7E,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;IAC1B,gGAAgG;IAChG,QAAQ,CAAC,KAAK,EAAE,MAAM,IAAI,CAAC;CAC3B;AAED,uDAAuD;AACvD,MAAM,MAAM,qBAAqB,GAAG,kBAAkB,MAAM,EAAE,CAAC;AAE/D,gDAAgD;AAChD,wBAAgB,qBAAqB,CAAC,EAAE,EAAE,MAAM,GAAG,qBAAqB,CAEvE;AAED;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,SAAS,EAAE,OAAO,EAC9C,CAAC,EAAE,kBAAkB,CAAC,SAAS,EAAE,OAAO,CAAC,GAAG,SAAS,EACrD,CAAC,EAAE,kBAAkB,CAAC,SAAS,EAAE,OAAO,CAAC,GAAG,SAAS,GACnD,OAAO,CAWT;AAED;;;;GAIG;AACH,wBAAgB,iBAAiB,CAChC,CAAC,EAAE,MAAM,EACT,CAAC,EAAE,MAAM,EACT,YAAY,GAAE,WAAW,CAAC,MAAM,CAAsB,GACpD,OAAO,CAYT"}
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Host-owned storage: the contract a host application implements to take over where an embedded
|
|
3
|
+
* editor reads, saves and keeps recovery copies of its document.
|
|
4
|
+
*
|
|
5
|
+
* Every product element (`<docx-editor>`, `<xlsx-editor>`, `<visio-viewer>` and the PowerPoint
|
|
6
|
+
* viewer of each binding) accepts a {@link DocumentStorage} as its `storage` property. When it is
|
|
7
|
+
* set, File > Save hands the saved bytes to {@link DocumentStorage.save} instead of downloading
|
|
8
|
+
* them, File > Open asks {@link DocumentStorage.open} instead of showing the browser's file picker,
|
|
9
|
+
* and an editor with AutoRecover (PowerPoint, Visio) keeps its recovery copies through the
|
|
10
|
+
* recovery methods instead of the library's own IndexedDB database. The cancelable
|
|
11
|
+
* `file-command` event still fires first: a host that prevents it handles the command itself and
|
|
12
|
+
* the storage is not called.
|
|
13
|
+
*
|
|
14
|
+
* DOM-free and format-neutral: the editors only pass bytes, a file name and a reason.
|
|
15
|
+
*/
|
|
16
|
+
/**
|
|
17
|
+
* A command of the File backstage, title bar or a shortcut, announced as the cancelable
|
|
18
|
+
* `file-command` event before the editor runs its default. Each product raises the subset it has
|
|
19
|
+
* (see {@link WordFileCommand}, {@link ExcelFileCommand}, {@link VisioFileCommand}).
|
|
20
|
+
*/
|
|
21
|
+
export type FileCommand = 'new' | 'open' | 'save' | 'saveAs' | 'export' | 'exportText' | 'exportCsv' | 'print' | 'share';
|
|
22
|
+
/** The File commands `<docx-editor>` announces. */
|
|
23
|
+
export type WordFileCommand = Exclude<FileCommand, 'exportCsv'>;
|
|
24
|
+
/** The File commands `<xlsx-editor>` announces. */
|
|
25
|
+
export type ExcelFileCommand = Exclude<FileCommand, 'exportText' | 'share'>;
|
|
26
|
+
/** The File commands `<visio-viewer>` announces. */
|
|
27
|
+
export type VisioFileCommand = Extract<FileCommand, 'new' | 'open' | 'save'>;
|
|
28
|
+
/** The detail of a `file-command` event. */
|
|
29
|
+
export interface FileCommandDetail<C extends string = FileCommand> {
|
|
30
|
+
command: C;
|
|
31
|
+
/** Save As and the exports: the name the user chose, when there is one. */
|
|
32
|
+
fileName?: string;
|
|
33
|
+
}
|
|
34
|
+
/** The event name every editor uses for {@link FileCommandDetail}. */
|
|
35
|
+
export declare const FILE_COMMAND_EVENT = "file-command";
|
|
36
|
+
/** Builds a {@link FileCommandDetail}, leaving `fileName` out rather than undefined. */
|
|
37
|
+
export declare function fileCommandDetail<C extends string>(command: C, fileName?: string): FileCommandDetail<C>;
|
|
38
|
+
/** Why an editor is saving: File > Save (or the Quick Access button, or Ctrl+S) or Save As. */
|
|
39
|
+
export type DocumentSaveReason = 'save' | 'saveAs';
|
|
40
|
+
/** What an editor tells the host about the bytes it hands to {@link DocumentStorage.save}. */
|
|
41
|
+
export interface DocumentSaveMeta {
|
|
42
|
+
/** The file name the editor would download as, extension included (`Report.docx`). */
|
|
43
|
+
fileName: string;
|
|
44
|
+
/** The MIME type of the bytes. */
|
|
45
|
+
mimeType: string;
|
|
46
|
+
reason: DocumentSaveReason;
|
|
47
|
+
}
|
|
48
|
+
/** What {@link DocumentStorage.save} may report back. */
|
|
49
|
+
export interface DocumentSaveResult {
|
|
50
|
+
/** The name the document now has, when the host chose another (a Save As dialog of its own). */
|
|
51
|
+
fileName?: string;
|
|
52
|
+
}
|
|
53
|
+
/** A document the host opened for the editor. */
|
|
54
|
+
export interface DocumentOpenResult {
|
|
55
|
+
bytes: Uint8Array;
|
|
56
|
+
fileName: string;
|
|
57
|
+
}
|
|
58
|
+
/** A recovery copy of a document with unsaved changes. */
|
|
59
|
+
export interface DocumentRecoveryEntry {
|
|
60
|
+
/** The document id it is kept under (the editors use the file name or the host's file path). */
|
|
61
|
+
id: string;
|
|
62
|
+
/** When it was written, in milliseconds since the epoch. */
|
|
63
|
+
savedAt: number;
|
|
64
|
+
bytes: Uint8Array;
|
|
65
|
+
}
|
|
66
|
+
/** A recovery copy without its bytes, as {@link DocumentStorage.listRecovery} returns it. */
|
|
67
|
+
export interface DocumentRecoveryInfo {
|
|
68
|
+
id: string;
|
|
69
|
+
savedAt: number;
|
|
70
|
+
/** Size of the copy in bytes. */
|
|
71
|
+
size: number;
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* Storage a host supplies to an editor. Only {@link save} is required; each optional method the
|
|
75
|
+
* host leaves out keeps the editor's own behaviour for it (the browser file picker for Open, the
|
|
76
|
+
* library's IndexedDB for recovery copies). The recovery methods are used together: a host
|
|
77
|
+
* provides `readRecovery`, `writeRecovery` and `clearRecovery`, or none of them.
|
|
78
|
+
*
|
|
79
|
+
* Every method may reject; the editor reports a failed save as an error and treats a failed
|
|
80
|
+
* recovery read or write as "no copy kept".
|
|
81
|
+
*/
|
|
82
|
+
export interface DocumentStorage {
|
|
83
|
+
/** Store the saved document. Resolve once it is stored; reject to report the save as failed. */
|
|
84
|
+
save(bytes: Uint8Array, meta: DocumentSaveMeta): Promise<DocumentSaveResult | void>;
|
|
85
|
+
/** File > Open: resolve with the document to open, or undefined when the user canceled. */
|
|
86
|
+
open?(): Promise<DocumentOpenResult | undefined>;
|
|
87
|
+
/** The recovery copy kept under `id`, if any. */
|
|
88
|
+
readRecovery?(id: string): Promise<DocumentRecoveryEntry | undefined>;
|
|
89
|
+
/** Keep `entry` as the recovery copy of its id, replacing an earlier one. */
|
|
90
|
+
writeRecovery?(entry: DocumentRecoveryEntry): Promise<void>;
|
|
91
|
+
/** Remove the recovery copy kept under `id` (the document was saved or the copy discarded). */
|
|
92
|
+
clearRecovery?(id: string): Promise<void>;
|
|
93
|
+
/** Every kept recovery copy, for a version-history or recovery list. Optional even then. */
|
|
94
|
+
listRecovery?(): Promise<DocumentRecoveryInfo[]>;
|
|
95
|
+
}
|
|
96
|
+
/** The recovery methods of a storage that provides all three of them. */
|
|
97
|
+
export type DocumentRecoveryStore = Required<Pick<DocumentStorage, 'readRecovery' | 'writeRecovery' | 'clearRecovery'>> & Pick<DocumentStorage, 'listRecovery'>;
|
|
98
|
+
/** The storage's recovery store, or undefined when it does not provide one (use the default). */
|
|
99
|
+
export declare function recoveryStoreOf(storage: DocumentStorage | null | undefined): DocumentRecoveryStore | undefined;
|
|
100
|
+
/** True when `value` has the shape of a {@link DocumentStorage} (a `save` function). */
|
|
101
|
+
export declare function isDocumentStorage(value: unknown): value is DocumentStorage;
|
|
102
|
+
/** The MIME type of an Office file name by its extension; `application/octet-stream` otherwise. */
|
|
103
|
+
export declare function documentMimeType(fileName: string): string;
|
|
104
|
+
/** The {@link DocumentSaveMeta} for saving `fileName`, its MIME type taken from the extension. */
|
|
105
|
+
export declare function documentSaveMeta(fileName: string, reason?: DocumentSaveReason, mimeType?: string): DocumentSaveMeta;
|
|
106
|
+
/**
|
|
107
|
+
* Hands `bytes` to the storage and returns the file name the document has afterwards: the one the
|
|
108
|
+
* host reported, else `meta.fileName`. Rejects when the storage does.
|
|
109
|
+
*/
|
|
110
|
+
export declare function saveToStorage(storage: DocumentStorage, bytes: Uint8Array, meta: DocumentSaveMeta): Promise<string>;
|
|
111
|
+
//# sourceMappingURL=storage.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"storage.d.ts","sourceRoot":"","sources":["../../embedding/storage.ts"],"names":[],"mappings":"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"}
|