@open-document/core 0.6.0 → 0.8.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.
Files changed (36) hide show
  1. package/dist/{build-BvIHtePO.js → build-CFL7nhz0.js} +1 -1
  2. package/dist/{check-BqEdVH7G.js → check-pEQh4jJE.js} +3 -3
  3. package/dist/cli/bin.js +6 -6
  4. package/dist/{config-B7vFf9qZ.js → config-4nz5NnxW.js} +593 -137
  5. package/dist/{context-BaUE_aqU.js → context-BH8C-dSW.js} +1 -1
  6. package/dist/{dev-DXG-Dg-y.js → dev-BCSUczXW.js} +1 -1
  7. package/dist/{export-CT1Axnjv.js → export-BQ-GvMsb.js} +3 -3
  8. package/dist/{import-C8ZC4R6T.js → import-Daat3L2J.js} +2 -2
  9. package/dist/index.d.ts +21 -3
  10. package/dist/index.js +40 -9
  11. package/dist/ops/index.d.ts +47 -3
  12. package/dist/ops/index.js +3 -3
  13. package/dist/{ops-ByclxTfk.js → ops-DQfckiyp.js} +2 -45
  14. package/dist/{preview-CdmWbaHy.js → preview-CwCrw-i3.js} +1 -1
  15. package/dist/vite/index.js +1 -1
  16. package/package.json +1 -1
  17. package/src/app/components/data-table.tsx +17 -2
  18. package/src/app/components/design-panel/design-panel.tsx +149 -274
  19. package/src/app/components/design-panel/design-provider.tsx +35 -15
  20. package/src/app/components/footnote.tsx +27 -10
  21. package/src/app/components/history-provider.tsx +125 -0
  22. package/src/app/components/inspector/inspector.tsx +1149 -208
  23. package/src/app/components/numbering.tsx +13 -1
  24. package/src/app/components/panel/edit-save-card.tsx +112 -0
  25. package/src/app/components/panel/fields.tsx +247 -0
  26. package/src/app/components/panel/panel-shell.tsx +71 -0
  27. package/src/app/components/panel/save-card.tsx +146 -0
  28. package/src/app/lib/footnotes.ts +6 -3
  29. package/src/app/lib/href.ts +14 -0
  30. package/src/app/lib/inspector/inline-edit.test.ts +244 -0
  31. package/src/app/lib/inspector/inline-edit.ts +770 -0
  32. package/src/app/lib/source-loc.ts +15 -0
  33. package/src/app/lib/view-mode.test.ts +46 -0
  34. package/src/app/lib/view-mode.ts +76 -0
  35. package/src/app/routes/doc.tsx +206 -48
  36. package/src/app/styles.css +41 -0
@@ -1,4 +1,4 @@
1
- import { t as createViteConfig } from "./config-B7vFf9qZ.js";
1
+ import { t as createViteConfig } from "./config-4nz5NnxW.js";
2
2
  import path from "node:path";
3
3
  import { build as build$1, mergeConfig } from "vite";
4
4
  //#region src/cli/build.ts
@@ -1,6 +1,6 @@
1
- import { g as listDocIds } from "./config-B7vFf9qZ.js";
2
- import { m as closeRenderSession, p as checkLayout } from "./ops-ByclxTfk.js";
3
- import { t as cliContext } from "./context-BaUE_aqU.js";
1
+ import { _ as listDocIds } from "./config-4nz5NnxW.js";
2
+ import { d as closeRenderSession, u as checkLayout } from "./ops-DQfckiyp.js";
3
+ import { t as cliContext } from "./context-BH8C-dSW.js";
4
4
  import chalk from "chalk";
5
5
  //#region src/cli/check.ts
6
6
  function line(finding) {
package/dist/cli/bin.js CHANGED
@@ -165,15 +165,15 @@ async function run(argv) {
165
165
  program.name("open-doc").description("Author documents — we handle the Vite/React stack, pagination, and export.").version(version, "-v, --version", "print version").helpOption("-h, --help", "show help").showHelpAfterError(chalk.dim("(run `open-doc --help` for usage)"));
166
166
  program.command("dev").description("Start the dev server").addOption(new Option("-p, --port <port>", "port to listen on").argParser(parsePort)).addOption(new Option("--host [host]", "expose on the network (optional host)")).option("--open", "open the browser on start").option("--no-skills-check", "skip the built-in skills drift check").option("--mcp", "serve an MCP endpoint at /mcp (requires @open-document/mcp)").action(async (flags) => {
167
167
  if (flags.skillsCheck !== false) await runSkillsDriftCheck(resolveBuiltinSkillsDir());
168
- const { dev } = await import("../dev-DXG-Dg-y.js");
168
+ const { dev } = await import("../dev-BCSUczXW.js");
169
169
  await dev(flags);
170
170
  });
171
171
  program.command("build").description("Build a static site").option("--out-dir <dir>", "output directory (defaults to `dist`)").action(async (flags) => {
172
- const { build } = await import("../build-BvIHtePO.js");
172
+ const { build } = await import("../build-CFL7nhz0.js");
173
173
  await build(flags);
174
174
  });
175
175
  program.command("preview").description("Preview the production build").addOption(new Option("-p, --port <port>", "port to listen on").argParser(parsePort)).addOption(new Option("--host [host]", "expose on the network (optional host)")).option("--open", "open the browser on start").action(async (flags) => {
176
- const { preview } = await import("../preview-CdmWbaHy.js");
176
+ const { preview } = await import("../preview-CwCrw-i3.js");
177
177
  await preview(flags);
178
178
  });
179
179
  program.command("export [docIds...]").description("Render documents headlessly to PDF, HTML, or PNG").addOption(new Option("-f, --format <format>", "output format").choices([
@@ -181,15 +181,15 @@ async function run(argv) {
181
181
  "html",
182
182
  "png"
183
183
  ])).option("-o, --out-dir <dir>", "directory to write into (defaults to `out`)").option("--all", "export every document under docs/").action(async (docIds, flags) => {
184
- const { exportDocs } = await import("../export-CT1Axnjv.js");
184
+ const { exportDocs } = await import("../export-BQ-GvMsb.js");
185
185
  await exportDocs(docIds, flags);
186
186
  });
187
187
  program.command("check [docIds...]").description("Report layout faults — clipped content, blank sheets, stranded headings").option("--json", "print the full report as JSON").action(async (docIds, flags) => {
188
- const { checkDocs } = await import("../check-BqEdVH7G.js");
188
+ const { checkDocs } = await import("../check-pEQh4jJE.js");
189
189
  await checkDocs(docIds, flags);
190
190
  });
191
191
  program.command("import <file>").description("Turn a Markdown file into a document under docs/").option("--id <id>", "document id (defaults to a slug of the title)").option("--title <title>", "override the title").option("--subtitle <subtitle>", "subtitle, also used as the cover eyebrow").option("--author <author>", "author line on the cover").option("--theme <theme>", "theme id to back-link from meta.theme").addOption(new Option("--page-size <size>", "page size").choices(PAGE_SIZE_NAMES)).addOption(new Option("--orientation <orientation>", "page orientation").choices(ORIENTATIONS)).option("--no-cover", "skip the title page").option("--contents", "add a self-filling contents page").action(async (file, flags) => {
192
- const { importDoc } = await import("../import-C8ZC4R6T.js");
192
+ const { importDoc } = await import("../import-Daat3L2J.js");
193
193
  await importDoc(file, flags);
194
194
  });
195
195
  program.command("sync:skills").description("Sync built-in skills from @open-document/core into this workspace").option("--dry-run", "show what would change without writing").action(async (flags) => {