@open-document/core 0.1.0 → 0.3.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/{build-BWZJ1gvL.js → build-C3pMGxJN.js} +2 -6
- package/dist/check-Dtwb1wvU.js +42 -0
- package/dist/cli/bin.d.ts +1 -1
- package/dist/cli/bin.js +124 -13
- package/dist/{config-EBFfKtWH.d.ts → config-CSC5lHsR.d.ts} +3 -2
- package/dist/config-Dg1AMP0r.js +2461 -0
- package/dist/context-FoX0afRf.js +26 -0
- package/dist/{dev-CZtw1oqs.js → dev-Cdd7NZRQ.js} +2 -6
- package/dist/diagram-xlVDekYk.js +763 -0
- package/dist/export-ClJ4T1uU.js +36 -0
- package/dist/import-D7Psi8WK.js +25 -0
- package/dist/index.d.ts +238 -117
- package/dist/index.js +516 -57
- package/dist/ops/index.d.ts +98 -8
- package/dist/ops/index.js +3 -202
- package/dist/ops-Ci5Xw6QG.js +1270 -0
- package/dist/{preview-DUfQl7Ij.js → preview-BhbCiAKC.js} +2 -6
- package/dist/sdk-CWMsH9Ms.d.ts +123 -0
- package/dist/vite/index.d.ts +9 -4
- package/dist/vite/index.js +2 -5
- package/env.d.ts +33 -1
- package/package.json +17 -6
- package/skills/create-doc/SKILL.md +6 -2
- package/skills/current-doc/SKILL.md +120 -0
- package/skills/doc-authoring/SKILL.md +79 -0
- package/skills/doc-authoring/references/long-form.md +131 -0
- package/src/app/components/data-table.tsx +196 -0
- package/src/app/components/diagram.tsx +76 -0
- package/src/app/components/flow-page.tsx +20 -3
- package/src/app/components/footnote.tsx +196 -0
- package/src/app/components/inspector/inspector.tsx +16 -0
- package/src/app/components/numbering.tsx +208 -0
- package/src/app/lib/agent-bridge.ts +128 -0
- package/src/app/lib/diagnostics.ts +282 -0
- package/src/app/lib/export-html.ts +35 -11
- package/src/app/lib/export-pdf.ts +54 -19
- package/src/app/lib/flow-measure.ts +100 -31
- package/src/app/lib/flow.test.ts +46 -0
- package/src/app/lib/flow.ts +28 -3
- package/src/app/lib/footnotes.test.tsx +102 -0
- package/src/app/lib/footnotes.ts +94 -0
- package/src/app/lib/labels.ts +175 -0
- package/src/app/lib/page-context.tsx +6 -1
- package/src/app/lib/scan.ts +26 -0
- package/src/app/lib/sdk.ts +3 -0
- package/src/app/lib/use-doc-pages.ts +50 -15
- package/src/app/routes/doc.tsx +25 -5
- package/dist/config-DBp4mOOf.js +0 -1121
- package/dist/design-BJLvOcCO.js +0 -53
- package/dist/edit-ops-DSdUroVO.js +0 -1225
- package/dist/sync-6GTPAt2t.js +0 -86
- package/dist/sync-C6CsPmyK.js +0 -3
package/dist/design-BJLvOcCO.js
DELETED
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
//#region src/app/lib/design.ts
|
|
2
|
-
function designToCssVars(d) {
|
|
3
|
-
return {
|
|
4
|
-
"--od-bg": d.palette.bg,
|
|
5
|
-
"--od-text": d.palette.text,
|
|
6
|
-
"--od-muted": d.palette.muted,
|
|
7
|
-
"--od-accent": d.palette.accent,
|
|
8
|
-
"--od-rule": d.palette.rule,
|
|
9
|
-
"--od-font-heading": d.fonts.heading,
|
|
10
|
-
"--od-font-body": d.fonts.body,
|
|
11
|
-
"--od-font-mono": d.fonts.mono,
|
|
12
|
-
"--od-size-title": `${d.typeScale.title}px`,
|
|
13
|
-
"--od-size-h1": `${d.typeScale.h1}px`,
|
|
14
|
-
"--od-size-h2": `${d.typeScale.h2}px`,
|
|
15
|
-
"--od-size-h3": `${d.typeScale.h3}px`,
|
|
16
|
-
"--od-size-body": `${d.typeScale.body}px`,
|
|
17
|
-
"--od-size-caption": `${d.typeScale.caption}px`,
|
|
18
|
-
"--od-margin": `${d.margin}px`,
|
|
19
|
-
"--od-leading": String(d.leading),
|
|
20
|
-
"--od-radius": `${d.radius}px`
|
|
21
|
-
};
|
|
22
|
-
}
|
|
23
|
-
function cssVarsToString(vars) {
|
|
24
|
-
return Object.entries(vars).map(([k, v]) => ` ${k}: ${v};`).join("\n");
|
|
25
|
-
}
|
|
26
|
-
const defaultDesign = {
|
|
27
|
-
palette: {
|
|
28
|
-
bg: "#ffffff",
|
|
29
|
-
text: "#16181d",
|
|
30
|
-
muted: "#6b7280",
|
|
31
|
-
accent: "#2563eb",
|
|
32
|
-
rule: "#e5e7eb"
|
|
33
|
-
},
|
|
34
|
-
fonts: {
|
|
35
|
-
heading: "-apple-system, BlinkMacSystemFont, \"Inter\", system-ui, sans-serif",
|
|
36
|
-
body: "-apple-system, BlinkMacSystemFont, \"Inter\", system-ui, sans-serif",
|
|
37
|
-
mono: "ui-monospace, \"SF Mono\", \"JetBrains Mono\", Menlo, monospace"
|
|
38
|
-
},
|
|
39
|
-
typeScale: {
|
|
40
|
-
title: 44,
|
|
41
|
-
h1: 28,
|
|
42
|
-
h2: 20,
|
|
43
|
-
h3: 16,
|
|
44
|
-
body: 14,
|
|
45
|
-
caption: 10
|
|
46
|
-
},
|
|
47
|
-
margin: 76,
|
|
48
|
-
leading: 1.55,
|
|
49
|
-
radius: 6
|
|
50
|
-
};
|
|
51
|
-
|
|
52
|
-
//#endregion
|
|
53
|
-
export { cssVarsToString, defaultDesign, designToCssVars };
|