onionskin-cli 0.0.0-stage → 0.0.2
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/CHANGELOG.md +144 -0
- package/INSTALL.md +25 -0
- package/LICENSE +21 -0
- package/NOTICE +49 -0
- package/README.md +148 -2
- package/docs/contracts/batch.schema.json +839 -0
- package/docs/contracts/history.schema.json +126 -0
- package/docs/contracts/ops.schema.json +541 -0
- package/package.json +67 -4
- package/scripts/checker/check.py +411 -0
- package/scripts/checker/requirements.txt +5 -0
- package/scripts/install-check.mjs +9 -0
- package/scripts/requirements.txt +5 -0
- package/scripts/rewriter/apple/main.swift +135 -0
- package/scripts/rewriter/apple/onionskin-fm +0 -0
- package/scripts/rewriter/apple/onionskin-fm.json +6 -0
- package/skills/onionskin/SKILL.md +117 -0
- package/skills/onionskin/reference/batch.md +94 -0
- package/skills/onionskin/reference/formats.md +15 -0
- package/skills/onionskin/reference/ops.md +253 -0
- package/skills/onionskin/reference/troubleshooting.md +73 -0
- package/skills/onionskin/reference/voice-guide.md +86 -0
- package/skills/onionskin/voice.example.md +51 -0
- package/src/agent-detect.js +149 -0
- package/src/agent-events.js +159 -0
- package/src/agent-prompt.js +27 -0
- package/src/agent-runner.js +593 -0
- package/src/analyze.js +17 -0
- package/src/anchors.js +190 -0
- package/src/apply.js +387 -0
- package/src/auth.js +130 -0
- package/src/batch.js +322 -0
- package/src/check-worker.js +8 -0
- package/src/checker.js +293 -0
- package/src/cli.js +516 -0
- package/src/constants.js +20 -0
- package/src/diff.js +267 -0
- package/src/doctor.js +288 -0
- package/src/docx.js +438 -0
- package/src/fmt.js +30 -0
- package/src/fsutil.js +348 -0
- package/src/history-worker.js +16 -0
- package/src/history.js +576 -0
- package/src/lease.js +79 -0
- package/src/local.js +242 -0
- package/src/merge-pptx.js +198 -0
- package/src/merge-xlsx.js +453 -0
- package/src/merge.js +410 -0
- package/src/offload.js +34 -0
- package/src/ops/common.js +48 -0
- package/src/ops/docx-table.js +323 -0
- package/src/ops/docx.js +503 -0
- package/src/ops/engine.js +41 -0
- package/src/ops/pptx.js +336 -0
- package/src/ops/run.js +115 -0
- package/src/ops/runs.js +127 -0
- package/src/ops/schema.js +109 -0
- package/src/ops/xlsx.js +277 -0
- package/src/package.js +189 -0
- package/src/paths.js +64 -0
- package/src/person.js +66 -0
- package/src/pptx.js +194 -0
- package/src/question.js +47 -0
- package/src/quick-plan.js +107 -0
- package/src/quick.js +164 -0
- package/src/redline-check.js +251 -0
- package/src/redline-worker.js +29 -0
- package/src/redline.js +438 -0
- package/src/reply.js +410 -0
- package/src/review.js +274 -0
- package/src/rewrite-check.js +1014 -0
- package/src/rewriter-cleanup.js +105 -0
- package/src/rewriter-setup.js +104 -0
- package/src/rewriter.js +396 -0
- package/src/sanitize.js +42 -0
- package/src/sentence-span.js +25 -0
- package/src/server-entry.js +13 -0
- package/src/server.js +576 -0
- package/src/session.js +1912 -0
- package/src/settings.js +161 -0
- package/src/setup.js +199 -0
- package/src/stamp-words.js +10 -0
- package/src/stamps.js +59 -0
- package/src/style.js +110 -0
- package/src/suggest-reply.js +84 -0
- package/src/suggest.js +261 -0
- package/src/text.js +31 -0
- package/src/tracked-words.js +43 -0
- package/src/voice-guide.js +182 -0
- package/src/voice-learn.js +314 -0
- package/src/voice-sample-worker.js +95 -0
- package/src/voice-samples.js +329 -0
- package/src/voice-store.js +305 -0
- package/src/voice-worker.js +28 -0
- package/src/voice.js +297 -0
- package/src/xlsx.js +454 -0
- package/src/xml-tree.js +118 -0
- package/src/xml.js +127 -0
- package/src/zip-write.js +74 -0
- package/src/zip.js +88 -0
- package/vendor/engine/DocViewer-BZLXUcxJ.js +15137 -0
- package/vendor/engine/THIRD_PARTY_LICENSES.txt +79 -0
- package/vendor/engine/collab-BVynXMqc.js +2591 -0
- package/vendor/engine/collab.js +2 -0
- package/vendor/engine/core.js +4 -0
- package/vendor/engine/default-worker-DogNT09A.js +35625 -0
- package/vendor/engine/embed.js +107 -0
- package/vendor/engine/index.js +5 -0
- package/vendor/engine/office-engine.embed.js +184 -0
- package/vendor/engine/office-engine.worker.js +36030 -0
- package/vendor/engine/xlsx-ops-SYAv6V0f.js +939 -0
- package/vendor/engine-node/LICENSE +21 -0
- package/vendor/engine-node/engine-node.mjs +46618 -0
- package/vendor/engine.lock.json +26 -0
- package/web/dist/assets/index-BUtofdtr.js +197 -0
- package/web/dist/assets/index-Dfizlg0i.css +1 -0
- package/web/dist/index.html +14 -0
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
|
|
2
|
+
import "./default-worker-DogNT09A.js";
|
|
3
|
+
import { t as e } from "./DocViewer-BZLXUcxJ.js";
|
|
4
|
+
import { createElement as t } from "react";
|
|
5
|
+
import { createRoot as n } from "react-dom/client";
|
|
6
|
+
// src/embed.ts
|
|
7
|
+
var r = [
|
|
8
|
+
"light",
|
|
9
|
+
"dark",
|
|
10
|
+
"auto"
|
|
11
|
+
];
|
|
12
|
+
function i(r, i) {
|
|
13
|
+
let a = n(r), o = i, s = r.getRootNode() instanceof ShadowRoot ? r.getRootNode() : void 0, c = () => a?.render(t(e, {
|
|
14
|
+
...o,
|
|
15
|
+
styleTarget: s
|
|
16
|
+
}));
|
|
17
|
+
return c(), {
|
|
18
|
+
update(e) {
|
|
19
|
+
o = {
|
|
20
|
+
...o,
|
|
21
|
+
...e
|
|
22
|
+
}, c();
|
|
23
|
+
},
|
|
24
|
+
destroy() {
|
|
25
|
+
a?.unmount(), a = null;
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
var a = class extends HTMLElement {
|
|
30
|
+
static observedAttributes = [
|
|
31
|
+
"src",
|
|
32
|
+
"name",
|
|
33
|
+
"toolbar",
|
|
34
|
+
"thumbnails",
|
|
35
|
+
"editable",
|
|
36
|
+
"save",
|
|
37
|
+
"download",
|
|
38
|
+
"file-menu",
|
|
39
|
+
"open",
|
|
40
|
+
"capture-select-all",
|
|
41
|
+
"theme",
|
|
42
|
+
"collab",
|
|
43
|
+
"room",
|
|
44
|
+
"user",
|
|
45
|
+
"base",
|
|
46
|
+
"comments"
|
|
47
|
+
];
|
|
48
|
+
viewer;
|
|
49
|
+
_file;
|
|
50
|
+
get file() {
|
|
51
|
+
return this._file;
|
|
52
|
+
}
|
|
53
|
+
set file(e) {
|
|
54
|
+
this._file = e, this.sync();
|
|
55
|
+
}
|
|
56
|
+
connectedCallback() {
|
|
57
|
+
if (this.viewer) return;
|
|
58
|
+
let e = this.shadowRoot ?? this.attachShadow({ mode: "open" }), t = document.createElement("div");
|
|
59
|
+
t.style.cssText = "width:100%;height:100%", e.innerHTML = "<style>:host{display:block;height:480px;position:relative}</style>", e.appendChild(t), this.viewer = i(t, this.props());
|
|
60
|
+
}
|
|
61
|
+
disconnectedCallback() {
|
|
62
|
+
this.viewer?.destroy(), this.viewer = void 0, this.shadowRoot && (this.shadowRoot.innerHTML = "");
|
|
63
|
+
}
|
|
64
|
+
attributeChangedCallback() {
|
|
65
|
+
this.sync();
|
|
66
|
+
}
|
|
67
|
+
props() {
|
|
68
|
+
return {
|
|
69
|
+
src: this._file ?? this.getAttribute("src"),
|
|
70
|
+
name: this.getAttribute("name") ?? void 0,
|
|
71
|
+
toolbar: this.getAttribute("toolbar") !== "false",
|
|
72
|
+
thumbnails: this.getAttribute("thumbnails") !== "false",
|
|
73
|
+
editable: this.hasAttribute("editable") && this.getAttribute("editable") !== "false",
|
|
74
|
+
allowSave: this.getAttribute("save") !== "false",
|
|
75
|
+
allowDownload: this.getAttribute("download") !== "false",
|
|
76
|
+
fileMenu: this.getAttribute("file-menu") !== "false",
|
|
77
|
+
allowOpen: this.getAttribute("open") !== "false",
|
|
78
|
+
captureSelectAll: this.getAttribute("capture-select-all") !== "false",
|
|
79
|
+
theme: r.find((e) => e === this.getAttribute("theme")),
|
|
80
|
+
collab: this.getAttribute("collab") && this.getAttribute("room") ? {
|
|
81
|
+
transport: this.getAttribute("collab"),
|
|
82
|
+
room: this.getAttribute("room"),
|
|
83
|
+
base: Number(this.getAttribute("base")) || 0,
|
|
84
|
+
user: { name: this.getAttribute("user") || "Guest" }
|
|
85
|
+
} : void 0,
|
|
86
|
+
comments: this.getAttribute("comments") !== "false" && {
|
|
87
|
+
user: this.getAttribute("user") ? { name: this.getAttribute("user") } : void 0,
|
|
88
|
+
onEvent: (e) => this.dispatchEvent(new CustomEvent("comment", { detail: e }))
|
|
89
|
+
},
|
|
90
|
+
onLoad: (e) => this.dispatchEvent(new CustomEvent("load", { detail: {
|
|
91
|
+
kind: e.kind,
|
|
92
|
+
name: e.name
|
|
93
|
+
} })),
|
|
94
|
+
onError: (e) => this.dispatchEvent(new CustomEvent("error", { detail: e }))
|
|
95
|
+
};
|
|
96
|
+
}
|
|
97
|
+
sync() {
|
|
98
|
+
this.viewer?.update(this.props());
|
|
99
|
+
}
|
|
100
|
+
};
|
|
101
|
+
function o(e = "office-viewer") {
|
|
102
|
+
typeof customElements < "u" && !customElements.get(e) && customElements.define(e, a);
|
|
103
|
+
}
|
|
104
|
+
o();
|
|
105
|
+
export { e as DocViewer, a as OfficeViewerElement, o as defineElement, i as mount };
|
|
106
|
+
|
|
107
|
+
//# sourceMappingURL=embed.js.map
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
|
|
2
|
+
import { V as e, n as t, t as n } from "./default-worker-DogNT09A.js";
|
|
3
|
+
import { a as r, c as i, d as a, f as o, i as s, l as c, n as l, o as u, r as d, s as f, t as p, u as m } from "./DocViewer-BZLXUcxJ.js";
|
|
4
|
+
import { a as h, o as g, s as _, t as v, u as y } from "./collab-BVynXMqc.js";
|
|
5
|
+
export { l as CollabBar, h as CollabHub, y as CollabSession, p as DocViewer, n as DocumentClient, a as DocxView, g as MemoryTransport, d as PeerOverlay, f as PptxView, i as SlideView, _ as WebSocketTransport, r as XlsxView, o as hashText, c as injectStyles, t as setDefaultWorker, v as startCollab, m as stylesText, e as threadsOf, s as useCollab, u as useDocument };
|