gutterpress 0.11.23-alpha.1 → 0.11.23-alpha.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +27 -29
- package/dist/{README-8ef336pp.md → README-8db7btxb.md} +13 -19
- package/dist/api/index.d.ts +5 -5
- package/dist/api/index.js +16 -22
- package/dist/{build-09cd1n7s.js → build-m78jcpf7.js} +9 -10
- package/dist/{cli-5hkmp2wy.js → cli-1h17ktsg.js} +125 -187
- package/dist/{cli-nr6j6300.js → cli-5jzyw06s.js} +1 -1
- package/dist/{cli-habkc5ng.js → cli-a35w7wzg.js} +5 -4
- package/dist/{cli-dd115fa8.js → cli-h4x81x97.js} +152 -124
- package/dist/{cli-ccp7sxz3.js → cli-n2tsxqpn.js} +1 -1
- package/dist/{cli-b0vyjvmt.js → cli-s6djx4ma.js} +1 -1
- package/dist/{cli-h17e3mtz.js → cli-t8be9yeb.js} +380 -16
- package/dist/{cli-dtckwda1.js → cli-xsrffqzt.js} +192 -10
- package/dist/{index-r7jcsk6h.js → cli-y28j019d.js} +19 -10
- package/dist/cli.js +12 -12
- package/dist/{doctor-nddspx4n.js → doctor-j71jqce3.js} +3 -3
- package/dist/engine/shared/gcpm-extract.d.ts +8 -0
- package/dist/engine/shared/print-area.d.ts +16 -4
- package/dist/{engine-yjzknt0g.js → engine-1r6q80tq.js} +3 -3
- package/dist/{engine-892swzzc.js → engine-m4y10shc.js} +1 -2
- package/dist/{ext-zjpen4yx.js → ext-fq2hg9va.js} +18 -33
- package/dist/{extension-restore-jvs60x9b.js → extension-restore-9dh7c4tp.js} +4 -4
- package/dist/{extension-restore-w8xt4kbq.js → extension-restore-tmxtzkm0.js} +5 -6
- package/dist/{gutterpress-viewer-701vf4qp.js → gutterpress-viewer-mafsby5k.js} +9 -2
- package/dist/{index-2jpk25en.js → index-0wee4408.js} +380 -16
- package/dist/index-46ycxe6r.js +18 -0
- package/dist/{cli-h3phdstf.js → index-5x42amh8.js} +19 -10
- package/dist/{index-m4hhzg3c.js → index-7pck1q9c.js} +174 -142
- package/dist/{index-93pqkvty.js → index-h6yk5tjx.js} +5 -4
- package/dist/{index-apc8w9w8.js → index-nedd07bk.js} +187 -2
- package/dist/{index-0w2azsk1.js → index-nvmf22rt.js} +2 -4
- package/dist/{index-zrhyb967.js → index-prqvz3xm.js} +510 -587
- package/dist/index.js +17 -23
- package/dist/lib/extension-manager.d.ts +24 -50
- package/dist/lib/extension-manifest.d.ts +1 -13
- package/dist/lib/extension-scaffold.d.ts +3 -3
- package/dist/lib/extension-specifier.d.ts +23 -6
- package/dist/lib/manifest.d.ts +15 -1
- package/dist/lib/markdown/assemble.d.ts +4 -3
- package/dist/lib/markdown/math.d.ts +1 -1
- package/dist/lib/npm-plugin-installer.d.ts +1 -1
- package/dist/lib/page-size.d.ts +34 -27
- package/dist/lib/plugin-vendor.d.ts +11 -3
- package/dist/lib/printsafe.d.ts +1 -0
- package/dist/lib/project-gitignore.d.ts +2 -2
- package/dist/lib/project-scaffold.d.ts +5 -7
- package/dist/lib/project-templates.d.ts +9 -3
- package/dist/lib/snippets.d.ts +2 -1
- package/dist/lib/style-resolver.d.ts +1 -2
- package/dist/manifest-8afhrk30.yaml +19 -0
- package/dist/manifest-d4f9q79e.yaml +23 -0
- package/dist/manifest-gf13sjp8.yaml +27 -0
- package/dist/manifest-my7mdv8j.yaml +23 -0
- package/dist/{manifest.schema-9aeaered.json → manifest.schema-650pe0d1.json} +17 -5
- package/dist/{new-xhq8wczn.js → new-s4zcaepg.js} +22 -21
- package/dist/{package-aenwjew3.json → package-awwkt7sa.json} +0 -1
- package/dist/{page-rules-nsj3aw42.css → page-rules-fj09xct5.css} +12 -40
- package/dist/{plugin.test.js-xgxrd8hf.tpl → plugin.test.js-gxzqqfdh.tpl} +0 -1
- package/dist/{plugins-9en8m9y0.js → plugins-4vaf27n9.js} +4 -4
- package/dist/{plugins-gf0gkjmv.js → plugins-80emnf31.js} +2 -2
- package/dist/{preflight-negnxg7b.js → preflight-c7w1xdn3.js} +9 -10
- package/dist/{preview-cep2s9cg.js → preview-mzytcwyk.js} +9 -10
- package/dist/{publish-xery6qc6.js → publish-fez14ad4.js} +9 -10
- package/dist/render.js +24 -561
- package/dist/schema/manifest.types.d.ts +22 -0
- package/dist/{source-provider-qbfknhyy.js → source-provider-98k5deda.js} +2 -2
- package/dist/{source-provider-2r74a7wp.js → source-provider-knmcam50.js} +2 -2
- package/dist/{tokens-7984461t.css → tokens-ye64p899.css} +5 -12
- package/dist/{validate-3d0sgf4g.js → validate-p2chr6hr.js} +9 -10
- package/package.json +1 -1
- package/dist/cli-fe43evmf.js +0 -212
- package/dist/index-dsvk7q6s.js +0 -229
- package/dist/manifest-8f10dr4f.yaml +0 -17
- package/dist/manifest-n1gh3qw5.yaml +0 -9
- package/dist/package-97gm31sg.json +0 -10
- package/dist/package-gag6ykwn.json +0 -10
- package/dist/package-nrhkwf2m.json +0 -10
- package/dist/package-zttkgydq.json +0 -10
- package/dist/theme-9c58td2d.css +0 -76
- package/dist/theme-h5recz6c.css +0 -61
- package/dist/theme-j2bagrfx.css +0 -59
- package/dist/theme-nn6d53zy.css +0 -71
package/README.md
CHANGED
|
@@ -143,19 +143,19 @@ source.
|
|
|
143
143
|
|
|
144
144
|
### `gutterpress new`
|
|
145
145
|
|
|
146
|
-
Scaffold a new book, plugin or
|
|
146
|
+
Scaffold a new book, plugin or look from an embedded starter template — the fastest way to start (see [Quick start](#quick-start)).
|
|
147
147
|
|
|
148
|
-
`--kind book` is the default. Every new book
|
|
148
|
+
`--kind book` is the default. Every new book has the preset it's designed for, the template's unless you choose: `dtrpg` (DriveThruRPG print-on-demand), `book` (neutral 6x9in trade book), or `custom` (you supply the trim size in points).
|
|
149
149
|
|
|
150
|
-
`--kind plugin` and `--kind
|
|
150
|
+
`--kind plugin` and `--kind look` scaffold an **extension package** instead — a folder with a `package.json` a book can load. The plugin starter carries a declarative marker table, a hand-written markdown-it rule, component CSS and a `bun test` fixture suite; the look starter carries the six-file layered CSS architecture (tokens / base / components / page-templates / page-rules / book), each sheet opening with its own OWNS / MUST NOT CONTAIN contract header. Both include a README explaining which conventions are load-bearing. An extension needs no preset, trim size or publish target, so the book-only flags below are rejected rather than ignored when `--kind` names one — and `--prefix`/`--description` are likewise rejected for a book.
|
|
151
151
|
|
|
152
152
|
```sh
|
|
153
153
|
gutterpress new <name> [--kind <id>] [options]
|
|
154
154
|
|
|
155
|
-
--kind <id> What to create: book (default), plugin,
|
|
156
|
-
--prefix <str> Class/custom-property prefix an extension claims (default: its slug, e.g. "field-notes-"); --kind plugin|
|
|
157
|
-
--description <text> One-line description recorded in the extension's metadata; --kind plugin|
|
|
158
|
-
--preset <id>
|
|
155
|
+
--kind <id> What to create: book (default), plugin, look
|
|
156
|
+
--prefix <str> Class/custom-property prefix an extension claims (default: its slug, e.g. "field-notes-"); --kind plugin|look only
|
|
157
|
+
--description <text> One-line description recorded in the extension's metadata; --kind plugin|look only
|
|
158
|
+
--preset <id> Preset the book is designed for: dtrpg, book, custom (default: the template's)
|
|
159
159
|
--author <name> Author name to record in the project
|
|
160
160
|
--dir <path> Parent directory to create the project in (default: current directory)
|
|
161
161
|
--folder <name> Folder name to create (default: a slug of the project name)
|
|
@@ -363,7 +363,7 @@ List, add, remove, enable, or disable the project's extensions. Markdown-it
|
|
|
363
363
|
plugins, looks (stylesheets) and component libraries are all extensions — one
|
|
364
364
|
`extensions:` list in `manifest.yaml`, in load order (see
|
|
365
365
|
[Extensions](#extensions) below). These are the same shared-lib functions the
|
|
366
|
-
desktop app's
|
|
366
|
+
desktop app's Extensions tab calls, so an extension added from the
|
|
367
367
|
terminal is the same entry the GUI shows.
|
|
368
368
|
|
|
369
369
|
```sh
|
|
@@ -392,32 +392,32 @@ Add an extension. What `SOURCE` is decides what happens:
|
|
|
392
392
|
|
|
393
393
|
- an **npm package** (`name` or `name@version`) is downloaded straight from
|
|
394
394
|
the registry along with its runtime dependencies, hash-verified, vendored
|
|
395
|
-
into the project under `
|
|
395
|
+
into the project under `extensions/npm/`, load-tested, and written back pinned
|
|
396
396
|
as `name@<exact version>`. This does not invoke npm, Bun, Node.js tooling,
|
|
397
397
|
or package install scripts;
|
|
398
|
-
- a **bundled
|
|
399
|
-
`markdown-it-
|
|
400
|
-
`gutterpress-math`)
|
|
398
|
+
- a **bundled name** — a markdown feature (`markdown-it-mark`,
|
|
399
|
+
`markdown-it-sub`, `markdown-it-sup`, `markdown-it-abbr`,
|
|
400
|
+
`gutterpress-gfm-alerts`, `gutterpress-math`) or a built-in look
|
|
401
|
+
(`clean-book`, `zine`, `technical-doc`, `academic`) — is simply listed:
|
|
402
|
+
nothing to install, works offline;
|
|
401
403
|
- a **folder or plugin-file path** is load-tested and listed as a
|
|
402
404
|
manifest-relative path, referenced in place — never copied;
|
|
403
405
|
- a **`.zip` or `.css` file**, or an **http(s) URL**, is validated (every
|
|
404
406
|
declared sheet must exist and parse; print-safety findings are warnings)
|
|
405
|
-
and landed in `extensions/<id>/`, then listed as `./extensions/<id
|
|
406
|
-
- with `--look`, `SOURCE` is a built-in look id, copied into
|
|
407
|
-
`extensions/<id>/` as the author's own editable files and listed.
|
|
407
|
+
and landed in `extensions/<id>/`, then listed as `./extensions/<id>`.
|
|
408
408
|
|
|
409
409
|
Adding something already listed re-pins or updates that entry instead of
|
|
410
410
|
adding a second one.
|
|
411
411
|
|
|
412
|
-
An npm install also makes sure the book's `.gitignore` ignores `
|
|
413
|
-
(append-only; an author's own `!
|
|
412
|
+
An npm install also makes sure the book's `.gitignore` ignores `extensions/npm/`
|
|
413
|
+
(append-only; an author's own `!extensions/npm/` re-include is respected and the
|
|
414
414
|
install warns that downloaded extensions shouldn't be committed). The manifest
|
|
415
415
|
pin is what travels with the book; the downloaded copy does not.
|
|
416
416
|
|
|
417
417
|
##### Restoring pinned extensions
|
|
418
418
|
|
|
419
419
|
A fresh clone has `manifest.yaml`'s `name@version` pins but not the downloaded
|
|
420
|
-
copies under `
|
|
420
|
+
copies under `extensions/npm/`. `build`, `validate`, `preflight` and `preview`
|
|
421
421
|
download any missing (or incomplete) pinned version before they load plugins —
|
|
422
422
|
exactly the pinned version, through the same registry-resolved, hash-verified,
|
|
423
423
|
load-tested install as `ext add`, without touching the manifest. Builds and
|
|
@@ -429,7 +429,7 @@ paths and bundled features are never touched. The plugin loader itself stays
|
|
|
429
429
|
offline. The desktop app does the same when it opens a book.
|
|
430
430
|
|
|
431
431
|
Once a package's pinned version is installed (by `ext add` or a restore), its
|
|
432
|
-
other downloaded versions under `
|
|
432
|
+
other downloaded versions under `extensions/npm/<name>/` are deleted — a cache
|
|
433
433
|
that a pulled pin or branch switch would otherwise leave to pile up — except a
|
|
434
434
|
version another enabled manifest entry still pins. A failed install removes the
|
|
435
435
|
folders it created and nothing else.
|
|
@@ -438,7 +438,6 @@ folders it created and nothing else.
|
|
|
438
438
|
gutterpress ext add <source> [dir] [options]
|
|
439
439
|
|
|
440
440
|
--export <name> Named module export to use as the plugin function (npm and path extensions only)
|
|
441
|
-
--look Treat SOURCE as a built-in look id (clean-book, zine, technical-doc, academic): copy it into extensions/ and add it
|
|
442
441
|
```
|
|
443
442
|
|
|
444
443
|
```sh
|
|
@@ -447,7 +446,7 @@ gutterpress ext add markdown-it-highlightjs@4.3.0 ./my-book
|
|
|
447
446
|
gutterpress ext add markdown-it-emoji@3.0.0 ./my-book --export full
|
|
448
447
|
gutterpress ext add markdown-it-mark ./my-book
|
|
449
448
|
gutterpress ext add ./plugins/field-notes ./my-book
|
|
450
|
-
gutterpress ext add zine ./my-book
|
|
449
|
+
gutterpress ext add zine ./my-book
|
|
451
450
|
gutterpress ext add ./parchment.zip ./my-book
|
|
452
451
|
gutterpress ext add https://example.com/looks/cool/ ./my-book
|
|
453
452
|
```
|
|
@@ -456,12 +455,12 @@ gutterpress ext add https://example.com/looks/cool/ ./my-book
|
|
|
456
455
|
|
|
457
456
|
Remove an extension from the manifest, by the specifier as written there (for
|
|
458
457
|
an npm package the bare name is enough). An npm extension's vendored copy
|
|
459
|
-
under `
|
|
458
|
+
under `extensions/npm/` is deleted too; a path extension's folder is yours and is
|
|
460
459
|
never touched.
|
|
461
460
|
|
|
462
461
|
```sh
|
|
463
462
|
gutterpress ext remove markdown-it-highlightjs ./my-book
|
|
464
|
-
gutterpress ext remove
|
|
463
|
+
gutterpress ext remove zine ./my-book
|
|
465
464
|
```
|
|
466
465
|
|
|
467
466
|
#### `gutterpress ext enable` / `gutterpress ext disable`
|
|
@@ -476,8 +475,8 @@ gutterpress ext enable markdown-it-mark ./my-book
|
|
|
476
475
|
|
|
477
476
|
#### `gutterpress ext search`
|
|
478
477
|
|
|
479
|
-
Search **npm** for extensions — the same list the desktop app's
|
|
480
|
-
shows under
|
|
478
|
+
Search **npm** for extensions — the same list the desktop app's Extensions tab
|
|
479
|
+
shows under *Search*. Not project-scoped (no `dir` argument): it
|
|
481
480
|
queries the registry for packages tagged `gutterpress` (Gutterpress
|
|
482
481
|
extensions: plugins, looks, component libraries) or `markdown-it-plugin` (the
|
|
483
482
|
markdown-it ecosystem's own tag — those work in Gutterpress unchanged), and
|
|
@@ -522,7 +521,7 @@ extensions:
|
|
|
522
521
|
# a feature bundled with Gutterpress — nothing to install, works offline
|
|
523
522
|
- markdown-it-mark
|
|
524
523
|
# a folder or plugin file, relative to manifest.yaml — referenced in place
|
|
525
|
-
- ./extensions/
|
|
524
|
+
- ./extensions/house-look
|
|
526
525
|
- ./plugins/my-custom-plugin.js
|
|
527
526
|
# an npm package, pinned to the exact version `gutterpress ext add` installed
|
|
528
527
|
- markdown-it-highlightjs@4.3.0
|
|
@@ -548,8 +547,7 @@ An extension folder (or npm package) describes itself in its **`package.json`**
|
|
|
548
547
|
"gutterpress": {
|
|
549
548
|
"styles": ["styles/plugin.css"],
|
|
550
549
|
"snippets": "snippets",
|
|
551
|
-
"components": "components.yaml"
|
|
552
|
-
"tokensFile": "styles/tokens.css"
|
|
550
|
+
"components": "components.yaml"
|
|
553
551
|
}
|
|
554
552
|
}
|
|
555
553
|
```
|
|
@@ -558,7 +556,7 @@ An extension folder (or npm package) describes itself in its **`package.json`**
|
|
|
558
556
|
|
|
559
557
|
Order is load order: a later entry's markdown runs after earlier entries' (and sees their output) and its CSS wins ties — each extension's stylesheets are wrapped in their own cascade layer (`@layer ext.<name>`), declared in list order, so this holds however an extension writes its CSS; the project's own `styles:` stay unlayered and load after every extension, beating all of them at any specificity. There is no `priority` and no `path:`/`name:` wrapper — a manifest still carrying `plugins:` fails with a message that prints the same entries rewritten as `extensions:`. The `engine:` and `engineStyles:` keys are gone too (there is one engine; move any `engineStyles` entries to the end of `styles:`).
|
|
560
558
|
|
|
561
|
-
Pinned npm packages and their runtime dependencies live under `
|
|
559
|
+
Pinned npm packages and their runtime dependencies live under `extensions/npm/`
|
|
562
560
|
as a plain nested `node_modules` tree, which Node's own module resolution loads.
|
|
563
561
|
The pin travels with the project; the downloaded copy is gitignored, and
|
|
564
562
|
`build`, `validate`, `preflight` and `preview` download a missing pinned version first
|
|
@@ -17,7 +17,7 @@ arrangement of the files is the part worth keeping.
|
|
|
17
17
|
├── base.css element baseline. Bare p/h2/table/code.
|
|
18
18
|
├── components.css named components + their public tokens.
|
|
19
19
|
├── page-templates.css .page.* layouts — arrangement WITHIN a page.
|
|
20
|
-
├── page-rules.css @page
|
|
20
|
+
├── page-rules.css @page margin boxes, running heads, named pages.
|
|
21
21
|
└── book.css this book's overrides. Loads last.
|
|
22
22
|
```
|
|
23
23
|
|
|
@@ -64,7 +64,7 @@ instantly: **where does this rule go?**
|
|
|
64
64
|
| what a plain paragraph or table looks like | `base.css` |
|
|
65
65
|
| a named thing an author opts into | `components.css` |
|
|
66
66
|
| how one page arranges its content | `page-templates.css` |
|
|
67
|
-
|
|
|
67
|
+
| folios, running heads, named pages | `page-rules.css` |
|
|
68
68
|
| one chapter of one book | `book.css` |
|
|
69
69
|
|
|
70
70
|
If a rule seems to belong in two of them, it is usually two rules.
|
|
@@ -156,23 +156,17 @@ author retypes must be found and replaced across every chapter when it
|
|
|
156
156
|
changes. A variant expressed as a component name plus a CSS rule changes in
|
|
157
157
|
one place, and chapters written afterwards get it for free.
|
|
158
158
|
|
|
159
|
-
### 4.
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
costs money rather than time.
|
|
171
|
-
|
|
172
|
-
The manifest's `preset:`/`page:` remains the source of truth: it is what
|
|
173
|
-
`gutterpress validate` measures the produced PDF against, and what the publish
|
|
174
|
-
targets check. The CSS line is the instruction that satisfies it. Change one,
|
|
175
|
-
change the other — and let validate catch you when you forget.
|
|
159
|
+
### 4. The page size and margins are the book's, not the look's
|
|
160
|
+
|
|
161
|
+
A look never declares `@page { size }` or `@page { margin }`. The book's
|
|
162
|
+
manifest records both (`preset:`, `page: width / height / margin`, which the
|
|
163
|
+
app edits under Setup > Details), and the build writes them as the `@page`
|
|
164
|
+
rule after every stylesheet, so a `size` in a look is ignored and reported by
|
|
165
|
+
the print-safety check, and a `margin` holds only until the author sets
|
|
166
|
+
margins in the app. `page-rules.css` owns what IS a look's: the margin boxes
|
|
167
|
+
(folios, running heads) and the named pages. Design them to sit in whatever
|
|
168
|
+
margin the book gives them — a folio at `@bottom-right` needs no particular
|
|
169
|
+
margin to work.
|
|
176
170
|
|
|
177
171
|
### 5. Keep the catalog honest
|
|
178
172
|
|
package/dist/api/index.d.ts
CHANGED
|
@@ -34,10 +34,10 @@ export { listBuiltInTemplates, listCustomTemplates, saveProjectAsTemplate, impor
|
|
|
34
34
|
export type { TemplateInfo, SaveProjectAsTemplateOptions, } from "../lib/project-templates.ts";
|
|
35
35
|
export { extractVariables, substituteVariables, listSnippets, saveSnippet, deleteSnippet, listMergedSnippets, listMarkerComponents, listLocationVariants, SNIPPETS_DIR, } from "../lib/snippets.ts";
|
|
36
36
|
export type { LocationVariant, MarkerComponent, SnippetEntry, SnippetSource } from "../lib/snippets.ts";
|
|
37
|
-
export { listProjectExtensions, describeExtension, addExtension, checkExtensionUpdates, listNpmVersions, updateExtensions, removeExtension, setExtensionEnabled, reorderExtensions, validateProjectExtensions, readExtensionCss,
|
|
38
|
-
export type { ProjectExtensionEntry, ExtensionValidationResult,
|
|
39
|
-
export { BUNDLED_EXTENSIONS, isBundledExtension, isPathSpecifier, parseExtensionSpecifier, } from "../lib/extension-specifier.ts";
|
|
40
|
-
export type { ParsedExtensionSpecifier } from "../lib/extension-specifier.ts";
|
|
37
|
+
export { listProjectExtensions, describeExtension, addExtension, checkExtensionUpdates, listNpmVersions, updateExtensions, removeExtension, setExtensionEnabled, reorderExtensions, validateProjectExtensions, readExtensionCss, listBundledExtensions, sameExtension, EXTENSIONS_DIR, } from "../lib/extension-manager.ts";
|
|
38
|
+
export type { ProjectExtensionEntry, ExtensionValidationResult, BundledExtensionInfo, ExtensionSourceKind, AddExtensionOptions, ExtensionUpdateCheck, ExtensionUpdateResult, CheckExtensionUpdatesOptions, UpdateExtensionsOptions, } from "../lib/extension-manager.ts";
|
|
39
|
+
export { BUNDLED_EXTENSIONS, bundledExtension, isBundledExtension, isPathSpecifier, parseExtensionSpecifier, } from "../lib/extension-specifier.ts";
|
|
40
|
+
export type { BundledExtension, ParsedExtensionSpecifier } from "../lib/extension-specifier.ts";
|
|
41
41
|
export { restorePinnedExtensions, restoreFailureMessage } from "../lib/extension-restore.ts";
|
|
42
42
|
export type { RestorePinnedOptions, RestoreResult, RestoreFailure, RestoreProgress } from "../lib/extension-restore.ts";
|
|
43
43
|
export { importExtensionFromFile, importExtensionFromUrl } from "../lib/extension-import.ts";
|
|
@@ -52,7 +52,7 @@ export type { ProjectStyle } from "../lib/style-resolver.ts";
|
|
|
52
52
|
export { readManifestFields, setManifestFields, setActiveStyles, } from "../lib/manifest-config.ts";
|
|
53
53
|
export type { ProjectConfigFields } from "../lib/manifest-config.ts";
|
|
54
54
|
export { readPageSetup, setPageSetup } from "../lib/page-size.ts";
|
|
55
|
-
export type { PageSetup, PageSizeChoice, PageSizePoints } from "../lib/page-size.ts";
|
|
55
|
+
export type { PageMargin, PageSetup, PageSetupChange, PageSizeChoice, PageSizePoints } from "../lib/page-size.ts";
|
|
56
56
|
export { providerFor, restoreVersionWithBackup, isNoChangesError, countUnversionedChanges, whenGitIdle, AUTO_SNAPSHOT_MESSAGE, RESTORE_BACKUP_MESSAGE, HISTORY_PAGE_LIMIT, listLocalBranches, switchBranch, SWITCH_BRANCH_SNAPSHOT_MESSAGE, } from "../lib/source-provider.ts";
|
|
57
57
|
export type { ListHistoryOptions, HistoryPage, UnversionedChanges, LocalBranches, SwitchBranchOptions, SwitchBranchResult, } from "../lib/source-provider.ts";
|
|
58
58
|
export { describeVersions, listOnlineVersions, compareVersionFile, exportVersionTree, VERSION_CHANGES_SHOWN, } from "../lib/version-changes.ts";
|
package/dist/api/index.js
CHANGED
|
@@ -101,32 +101,24 @@ import {
|
|
|
101
101
|
substituteVariables,
|
|
102
102
|
syncProject,
|
|
103
103
|
testRemoteAccess
|
|
104
|
-
} from "../index-
|
|
104
|
+
} from "../index-prqvz3xm.js";
|
|
105
105
|
import {
|
|
106
|
-
BUILT_IN_STYLE_SET_IDS,
|
|
107
|
-
BUNDLED_EXTENSIONS,
|
|
108
106
|
DEFAULT_NPM_REGISTRY,
|
|
109
|
-
EXTENSIONS_DIR,
|
|
110
107
|
MANIFEST_FILENAMES,
|
|
111
108
|
PRESETS,
|
|
112
109
|
PRESET_IDS,
|
|
113
|
-
RECOMMENDED_EXTENSIONS,
|
|
114
110
|
TARGETS,
|
|
115
111
|
TARGET_IDS,
|
|
116
|
-
addBuiltInStyleSet,
|
|
117
112
|
addExtension,
|
|
118
113
|
checkExtensionUpdates,
|
|
119
114
|
describeExtension,
|
|
120
115
|
ensureProjectGitignore,
|
|
121
116
|
hasProjectManifest,
|
|
122
|
-
|
|
123
|
-
isPathSpecifier,
|
|
124
|
-
listBuiltInStyleSets,
|
|
117
|
+
listBundledExtensions,
|
|
125
118
|
listNpmVersions,
|
|
126
119
|
listProjectExtensions,
|
|
127
120
|
loadManifestWithPath,
|
|
128
121
|
npmRegistryUrl,
|
|
129
|
-
parseExtensionSpecifier,
|
|
130
122
|
publishTargetFor,
|
|
131
123
|
readExtensionCss,
|
|
132
124
|
removeExtension,
|
|
@@ -138,22 +130,27 @@ import {
|
|
|
138
130
|
setExtensionEnabled,
|
|
139
131
|
updateExtensions,
|
|
140
132
|
validateProjectExtensions
|
|
141
|
-
} from "../index-
|
|
133
|
+
} from "../index-7pck1q9c.js";
|
|
142
134
|
import {
|
|
135
|
+
BUNDLED_EXTENSIONS,
|
|
143
136
|
EXTENSION_MANIFEST_FILENAME,
|
|
144
137
|
assertExtensionContained,
|
|
138
|
+
bundledExtension,
|
|
145
139
|
extensionCarries,
|
|
146
140
|
extensionEntry,
|
|
147
141
|
extensionStyleList,
|
|
142
|
+
isBundledExtension,
|
|
143
|
+
isPathSpecifier,
|
|
144
|
+
parseExtensionSpecifier,
|
|
148
145
|
pathEscapesFolder,
|
|
149
146
|
readExtensionMeta,
|
|
150
147
|
resolveExtension
|
|
151
|
-
} from "../index-
|
|
148
|
+
} from "../index-0wee4408.js";
|
|
152
149
|
import"../index-ht1bcqdd.js";
|
|
153
|
-
import"../index-
|
|
150
|
+
import"../index-nedd07bk.js";
|
|
154
151
|
import {
|
|
155
152
|
BuildError
|
|
156
|
-
} from "../index-
|
|
153
|
+
} from "../index-46ycxe6r.js";
|
|
157
154
|
import"../index-2ppw6q9v.js";
|
|
158
155
|
import {
|
|
159
156
|
DEFAULT_PRINT_OPTS,
|
|
@@ -173,10 +170,10 @@ import {
|
|
|
173
170
|
restoreVersionWithBackup,
|
|
174
171
|
switchBranch,
|
|
175
172
|
whenGitIdle
|
|
176
|
-
} from "../index-
|
|
173
|
+
} from "../index-h6yk5tjx.js";
|
|
177
174
|
import {
|
|
178
|
-
|
|
179
|
-
} from "../index-
|
|
175
|
+
EXTENSIONS_DIR
|
|
176
|
+
} from "../index-5x42amh8.js";
|
|
180
177
|
import {
|
|
181
178
|
capabilitiesFor,
|
|
182
179
|
detectProjectSource,
|
|
@@ -266,8 +263,8 @@ export {
|
|
|
266
263
|
listGitHubRepositories,
|
|
267
264
|
listGitHubBranches,
|
|
268
265
|
listCustomTemplates,
|
|
266
|
+
listBundledExtensions,
|
|
269
267
|
listBuiltInTemplates,
|
|
270
|
-
listBuiltInStyleSets,
|
|
271
268
|
listBookPublishProviders,
|
|
272
269
|
knownForgeTokenUrl,
|
|
273
270
|
isValidRepositoryName,
|
|
@@ -307,13 +304,13 @@ export {
|
|
|
307
304
|
checkRemoteUpdates,
|
|
308
305
|
checkExtensionUpdates,
|
|
309
306
|
capabilitiesFor,
|
|
307
|
+
bundledExtension,
|
|
310
308
|
autoSyncDelayMs,
|
|
311
309
|
autoSnapshotDelayMs,
|
|
312
310
|
assertMilestone,
|
|
313
311
|
assertExtensionContained,
|
|
314
312
|
adoptFolder,
|
|
315
313
|
addExtension,
|
|
316
|
-
addBuiltInStyleSet,
|
|
317
314
|
VERSION_CHANGES_SHOWN,
|
|
318
315
|
TARGET_IDS,
|
|
319
316
|
TARGETS,
|
|
@@ -324,11 +321,9 @@ export {
|
|
|
324
321
|
RESTORE_BACKUP_MESSAGE,
|
|
325
322
|
RESERVED_PREFIX,
|
|
326
323
|
REPAIR_SNAPSHOT_MESSAGE,
|
|
327
|
-
RECOMMENDED_EXTENSIONS,
|
|
328
324
|
PublishSelectionsStore,
|
|
329
325
|
PRESET_IDS,
|
|
330
326
|
PRESETS,
|
|
331
|
-
PLUGINS_DIR,
|
|
332
327
|
MAX_SEARCH_BYTES,
|
|
333
328
|
MANIFEST_FILENAMES,
|
|
334
329
|
HISTORY_PAGE_LIMIT,
|
|
@@ -346,7 +341,6 @@ export {
|
|
|
346
341
|
BuildError,
|
|
347
342
|
BUNDLED_EXTENSIONS,
|
|
348
343
|
BUILT_IN_TEMPLATE_IDS,
|
|
349
|
-
BUILT_IN_STYLE_SET_IDS,
|
|
350
344
|
AUTO_SYNC_PUSH_INTERVAL_MINUTES,
|
|
351
345
|
AUTO_SYNC_MIN_MINUTES,
|
|
352
346
|
AUTO_SYNC_MAX_MINUTES,
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
2
|
runBuild,
|
|
3
3
|
splitOutPath
|
|
4
|
-
} from "./cli-
|
|
5
|
-
import"./cli-
|
|
4
|
+
} from "./cli-1h17ktsg.js";
|
|
5
|
+
import"./cli-n2tsxqpn.js";
|
|
6
6
|
import"./cli-ht1bcqdd.js";
|
|
7
|
-
import"./cli-
|
|
7
|
+
import"./cli-xsrffqzt.js";
|
|
8
8
|
import"./cli-2ppw6q9v.js";
|
|
9
9
|
import"./cli-eyyggect.js";
|
|
10
10
|
import"./cli-asap4t1z.js";
|
|
11
|
-
import"./cli-
|
|
11
|
+
import"./cli-a35w7wzg.js";
|
|
12
12
|
import"./cli-v5mp7a6q.js";
|
|
13
|
-
import"./cli-
|
|
14
|
-
import"./cli-
|
|
13
|
+
import"./cli-h4x81x97.js";
|
|
14
|
+
import"./cli-t8be9yeb.js";
|
|
15
15
|
import {
|
|
16
16
|
log
|
|
17
|
-
} from "./cli-
|
|
17
|
+
} from "./cli-s6djx4ma.js";
|
|
18
18
|
import {
|
|
19
19
|
UsageError,
|
|
20
20
|
parseFormat,
|
|
@@ -22,12 +22,11 @@ import {
|
|
|
22
22
|
rejectExtraPositionals,
|
|
23
23
|
rejectUnknownFlags
|
|
24
24
|
} from "./cli-d8xjns66.js";
|
|
25
|
-
import"./cli-
|
|
26
|
-
import"./cli-fe43evmf.js";
|
|
25
|
+
import"./cli-5jzyw06s.js";
|
|
27
26
|
import {
|
|
28
27
|
BuildError
|
|
29
28
|
} from "./cli-46ycxe6r.js";
|
|
30
|
-
import"./cli-
|
|
29
|
+
import"./cli-y28j019d.js";
|
|
31
30
|
import"./cli-37x76zdn.js";
|
|
32
31
|
|
|
33
32
|
// src/commands/build.ts
|