@popcraft/cli 0.59.0 → 0.59.1

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 +32 -32
  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.1"}`, ...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 {
@@ -29290,6 +29290,30 @@ var init_cell_text = __esm({
29290
29290
  }
29291
29291
  });
29292
29292
 
29293
+ // lib/engine/canvas-dpr.ts
29294
+ function isAppleMobile() {
29295
+ if (typeof navigator === "undefined") return false;
29296
+ return /iPad|iPhone|iPod/.test(navigator.userAgent) || /Mac/.test(navigator.platform) && navigator.maxTouchPoints > 1;
29297
+ }
29298
+ function canvasDpr() {
29299
+ if (typeof window === "undefined") return 1;
29300
+ const dpr = window.devicePixelRatio || 1;
29301
+ return dpr > 1 ? Math.max(1, dpr * renderScale) : dpr;
29302
+ }
29303
+ var renderScale;
29304
+ var init_canvas_dpr = __esm({
29305
+ "lib/engine/canvas-dpr.ts"() {
29306
+ renderScale = 1;
29307
+ }
29308
+ });
29309
+
29310
+ // lib/editor/handle-reach.ts
29311
+ var init_handle_reach = __esm({
29312
+ "lib/editor/handle-reach.ts"() {
29313
+ init_canvas_dpr();
29314
+ }
29315
+ });
29316
+
29293
29317
  // lib/document/scale-geometry.ts
29294
29318
  function scaleVectorPaths(paths, sx, sy, rebuild) {
29295
29319
  if (!paths?.length || sx === 1 && sy === 1) return paths;
@@ -29379,23 +29403,6 @@ var init_resize_children = __esm({
29379
29403
  }
29380
29404
  });
29381
29405
 
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
29406
  // lib/editor/pointer/move/snap.ts
