@popcraft/cli 0.53.7 → 0.53.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/popcraft.mjs +14 -14
  2. package/package.json +2 -2
package/dist/popcraft.mjs CHANGED
@@ -295,12 +295,14 @@ var init_page_presets = __esm({
295
295
  p("poster-18x24", "Poster 18\xD724", "PRINT", 18, 24, "in", PRINT_IN),
296
296
  // Comics: the trim sizes the direct market and the manga trade actually print at.
297
297
  p("comic-page", "Comic page", "PRINT", 6.625, 10.25, "in", PRINT_IN),
298
- p("comic-cover", "Comic cover", "PRINT", 6.875, 10.5, "in", PRINT_IN),
298
+ // A cover is trimmed with the pages, so it is the page's trim: 6.875 × 10.5 was the page WITH its bleed, which
299
+ // made a cover larger than the book it binds into (and every interior page a smaller page on an oversized sheet).
300
+ p("comic-cover", "Comic cover", "PRINT", 6.625, 10.25, "in", PRINT_IN),
299
301
  p("comic-strip", "Comic strip", "PRINT", 13, 4, "in", { ...PRINT_IN, bleed: 0, margin: 0.2 }),
300
302
  p("manga-page", "Manga page (B5)", "PRINT", 182, 257, "mm", PRINT_MM),
301
303
  // Spreads: two trim pages side by side, with a fold guide down the middle where the gutter falls.
302
304
  p("comic-spread", "Comic spread", "PRINT", 13.25, 10.25, "in", { ...PRINT_IN, folds: { axis: "X", at: [0.5] }, sheetOf: { presetId: "comic-page", across: 2 } }),
303
- p("comic-wrap", "Comic cover wrap", "PRINT", 13.75, 10.5, "in", { ...PRINT_IN, folds: { axis: "X", at: [0.5] }, sheetOf: { presetId: "comic-cover", across: 2 } }),
305
+ p("comic-wrap", "Comic cover wrap", "PRINT", 13.25, 10.25, "in", { ...PRINT_IN, folds: { axis: "X", at: [0.5] }, sheetOf: { presetId: "comic-cover", across: 2 } }),
304
306
  p("poster-24x36", "Poster 24\xD736", "PRINT", 24, 36, "in", PRINT_IN),
305
307
  // Social
306
308
  p("ig-post", "Instagram post", "SOCIAL", 1080, 1080, "px"),
@@ -1196,7 +1198,7 @@ function operations(spec = openapi) {
1196
1198
  }
1197
1199
  async function call(target2, method, path, opts = {}) {
1198
1200
  const qs = new URLSearchParams(opts.query ?? {}).toString();
1199
- const headers = { "user-agent": `popcraft-cli/${"0.53.7"}`, ...opts.headers };
1201
+ const headers = { "user-agent": `popcraft-cli/${"0.53.9"}`, ...opts.headers };
1200
1202
  if (target2.token) headers.authorization = `Bearer ${target2.token}`;
1201
1203
  if (opts.contentType) headers["content-type"] = opts.contentType;
1202
1204
  try {
@@ -94510,7 +94512,6 @@ function hasMessage(key5) {
94510
94512
  var current2, loading, listeners, formats, asts;
94511
94513
  var init_runtime = __esm({
94512
94514
  "lib/i18n/runtime.ts"() {
94513
- "use strict";
94514
94515
  init_intl_messageformat();
94515
94516
  init_icu_messageformat_parser();
94516
94517
  init_catalogs();
@@ -96213,7 +96214,6 @@ function repairDocumentPaints(doc2) {
96213
96214
  var broken;
96214
96215
  var init_paint_repair = __esm({
96215
96216
  "lib/document/paint-repair.ts"() {
96216
- "use strict";
96217
96217
  init_shader_graph();
96218
96218
  broken = (p2) => {
96219
96219
  if (!p2 || typeof p2 !== "object") return false;
@@ -252662,6 +252662,7 @@ function resizeWindow(doc2, target2, rect) {
252662
252662
  }
252663
252663
  var init_crop = __esm({
252664
252664
  "lib/editor/crop.ts"() {
252665
+ "use strict";
252665
252666
  init_dist_node();
252666
252667
  init_scene_graph();
252667
252668
  init_photo_frames();
@@ -256194,6 +256195,7 @@ fn shade(uv: vec2<f32>, res: vec2<f32>, tm: f32) -> vec4<f32> {
256194
256195
  var SHADER_PRESETS, shaderPreset, legacyPresetOf, DEFAULT_SHADER_PRESET, DEFAULT_TEXTURE_PARAMS, f, vec4, NOISE_LIB;
256195
256196
  var init_shader_presets = __esm({
256196
256197
  "lib/engine/shader-presets.ts"() {
256198
+ "use strict";
256197
256199
  init_shader_graph();
256198
256200
  init_shader_graph_presets();
256199
256201
  init_shader_presets_legacy();
@@ -256744,7 +256746,6 @@ function mergeFonts(fonts, incoming) {
256744
256746
  var fontWeightOf, fontStyleOf, sameSlot, hashOf, documentFontHashes;
256745
256747
  var init_document_fonts = __esm({
256746
256748
  "lib/fonts/document-fonts.ts"() {
256747
- "use strict";
256748
256749
  init_media_store();
256749
256750
  init_media_hash();
256750
256751
  fontWeightOf = (f2) => f2.weight ?? 400;
@@ -262764,7 +262765,6 @@ function formatDate(date5, opts = { month: "short", day: "numeric", year: "numer
262764
262765
  var cache5, nf;
262765
262766
  var init_format = __esm({
262766
262767
  "lib/i18n/format.ts"() {
262767
- "use strict";
262768
262768
  init_runtime();
262769
262769
  cache5 = /* @__PURE__ */ new Map();
262770
262770
  nf = (opts) => cached2("n", opts, (l) => new Intl.NumberFormat(l, opts));
@@ -311782,7 +311782,6 @@ function startCloudSync() {
311782
311782
  var status, readOnlyDoc, activeLink, statusListeners, notice, urlArmed, opening, syncStatus, canEdit, uploaded, MEDIA_UPLOAD_PARALLEL, pushTimer, pushing, dirty, pendingMedia, collab, collabSession, collabAnonymous, uploadedThumbs, thumbCheckedAt, THUMB_EVERY_MS, THUMB_MIN_GAP_MS, putThumbnail, openingFiles, mediaHealed, started2;
311783
311783
  var init_sync2 = __esm({
311784
311784
  "lib/client/cloud/sync.ts"() {
311785
- "use strict";
311786
311785
  init_paint_repair();
311787
311786
  init_migrate();
311788
311787
  init_view();
@@ -311992,6 +311991,7 @@ async function dispatchShaped(key5, options) {
311992
311991
  var onViolation;
311993
311992
  var init_dispatch = __esm({
311994
311993
  "lib/commands/dispatch.ts"() {
311994
+ "use strict";
311995
311995
  init_errors();
311996
311996
  init_registry();
311997
311997
  init_confirm();
@@ -312391,7 +312391,6 @@ function creditLine(c2) {
312391
312391
  var MAX_PHOTO_PAGE, MAX_PHOTO_QUERY, UUID, isPhotoId, photoImagePath;
312392
312392
  var init_stock = __esm({
312393
312393
  "lib/photos/stock.ts"() {
312394
- "use strict";
312395
312394
  MAX_PHOTO_PAGE = 12;
312396
312395
  MAX_PHOTO_QUERY = 200;
312397
312396
  UUID = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
@@ -313053,7 +313052,6 @@ function applyTextPath(layout2, path, tp, rebase = true) {
313053
313052
  var defaultCircleRadius, ownsPath, mapPoint;
313054
313053
  var init_text_path = __esm({
313055
313054
  "lib/engine/text/text-path.ts"() {
313056
- "use strict";
313057
313055
  init_scene_graph();
313058
313056
  init_transform();
313059
313057
  init_shape_to_path();
@@ -313171,7 +313169,6 @@ function areaBounds(rings) {
313171
313169
  }
313172
313170
  var init_text_area = __esm({
313173
313171
  "lib/engine/text/text-area.ts"() {
313174
- "use strict";
313175
313172
  }
313176
313173
  });
313177
313174
 
@@ -318450,7 +318447,6 @@ function agentToolList() {
318450
318447
  var AGENT_CAPABILITIES, legacyCommandId, legacyTools, blobToDataUrl3, provided, legacyTool, legacyToolList;
318451
318448
  var init_agent = __esm({
318452
318449
  "lib/commands/agent.ts"() {
318453
- "use strict";
318454
318450
  init_types5();
318455
318451
  init_registry();
318456
318452
  init_errors();
@@ -328803,7 +328799,7 @@ var init_package = __esm({
328803
328799
  "packages/runtime/package.json"() {
328804
328800
  package_default = {
328805
328801
  name: "@popcraft/runtime",
328806
- version: "0.53.7",
328802
+ version: "0.53.9",
328807
328803
  description: "What code exported from PopCraft shares: the meaning of expressions (operators and functions) and, as it grows, the parts of a design's behaviour that are common code rather than generated React.",
328808
328804
  license: "MIT",
328809
328805
  homepage: "https://popcraft.app/docs/exporting/nextjs",
@@ -362562,6 +362558,7 @@ var init_delete_current_file = __esm({
362562
362558
  var storeOpsSeam;
362563
362559
  var init_seams = __esm({
362564
362560
  "lib/commands/seams.ts"() {
362561
+ "use strict";
362565
362562
  storeOpsSeam = (st) => ({
362566
362563
  booleanOperation: (op4) => st().booleanOperation(op4),
362567
362564
  flatten: () => st().flattenSelection(),
@@ -401620,6 +401617,7 @@ function placeDesign(doc2, built, source3, size6, name2, at4) {
401620
401617
  var DESIGN_NAMESPACES, DERIVED2, templateOfBuild;
401621
401618
  var init_build3 = __esm({
401622
401619
  "lib/agent/design-script/build.ts"() {
401620
+ "use strict";
401623
401621
  init_hash();
401624
401622
  init_scene_graph();
401625
401623
  init_libraries();
@@ -401649,6 +401647,7 @@ function designFrameOf(doc2, id3) {
401649
401647
  }
401650
401648
  var init_locate = __esm({
401651
401649
  "lib/agent/design-script/locate.ts"() {
401650
+ "use strict";
401652
401651
  }
401653
401652
  });
401654
401653
 
@@ -406835,6 +406834,7 @@ function registerBuiltinCommands() {
406835
406834
  var builtinCommands, uiOnlyCommands;
406836
406835
  var init_builtin4 = __esm({
406837
406836
  "lib/commands/builtin.ts"() {
406837
+ "use strict";
406838
406838
  init_registry();
406839
406839
  init_node();
406840
406840
  init_node();
@@ -414396,7 +414396,7 @@ init_resources();
414396
414396
  init_desktop();
414397
414397
  init_hypery();
414398
414398
  import { createInterface } from "node:readline";
414399
- var VERSION2 = "0.53.7";
414399
+ var VERSION2 = "0.53.9";
414400
414400
  var HELP = `popcraft ${VERSION2} \u2014 the PopCraft command line
414401
414401
 
414402
414402
  Files (headless, on .popcraft files):
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@popcraft/cli",
3
- "version": "0.53.7",
3
+ "version": "0.53.9",
4
4
  "description": "The PopCraft command line: edit .popcraft files headlessly, call the REST API, publish to the marketplace and manage the desktop app's local plugins, themes, fonts, skills and agents.",
5
5
  "license": "MIT",
6
6
  "homepage": "https://popcraft.app/docs/api/cli",
@@ -34,7 +34,7 @@
34
34
  "esbuild": "0.28.2"
35
35
  },
36
36
  "dependencies": {
37
- "@popcraft/kit": "0.53.7"
37
+ "@popcraft/kit": "0.53.9"
38
38
  },
39
39
  "scripts": {
40
40
  "build": "node build.mjs",