@ryanyahya/opendoc 0.4.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/.agents/skills/opendoc-apply-comments/SKILL.md +30 -0
- package/.agents/skills/opendoc-apply-comments/agents/openai.yaml +4 -0
- package/.agents/skills/opendoc-create/SKILL.md +63 -0
- package/.agents/skills/opendoc-create/agents/openai.yaml +6 -0
- package/.agents/skills/opendoc-create-template/SKILL.md +50 -0
- package/.agents/skills/opendoc-create-template/agents/openai.yaml +4 -0
- package/.agents/skills/opendoc-create-template/references/structured-reports.md +11 -0
- package/.agents/skills/opendoc-create-theme/SKILL.md +40 -0
- package/.agents/skills/opendoc-create-theme/agents/openai.yaml +4 -0
- package/.agents/skills/opendoc-current-document/SKILL.md +32 -0
- package/.agents/skills/opendoc-current-document/agents/openai.yaml +4 -0
- package/.agents/skills/opendoc-current-document/references/context-fields.md +20 -0
- package/.agents/skills/opendoc-review-document/SKILL.md +60 -0
- package/.agents/skills/opendoc-review-document/agents/openai.yaml +4 -0
- package/AGENTS.md +69 -0
- package/CONTRIBUTING.md +38 -0
- package/LICENSE +21 -0
- package/README.md +179 -0
- package/SECURITY.md +9 -0
- package/THIRD_PARTY.md +49 -0
- package/VALIDATION.md +99 -0
- package/bin/opendoc.mjs +6 -0
- package/dist/assets/Markdown-sNZyjJi7.js +29 -0
- package/dist/assets/OpenDocSerif-Regular-D3OXs9A9.ttf +0 -0
- package/dist/assets/OpenDocSerif-Semibold-CjL9oDRo.ttf +0 -0
- package/dist/assets/geist-latin-ext-wght-italic-XgKbg5n7.woff2 +0 -0
- package/dist/assets/geist-latin-ext-wght-normal-DC-KSUi6.woff2 +0 -0
- package/dist/assets/geist-latin-wght-italic-dTnRTFFJ.woff2 +0 -0
- package/dist/assets/geist-latin-wght-normal-BgDaEnEv.woff2 +0 -0
- package/dist/assets/index-DdrZ6ozO.css +1 -0
- package/dist/assets/index-DgNBz7mL.js +39 -0
- package/dist/assets/pdf-B7Emtyld.js +54 -0
- package/dist/assets/pdf.worker.min-Dswkl-cV.mjs +29 -0
- package/dist/assets/wordmark-DsqLlZpb.png +0 -0
- package/dist/index.html +17 -0
- package/docs/APPEARANCE.md +21 -0
- package/docs/ASSETS.md +176 -0
- package/docs/AUTHORING.md +178 -0
- package/docs/HEADLESS.md +120 -0
- package/docs/MEDIA.md +112 -0
- package/docs/PROJECTS.md +55 -0
- package/docs/PROSE.md +15 -0
- package/docs/SELECTION.md +59 -0
- package/docs/TEMPLATES.md +55 -0
- package/docs/THEMES.md +106 -0
- package/node_modules/@formepdf/core/LICENSE +21 -0
- package/node_modules/@formepdf/core/README.md +53 -0
- package/node_modules/@formepdf/core/dist/attachments.d.ts +55 -0
- package/node_modules/@formepdf/core/dist/attachments.js +59 -0
- package/node_modules/@formepdf/core/dist/extract.d.ts +8 -0
- package/node_modules/@formepdf/core/dist/extract.js +56 -0
- package/node_modules/@formepdf/core/dist/index.d.ts +311 -0
- package/node_modules/@formepdf/core/dist/index.js +167 -0
- package/node_modules/@formepdf/core/dist/layout.d.ts +132 -0
- package/node_modules/@formepdf/core/dist/layout.js +240 -0
- package/node_modules/@formepdf/core/dist/shared/browserHelpers.d.ts +19 -0
- package/node_modules/@formepdf/core/dist/shared/browserHelpers.js +128 -0
- package/node_modules/@formepdf/core/package.json +35 -0
- package/node_modules/@formepdf/core/pkg-node/LICENSE +21 -0
- package/node_modules/@formepdf/core/pkg-node/README.md +84 -0
- package/node_modules/@formepdf/core/pkg-node/forme.d.ts +39 -0
- package/node_modules/@formepdf/core/pkg-node/forme.js +394 -0
- package/node_modules/@formepdf/core/pkg-node/forme_bg.wasm +0 -0
- package/node_modules/@formepdf/core/pkg-node/forme_bg.wasm.d.ts +21 -0
- package/node_modules/@formepdf/core/pkg-node/package.json +25 -0
- package/node_modules/@formepdf/react/README.md +70 -0
- package/node_modules/@formepdf/react/dist/charts.d.ts +72 -0
- package/node_modules/@formepdf/react/dist/charts.js +338 -0
- package/node_modules/@formepdf/react/dist/components.d.ts +533 -0
- package/node_modules/@formepdf/react/dist/components.js +608 -0
- package/node_modules/@formepdf/react/dist/expr.d.ts +20 -0
- package/node_modules/@formepdf/react/dist/expr.js +39 -0
- package/node_modules/@formepdf/react/dist/font.d.ts +2 -0
- package/node_modules/@formepdf/react/dist/font.js +1 -0
- package/node_modules/@formepdf/react/dist/index.d.ts +11 -0
- package/node_modules/@formepdf/react/dist/index.js +15 -0
- package/node_modules/@formepdf/react/dist/render.d.ts +12 -0
- package/node_modules/@formepdf/react/dist/render.js +15 -0
- package/node_modules/@formepdf/react/dist/serialize.d.ts +12 -0
- package/node_modules/@formepdf/react/dist/serialize.js +1470 -0
- package/node_modules/@formepdf/react/dist/stylesheet.d.ts +4 -0
- package/node_modules/@formepdf/react/dist/stylesheet.js +5 -0
- package/node_modules/@formepdf/react/dist/template-proxy.d.ts +38 -0
- package/node_modules/@formepdf/react/dist/template-proxy.js +100 -0
- package/node_modules/@formepdf/react/dist/types.d.ts +287 -0
- package/node_modules/@formepdf/react/dist/types.js +1 -0
- package/node_modules/@formepdf/react/package.json +41 -0
- package/node_modules/@formepdf/shared/README.md +7 -0
- package/node_modules/@formepdf/shared/dist/canvas.d.ts +6 -0
- package/node_modules/@formepdf/shared/dist/canvas.js +43 -0
- package/node_modules/@formepdf/shared/dist/charts.d.ts +100 -0
- package/node_modules/@formepdf/shared/dist/charts.js +98 -0
- package/node_modules/@formepdf/shared/dist/encode.d.ts +27 -0
- package/node_modules/@formepdf/shared/dist/encode.js +93 -0
- package/node_modules/@formepdf/shared/dist/font.d.ts +13 -0
- package/node_modules/@formepdf/shared/dist/font.js +52 -0
- package/node_modules/@formepdf/shared/dist/index.d.ts +10 -0
- package/node_modules/@formepdf/shared/dist/index.js +15 -0
- package/node_modules/@formepdf/shared/dist/parser.d.ts +30 -0
- package/node_modules/@formepdf/shared/dist/parser.js +756 -0
- package/node_modules/@formepdf/shared/dist/semantics.d.ts +15 -0
- package/node_modules/@formepdf/shared/dist/semantics.js +44 -0
- package/node_modules/@formepdf/shared/dist/style.d.ts +7 -0
- package/node_modules/@formepdf/shared/dist/style.js +1024 -0
- package/node_modules/@formepdf/shared/dist/types.d.ts +743 -0
- package/node_modules/@formepdf/shared/dist/types.js +2 -0
- package/node_modules/@formepdf/shared/package.json +35 -0
- package/node_modules/@types/node/LICENSE +21 -0
- package/node_modules/@types/node/README.md +15 -0
- package/node_modules/@types/node/assert/strict.d.ts +111 -0
- package/node_modules/@types/node/assert.d.ts +1078 -0
- package/node_modules/@types/node/async_hooks.d.ts +603 -0
- package/node_modules/@types/node/buffer.buffer.d.ts +472 -0
- package/node_modules/@types/node/buffer.d.ts +1934 -0
- package/node_modules/@types/node/child_process.d.ts +1476 -0
- package/node_modules/@types/node/cluster.d.ts +578 -0
- package/node_modules/@types/node/compatibility/disposable.d.ts +14 -0
- package/node_modules/@types/node/compatibility/index.d.ts +9 -0
- package/node_modules/@types/node/compatibility/indexable.d.ts +20 -0
- package/node_modules/@types/node/compatibility/iterators.d.ts +20 -0
- package/node_modules/@types/node/console.d.ts +452 -0
- package/node_modules/@types/node/constants.d.ts +21 -0
- package/node_modules/@types/node/crypto.d.ts +4545 -0
- package/node_modules/@types/node/dgram.d.ts +600 -0
- package/node_modules/@types/node/diagnostics_channel.d.ts +576 -0
- package/node_modules/@types/node/dns/promises.d.ts +503 -0
- package/node_modules/@types/node/dns.d.ts +923 -0
- package/node_modules/@types/node/domain.d.ts +170 -0
- package/node_modules/@types/node/events.d.ts +976 -0
- package/node_modules/@types/node/fs/promises.d.ts +1306 -0
- package/node_modules/@types/node/fs.d.ts +4463 -0
- package/node_modules/@types/node/globals.d.ts +172 -0
- package/node_modules/@types/node/globals.typedarray.d.ts +38 -0
- package/node_modules/@types/node/http.d.ts +2097 -0
- package/node_modules/@types/node/http2.d.ts +2843 -0
- package/node_modules/@types/node/https.d.ts +579 -0
- package/node_modules/@types/node/index.d.ts +98 -0
- package/node_modules/@types/node/inspector.d.ts +253 -0
- package/node_modules/@types/node/inspector.generated.d.ts +4052 -0
- package/node_modules/@types/node/module.d.ts +891 -0
- package/node_modules/@types/node/net.d.ts +1076 -0
- package/node_modules/@types/node/os.d.ts +506 -0
- package/node_modules/@types/node/package.json +145 -0
- package/node_modules/@types/node/path.d.ts +200 -0
- package/node_modules/@types/node/perf_hooks.d.ts +968 -0
- package/node_modules/@types/node/process.d.ts +2084 -0
- package/node_modules/@types/node/punycode.d.ts +117 -0
- package/node_modules/@types/node/querystring.d.ts +152 -0
- package/node_modules/@types/node/readline/promises.d.ts +161 -0
- package/node_modules/@types/node/readline.d.ts +594 -0
- package/node_modules/@types/node/repl.d.ts +428 -0
- package/node_modules/@types/node/sea.d.ts +162 -0
- package/node_modules/@types/node/sqlite.d.ts +722 -0
- package/node_modules/@types/node/stream/consumers.d.ts +38 -0
- package/node_modules/@types/node/stream/promises.d.ts +90 -0
- package/node_modules/@types/node/stream/web.d.ts +573 -0
- package/node_modules/@types/node/stream.d.ts +1694 -0
- package/node_modules/@types/node/string_decoder.d.ts +67 -0
- package/node_modules/@types/node/test.d.ts +2265 -0
- package/node_modules/@types/node/timers/promises.d.ts +108 -0
- package/node_modules/@types/node/timers.d.ts +287 -0
- package/node_modules/@types/node/tls.d.ts +1319 -0
- package/node_modules/@types/node/trace_events.d.ts +197 -0
- package/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +468 -0
- package/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +34 -0
- package/node_modules/@types/node/ts5.6/index.d.ts +98 -0
- package/node_modules/@types/node/tty.d.ts +208 -0
- package/node_modules/@types/node/url.d.ts +984 -0
- package/node_modules/@types/node/util.d.ts +2606 -0
- package/node_modules/@types/node/v8.d.ts +920 -0
- package/node_modules/@types/node/vm.d.ts +1053 -0
- package/node_modules/@types/node/wasi.d.ts +181 -0
- package/node_modules/@types/node/web-globals/abortcontroller.d.ts +34 -0
- package/node_modules/@types/node/web-globals/domexception.d.ts +68 -0
- package/node_modules/@types/node/web-globals/events.d.ts +97 -0
- package/node_modules/@types/node/web-globals/fetch.d.ts +55 -0
- package/node_modules/@types/node/web-globals/navigator.d.ts +22 -0
- package/node_modules/@types/node/web-globals/storage.d.ts +24 -0
- package/node_modules/@types/node/web-globals/streams.d.ts +22 -0
- package/node_modules/@types/node/worker_threads.d.ts +819 -0
- package/node_modules/@types/node/zlib.d.ts +747 -0
- package/node_modules/@types/react/LICENSE +21 -0
- package/node_modules/@types/react/README.md +15 -0
- package/node_modules/@types/react/canary.d.ts +129 -0
- package/node_modules/@types/react/compiler-runtime.d.ts +4 -0
- package/node_modules/@types/react/experimental.d.ts +184 -0
- package/node_modules/@types/react/global.d.ts +166 -0
- package/node_modules/@types/react/index.d.ts +4378 -0
- package/node_modules/@types/react/jsx-dev-runtime.d.ts +33 -0
- package/node_modules/@types/react/jsx-runtime.d.ts +24 -0
- package/node_modules/@types/react/package.json +210 -0
- package/node_modules/@types/react/ts5.0/canary.d.ts +129 -0
- package/node_modules/@types/react/ts5.0/experimental.d.ts +184 -0
- package/node_modules/@types/react/ts5.0/global.d.ts +166 -0
- package/node_modules/@types/react/ts5.0/index.d.ts +4365 -0
- package/node_modules/@types/react/ts5.0/jsx-dev-runtime.d.ts +33 -0
- package/node_modules/@types/react/ts5.0/jsx-runtime.d.ts +24 -0
- package/node_modules/csstype/LICENSE +19 -0
- package/node_modules/csstype/README.md +291 -0
- package/node_modules/csstype/index.d.ts +22569 -0
- package/node_modules/csstype/index.js.flow +6863 -0
- package/node_modules/csstype/package.json +70 -0
- package/node_modules/entities/LICENSE +11 -0
- package/node_modules/entities/decode.d.ts +1 -0
- package/node_modules/entities/decode.js +3 -0
- package/node_modules/entities/dist/commonjs/decode-codepoint.d.ts +19 -0
- package/node_modules/entities/dist/commonjs/decode-codepoint.d.ts.map +1 -0
- package/node_modules/entities/dist/commonjs/decode-codepoint.js +77 -0
- package/node_modules/entities/dist/commonjs/decode-codepoint.js.map +1 -0
- package/node_modules/entities/dist/commonjs/decode.d.ts +209 -0
- package/node_modules/entities/dist/commonjs/decode.d.ts.map +1 -0
- package/node_modules/entities/dist/commonjs/decode.js +511 -0
- package/node_modules/entities/dist/commonjs/decode.js.map +1 -0
- package/node_modules/entities/dist/commonjs/encode.d.ts +22 -0
- package/node_modules/entities/dist/commonjs/encode.d.ts.map +1 -0
- package/node_modules/entities/dist/commonjs/encode.js +73 -0
- package/node_modules/entities/dist/commonjs/encode.js.map +1 -0
- package/node_modules/entities/dist/commonjs/escape.d.ts +43 -0
- package/node_modules/entities/dist/commonjs/escape.d.ts.map +1 -0
- package/node_modules/entities/dist/commonjs/escape.js +121 -0
- package/node_modules/entities/dist/commonjs/escape.js.map +1 -0
- package/node_modules/entities/dist/commonjs/generated/decode-data-html.d.ts +2 -0
- package/node_modules/entities/dist/commonjs/generated/decode-data-html.d.ts.map +1 -0
- package/node_modules/entities/dist/commonjs/generated/decode-data-html.js +10 -0
- package/node_modules/entities/dist/commonjs/generated/decode-data-html.js.map +1 -0
- package/node_modules/entities/dist/commonjs/generated/decode-data-xml.d.ts +2 -0
- package/node_modules/entities/dist/commonjs/generated/decode-data-xml.d.ts.map +1 -0
- package/node_modules/entities/dist/commonjs/generated/decode-data-xml.js +10 -0
- package/node_modules/entities/dist/commonjs/generated/decode-data-xml.js.map +1 -0
- package/node_modules/entities/dist/commonjs/generated/encode-html.d.ts +8 -0
- package/node_modules/entities/dist/commonjs/generated/encode-html.d.ts.map +1 -0
- package/node_modules/entities/dist/commonjs/generated/encode-html.js +13 -0
- package/node_modules/entities/dist/commonjs/generated/encode-html.js.map +1 -0
- package/node_modules/entities/dist/commonjs/index.d.ts +96 -0
- package/node_modules/entities/dist/commonjs/index.d.ts.map +1 -0
- package/node_modules/entities/dist/commonjs/index.js +131 -0
- package/node_modules/entities/dist/commonjs/index.js.map +1 -0
- package/node_modules/entities/dist/commonjs/package.json +3 -0
- package/node_modules/entities/dist/esm/decode-codepoint.d.ts +19 -0
- package/node_modules/entities/dist/esm/decode-codepoint.d.ts.map +1 -0
- package/node_modules/entities/dist/esm/decode-codepoint.js +72 -0
- package/node_modules/entities/dist/esm/decode-codepoint.js.map +1 -0
- package/node_modules/entities/dist/esm/decode.d.ts +209 -0
- package/node_modules/entities/dist/esm/decode.d.ts.map +1 -0
- package/node_modules/entities/dist/esm/decode.js +497 -0
- package/node_modules/entities/dist/esm/decode.js.map +1 -0
- package/node_modules/entities/dist/esm/encode.d.ts +22 -0
- package/node_modules/entities/dist/esm/encode.d.ts.map +1 -0
- package/node_modules/entities/dist/esm/encode.js +69 -0
- package/node_modules/entities/dist/esm/encode.js.map +1 -0
- package/node_modules/entities/dist/esm/escape.d.ts +43 -0
- package/node_modules/entities/dist/esm/escape.d.ts.map +1 -0
- package/node_modules/entities/dist/esm/escape.js +117 -0
- package/node_modules/entities/dist/esm/escape.js.map +1 -0
- package/node_modules/entities/dist/esm/generated/decode-data-html.d.ts +2 -0
- package/node_modules/entities/dist/esm/generated/decode-data-html.d.ts.map +1 -0
- package/node_modules/entities/dist/esm/generated/decode-data-html.js +7 -0
- package/node_modules/entities/dist/esm/generated/decode-data-html.js.map +1 -0
- package/node_modules/entities/dist/esm/generated/decode-data-xml.d.ts +2 -0
- package/node_modules/entities/dist/esm/generated/decode-data-xml.d.ts.map +1 -0
- package/node_modules/entities/dist/esm/generated/decode-data-xml.js +7 -0
- package/node_modules/entities/dist/esm/generated/decode-data-xml.js.map +1 -0
- package/node_modules/entities/dist/esm/generated/encode-html.d.ts +8 -0
- package/node_modules/entities/dist/esm/generated/encode-html.d.ts.map +1 -0
- package/node_modules/entities/dist/esm/generated/encode-html.js +10 -0
- package/node_modules/entities/dist/esm/generated/encode-html.js.map +1 -0
- package/node_modules/entities/dist/esm/index.d.ts +96 -0
- package/node_modules/entities/dist/esm/index.d.ts.map +1 -0
- package/node_modules/entities/dist/esm/index.js +107 -0
- package/node_modules/entities/dist/esm/index.js.map +1 -0
- package/node_modules/entities/dist/esm/package.json +3 -0
- package/node_modules/entities/escape.d.ts +1 -0
- package/node_modules/entities/escape.js +3 -0
- package/node_modules/entities/package.json +118 -0
- package/node_modules/entities/readme.md +122 -0
- package/node_modules/entities/src/decode-codepoint.ts +81 -0
- package/node_modules/entities/src/decode.spec.ts +320 -0
- package/node_modules/entities/src/decode.ts +620 -0
- package/node_modules/entities/src/encode.spec.ts +78 -0
- package/node_modules/entities/src/encode.ts +77 -0
- package/node_modules/entities/src/escape.spec.ts +14 -0
- package/node_modules/entities/src/escape.ts +148 -0
- package/node_modules/entities/src/generated/.eslintrc.json +10 -0
- package/node_modules/entities/src/generated/decode-data-html.ts +8 -0
- package/node_modules/entities/src/generated/decode-data-xml.ts +8 -0
- package/node_modules/entities/src/generated/encode-html.ts +17 -0
- package/node_modules/entities/src/index.spec.ts +125 -0
- package/node_modules/entities/src/index.ts +188 -0
- package/node_modules/parse5/LICENSE +19 -0
- package/node_modules/parse5/README.md +38 -0
- package/node_modules/parse5/dist/cjs/common/doctype.d.ts +4 -0
- package/node_modules/parse5/dist/cjs/common/doctype.js +118 -0
- package/node_modules/parse5/dist/cjs/common/error-codes.d.ts +67 -0
- package/node_modules/parse5/dist/cjs/common/error-codes.js +66 -0
- package/node_modules/parse5/dist/cjs/common/foreign-content.d.ts +9 -0
- package/node_modules/parse5/dist/cjs/common/foreign-content.js +237 -0
- package/node_modules/parse5/dist/cjs/common/html.d.ts +289 -0
- package/node_modules/parse5/dist/cjs/common/html.js +528 -0
- package/node_modules/parse5/dist/cjs/common/token.d.ts +84 -0
- package/node_modules/parse5/dist/cjs/common/token.js +24 -0
- package/node_modules/parse5/dist/cjs/common/unicode.d.ts +42 -0
- package/node_modules/parse5/dist/cjs/common/unicode.js +70 -0
- package/node_modules/parse5/dist/cjs/index.d.ts +71 -0
- package/node_modules/parse5/dist/cjs/index.js +54 -0
- package/node_modules/parse5/dist/cjs/package.json +1 -0
- package/node_modules/parse5/dist/cjs/parser/formatting-element-list.d.ts +36 -0
- package/node_modules/parse5/dist/cjs/parser/formatting-element-list.js +114 -0
- package/node_modules/parse5/dist/cjs/parser/index.d.ts +221 -0
- package/node_modules/parse5/dist/cjs/parser/index.js +3240 -0
- package/node_modules/parse5/dist/cjs/parser/open-element-stack.d.ts +53 -0
- package/node_modules/parse5/dist/cjs/parser/open-element-stack.js +328 -0
- package/node_modules/parse5/dist/cjs/serializer/index.d.ts +60 -0
- package/node_modules/parse5/dist/cjs/serializer/index.js +172 -0
- package/node_modules/parse5/dist/cjs/tokenizer/index.d.ts +247 -0
- package/node_modules/parse5/dist/cjs/tokenizer/index.js +2714 -0
- package/node_modules/parse5/dist/cjs/tokenizer/preprocessor.d.ts +36 -0
- package/node_modules/parse5/dist/cjs/tokenizer/preprocessor.js +200 -0
- package/node_modules/parse5/dist/cjs/tree-adapters/default.d.ts +84 -0
- package/node_modules/parse5/dist/cjs/tree-adapters/default.js +176 -0
- package/node_modules/parse5/dist/cjs/tree-adapters/interface.d.ts +255 -0
- package/node_modules/parse5/dist/cjs/tree-adapters/interface.js +2 -0
- package/node_modules/parse5/dist/common/doctype.d.ts +4 -0
- package/node_modules/parse5/dist/common/doctype.js +114 -0
- package/node_modules/parse5/dist/common/error-codes.d.ts +67 -0
- package/node_modules/parse5/dist/common/error-codes.js +63 -0
- package/node_modules/parse5/dist/common/foreign-content.d.ts +9 -0
- package/node_modules/parse5/dist/common/foreign-content.js +228 -0
- package/node_modules/parse5/dist/common/html.d.ts +289 -0
- package/node_modules/parse5/dist/common/html.js +523 -0
- package/node_modules/parse5/dist/common/token.d.ts +84 -0
- package/node_modules/parse5/dist/common/token.js +20 -0
- package/node_modules/parse5/dist/common/unicode.d.ts +42 -0
- package/node_modules/parse5/dist/common/unicode.js +62 -0
- package/node_modules/parse5/dist/index.d.ts +71 -0
- package/node_modules/parse5/dist/index.js +42 -0
- package/node_modules/parse5/dist/parser/formatting-element-list.d.ts +36 -0
- package/node_modules/parse5/dist/parser/formatting-element-list.js +110 -0
- package/node_modules/parse5/dist/parser/index.d.ts +221 -0
- package/node_modules/parse5/dist/parser/index.js +3245 -0
- package/node_modules/parse5/dist/parser/open-element-stack.d.ts +53 -0
- package/node_modules/parse5/dist/parser/open-element-stack.js +324 -0
- package/node_modules/parse5/dist/serializer/index.d.ts +60 -0
- package/node_modules/parse5/dist/serializer/index.js +168 -0
- package/node_modules/parse5/dist/tokenizer/index.d.ts +247 -0
- package/node_modules/parse5/dist/tokenizer/index.js +2710 -0
- package/node_modules/parse5/dist/tokenizer/preprocessor.d.ts +36 -0
- package/node_modules/parse5/dist/tokenizer/preprocessor.js +196 -0
- package/node_modules/parse5/dist/tree-adapters/default.d.ts +84 -0
- package/node_modules/parse5/dist/tree-adapters/default.js +173 -0
- package/node_modules/parse5/dist/tree-adapters/interface.d.ts +255 -0
- package/node_modules/parse5/dist/tree-adapters/interface.js +1 -0
- package/node_modules/parse5/package.json +50 -0
- package/node_modules/undici-types/LICENSE +21 -0
- package/node_modules/undici-types/README.md +6 -0
- package/node_modules/undici-types/agent.d.ts +31 -0
- package/node_modules/undici-types/api.d.ts +43 -0
- package/node_modules/undici-types/balanced-pool.d.ts +29 -0
- package/node_modules/undici-types/cache.d.ts +36 -0
- package/node_modules/undici-types/client.d.ts +108 -0
- package/node_modules/undici-types/connector.d.ts +34 -0
- package/node_modules/undici-types/content-type.d.ts +21 -0
- package/node_modules/undici-types/cookies.d.ts +28 -0
- package/node_modules/undici-types/diagnostics-channel.d.ts +66 -0
- package/node_modules/undici-types/dispatcher.d.ts +256 -0
- package/node_modules/undici-types/env-http-proxy-agent.d.ts +21 -0
- package/node_modules/undici-types/errors.d.ts +149 -0
- package/node_modules/undici-types/eventsource.d.ts +61 -0
- package/node_modules/undici-types/fetch.d.ts +209 -0
- package/node_modules/undici-types/file.d.ts +39 -0
- package/node_modules/undici-types/filereader.d.ts +54 -0
- package/node_modules/undici-types/formdata.d.ts +108 -0
- package/node_modules/undici-types/global-dispatcher.d.ts +9 -0
- package/node_modules/undici-types/global-origin.d.ts +7 -0
- package/node_modules/undici-types/handlers.d.ts +15 -0
- package/node_modules/undici-types/header.d.ts +4 -0
- package/node_modules/undici-types/index.d.ts +71 -0
- package/node_modules/undici-types/interceptors.d.ts +17 -0
- package/node_modules/undici-types/mock-agent.d.ts +50 -0
- package/node_modules/undici-types/mock-client.d.ts +25 -0
- package/node_modules/undici-types/mock-errors.d.ts +12 -0
- package/node_modules/undici-types/mock-interceptor.d.ts +93 -0
- package/node_modules/undici-types/mock-pool.d.ts +25 -0
- package/node_modules/undici-types/package.json +55 -0
- package/node_modules/undici-types/patch.d.ts +33 -0
- package/node_modules/undici-types/pool-stats.d.ts +19 -0
- package/node_modules/undici-types/pool.d.ts +39 -0
- package/node_modules/undici-types/proxy-agent.d.ts +28 -0
- package/node_modules/undici-types/readable.d.ts +65 -0
- package/node_modules/undici-types/retry-agent.d.ts +8 -0
- package/node_modules/undici-types/retry-handler.d.ts +116 -0
- package/node_modules/undici-types/util.d.ts +18 -0
- package/node_modules/undici-types/webidl.d.ts +228 -0
- package/node_modules/undici-types/websocket.d.ts +150 -0
- package/package.json +80 -0
- package/scripts/rebuild-forme.mjs +61 -0
- package/src/app/AppearanceControl.tsx +44 -0
- package/src/app/AssetThemeDefaults.tsx +87 -0
- package/src/app/AssetsBrowser.tsx +273 -0
- package/src/app/CommentDock.tsx +108 -0
- package/src/app/CreateDocumentDialog.tsx +51 -0
- package/src/app/DocumentActions.tsx +69 -0
- package/src/app/DocumentCard.tsx +50 -0
- package/src/app/DocumentViewControl.tsx +31 -0
- package/src/app/DocumentsBrowser.tsx +70 -0
- package/src/app/ExportHistoryDialog.tsx +86 -0
- package/src/app/ExportMenu.tsx +127 -0
- package/src/app/GuideDialog.tsx +80 -0
- package/src/app/InspectionLayer.tsx +77 -0
- package/src/app/LogoUploadDialog.tsx +92 -0
- package/src/app/Markdown.tsx +34 -0
- package/src/app/MaterialsBrowser.tsx +149 -0
- package/src/app/PageNumberInput.tsx +56 -0
- package/src/app/Pdf.tsx +561 -0
- package/src/app/ProjectDialogs.tsx +100 -0
- package/src/app/Reader.tsx +769 -0
- package/src/app/SearchField.tsx +13 -0
- package/src/app/Sidebar.tsx +86 -0
- package/src/app/SkillIndex.tsx +30 -0
- package/src/app/TemplatesBrowser.tsx +149 -0
- package/src/app/ThemesBrowser.tsx +159 -0
- package/src/app/api.ts +47 -0
- package/src/app/appearance.ts +35 -0
- package/src/app/assets.css +139 -0
- package/src/app/catalogPreview.ts +20 -0
- package/src/app/colors.css +167 -0
- package/src/app/comment-dock.css +53 -0
- package/src/app/commentDrafts.ts +67 -0
- package/src/app/componentCorrection.ts +17 -0
- package/src/app/edit-workbench.css +87 -0
- package/src/app/editSession.ts +238 -0
- package/src/app/editorRecovery.ts +25 -0
- package/src/app/export-history.css +31 -0
- package/src/app/export.css +17 -0
- package/src/app/guideLinks.ts +21 -0
- package/src/app/guides.css +40 -0
- package/src/app/main.tsx +221 -0
- package/src/app/materials.css +53 -0
- package/src/app/pdfLoading.ts +12 -0
- package/src/app/pdfSelection.ts +112 -0
- package/src/app/projects.css +63 -0
- package/src/app/reader-toolbar.css +65 -0
- package/src/app/selection.css +150 -0
- package/src/app/sidebar.css +60 -0
- package/src/app/skills.css +7 -0
- package/src/app/style.css +1061 -0
- package/src/app/templates.css +49 -0
- package/src/app/themes.css +80 -0
- package/src/app/ui/Icon.tsx +92 -0
- package/src/app/ui/README.md +27 -0
- package/src/app/ui/fonts.css +36 -0
- package/src/app/ui/index.tsx +223 -0
- package/src/app/ui/ui.css +388 -0
- package/src/app/useReaderPreview.ts +19 -0
- package/src/app/useTextEditing.ts +155 -0
- package/src/assets/adapter.ts +122 -0
- package/src/assets/files.ts +378 -0
- package/src/assets/import-worker.ts +294 -0
- package/src/assets/imports.ts +124 -0
- package/src/assets/index.ts +60 -0
- package/src/assets/store.ts +798 -0
- package/src/assets/usage.ts +118 -0
- package/src/cli/check.ts +25 -0
- package/src/cli/init.ts +119 -0
- package/src/cli/lock.ts +34 -0
- package/src/cli/main.ts +118 -0
- package/src/cli/process.ts +19 -0
- package/src/cli/start.ts +96 -0
- package/src/cli/update.ts +348 -0
- package/src/cli/workspace.ts +94 -0
- package/src/document/index.tsx +641 -0
- package/src/document/page.tsx +53 -0
- package/src/document/text-targets.tsx +162 -0
- package/src/media/files.ts +124 -0
- package/src/media/render.ts +63 -0
- package/src/rendering/resolve-sources.ts +84 -0
- package/src/runtime/jsx-dev-runtime.ts +2 -0
- package/src/runtime/jsx-runtime.ts +2 -0
- package/src/runtime/paths.ts +12 -0
- package/src/server/assets-cli.ts +162 -0
- package/src/server/assets-http.ts +100 -0
- package/src/server/client.ts +50 -0
- package/src/server/clipboard.ts +22 -0
- package/src/server/comments-cli.ts +64 -0
- package/src/server/comments.ts +130 -0
- package/src/server/create-cli.ts +33 -0
- package/src/server/create.ts +228 -0
- package/src/server/dependencies.ts +91 -0
- package/src/server/documents.ts +143 -0
- package/src/server/edits.ts +249 -0
- package/src/server/export-batch.ts +105 -0
- package/src/server/export-errors.ts +2 -0
- package/src/server/export-file.ts +57 -0
- package/src/server/export-inputs.ts +66 -0
- package/src/server/export-preview.ts +69 -0
- package/src/server/export.ts +32 -0
- package/src/server/exports.ts +283 -0
- package/src/server/files.ts +21 -0
- package/src/server/guides.ts +71 -0
- package/src/server/index.ts +432 -0
- package/src/server/materials.ts +39 -0
- package/src/server/media-cli.ts +73 -0
- package/src/server/media-mutations.ts +168 -0
- package/src/server/pptx.ts +160 -0
- package/src/server/preflight.ts +129 -0
- package/src/server/projects-cli.ts +29 -0
- package/src/server/projects.ts +187 -0
- package/src/server/render-error.ts +9 -0
- package/src/server/render-source.ts +24 -0
- package/src/server/render.ts +48 -0
- package/src/server/review-cli.ts +40 -0
- package/src/server/review.ts +161 -0
- package/src/server/selection.ts +23 -0
- package/src/server/source-overrides.ts +97 -0
- package/src/server/templates-cli.ts +51 -0
- package/src/server/templates.ts +186 -0
- package/src/server/text-layout.ts +41 -0
- package/src/server/text-source.ts +307 -0
- package/src/server/themes-cli.ts +59 -0
- package/src/server/themes.ts +215 -0
- package/src/server/ttf2eot.d.ts +3 -0
- package/src/server/worker.ts +166 -0
- package/src/server/workspace.ts +242 -0
- package/src/shared/anchors.ts +69 -0
- package/src/shared/assets.ts +154 -0
- package/src/shared/export.ts +34 -0
- package/src/shared/media.ts +33 -0
- package/src/shared/projects.ts +19 -0
- package/src/shared/selection.ts +94 -0
- package/src/shared/skill-index.ts +14 -0
- package/src/shared/starters.ts +19 -0
- package/src/shared/templates.ts +18 -0
- package/src/shared/themes.ts +24 -0
- package/src/shared/types.ts +39 -0
- package/src/template/index.ts +27 -0
- package/src/themes/index.ts +3 -0
- package/src/themes/neutral.ts +20 -0
- package/src/themes/types.ts +110 -0
- package/starter/assets/brand/wordmark.png +0 -0
- package/starter/assets/fonts/InterUI-LICENSE.txt +93 -0
- package/starter/assets/fonts/InterUI-Medium.ttf +0 -0
- package/starter/assets/fonts/InterUI-Regular.ttf +0 -0
- package/starter/assets/fonts/InterUI-source.json +19 -0
- package/starter/assets/fonts/OpenDocMono-Regular.ttf +0 -0
- package/starter/assets/fonts/OpenDocSans-Italic.ttf +0 -0
- package/starter/assets/fonts/OpenDocSans-Regular.ttf +0 -0
- package/starter/assets/fonts/OpenDocSans-Semibold.ttf +0 -0
- package/starter/assets/fonts/OpenDocSans-SemiboldItalic.ttf +0 -0
- package/starter/assets/fonts/OpenDocSerif-Italic.ttf +0 -0
- package/starter/assets/fonts/OpenDocSerif-Regular.ttf +0 -0
- package/starter/assets/fonts/OpenDocSerif-Semibold.ttf +0 -0
- package/starter/assets/fonts/OpenDocSerif-SemiboldItalic.ttf +0 -0
- package/starter/assets/fonts/SourceCode-LICENSE.md +93 -0
- package/starter/assets/fonts/SourceSans-LICENSE.md +93 -0
- package/starter/assets/fonts/SourceSerif-LICENSE.md +93 -0
- package/starter/assets/fonts/geist/OFL.txt +93 -0
- package/starter/assets/fonts/geist/asset.json +7 -0
- package/starter/assets/fonts/geist/files/1a9874b3be0fc168692a3d2327bccb4d28835653d3b91537a755296a467a83e3.ttf +0 -0
- package/starter/assets/fonts/geist/files/a8eefb873ba9c9020665f8a98302697ce1f3b79ab2deef6ee508c0ca6a82e876.ttf +0 -0
- package/starter/assets/fonts/geist/files/ccce59465ae5c61930ada5453834f60500fbd95084d85db63e0e65fad0125455.ttf +0 -0
- package/starter/assets/fonts/geist/files/f5e95110d70593672515080bee9148463ada0a7f77b89ed65a3d43cb2b0ff83a.pdf +0 -0
- package/starter/assets/fonts/geist/revisions/9a2bc12fb2f23cb27bc227087e63e1407bb804ee0586480bd6b7966ec69fb474.json +60 -0
- package/starter/assets/fonts/inter/OFL.txt +93 -0
- package/starter/assets/fonts/inter/asset.json +7 -0
- package/starter/assets/fonts/inter/files/1b08e7fc267a5c7e1d614100f604b83e7e8a0be241f0f288faa2b3ac93a683ba.ttf +0 -0
- package/starter/assets/fonts/inter/files/5b6f0c6f26e5c554a64cdcc3a9b5d802b7f9aec6206f1dbcfcdcad7b5860a2a9.ttf +0 -0
- package/starter/assets/fonts/inter/files/957db8560d510a198a7d0333fae7b6b444b00c20801581126273978d778eb3c3.pdf +0 -0
- package/starter/assets/fonts/inter/files/b37284b5701b6b168dfc770aa1a4ac492106422fd3ba76bc7641e37434e8019c.ttf +0 -0
- package/starter/assets/fonts/inter/files/c1811d32ac0f6eed1bbf57529f2ecdfc6c717d48a969dd864942436315a1b198.ttf +0 -0
- package/starter/assets/fonts/inter/files/e7a1aaf7eda9f2fad4131725fa556265ec75ca7b2d756260173a040363e8d4f7.ttf +0 -0
- package/starter/assets/fonts/inter/files/ef8f755d933b9310804cc9152f1f18cb2ac460d6b05054ec913d889c9f11f79e.ttf +0 -0
- package/starter/assets/fonts/inter/revisions/600391517c413963b71e278a57c26c40366c81fa3939a6b9755f446206766d12.json +99 -0
- package/starter/assets/fonts/inter/source.json +57 -0
- package/starter/assets/fonts/lato/OFL.txt +93 -0
- package/starter/assets/fonts/lato/asset.json +7 -0
- package/starter/assets/fonts/lato/files/4a6b566dbb28adb473a8789ce5169306f42f0c8a070ac92bae93636f36348b0d.pdf +0 -0
- package/starter/assets/fonts/lato/files/5adeb6b334d8fb99ef053bc052b952773d544315e0e1d668a12c0ce8bd51375c.ttf +0 -0
- package/starter/assets/fonts/lato/files/62c1b7f0d2e74b45960154c3520efc337b553db0961bfdc950d5618334596cc8.ttf +0 -0
- package/starter/assets/fonts/lato/files/71b8b7decbe75a881ed267be539d402bd1e9420b799658aada4e0d1bd5af803c.ttf +0 -0
- package/starter/assets/fonts/lato/files/8a0aace75d33794eece4b28187bfc1df0bbd2888b5d8a56e01788c8d65d16be1.ttf +0 -0
- package/starter/assets/fonts/lato/files/d636e4683231f931eda222d588e944d082bfd3bdba02f928bee461c0f185b251.ttf +0 -0
- package/starter/assets/fonts/lato/files/e399c44efe1387100531d26c7e4800c5d12251b890d6654a3098c7c679cb1786.ttf +0 -0
- package/starter/assets/fonts/lato/revisions/49ccb93400a9d466fab7d9843b1ecf8916ec6d47a475dd79a597a22eb39616bc.json +99 -0
- package/starter/assets/fonts/lato/source.json +57 -0
- package/starter/assets/fonts/merriweather/OFL.txt +93 -0
- package/starter/assets/fonts/merriweather/asset.json +7 -0
- package/starter/assets/fonts/merriweather/files/1c54f91b910454251c4c2b7bd4e472e1abf265fba7ca3c0ef2eee2f41324099e.ttf +0 -0
- package/starter/assets/fonts/merriweather/files/8bde8da2bb7f0265e27ba0481f70bb48d0f98a976c145f2f239c648ddd6532e0.pdf +0 -0
- package/starter/assets/fonts/merriweather/files/90b7db4460fcd1a5ca49575c2668a793f3cd6447664d312a068d690e1c01e6bc.ttf +0 -0
- package/starter/assets/fonts/merriweather/files/afff81272b7653417bb6f8bef57add055b1f9fda36f27eba5f32b40752bd08da.ttf +0 -0
- package/starter/assets/fonts/merriweather/files/e029d3b71e5bae3877c73f4f2b15af28db16593d49b0aed2a328d37ff7075846.ttf +0 -0
- package/starter/assets/fonts/merriweather/files/e9864a6790bf712a04e20f3662b206a1535186ed3e877fd859dd5fb9682335df.ttf +0 -0
- package/starter/assets/fonts/merriweather/files/fa71baebdd20a7d0de2e5e445a5922530fe9e1d740efbe791f113b682d3cb093.ttf +0 -0
- package/starter/assets/fonts/merriweather/revisions/1888e390b3e4f38a3d7cd2dc1bb805aeb6ce13f986a97656f0265fd436bc91d2.json +99 -0
- package/starter/assets/fonts/merriweather/source.json +57 -0
- package/starter/assets/fonts/open-sans/OFL.txt +92 -0
- package/starter/assets/fonts/open-sans/asset.json +7 -0
- package/starter/assets/fonts/open-sans/files/1bc0594a83762b2c25d38915a34464b7fec6088298ca22d151757bf98d6700ec.ttf +0 -0
- package/starter/assets/fonts/open-sans/files/47ed1cfaa7ffca04a04ab850b2938fd52c09d1b44cfa3e2980878e166b0cbd87.ttf +0 -0
- package/starter/assets/fonts/open-sans/files/574939af301f07df8e21cfff279465c5981dd9d9cf62086f7515897df951c6f5.pdf +0 -0
- package/starter/assets/fonts/open-sans/files/6d3884d0d57c1b67e9c50c54eca7b69c535c114e76bd7a9cfda0258588185553.ttf +0 -0
- package/starter/assets/fonts/open-sans/files/733eb93b167e6d45de09aa768f6c0355647c2c26f5416dbc7407a08ed41e81c6.ttf +0 -0
- package/starter/assets/fonts/open-sans/files/75367e6da7d914eaed87883ba51b2a2b5816b5cdbb39f96ec5c81a5b032bfd5a.ttf +0 -0
- package/starter/assets/fonts/open-sans/files/ff4fdc11204e0edd14e9a0bb6c374b847a9093b0ec2c16702e03afca79ac4ef7.ttf +0 -0
- package/starter/assets/fonts/open-sans/revisions/bbbe3a4915b9bccbc883c0decb4097511c43b6bd09ae22a1516aff128c219bc5.json +99 -0
- package/starter/assets/fonts/open-sans/source.json +57 -0
- package/starter/assets/fonts/roboto/OFL.txt +93 -0
- package/starter/assets/fonts/roboto/asset.json +7 -0
- package/starter/assets/fonts/roboto/files/22d45d989248a624252b8382067ac56550212fa675dcdbaf12f03d297dd87a58.pdf +0 -0
- package/starter/assets/fonts/roboto/files/35757eaa996b3359022f47f164a67ee9eac04971af24c5b8fbd4b89e844ff190.ttf +0 -0
- package/starter/assets/fonts/roboto/files/4d3035883c531846bd1ce2dc89f36d932e72dc114f56062c7e3a9cdd74f3d3ea.ttf +0 -0
- package/starter/assets/fonts/roboto/files/be7639306a4fc4a02ce2ae2ff59eb1335e4db4a7379dd0a384ed7cc053817789.ttf +0 -0
- package/starter/assets/fonts/roboto/files/d2920cbb1b60a3fd11fbf22049286e43a6baf522d37fdf1e7c89562319bcfea5.ttf +0 -0
- package/starter/assets/fonts/roboto/files/dece7c71bbe61710787f0839c722c65e87355dd2eb4a823e6b5488121ff81e4b.ttf +0 -0
- package/starter/assets/fonts/roboto/files/f478ba88b0292e685e487901dfbb1401457d32d6ebee4030cdfd5698235bffa8.ttf +0 -0
- package/starter/assets/fonts/roboto/revisions/bda5e2d84c17313373dd2dbf3e64fe0dd450c7e1b59e6929e69557e122fe976e.json +99 -0
- package/starter/assets/fonts/roboto/source.json +57 -0
- package/starter/assets/logos/opendoc/asset.json +6 -0
- package/starter/assets/logos/opendoc/files/831d5ccd9eb6709cc8439ea257c03d81452e81a28a3d1eedbd6a3b7daff687b6.png +0 -0
- package/starter/assets/logos/opendoc/revisions/834dde8926ddb81de687254195a168bb13bfb77803307f1257de1f2228be63b2.json +33 -0
- package/starter/assets/ui-fonts/geist/OFL.txt +93 -0
- package/starter/assets/ui-fonts/geist/geist-latin-ext-wght-italic.woff2 +0 -0
- package/starter/assets/ui-fonts/geist/geist-latin-ext-wght-normal.woff2 +0 -0
- package/starter/assets/ui-fonts/geist/geist-latin-wght-italic.woff2 +0 -0
- package/starter/assets/ui-fonts/geist/geist-latin-wght-normal.woff2 +0 -0
- package/starter/assets/ui-fonts/geist/source.json +26 -0
- package/starter/documents/welcome/assets.json +7 -0
- package/starter/documents/welcome/index.tsx +160 -0
- package/starter/documents/welcome/media/.gitkeep +0 -0
- package/starter/documents/welcome/media/paper-architecture/image.png +0 -0
- package/starter/documents/welcome/media/paper-architecture/meta.json +9 -0
- package/starter/documents/welcome/media/paper-architecture/prompt.txt +1 -0
- package/starter/documents/welcome/media/studio-rhythm/chart.svg +2343 -0
- package/starter/documents/welcome/media/studio-rhythm/data.json +234 -0
- package/starter/documents/welcome/media/studio-rhythm/generation.json +9 -0
- package/starter/documents/welcome/media/studio-rhythm/image.png +0 -0
- package/starter/documents/welcome/media/studio-rhythm/meta.json +11 -0
- package/starter/documents/welcome/media/studio-rhythm/recipe.py +79 -0
- package/starter/documents/welcome/theme.tsx +5 -0
- package/starter/documents/welcome-presentation/assets.json +7 -0
- package/starter/documents/welcome-presentation/index.tsx +166 -0
- package/starter/documents/welcome-presentation/media/.gitkeep +0 -0
- package/starter/documents/welcome-presentation/media/paper-architecture/image.png +0 -0
- package/starter/documents/welcome-presentation/media/paper-architecture/meta.json +9 -0
- package/starter/documents/welcome-presentation/media/paper-architecture/prompt.txt +1 -0
- package/starter/documents/welcome-presentation/media/studio-rhythm/chart.svg +1336 -0
- package/starter/documents/welcome-presentation/media/studio-rhythm/data.json +234 -0
- package/starter/documents/welcome-presentation/media/studio-rhythm/generation.json +9 -0
- package/starter/documents/welcome-presentation/media/studio-rhythm/image.png +0 -0
- package/starter/documents/welcome-presentation/media/studio-rhythm/meta.json +13 -0
- package/starter/documents/welcome-presentation/media/studio-rhythm/recipe.py +49 -0
- package/starter/documents/welcome-presentation/theme.tsx +5 -0
- package/starter/projects.json +17 -0
- package/starter/templates/AGENTS.md +9 -0
- package/starter/templates/_shared/BusinessLogo.tsx +14 -0
- package/starter/templates/_shared/Pricing.tsx +40 -0
- package/starter/templates/_shared/commerce.ts +93 -0
- package/starter/templates/brand-guidelines/AGENTS.md +32 -0
- package/starter/templates/brand-guidelines/index.tsx +62 -0
- package/starter/templates/brand-guidelines/preview.tsx +181 -0
- package/starter/templates/brand-guidelines/starter.tsx +179 -0
- package/starter/templates/brand-guidelines/template.json +15 -0
- package/starter/templates/business-proposal/AGENTS.md +13 -0
- package/starter/templates/business-proposal/README.md +36 -0
- package/starter/templates/business-proposal/data.json +37 -0
- package/starter/templates/business-proposal/examples/long.json +142 -0
- package/starter/templates/business-proposal/examples/sparse.json +17 -0
- package/starter/templates/business-proposal/examples/typical.json +37 -0
- package/starter/templates/business-proposal/index.tsx +59 -0
- package/starter/templates/business-proposal/preview.tsx +47 -0
- package/starter/templates/business-proposal/schema.ts +14 -0
- package/starter/templates/business-proposal/starter.tsx +18 -0
- package/starter/templates/business-proposal/template.json +11 -0
- package/starter/templates/company-profile/AGENTS.md +48 -0
- package/starter/templates/company-profile/index.tsx +69 -0
- package/starter/templates/company-profile/preview.tsx +185 -0
- package/starter/templates/company-profile/starter.tsx +186 -0
- package/starter/templates/company-profile/template.json +15 -0
- package/starter/templates/consulting-report/AGENTS.md +11 -0
- package/starter/templates/consulting-report/README.md +13 -0
- package/starter/templates/consulting-report/RESEARCH.md +10 -0
- package/starter/templates/consulting-report/index.tsx +44 -0
- package/starter/templates/consulting-report/preview.tsx +39 -0
- package/starter/templates/consulting-report/starter.tsx +15 -0
- package/starter/templates/consulting-report/template.json +11 -0
- package/starter/templates/editorial-essay/AGENTS.md +11 -0
- package/starter/templates/editorial-essay/README.md +11 -0
- package/starter/templates/editorial-essay/index.tsx +30 -0
- package/starter/templates/editorial-essay/preview.tsx +26 -0
- package/starter/templates/editorial-essay/starter.tsx +15 -0
- package/starter/templates/editorial-essay/template.json +11 -0
- package/starter/templates/executive-brief/AGENTS.md +9 -0
- package/starter/templates/executive-brief/README.md +11 -0
- package/starter/templates/executive-brief/index.tsx +33 -0
- package/starter/templates/executive-brief/preview.tsx +37 -0
- package/starter/templates/executive-brief/starter.tsx +11 -0
- package/starter/templates/executive-brief/template.json +11 -0
- package/starter/templates/image-story/AGENTS.md +37 -0
- package/starter/templates/image-story/index.tsx +106 -0
- package/starter/templates/image-story/preview.tsx +33 -0
- package/starter/templates/image-story/starter.tsx +24 -0
- package/starter/templates/image-story/template.json +13 -0
- package/starter/templates/invoice/AGENTS.md +13 -0
- package/starter/templates/invoice/README.md +40 -0
- package/starter/templates/invoice/data.json +61 -0
- package/starter/templates/invoice/examples/long.json +241 -0
- package/starter/templates/invoice/examples/sparse.json +33 -0
- package/starter/templates/invoice/examples/typical.json +61 -0
- package/starter/templates/invoice/index.tsx +57 -0
- package/starter/templates/invoice/preview.tsx +12 -0
- package/starter/templates/invoice/schema.ts +45 -0
- package/starter/templates/invoice/starter.tsx +12 -0
- package/starter/templates/invoice/template.json +11 -0
- package/starter/templates/literary-text/AGENTS.md +9 -0
- package/starter/templates/literary-text/README.md +11 -0
- package/starter/templates/literary-text/index.tsx +31 -0
- package/starter/templates/literary-text/preview.tsx +20 -0
- package/starter/templates/literary-text/starter.tsx +11 -0
- package/starter/templates/literary-text/template.json +11 -0
- package/starter/templates/magazine-feature/AGENTS.md +11 -0
- package/starter/templates/magazine-feature/README.md +13 -0
- package/starter/templates/magazine-feature/index.tsx +41 -0
- package/starter/templates/magazine-feature/preview.tsx +34 -0
- package/starter/templates/magazine-feature/starter.tsx +15 -0
- package/starter/templates/magazine-feature/template.json +11 -0
- package/starter/templates/monthly-report/AGENTS.md +11 -0
- package/starter/templates/monthly-report/README.md +24 -0
- package/starter/templates/monthly-report/data.json +131 -0
- package/starter/templates/monthly-report/examples/long.json +519 -0
- package/starter/templates/monthly-report/examples/sparse.json +20 -0
- package/starter/templates/monthly-report/examples/typical.json +37 -0
- package/starter/templates/monthly-report/index.tsx +92 -0
- package/starter/templates/monthly-report/preview.tsx +14 -0
- package/starter/templates/monthly-report/schema.ts +127 -0
- package/starter/templates/monthly-report/starter.tsx +13 -0
- package/starter/templates/monthly-report/template.json +11 -0
- package/starter/templates/pitch-deck/AGENTS.md +32 -0
- package/starter/templates/pitch-deck/index.tsx +46 -0
- package/starter/templates/pitch-deck/preview.tsx +142 -0
- package/starter/templates/pitch-deck/starter.tsx +140 -0
- package/starter/templates/pitch-deck/template.json +15 -0
- package/starter/templates/proposal-deck/AGENTS.md +25 -0
- package/starter/templates/proposal-deck/index.tsx +52 -0
- package/starter/templates/proposal-deck/preview.tsx +172 -0
- package/starter/templates/proposal-deck/starter.tsx +168 -0
- package/starter/templates/proposal-deck/template.json +7 -0
- package/starter/templates/quotation/AGENTS.md +13 -0
- package/starter/templates/quotation/README.md +42 -0
- package/starter/templates/quotation/data.json +64 -0
- package/starter/templates/quotation/examples/long.json +272 -0
- package/starter/templates/quotation/examples/sparse.json +31 -0
- package/starter/templates/quotation/examples/typical.json +64 -0
- package/starter/templates/quotation/index.tsx +51 -0
- package/starter/templates/quotation/preview.tsx +12 -0
- package/starter/templates/quotation/schema.ts +27 -0
- package/starter/templates/quotation/starter.tsx +12 -0
- package/starter/templates/quotation/template.json +11 -0
- package/starter/templates/scientific-paper/AGENTS.md +11 -0
- package/starter/templates/scientific-paper/README.md +13 -0
- package/starter/templates/scientific-paper/index.tsx +47 -0
- package/starter/templates/scientific-paper/preview.tsx +43 -0
- package/starter/templates/scientific-paper/starter.tsx +15 -0
- package/starter/templates/scientific-paper/template.json +11 -0
- package/starter/themes/Specimen.tsx +54 -0
- package/starter/themes/civic-spectrum/components.tsx +92 -0
- package/starter/themes/civic-spectrum/design.md +70 -0
- package/starter/themes/civic-spectrum/index.ts +57 -0
- package/starter/themes/civic-spectrum/preview.tsx +66 -0
- package/starter/themes/field-manual/components.tsx +106 -0
- package/starter/themes/field-manual/design.md +72 -0
- package/starter/themes/field-manual/index.ts +57 -0
- package/starter/themes/field-manual/preview.tsx +82 -0
- package/starter/themes/index.ts +3 -0
- package/starter/themes/mckinsey-consulting/components.tsx +69 -0
- package/starter/themes/mckinsey-consulting/design.md +68 -0
- package/starter/themes/mckinsey-consulting/index.ts +60 -0
- package/starter/themes/mckinsey-consulting/preview.tsx +53 -0
- package/starter/themes/neutral/design.md +35 -0
- package/starter/themes/neutral/index.ts +21 -0
- package/starter/themes/neutral/preview.tsx +4 -0
- package/starter/themes/opendoc-neutral/components.tsx +77 -0
- package/starter/themes/opendoc-neutral/design.md +70 -0
- package/starter/themes/opendoc-neutral/index.ts +54 -0
- package/starter/themes/opendoc-neutral/preview.tsx +43 -0
- package/starter/themes/types.ts +3 -0
- package/tsconfig.workspace.json +24 -0
- package/vendor/formepdf/LICENSE +21 -0
- package/vendor/formepdf/README.md +97 -0
- package/vendor/formepdf/font-subset.patch +228 -0
- package/vendor/formepdf/text-writer.patch +507 -0
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
.template-intro { max-width: 65ch; line-height: 1.6; }
|
|
2
|
+
.template-gallery-label, .template-proof-label { display: flex; justify-content: space-between; gap: 16px; color: var(--muted); font-size: 12px; }
|
|
3
|
+
.template-gallery-label { margin: 32px 0 20px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
|
|
4
|
+
.template-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 28px 24px; }
|
|
5
|
+
.template-card { max-width: 280px; min-width: 0; }
|
|
6
|
+
.template-card-link { display: block; color: inherit; text-decoration: none; border-radius: 5px; }
|
|
7
|
+
.template-card-mat { background: var(--surface-alt); border-radius: 6px; padding: 26px 32px; transition: background-color 160ms ease; }
|
|
8
|
+
.template-card-link:hover .template-card-mat { background: var(--surface-hover); }
|
|
9
|
+
.template-preview { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 24px; min-height: 180px; }
|
|
10
|
+
.template-preview .pdf-page { flex-shrink: 0; max-width: 100%; box-shadow: var(--shadow-preview); }
|
|
11
|
+
.template-preview-message { padding: 20px 10px; font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
|
|
12
|
+
.template-card h2 { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 12px 0 8px; font-size: var(--title-size); line-height: var(--title-leading); font-weight: 500; }
|
|
13
|
+
.template-card p { font-size: var(--body-size); color: var(--muted); line-height: var(--body-leading); margin: 8px 0 0; }
|
|
14
|
+
.template-format { font-size: 12px; color: var(--muted); }
|
|
15
|
+
.template-back { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); text-decoration: none; font-size: 13px; margin-bottom: 24px; }
|
|
16
|
+
.template-back:hover { color: var(--ink); }
|
|
17
|
+
.template-detail-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(250px, 1fr); gap: 40px; align-items: start; }
|
|
18
|
+
.template-proof { padding: 22px; background: var(--surface-alt); border-radius: 6px; min-width: 0; }
|
|
19
|
+
.template-proof-label { margin-bottom: 20px; }
|
|
20
|
+
.template-options { position: sticky; top: 32px; max-height: calc(100dvh - 64px); overflow-y: auto; }
|
|
21
|
+
.template-options-heading { margin-bottom: 28px; }
|
|
22
|
+
.template-options-heading h1 { margin-bottom: 12px; }
|
|
23
|
+
.template-options-heading .lead { margin: 0; }
|
|
24
|
+
.template-options h2 { font-size: var(--title-size); line-height: var(--title-leading); font-weight: 500; margin: 0 0 12px; }
|
|
25
|
+
.template-options ul { padding-left: 18px; margin: 16px 0 28px; font-size: 13px; line-height: 1.7; color: var(--muted); }
|
|
26
|
+
.template-options li + li { margin-top: 12px; }
|
|
27
|
+
.template-options .primary { width: 100%; justify-content: space-between; }
|
|
28
|
+
@media (max-width: 1050px) {
|
|
29
|
+
.template-detail-layout { grid-template-columns: minmax(0, 1fr); }
|
|
30
|
+
.template-options { position: static; max-height: none; overflow: visible; grid-row: 1; max-width: 620px; }
|
|
31
|
+
.template-options ul { margin-bottom: 24px; }
|
|
32
|
+
.template-proof { max-width: 639px; }
|
|
33
|
+
}
|
|
34
|
+
@media (max-width: 620px) {
|
|
35
|
+
.templates-content .library-heading { align-items: flex-start; gap: 12px; flex-wrap: wrap; }
|
|
36
|
+
.templates-content .library-heading h1 { margin-bottom: 0; }
|
|
37
|
+
.template-gallery-label { flex-wrap: wrap; gap: 8px; }
|
|
38
|
+
.template-grid { grid-template-columns: minmax(0, 1fr); }
|
|
39
|
+
.template-card { max-width: 350px; }
|
|
40
|
+
.template-proof { padding: 14px; }
|
|
41
|
+
}
|
|
42
|
+
@media (prefers-reduced-motion: reduce) { .template-card-mat { transition: none; } }
|
|
43
|
+
|
|
44
|
+
.template-card .template-preview { aspect-ratio: 595.28 / 841.89; justify-content: center; }
|
|
45
|
+
.template-grid-presentations { grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
|
|
46
|
+
.template-grid-presentations .template-card { max-width: 520px; }
|
|
47
|
+
.template-grid-presentations .template-card-mat { padding: 20px; }
|
|
48
|
+
.template-grid-presentations .template-preview { aspect-ratio: 16 / 9; min-height: 0; }
|
|
49
|
+
.template-detail-presentation .template-preview { min-height: 0; }
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
.theme-intro { max-width: 65ch; line-height: 1.6; }
|
|
2
|
+
.theme-gallery-label { margin: 24px 0 20px; padding-bottom: 12px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; }
|
|
3
|
+
.theme-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 28px 24px; }
|
|
4
|
+
.theme-gallery-card { min-width: 0; max-width: 280px; }
|
|
5
|
+
.theme-gallery-preview { position: relative; }
|
|
6
|
+
.theme-preview-link { position: absolute; inset: 0; border-radius: 6px; }
|
|
7
|
+
.theme-gallery-preview:has(.theme-preview-message[role="alert"]) .theme-preview-link { display: none; }
|
|
8
|
+
.theme-specimen { min-width: 0; background: var(--surface-alt); border-radius: 6px; padding: 26px 32px; transition: background-color 160ms ease; }
|
|
9
|
+
.theme-gallery-preview .theme-specimen { padding-bottom: 46px; }
|
|
10
|
+
.theme-gallery-preview:hover .theme-specimen { background: var(--surface-hover); }
|
|
11
|
+
.theme-preview-placeholder { aspect-ratio: 595 / 842; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: var(--muted); font-size: 13px; text-align: center; }
|
|
12
|
+
.theme-pdf { display: flex; flex-direction: column; align-items: center; gap: 24px; width: 100%; min-width: 0; }
|
|
13
|
+
.theme-gallery-card .theme-pdf { justify-content: center; }
|
|
14
|
+
.theme-pdf .pdf-page { flex-shrink: 0; box-shadow: var(--shadow-preview); max-width: 100%; scroll-margin-top: 24px; }
|
|
15
|
+
.theme-preview-message { padding: 20px 0; font-size: 13px; line-height: 1.6; color: var(--muted); overflow-wrap: anywhere; }
|
|
16
|
+
.theme-preview-message p + p { margin-top: 8px; }
|
|
17
|
+
.theme-preview-message button { margin-top: 16px; }
|
|
18
|
+
.theme-gallery-card h2 { margin: 12px 0 0; font-size: var(--title-size); line-height: var(--title-leading); font-weight: 500; }
|
|
19
|
+
.theme-gallery-card h2 a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 28px; }
|
|
20
|
+
.theme-gallery-card h2 a:hover { text-decoration: underline; text-underline-offset: 4px; }
|
|
21
|
+
.theme-palette-strip { position: absolute; left: 24px; right: 24px; bottom: 16px; display: flex; border-radius: 2px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
|
|
22
|
+
.theme-palette-strip span { flex: 1; min-width: 0; height: 6px; }
|
|
23
|
+
.theme-back { display: inline-flex; align-items: center; gap: 5px; min-height: 40px; margin-bottom: 20px; font-size: 13px; color: var(--muted); }
|
|
24
|
+
.theme-back:hover { color: var(--ink); }
|
|
25
|
+
.theme-detail-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(250px, 1fr); gap: 40px; align-items: start; }
|
|
26
|
+
.theme-specimen-full { padding: 22px; }
|
|
27
|
+
.theme-proof-label { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; margin-bottom: 20px; font-size: 12px; color: var(--muted); }
|
|
28
|
+
.theme-specimen-full .theme-preview-placeholder { min-height: 380px; aspect-ratio: auto; }
|
|
29
|
+
.theme-options { min-width: 0; align-self: stretch; padding-bottom: 4px; overflow-wrap: anywhere; }
|
|
30
|
+
.theme-options > header { position: sticky; top: 32px; z-index: 1; margin-bottom: 22px; background: var(--background); }
|
|
31
|
+
.theme-options > header::before { content: ''; position: absolute; inset: -32px 0 -12px; z-index: -1; background: var(--background); }
|
|
32
|
+
.theme-options .lead { line-height: 1.65; }
|
|
33
|
+
.theme-options section { margin-top: 26px; }
|
|
34
|
+
.theme-options h2 { font-size: var(--title-size); line-height: var(--title-leading); font-weight: 500; margin: 0 0 12px; }
|
|
35
|
+
.theme-options section > p, .theme-options ul { font-size: 13px; color: var(--muted); line-height: 1.75; }
|
|
36
|
+
.theme-options ul { padding-left: 18px; margin: 0; }
|
|
37
|
+
.theme-options li + li { margin-top: 9px; }
|
|
38
|
+
.theme-type-details { margin: 0; font-size: 12px; }
|
|
39
|
+
.theme-type-details div { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 12px; }
|
|
40
|
+
.theme-type-details div + div { margin-top: 10px; }
|
|
41
|
+
.theme-type-details dt { color: var(--muted); }
|
|
42
|
+
.theme-type-details dd { margin: 0; }
|
|
43
|
+
.theme-actions { display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
|
|
44
|
+
.theme-actions .primary { justify-content: space-between; }
|
|
45
|
+
.theme-actions .text-button { align-self: flex-start; }
|
|
46
|
+
.theme-system-details { min-width: 0; margin-top: 26px; padding-top: 24px; border-top: 1px solid var(--line); }
|
|
47
|
+
.theme-system-details > section:first-child { margin-top: 0; }
|
|
48
|
+
.theme-options .theme-palette { list-style: none; padding: 0; display: grid; gap: 13px; }
|
|
49
|
+
.theme-palette li { display: flex; gap: 11px; align-items: flex-start; }
|
|
50
|
+
.theme-options .theme-palette li + li { margin-top: 0; }
|
|
51
|
+
.theme-color-swatch { display: block; width: 34px; height: 34px; flex: 0 0 34px; border-radius: 3px; box-shadow: inset 0 0 0 1px #00000022; }
|
|
52
|
+
.theme-palette li > div { min-width: 0; flex: 1; }
|
|
53
|
+
.theme-color-label { display: flex; align-items: baseline; flex-wrap: wrap; gap: 3px 10px; line-height: 1.3; }
|
|
54
|
+
.theme-color-label strong { font-size: 12px; font-weight: 500; color: var(--ink); }
|
|
55
|
+
.theme-color-label code { font-family: ui-monospace, monospace; font-size: 11px; color: var(--muted); }
|
|
56
|
+
.theme-palette p { margin-top: 4px; font-size: 12px; line-height: 1.5; }
|
|
57
|
+
.theme-used-by { padding-top: 22px; border-top: 1px solid var(--line); }
|
|
58
|
+
.theme-used-by a { display: flex; align-items: center; gap: 9px; min-height: 40px; font-size: 13px; line-height: 1.5; }
|
|
59
|
+
.theme-used-by a span { flex: 1; min-width: 0; }
|
|
60
|
+
.theme-used-by a:hover span { text-decoration: underline; text-underline-offset: 3px; }
|
|
61
|
+
@media (max-width: 1050px) {
|
|
62
|
+
.theme-detail-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; }
|
|
63
|
+
.theme-options { display: contents; }
|
|
64
|
+
.theme-options > header { position: static; grid-row: 1; margin: 0; max-width: 660px; }
|
|
65
|
+
.theme-options > header::before { content: none; }
|
|
66
|
+
.theme-options > .theme-actions { grid-row: 2; max-width: 400px; width: 100%; }
|
|
67
|
+
.theme-specimen-full { grid-row: 3; max-width: 704px; width: 100%; }
|
|
68
|
+
.theme-system-details { grid-row: 4; margin: 0; max-width: 660px; }
|
|
69
|
+
.theme-options .theme-palette { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px; }
|
|
70
|
+
}
|
|
71
|
+
@media (max-width: 620px) {
|
|
72
|
+
.themes-content .library-heading { align-items: flex-start; gap: 12px; flex-wrap: wrap; }
|
|
73
|
+
.theme-gallery { grid-template-columns: minmax(0, 1fr); gap: 30px; }
|
|
74
|
+
.theme-gallery-card { max-width: 350px; }
|
|
75
|
+
.theme-specimen { padding: 22px 26px; }
|
|
76
|
+
.theme-specimen-full { padding: 14px; }
|
|
77
|
+
.theme-actions .ui-button { white-space: normal; }
|
|
78
|
+
.theme-options .theme-palette { grid-template-columns: minmax(0, 1fr); }
|
|
79
|
+
}
|
|
80
|
+
@media (prefers-reduced-motion: reduce) { .theme-specimen { transition: none; } }
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import type React from "react";
|
|
2
|
+
|
|
3
|
+
export function Icon({ name, size = 18 }: { name: string; size?: number }) {
|
|
4
|
+
const paths: Record<string, React.ReactNode> = {
|
|
5
|
+
book: <><path d="M12 5c-3-2-6-2-9-1v15c3-1 6-1 9 1 3-2 6-2 9-1V4c-3-1-6-1-9 1Z" /><path d="M12 5v15" /></>,
|
|
6
|
+
history: <><path d="M3 11a9 9 0 1 1 2.6 7M3 4v7h7" /><path d="M12 7v5l3 2" /></>,
|
|
7
|
+
document: (
|
|
8
|
+
<>
|
|
9
|
+
<path d="M6 3h8l4 4v14H6z" />
|
|
10
|
+
<path d="M14 3v5h4M9 12h6M9 16h6" />
|
|
11
|
+
</>
|
|
12
|
+
),
|
|
13
|
+
documents: <><path d="M7 3h9l4 4v11H7zM16 3v5h4" /><path d="M4 7v14h12M10 12h7M10 15h5" /></>,
|
|
14
|
+
grid: (
|
|
15
|
+
<>
|
|
16
|
+
<rect x="4" y="4" width="6" height="6" rx="1" />
|
|
17
|
+
<rect x="14" y="4" width="6" height="6" rx="1" />
|
|
18
|
+
<rect x="4" y="14" width="6" height="6" rx="1" />
|
|
19
|
+
<rect x="14" y="14" width="6" height="6" rx="1" />
|
|
20
|
+
</>
|
|
21
|
+
),
|
|
22
|
+
image: <><rect x="3" y="4" width="18" height="16" rx="2"/><circle cx="8" cy="9" r="1.5"/><path d="m4 17 5-5 4 4 3-3 5 5"/></>,
|
|
23
|
+
sidebar: <><rect x="3" y="4" width="18" height="16" rx="2"/><path d="M9 4v16"/></>,
|
|
24
|
+
settings: <><path d="M4 7h16M4 17h16"/><circle cx="9" cy="7" r="3" fill="var(--surface)"/><circle cx="15" cy="17" r="3" fill="var(--surface)"/></>,
|
|
25
|
+
gear: <><path d="m9.5 3-.6 2.2-1.5.9-2.2-.6-2.5 4.3 1.6 1.6v1.8l-1.6 1.6 2.5 4.3 2.2-.6 1.5.9.6 2.2h5l.6-2.2 1.5-.9 2.2.6 2.5-4.3-1.6-1.6v-1.8l1.6-1.6-2.5-4.3-2.2.6-1.5-.9-.6-2.2Z"/><circle cx="12" cy="12" r="3"/></>,
|
|
26
|
+
folder: <path d="M3 7V5h7l2 2h9v13H3z"/>,
|
|
27
|
+
list: <><path d="M9 6h12M9 12h12M9 18h12" /><path d="M3 6h1M3 12h1M3 18h1" /></>,
|
|
28
|
+
sun: <><circle cx="12" cy="12" r="4" /><path d="M12 2v2M12 20v2M2 12h2M20 12h2M5 5l1.5 1.5M17.5 17.5 19 19M5 19l1.5-1.5M17.5 6.5 19 5" /></>,
|
|
29
|
+
moon: <path d="M20 14A8.5 8.5 0 0 1 10 4a8.5 8.5 0 1 0 10 10Z" />,
|
|
30
|
+
monitor: <><rect x="3" y="4" width="18" height="13" rx="2" /><path d="M12 17v4M8 21h8" /></>,
|
|
31
|
+
layout: <><rect x="3" y="4" width="18" height="16" rx="2"/><path d="M3 9h18M10 9v11"/></>,
|
|
32
|
+
theme: (
|
|
33
|
+
<>
|
|
34
|
+
<path d="M12 3a9 9 0 1 0 0 18h1.2a2.3 2.3 0 0 0 1.7-3.9 1.2 1.2 0 0 1 .9-2.1H17a4 4 0 0 0 4-4c0-4.4-4-8-9-8Z" />
|
|
35
|
+
<circle cx="7" cy="11" r="1" fill="currentColor" stroke="none" />
|
|
36
|
+
<circle cx="10" cy="7" r="1" fill="currentColor" stroke="none" />
|
|
37
|
+
<circle cx="15" cy="7" r="1" fill="currentColor" stroke="none" />
|
|
38
|
+
<circle cx="18" cy="11" r="1" fill="currentColor" stroke="none" />
|
|
39
|
+
</>
|
|
40
|
+
),
|
|
41
|
+
search: (
|
|
42
|
+
<>
|
|
43
|
+
<circle cx="10.5" cy="10.5" r="6.5" />
|
|
44
|
+
<path d="m16 16 5 5" />
|
|
45
|
+
</>
|
|
46
|
+
),
|
|
47
|
+
comment: <path d="M4 4h16v12H9l-5 4z" />,
|
|
48
|
+
download: (
|
|
49
|
+
<>
|
|
50
|
+
<path d="M12 3v12m-5-5 5 5 5-5M4 16v5h16v-5" />
|
|
51
|
+
</>
|
|
52
|
+
),
|
|
53
|
+
select: (
|
|
54
|
+
<>
|
|
55
|
+
<path d="M5 3v16l4-5 4 7 3-2-4-6 6-1z" />
|
|
56
|
+
</>
|
|
57
|
+
),
|
|
58
|
+
left: <path d="m14 5-7 7 7 7" />,
|
|
59
|
+
right: <path d="m10 5 7 7-7 7" />,
|
|
60
|
+
close: <path d="m6 6 12 12M6 18 18 6" />,
|
|
61
|
+
edit: <><path d="m15 5 4 4M4 20l4-1L20 7a2.8 2.8 0 0 0-4-4L4 15z" /></>,
|
|
62
|
+
trash: <><path d="M4 7h16M9 7V4h6v3M6 7l1 14h10l1-14M10 11v6M14 11v6" /></>,
|
|
63
|
+
plus: <path d="M12 5v14M5 12h14" />,
|
|
64
|
+
copy: (
|
|
65
|
+
<>
|
|
66
|
+
<rect x="8" y="8" width="12" height="13" rx="2" />
|
|
67
|
+
<path d="M16 8V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v9a2 2 0 0 0 2 2h3" />
|
|
68
|
+
</>
|
|
69
|
+
),
|
|
70
|
+
check: <path d="m4 12 5 5L20 6" />,
|
|
71
|
+
more: <><circle cx="5" cy="12" r="1" /><circle cx="12" cy="12" r="1" /><circle cx="19" cy="12" r="1" /></>,
|
|
72
|
+
down: <path d="m6 9 6 6 6-6" />,
|
|
73
|
+
undo: <><path d="m8 5-5 5 5 5M3 10h11a6 6 0 0 1 0 12" /></>,
|
|
74
|
+
redo: <path d="m16 5 5 5-5 5M21 10H10a6 6 0 0 0 0 12" />,
|
|
75
|
+
arrow: <path d="M5 12h14m-6-6 6 6-6 6" />,
|
|
76
|
+
};
|
|
77
|
+
return (
|
|
78
|
+
<svg
|
|
79
|
+
width={size}
|
|
80
|
+
height={size}
|
|
81
|
+
viewBox="0 0 24 24"
|
|
82
|
+
fill="none"
|
|
83
|
+
stroke="currentColor"
|
|
84
|
+
strokeWidth="1.6"
|
|
85
|
+
strokeLinecap="round"
|
|
86
|
+
strokeLinejoin="round"
|
|
87
|
+
aria-hidden="true"
|
|
88
|
+
>
|
|
89
|
+
{paths[name] ?? paths.document}
|
|
90
|
+
</svg>
|
|
91
|
+
);
|
|
92
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# OpenDoc UI
|
|
2
|
+
|
|
3
|
+
Use Base UI for interactive controls. The app uses plain CSS and local fonts; PDF document themes remain independent of the browser UI.
|
|
4
|
+
|
|
5
|
+
Text fields use a fine blue focus edge on the existing border with a soft 3px glow. Keep the edge flush with the control; search fields own focus on their wrapper, without a second ring on the inner input.
|
|
6
|
+
|
|
7
|
+
- `Button` preserves the Base UI props, refs, and `render` composition API. Use the `primary`, `text-button`, or `icon-button` class for the existing visual treatments. Standard buttons use a 32px minimum height and 6px radius, with 32px sidebar/menu rows and 40px document list rows. Sidebar and menu rows retain 44px touch targets. Controls retain a subtle press response; `static` disables press scaling. Use it for document cards, thumbnails, quote anchors, and precise PDF targets. PDF targets also retain their exact geometry instead of adopting minimum control dimensions.
|
|
8
|
+
- `IconButton` requires an accessible label and provides a tooltip. `ToggleButton` exposes controlled pressed state. Avoid adding tooltips to already descriptive document cards or PDF hit areas.
|
|
9
|
+
- `SelectControl` composes Base UI Select for short, labeled choices. Larger searchable sets should use Base UI Combobox when needed.
|
|
10
|
+
- All action menus and dropdown lists use the shared `ui-menu-*` / `ui-select-*` styles in `ui.css`: 12.5px regular labels, 32px rows (44px for touch), 4px popup padding, 6px corners, and compact separators. Action menus start at 184px wide; selects fit their trigger and content within the viewport. Use the `--menu-*` tokens to change density across the system. Domain styles must not override menu type, spacing, or surfaces. Use `ui-menu-item-danger` for destructive actions and `ui-menu-label`, `ui-menu-group`, and `ui-menu-check` for grouped and checked choices.
|
|
11
|
+
- Compose `Dialog.Trigger`, `Dialog.Close`, and `Dialog.Popup` within the same root so dismissal, focus containment, and focus restoration remain library-owned. Give each dialog a title and description.
|
|
12
|
+
- Use Base UI Popover and `ui-popover-popup` for anchored panels containing forms, such as the reader's Export dropdown. Reuse shared fields and `ui-menu-item` action rows; retain touch-aware focus, viewport bounds, and dismissal without losing an in-flight request. Previous exports opens after the dropdown restores focus to its trigger.
|
|
13
|
+
- `UiProvider` owns tooltip timing and notifications. Errors stay visible until dismissed; success notices expire and pause while interacting.
|
|
14
|
+
|
|
15
|
+
`ui.css` owns shared control styling, focus, popup layering, and reduced-motion behavior. `style.css` owns application layout and document surfaces. Keep domain components in `src/app`; add a shared abstraction only when it has a concrete use.
|
|
16
|
+
|
|
17
|
+
`SkillIndex` is the shared sidebar/reader reference tooltip. Its entries come from `.agents/skills/opendoc-*/agents/openai.yaml` at build time; edit `short_description` there using a JSON-quoted YAML string and rebuild. Keep names aligned with skill folders and frontmatter. The index lists skills for the external agent; it does not execute them.
|
|
18
|
+
|
|
19
|
+
`DocumentCard` uses Base UI Button around a live PDF.js cover. `PdfPage` remains responsible for canvas rendering, references, and component geometry. Text selection is confined to the floating text editor. Base UI Preview Card is a hover popup, not a PDF renderer. Component hit areas use shared Buttons with hover outlines and keyboard activation. Clicking a target selects it. The bottom bar’s Edit and Comment icons open one shared panel.
|
|
20
|
+
|
|
21
|
+
When changing controls, check keyboard activation, Escape, focus restoration, disabled states, and a narrow viewport. When changing document surfaces, check live covers, fit width, page entry, text selection, inspection, comments, and export. Use a temporary workspace for feedback tests so the user's comment history stays clean.
|
|
22
|
+
|
|
23
|
+
The app shell uses bundled Geist variable WOFF2 faces, including real italic and the full weight range, from `assets/ui-fonts/geist`. Document typography belongs to the PDF and theme specimens. UI sizes are explicit at native browser zoom: 18px page headings, 14px card/section titles, 13px body and control text, and 12.5px sidebar labels. Match density through these type and spacing tokens, not global CSS zoom or a transform on the app. Library pages have one title and one primary action, without a second breadcrumb header, promotional subtitle, or repeated document list. The reader uses one toolbar with document context, centered reading controls, and trailing actions. Document options contains project moves and appearance; compact layouts expose reading controls through the page counter while comments keep their own bottom-right dock. Document cards lead with the real preview, then the title and compact metadata. Keep secondary text readable; avoid uppercase micro-labels, decorative badges, floating arrow ornaments, and motion on the paper. Feedback uses compact rows with page/component labels, comment text, and pencil/trash actions. A fixed-width bottom bar owns selection actions, pending text changes, undo/redo, and Save all; draft PDFs stay separate from saved source.
|
|
24
|
+
|
|
25
|
+
## App color palette
|
|
26
|
+
|
|
27
|
+
`src/app/colors.css` owns the grayscale browser palette: `#F8F8F8` background and `#2777C1` primary accent. Use its semantic tokens throughout app styles, including surfaces, selection, errors, and shadows. Small interactive labels use the darker `--accent-ink` shade for contrast. Headings and secondary controls stay neutral. Status and error messages keep their explicit wording; color is not their only signal. The app supports light, dark, and system appearance, with stronger foregrounds/borders for increased contrast. PDF themes, theme swatches, and supplied media retain their own colors.
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/* Local variable UI faces. PDF font bindings remain independent. */
|
|
2
|
+
@font-face {
|
|
3
|
+
font-family: 'OpenDoc UI';
|
|
4
|
+
font-style: normal;
|
|
5
|
+
font-display: swap;
|
|
6
|
+
font-weight: 100 900;
|
|
7
|
+
src: url('/assets/ui-fonts/geist/geist-latin-ext-wght-normal.woff2') format('woff2-variations');
|
|
8
|
+
unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
@font-face {
|
|
12
|
+
font-family: 'OpenDoc UI';
|
|
13
|
+
font-style: normal;
|
|
14
|
+
font-display: swap;
|
|
15
|
+
font-weight: 100 900;
|
|
16
|
+
src: url('/assets/ui-fonts/geist/geist-latin-wght-normal.woff2') format('woff2-variations');
|
|
17
|
+
unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
@font-face {
|
|
21
|
+
font-family: 'OpenDoc UI';
|
|
22
|
+
font-style: italic;
|
|
23
|
+
font-display: swap;
|
|
24
|
+
font-weight: 100 900;
|
|
25
|
+
src: url('/assets/ui-fonts/geist/geist-latin-ext-wght-italic.woff2') format('woff2-variations');
|
|
26
|
+
unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
@font-face {
|
|
30
|
+
font-family: 'OpenDoc UI';
|
|
31
|
+
font-style: italic;
|
|
32
|
+
font-display: swap;
|
|
33
|
+
font-weight: 100 900;
|
|
34
|
+
src: url('/assets/ui-fonts/geist/geist-latin-wght-italic.woff2') format('woff2-variations');
|
|
35
|
+
unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
|
|
36
|
+
}
|
|
@@ -0,0 +1,223 @@
|
|
|
1
|
+
import type { ReactElement, ReactNode } from "react";
|
|
2
|
+
import { Button as BaseButton } from "@base-ui/react/button";
|
|
3
|
+
import { Toggle } from "@base-ui/react/toggle";
|
|
4
|
+
import { Select } from "@base-ui/react/select";
|
|
5
|
+
import { Tooltip } from "@base-ui/react/tooltip";
|
|
6
|
+
import { Toast } from "@base-ui/react/toast";
|
|
7
|
+
import { Icon } from "./Icon";
|
|
8
|
+
import "./ui.css";
|
|
9
|
+
|
|
10
|
+
export { Dialog } from "@base-ui/react/dialog";
|
|
11
|
+
export { Input } from "@base-ui/react/input";
|
|
12
|
+
export { Tabs } from "@base-ui/react/tabs";
|
|
13
|
+
|
|
14
|
+
// Keep the Base UI composition and ref API available to every consumer.
|
|
15
|
+
export type ButtonProps = BaseButton.Props & { static?: boolean };
|
|
16
|
+
|
|
17
|
+
export function Button({
|
|
18
|
+
className,
|
|
19
|
+
static: isStatic = false,
|
|
20
|
+
...props
|
|
21
|
+
}: ButtonProps) {
|
|
22
|
+
return (
|
|
23
|
+
<BaseButton
|
|
24
|
+
{...props}
|
|
25
|
+
data-static={isStatic || undefined}
|
|
26
|
+
className={(state) =>
|
|
27
|
+
`ui-button ${typeof className === "function" ? className(state) : (className ?? "")}`
|
|
28
|
+
}
|
|
29
|
+
/>
|
|
30
|
+
);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
function Hint({ label, children }: { label: string; children: ReactElement }) {
|
|
34
|
+
return (
|
|
35
|
+
<Tooltip.Root>
|
|
36
|
+
<Tooltip.Trigger render={children} />
|
|
37
|
+
<Tooltip.Portal>
|
|
38
|
+
<Tooltip.Positioner sideOffset={8}>
|
|
39
|
+
<Tooltip.Popup className="ui-tooltip">{label}</Tooltip.Popup>
|
|
40
|
+
</Tooltip.Positioner>
|
|
41
|
+
</Tooltip.Portal>
|
|
42
|
+
</Tooltip.Root>
|
|
43
|
+
);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export function IconButton({
|
|
47
|
+
label,
|
|
48
|
+
className,
|
|
49
|
+
...props
|
|
50
|
+
}: Omit<ButtonProps, "className"> & {
|
|
51
|
+
label: string;
|
|
52
|
+
className?: string;
|
|
53
|
+
}) {
|
|
54
|
+
return (
|
|
55
|
+
<Hint label={label}>
|
|
56
|
+
<Button
|
|
57
|
+
{...props}
|
|
58
|
+
aria-label={label}
|
|
59
|
+
className={`icon-button ${className ?? ""}`}
|
|
60
|
+
/>
|
|
61
|
+
</Hint>
|
|
62
|
+
);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export function ToggleButton({
|
|
66
|
+
label,
|
|
67
|
+
children,
|
|
68
|
+
static: isStatic = false,
|
|
69
|
+
...props
|
|
70
|
+
}: Toggle.Props & { label: string; static?: boolean }) {
|
|
71
|
+
return (
|
|
72
|
+
<Hint label={label}>
|
|
73
|
+
<Toggle
|
|
74
|
+
{...props}
|
|
75
|
+
data-static={isStatic || undefined}
|
|
76
|
+
aria-label={label}
|
|
77
|
+
className="ui-button tool-button"
|
|
78
|
+
>
|
|
79
|
+
{children}
|
|
80
|
+
</Toggle>
|
|
81
|
+
</Hint>
|
|
82
|
+
);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export function SelectControl({
|
|
86
|
+
label,
|
|
87
|
+
disabled,
|
|
88
|
+
value,
|
|
89
|
+
onValueChange,
|
|
90
|
+
items,
|
|
91
|
+
}: {
|
|
92
|
+
label: string;
|
|
93
|
+
disabled?: boolean;
|
|
94
|
+
value: string;
|
|
95
|
+
onValueChange: (value: string) => void;
|
|
96
|
+
items: { label: string; value: string }[];
|
|
97
|
+
}) {
|
|
98
|
+
return (
|
|
99
|
+
<Select.Root
|
|
100
|
+
disabled={disabled}
|
|
101
|
+
items={items}
|
|
102
|
+
value={value}
|
|
103
|
+
onValueChange={(next) => {
|
|
104
|
+
if (next !== null) onValueChange(next);
|
|
105
|
+
}}
|
|
106
|
+
>
|
|
107
|
+
<Select.Trigger
|
|
108
|
+
data-static
|
|
109
|
+
className="ui-button ui-select"
|
|
110
|
+
aria-label={label}
|
|
111
|
+
>
|
|
112
|
+
<Select.Value />
|
|
113
|
+
<Select.Icon>
|
|
114
|
+
<svg
|
|
115
|
+
width="12"
|
|
116
|
+
height="12"
|
|
117
|
+
viewBox="0 0 12 12"
|
|
118
|
+
fill="none"
|
|
119
|
+
aria-hidden="true"
|
|
120
|
+
>
|
|
121
|
+
<path
|
|
122
|
+
d="m3 4.5 3 3 3-3"
|
|
123
|
+
stroke="currentColor"
|
|
124
|
+
strokeWidth="1.4"
|
|
125
|
+
strokeLinecap="round"
|
|
126
|
+
strokeLinejoin="round"
|
|
127
|
+
/>
|
|
128
|
+
</svg>
|
|
129
|
+
</Select.Icon>
|
|
130
|
+
</Select.Trigger>
|
|
131
|
+
<Select.Portal>
|
|
132
|
+
<Select.Positioner
|
|
133
|
+
className="ui-positioner"
|
|
134
|
+
sideOffset={6}
|
|
135
|
+
align="start"
|
|
136
|
+
alignItemWithTrigger={false}
|
|
137
|
+
>
|
|
138
|
+
<Select.Popup className="ui-select-popup">
|
|
139
|
+
<Select.List>
|
|
140
|
+
{items.map((item) => (
|
|
141
|
+
<Select.Item
|
|
142
|
+
key={item.value}
|
|
143
|
+
value={item.value}
|
|
144
|
+
className="ui-select-item"
|
|
145
|
+
>
|
|
146
|
+
<Select.ItemText>{item.label}</Select.ItemText>
|
|
147
|
+
<Select.ItemIndicator>
|
|
148
|
+
<Icon name="check" size={14} />
|
|
149
|
+
</Select.ItemIndicator>
|
|
150
|
+
</Select.Item>
|
|
151
|
+
))}
|
|
152
|
+
</Select.List>
|
|
153
|
+
</Select.Popup>
|
|
154
|
+
</Select.Positioner>
|
|
155
|
+
</Select.Portal>
|
|
156
|
+
</Select.Root>
|
|
157
|
+
);
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
export function useNotifications() {
|
|
161
|
+
const manager = Toast.useToastManager();
|
|
162
|
+
return {
|
|
163
|
+
success: (title: string, action?: { label: string; onClick: () => void | Promise<void> }) => {
|
|
164
|
+
let pending = false;
|
|
165
|
+
const id = manager.add({ title, type: "success", ...(action ? { timeout: 12000, actionProps: { children: action.label, onClick: async () => {
|
|
166
|
+
if (pending) return;
|
|
167
|
+
pending = true;
|
|
168
|
+
try { await action.onClick(); manager.close(id); }
|
|
169
|
+
catch (error) { manager.add({ title: error instanceof Error ? error.message : 'The action could not finish. Try again.', type: 'error', timeout: 0, priority: 'high' }); }
|
|
170
|
+
finally { pending = false; }
|
|
171
|
+
} } } : {}) });
|
|
172
|
+
return id;
|
|
173
|
+
},
|
|
174
|
+
error: (title: string) =>
|
|
175
|
+
manager.add({ title, type: "error", timeout: 0, priority: "high" }),
|
|
176
|
+
};
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
function Notifications() {
|
|
180
|
+
const { toasts } = Toast.useToastManager();
|
|
181
|
+
return (
|
|
182
|
+
<Toast.Portal>
|
|
183
|
+
<Toast.Viewport className="ui-notifications">
|
|
184
|
+
{toasts.map((toast) => (
|
|
185
|
+
<Toast.Root
|
|
186
|
+
key={toast.id}
|
|
187
|
+
toast={toast}
|
|
188
|
+
className="ui-notification"
|
|
189
|
+
data-kind={toast.type}
|
|
190
|
+
>
|
|
191
|
+
<Toast.Content>
|
|
192
|
+
<Toast.Title className="ui-notification-title" />
|
|
193
|
+
{toast.actionProps && <Toast.Action render={<Button className="text-button notification-action" />} />}
|
|
194
|
+
</Toast.Content>
|
|
195
|
+
<Toast.Close
|
|
196
|
+
aria-hidden={false}
|
|
197
|
+
aria-label="Dismiss notification"
|
|
198
|
+
render={
|
|
199
|
+
<Button
|
|
200
|
+
className="icon-button"
|
|
201
|
+
aria-label="Dismiss notification"
|
|
202
|
+
/>
|
|
203
|
+
}
|
|
204
|
+
>
|
|
205
|
+
<Icon name="close" size={14} />
|
|
206
|
+
</Toast.Close>
|
|
207
|
+
</Toast.Root>
|
|
208
|
+
))}
|
|
209
|
+
</Toast.Viewport>
|
|
210
|
+
</Toast.Portal>
|
|
211
|
+
);
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
export function UiProvider({ children }: { children: ReactNode }) {
|
|
215
|
+
return (
|
|
216
|
+
<Tooltip.Provider delay={500}>
|
|
217
|
+
<Toast.Provider limit={3}>
|
|
218
|
+
{children}
|
|
219
|
+
<Notifications />
|
|
220
|
+
</Toast.Provider>
|
|
221
|
+
</Tooltip.Provider>
|
|
222
|
+
);
|
|
223
|
+
}
|