29400
29407
  var init_snap = __esm({
29401
29408
  "lib/editor/pointer/move/snap.ts"() {
@@ -29407,6 +29414,7 @@ var init_snap = __esm({
29407
29414
  // lib/editor/pointer/move/group-resize.ts
29408
29415
  var init_group_resize = __esm({
29409
29416
  "lib/editor/pointer/move/group-resize.ts"() {
29417
+ init_handle_reach();
29410
29418
  init_resize_children();
29411
29419
  init_scene_graph();
29412
29420
  init_selection_bounds();
@@ -176240,7 +176248,6 @@ var init_frame_labels = __esm({
176240
176248
  var MODE_PROFILES, isTimelineMode, FOCUS_PROFILES, MODE_LIST, FOCUS_BY_PRECEDENCE;
176241
176249
  var init_registry2 = __esm({
176242
176250
  "lib/editor/modes/registry.ts"() {
176243
- "use strict";
176244
176251
  MODE_PROFILES = {
176245
176252
  DESIGN: {
176246
176253
  id: "DESIGN",
@@ -180354,6 +180361,7 @@ var init_hit_test = __esm({
180354
180361
  init_layout_access();
180355
180362
  init_glyph_linear();
180356
180363
  init_canvas_dpr();
180364
+ init_handle_reach();
180357
180365
  init_frame_labels();
180358
180366
  init_stage_view();
180359
180367
  init_paths();
@@ -252584,7 +252592,6 @@ function hasMessage(key5) {
252584
252592
  var current3, loading2, listeners2, formats, asts;
252585
252593
  var init_runtime = __esm({
252586
252594
  "lib/i18n/runtime.ts"() {
252587
- "use strict";
252588
252595
  init_intl_messageformat();
252589
252596
  init_icu_messageformat_parser();
252590
252597
  init_catalogs();
@@ -254384,7 +254391,6 @@ function repairDocumentPaints(doc2) {
254384
254391
  var broken;
254385
254392
  var init_paint_repair = __esm({
254386
254393
  "lib/document/paint-repair.ts"() {
254387
- "use strict";
254388
254394
  init_shader_graph();
254389
254395
  broken = (p2) => {
254390
254396
  if (!p2 || typeof p2 !== "object") return false;
@@ -254984,7 +254990,6 @@ function relinkCopies(doc2, copies) {
254984
254990
  var TEXT_PATH_SOURCE_TYPES, isPathSource;
254985
254991
  var init_text_links = __esm({
254986
254992
  "lib/document/text-links.ts"() {
254987
- "use strict";
254988
254993
  init_transform();
254989
254994
  TEXT_PATH_SOURCE_TYPES = ["VECTOR", "ELLIPSE", "RECTANGLE", "POLYGON", "STAR", "LINE", "ARROW", "FRAME"];
254990
254995
  isPathSource = (n) => !!n && TEXT_PATH_SOURCE_TYPES.includes(n.type);
@@ -260667,6 +260672,7 @@ function repairFx(raw) {
260667
260672
  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
260673
  var init_invariants = __esm({
260669
260674
  "lib/motion/invariants.ts"() {
260675
+ "use strict";
260670
260676
  init_adjustments();
260671
260677
  init_captions();
260672
260678
  init_lut();
@@ -263725,7 +263731,6 @@ function getActiveRenderer() {
263725
263731
  var active;
263726
263732
  var init_renderer_registry = __esm({
263727
263733
  "lib/engine/renderer-registry.ts"() {
263728
- "use strict";
263729
263734
  active = null;
263730
263735
  }
263731
263736
  });
@@ -266505,7 +266510,6 @@ fn shade(uv: vec2<f32>, res: vec2<f32>, tm: f32) -> vec4<f32> {
266505
266510
  var SHADER_PRESETS, shaderPreset, legacyPresetOf, DEFAULT_SHADER_PRESET, DEFAULT_TEXTURE_PARAMS, f, vec4, NOISE_LIB;
266506
266511
  var init_shader_presets = __esm({
266507
266512
  "lib/engine/shader-presets.ts"() {
266508
- "use strict";
266509
266513
  init_shader_graph();
266510
266514
  init_shader_graph_presets();
266511
266515
  init_shader_presets_legacy();
@@ -273798,6 +273802,7 @@ function planEntryAction({ home }) {
273798
273802
  var STORAGE_KEY2, useHyperyTeam, TEAM_PROMPT_ENABLED, TEAM_PROMPTED_KEY, PROMPTED_KEY, useTeamPrompt, started;
273799
273803
  var init_team = __esm({
273800
273804
  "lib/client/cloud/team.ts"() {
273805
+ "use strict";
273801
273806
  init_esm();
273802
273807
  init_api4();
273803
273808
  init_session();
@@ -317464,6 +317469,7 @@ function decodeSource(key5, label3) {
317464
317469
  var DECODE_CACHE_BYTES, cache7, pending4, held, sizeOf, lengths, decodedLengths, DECODE_TIMEOUT_MS, decodedAudio, decodedSource, pcmOf;
317465
317470
  var init_audio_decode = __esm({
317466
317471
  "lib/motion/audio-decode.ts"() {
317472
+ "use strict";
317467
317473
  init_media_store();
317468
317474
  init_audio_plan();
317469
317475
  init_time_stretch();
@@ -323267,7 +323273,6 @@ function creditLine(c2) {
323267
323273
  var MAX_PHOTO_PAGE, MAX_PHOTO_QUERY, UUID, isPhotoId, photoImagePath;
323268
323274
  var init_stock = __esm({
323269
323275
  "lib/photos/stock.ts"() {
323270
- "use strict";
323271
323276
  MAX_PHOTO_PAGE = 12;
323272
323277
  MAX_PHOTO_QUERY = 200;
323273
323278
  UUID = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
@@ -323929,7 +323934,6 @@ function applyTextPath(layout2, path, tp, rebase = true) {
323929
323934
  var defaultCircleRadius, ownsPath, mapPoint;
323930
323935
  var init_text_path = __esm({
323931
323936
  "lib/engine/text/text-path.ts"() {
323932
- "use strict";
323933
323937
  init_scene_graph();
323934
323938
  init_transform();
323935
323939
  init_shape_to_path();
@@ -324047,7 +324051,6 @@ function areaBounds(rings) {
324047
324051
  }
324048
324052
  var init_text_area = __esm({
324049
324053
  "lib/engine/text/text-area.ts"() {
324050
- "use strict";
324051
324054
  }
324052
324055
  });
324053
324056
 
@@ -328088,7 +328091,6 @@ async function exportSettingFile(renderer, node2, setting, doc2, styles) {
328088
328091
  var MIME, DEFAULT_EXPORT, exportSettingsOf;
328089
328092
  var init_export = __esm({
328090
328093
  "lib/io/export.ts"() {
328091
- "use strict";
328092
328094
  init_download();
328093
328095
  init_scene_graph();
328094
328096
  init_codecs();
@@ -339082,7 +339084,7 @@ var init_package = __esm({
339082
339084
  "packages/runtime/package.json"() {
339083
339085
  package_default = {
339084
339086
  name: "@popcraft/runtime",
339085
- version: "0.59.0",
339087
+ version: "0.59.1",
339086
339088
  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
339089
  license: "MIT",
339088
339090
  homepage: "https://popcraft.app/docs/exporting/nextjs",
@@ -363748,7 +363750,6 @@ function exportsOf(source3) {
363748
363750
  var CODE_LIMITS, packageOf;
363749
363751
  var init_source2 = __esm({
363750
363752
  "lib/code/source.ts"() {
363751
- "use strict";
363752
363753
  CODE_LIMITS = { modules: 100, sourceLength: 2e5, packages: 12 };
363753
363754
  packageOf = (spec) => spec.split("/").slice(0, spec.startsWith("@") ? 2 : 1).join("/");
363754
363755
  }
@@ -363791,7 +363792,6 @@ function compileModule(module2) {
363791
363792
  var import_sucrase, BUILT_IN, memo7;
363792
363793
  var init_compile2 = __esm({
363793
363794
  "lib/code/compile.ts"() {
363794
- "use strict";
363795
363795
  import_sucrase = __toESM(require_dist2());
363796
363796
  init_source2();
363797
363797
  init_source2();
@@ -426645,7 +426645,7 @@ init_resources();
426645
426645
  init_desktop();
426646
426646
  init_hypery();
426647
426647
  import { createInterface } from "node:readline";
426648
- var VERSION2 = "0.59.0";
426648
+ var VERSION2 = "0.59.1";
426649
426649
  var HELP = `popcraft ${VERSION2} \u2014 the PopCraft command line
426650
426650
 
426651
426651
  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.1",
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.1"
38
38
  },
39
39
  "scripts": {
40
40
  "build": "node build.mjs",