@popcraft/cli 0.59.0 → 0.59.2

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 +34 -28
  2. package/package.json +2 -2
package/dist/popcraft.mjs CHANGED
@@ -1198,7 +1198,7 @@ function operations(spec = openapi) {
1198
1198
  }
1199
1199
  async function call(target2, method, path, opts = {}) {
1200
1200
  const qs = new URLSearchParams(opts.query ?? {}).toString();
1201
- const headers = { "user-agent": `popcraft-cli/${"0.59.0"}`, ...opts.headers };
1201
+ const headers = { "user-agent": `popcraft-cli/${"0.59.2"}`, ...opts.headers };
1202
1202
  if (target2.token) headers.authorization = `Bearer ${target2.token}`;
1203
1203
  if (opts.contentType) headers["content-type"] = opts.contentType;
1204
1204
  try {
@@ -29244,6 +29244,7 @@ function selectionWorldBounds(nodes, ids2, scrollState) {
29244
29244
  }
29245
29245
  var init_selection_bounds = __esm({
29246
29246
  "lib/editor/selection-bounds.ts"() {
29247
+ "use strict";
29247
29248
  init_scene_graph();
29248
29249
  init_transform();
29249
29250
  }
@@ -29290,6 +29291,30 @@ var init_cell_text = __esm({
29290
29291
  }
29291
29292
  });
29292
29293
 
29294
+ // lib/engine/canvas-dpr.ts
29295
+ function isAppleMobile() {
29296
+ if (typeof navigator === "undefined") return false;
29297
+ return /iPad|iPhone|iPod/.test(navigator.userAgent) || /Mac/.test(navigator.platform) && navigator.maxTouchPoints > 1;
29298
+ }
29299
+ function canvasDpr() {
29300
+ if (typeof window === "undefined") return 1;
29301
+ const dpr = window.devicePixelRatio || 1;
29302
+ return dpr > 1 ? Math.max(1, dpr * renderScale) : dpr;
29303
+ }
29304
+ var renderScale;
29305
+ var init_canvas_dpr = __esm({
29306
+ "lib/engine/canvas-dpr.ts"() {
29307
+ renderScale = 1;
29308
+ }
29309
+ });
29310
+
29311
+ // lib/editor/handle-reach.ts
29312
+ var init_handle_reach = __esm({
29313
+ "lib/editor/handle-reach.ts"() {
29314
+ init_canvas_dpr();
29315
+ }
29316
+ });
29317
+
29293
29318
  // lib/document/scale-geometry.ts
29294
29319
  function scaleVectorPaths(paths, sx, sy, rebuild) {
29295
29320
  if (!paths?.length || sx === 1 && sy === 1) return paths;
@@ -29379,23 +29404,6 @@ var init_resize_children = __esm({
29379
29404
  }
29380
29405
  });
29381
29406
 
29382
- // lib/engine/canvas-dpr.ts
29383
- function isAppleMobile() {
29384
- if (typeof navigator === "undefined") return false;
29385
- return /iPad|iPhone|iPod/.test(navigator.userAgent) || /Mac/.test(navigator.platform) && navigator.maxTouchPoints > 1;
29386
- }
29387
- function canvasDpr() {
29388
- if (typeof window === "undefined") return 1;
29389
- const dpr = window.devicePixelRatio || 1;
29390
- return dpr > 1 ? Math.max(1, dpr * renderScale) : dpr;
29391
- }
29392
- var renderScale;
29393
- var init_canvas_dpr = __esm({
29394
- "lib/engine/canvas-dpr.ts"() {
29395
- renderScale = 1;
29396
- }
29397
- });
29398
-
29399
29407
  // lib/editor/pointer/move/snap.ts
29400
29408
  var init_snap = __esm({
29401
29409
  "lib/editor/pointer/move/snap.ts"() {
@@ -29407,6 +29415,7 @@ var init_snap = __esm({
29407
29415
  // lib/editor/pointer/move/group-resize.ts
29408
29416
  var init_group_resize = __esm({
29409
29417
  "lib/editor/pointer/move/group-resize.ts"() {
29418
+ init_handle_reach();
29410
29419
  init_resize_children();
29411
29420
  init_scene_graph();
29412
29421
  init_selection_bounds();
@@ -180354,6 +180363,7 @@ var init_hit_test = __esm({
180354
180363
  init_layout_access();
180355
180364
  init_glyph_linear();
180356
180365
  init_canvas_dpr();
180366
+ init_handle_reach();
180357
180367
  init_frame_labels();
180358
180368
  init_stage_view();
180359
180369
  init_paths();
@@ -252584,7 +252594,6 @@ function hasMessage(key5) {
252584
252594
  var current3, loading2, listeners2, formats, asts;
252585
252595
  var init_runtime = __esm({
252586
252596
  "lib/i18n/runtime.ts"() {
252587
- "use strict";
252588
252597
  init_intl_messageformat();
252589
252598
  init_icu_messageformat_parser();
252590
252599
  init_catalogs();
@@ -254384,7 +254393,6 @@ function repairDocumentPaints(doc2) {
254384
254393
  var broken;
254385
254394
  var init_paint_repair = __esm({
254386
254395
  "lib/document/paint-repair.ts"() {
254387
- "use strict";
254388
254396
  init_shader_graph();
254389
254397
  broken = (p2) => {
254390
254398
  if (!p2 || typeof p2 !== "object") return false;
@@ -260667,6 +260675,7 @@ function repairFx(raw) {
260667
260675
  var isObj5, finite6, optFinite, isVec2, TIMELINE_COLOR_IDS, TIMELINE_COLORS, UNITS, ORDERS, PROP_KEYS, ANIMATOR_ID, MOTION_TYPES, TRANSITIONS, isFraction, MEDIA_HASH, LAYER_KINDS, ADJUSTMENT_TYPES, OPACITY_PROPERTY, CAPTION_PRESET_NAMES, inRange;
260668
260676
  var init_invariants = __esm({
260669
260677
  "lib/motion/invariants.ts"() {
260678
+ "use strict";
260670
260679
  init_adjustments();
260671
260680
  init_captions();
260672
260681
  init_lut();
@@ -260773,6 +260782,7 @@ function resyncText(doc2, ids2) {
260773
260782
  var isVirtualId;
260774
260783
  var init_invariants2 = __esm({
260775
260784
  "lib/document/invariants.ts"() {
260785
+ "use strict";
260776
260786
  init_auto_layout();
260777
260787
  init_scene_graph();
260778
260788
  init_text_bounds();
@@ -273798,6 +273808,7 @@ function planEntryAction({ home }) {
273798
273808
  var STORAGE_KEY2, useHyperyTeam, TEAM_PROMPT_ENABLED, TEAM_PROMPTED_KEY, PROMPTED_KEY, useTeamPrompt, started;
273799
273809
  var init_team = __esm({
273800
273810
  "lib/client/cloud/team.ts"() {
273811
+ "use strict";
273801
273812
  init_esm();
273802
273813
  init_api4();
273803
273814
  init_session();
@@ -317464,6 +317475,7 @@ function decodeSource(key5, label3) {
317464
317475
  var DECODE_CACHE_BYTES, cache7, pending4, held, sizeOf, lengths, decodedLengths, DECODE_TIMEOUT_MS, decodedAudio, decodedSource, pcmOf;
317465
317476
  var init_audio_decode = __esm({
317466
317477
  "lib/motion/audio-decode.ts"() {
317478
+ "use strict";
317467
317479
  init_media_store();
317468
317480
  init_audio_plan();
317469
317481
  init_time_stretch();
@@ -323267,7 +323279,6 @@ function creditLine(c2) {
323267
323279
  var MAX_PHOTO_PAGE, MAX_PHOTO_QUERY, UUID, isPhotoId, photoImagePath;
323268
323280
  var init_stock = __esm({
323269
323281
  "lib/photos/stock.ts"() {
323270
- "use strict";
323271
323282
  MAX_PHOTO_PAGE = 12;
323272
323283
  MAX_PHOTO_QUERY = 200;
323273
323284
  UUID = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
@@ -323929,7 +323940,6 @@ function applyTextPath(layout2, path, tp, rebase = true) {
323929
323940
  var defaultCircleRadius, ownsPath, mapPoint;
323930
323941
  var init_text_path = __esm({
323931
323942
  "lib/engine/text/text-path.ts"() {
323932
- "use strict";
323933
323943
  init_scene_graph();
323934
323944
  init_transform();
323935
323945
  init_shape_to_path();
@@ -324047,7 +324057,6 @@ function areaBounds(rings) {
324047
324057
  }
324048
324058
  var init_text_area = __esm({
324049
324059
  "lib/engine/text/text-area.ts"() {
324050
- "use strict";
324051
324060
  }
324052
324061
  });
324053
324062
 
@@ -328088,7 +328097,6 @@ async function exportSettingFile(renderer, node2, setting, doc2, styles) {
328088
328097
  var MIME, DEFAULT_EXPORT, exportSettingsOf;
328089
328098
  var init_export = __esm({
328090
328099
  "lib/io/export.ts"() {
328091
- "use strict";
328092
328100
  init_download();
328093
328101
  init_scene_graph();
328094
328102
  init_codecs();
@@ -339082,7 +339090,7 @@ var init_package = __esm({
339082
339090
  "packages/runtime/package.json"() {
339083
339091
  package_default = {
339084
339092
  name: "@popcraft/runtime",
339085
- version: "0.59.0",
339093
+ version: "0.59.2",
339086
339094
  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.",
339087
339095
  license: "MIT",
339088
339096
  homepage: "https://popcraft.app/docs/exporting/nextjs",
@@ -363748,7 +363756,6 @@ function exportsOf(source3) {
363748
363756
  var CODE_LIMITS, packageOf;
363749
363757
  var init_source2 = __esm({
363750
363758
  "lib/code/source.ts"() {
363751
- "use strict";
363752
363759
  CODE_LIMITS = { modules: 100, sourceLength: 2e5, packages: 12 };
363753
363760
  packageOf = (spec) => spec.split("/").slice(0, spec.startsWith("@") ? 2 : 1).join("/");
363754
363761
  }
@@ -363791,7 +363798,6 @@ function compileModule(module2) {
363791
363798
  var import_sucrase, BUILT_IN, memo7;
363792
363799
  var init_compile2 = __esm({
363793
363800
  "lib/code/compile.ts"() {
363794
- "use strict";
363795
363801
  import_sucrase = __toESM(require_dist2());
363796
363802
  init_source2();
363797
363803
  init_source2();
@@ -426645,7 +426651,7 @@ init_resources();
426645
426651
  init_desktop();
426646
426652
  init_hypery();
426647
426653
  import { createInterface } from "node:readline";
426648
- var VERSION2 = "0.59.0";
426654
+ var VERSION2 = "0.59.2";
426649
426655
  var HELP = `popcraft ${VERSION2} \u2014 the PopCraft command line
426650
426656
 
426651
426657
  Files (headless, on .popcraft files):
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@popcraft/cli",
3
- "version": "0.59.0",
3
+ "version": "0.59.2",
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.59.0"
37
+ "@popcraft/kit": "0.59.2"
38
38
  },
39
39
  "scripts": {
40
40
  "build": "node build.mjs",