@popcraft/cli 0.43.0 → 0.43.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 +16 -13
  2. package/package.json +2 -2
package/dist/popcraft.mjs CHANGED
@@ -1196,7 +1196,7 @@ function operations(spec = openapi) {
1196
1196
  }
1197
1197
  async function call(target2, method, path, opts = {}) {
1198
1198
  const qs = new URLSearchParams(opts.query ?? {}).toString();
1199
- const headers = { "user-agent": `popcraft-cli/${"0.43.0"}`, ...opts.headers };
1199
+ const headers = { "user-agent": `popcraft-cli/${"0.43.2"}`, ...opts.headers };
1200
1200
  if (target2.token) headers.authorization = `Bearer ${target2.token}`;
1201
1201
  if (opts.contentType) headers["content-type"] = opts.contentType;
1202
1202
  try {
@@ -96827,7 +96827,6 @@ function releaseMediaMemory(hash3) {
96827
96827
  var key2, peaksKey, objectUrls, sourceKey, remoteResolver, MEDIA_FETCH_TIMEOUT_MS, SHIPPED_MEDIA_PATH, notShipped, MEDIA_SCHEME, isImageDataUrl, memory, pendingLoads, sourceAliases, PAINT_KEYS, URL_KEYS;
96828
96828
  var init_media_store = __esm({
96829
96829
  "lib/storage/media-store.ts"() {
96830
- "use strict";
96831
96830
  init_media_types();
96832
96831
  init_idb();
96833
96832
  init_media_hash();
@@ -247889,6 +247888,7 @@ function repairCompositions(comps, nodes) {
247889
247888
  var isObj5, finite6, optFinite, isVec2, TIMELINE_COLOR_IDS, TIMELINE_COLORS, UNITS, ORDERS, PROP_KEYS, ANIMATOR_ID, MOTION_TYPES, TRANSITIONS, isFraction, MEDIA_HASH;
247890
247889
  var init_invariants = __esm({
247891
247890
  "lib/motion/invariants.ts"() {
247891
+ "use strict";
247892
247892
  init_easing();
247893
247893
  init_properties();
247894
247894
  init_markers();
@@ -248866,6 +248866,7 @@ function fillPhotoFrame(doc2, groupId, imageUrl, size6, name2 = "Photo", credit)
248866
248866
  var isPhotoFrame;
248867
248867
  var init_photo_frames = __esm({
248868
248868
  "lib/document/photo-frames.ts"() {
248869
+ "use strict";
248869
248870
  init_dist_node();
248870
248871
  init_scene_graph();
248871
248872
  init_types();
@@ -252419,6 +252420,7 @@ function resizeWindow(doc2, target2, rect) {
252419
252420
  }
252420
252421
  var init_crop = __esm({
252421
252422
  "lib/editor/crop.ts"() {
252423
+ "use strict";
252422
252424
  init_dist_node();
252423
252425
  init_scene_graph();
252424
252426
  init_photo_frames();
@@ -257885,8 +257887,8 @@ function stageFrameId(s) {
257885
257887
  }
257886
257888
  return best;
257887
257889
  }
257888
- function stageTarget(s) {
257889
- const nodes = s.document.nodes;
257890
+ function stageTarget(s, doc2 = s.document) {
257891
+ const nodes = doc2.nodes;
257890
257892
  const comp = openComposition(s);
257891
257893
  if (comp) {
257892
257894
  const rect = compositionStage(comp, (id3) => {
@@ -261154,8 +261156,11 @@ function activeTarget(state) {
261154
261156
  function shownBreakpoint(state) {
261155
261157
  const id3 = state.activeBreakpoint;
261156
261158
  if (!id3 || state.isPresentMode || state.machinePreview || isBaseBreakpoint(state.document, id3)) return null;
261157
- const target2 = state.transport.target;
261158
- return state.mode === "ANIMATE" && target2 ? null : id3;
261159
+ return id3;
261160
+ }
261161
+ function breakpointView(state, doc2 = state.document) {
261162
+ const id3 = state.breakpointGesture ? null : shownBreakpoint(state);
261163
+ return id3 ? breakpointDocument(doc2, id3) : doc2;
261159
261164
  }
261160
261165
  var storedDocument;
261161
261166
  var init_view = __esm({
@@ -311277,7 +311282,6 @@ function startCloudSync() {
311277
311282
  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;
311278
311283
  var init_sync2 = __esm({
311279
311284
  "lib/client/cloud/sync.ts"() {
311280
- "use strict";
311281
311285
  init_paint_repair();
311282
311286
  init_migrate();
311283
311287
  init_view();
@@ -312661,7 +312665,6 @@ function areaBounds(rings) {
312661
312665
  }
312662
312666
  var init_text_area = __esm({
312663
312667
  "lib/engine/text/text-area.ts"() {
312664
- "use strict";
312665
312668
  }
312666
312669
  });
312667
312670
 
@@ -327804,7 +327807,7 @@ var init_package = __esm({
327804
327807
  "packages/runtime/package.json"() {
327805
327808
  package_default = {
327806
327809
  name: "@popcraft/runtime",
327807
- version: "0.43.0",
327810
+ version: "0.43.2",
327808
327811
  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.",
327809
327812
  license: "MIT",
327810
327813
  homepage: "https://popcraft.app/docs/exporting/nextjs",
@@ -352470,7 +352473,6 @@ function exportsOf(source3) {
352470
352473
  var CODE_LIMITS, packageOf;
352471
352474
  var init_source2 = __esm({
352472
352475
  "lib/code/source.ts"() {
352473
- "use strict";
352474
352476
  CODE_LIMITS = { modules: 100, sourceLength: 2e5, packages: 12 };
352475
352477
  packageOf = (spec) => spec.split("/").slice(0, spec.startsWith("@") ? 2 : 1).join("/");
352476
352478
  }
@@ -352513,7 +352515,6 @@ function compileModule(module2) {
352513
352515
  var import_sucrase, BUILT_IN, memo4;
352514
352516
  var init_compile2 = __esm({
352515
352517
  "lib/code/compile.ts"() {
352516
- "use strict";
352517
352518
  import_sucrase = __toESM(require_dist2());
352518
352519
  init_source2();
352519
352520
  init_source2();
@@ -400564,6 +400565,7 @@ function placeDesign(doc2, built, source3, size6, name2, at4) {
400564
400565
  var DESIGN_NAMESPACES, DERIVED2, templateOfBuild;
400565
400566
  var init_build3 = __esm({
400566
400567
  "lib/agent/design-script/build.ts"() {
400568
+ "use strict";
400567
400569
  init_hash();
400568
400570
  init_scene_graph();
400569
400571
  init_libraries();
@@ -400593,6 +400595,7 @@ function designFrameOf(doc2, id3) {
400593
400595
  }
400594
400596
  var init_locate = __esm({
400595
400597
  "lib/agent/design-script/locate.ts"() {
400598
+ "use strict";
400596
400599
  }
400597
400600
  });
400598
400601
 
@@ -408779,7 +408782,7 @@ var init_editor_store = __esm({
408779
408782
  zoomToSelection: () => get4().zoomToNodes(get4().selection, 0.2),
408780
408783
  zoomToFrame: (opts) => {
408781
408784
  const state = get4();
408782
- const target2 = stageTarget(state);
408785
+ const target2 = stageTarget(state, breakpointView(state));
408783
408786
  const camera2 = target2 && stageFit(target2.rect, canvasViewport(), canvasInsets(), STAGE_PADDING * canvasPixelRatio());
408784
408787
  if (!target2 || !camera2) return false;
408785
408788
  if (target2.kind === "frame") state.setStageFrameId(target2.frameId);
@@ -413356,7 +413359,7 @@ init_resources();
413356
413359
  init_desktop();
413357
413360
  init_hypery();
413358
413361
  import { createInterface } from "node:readline";
413359
- var VERSION2 = "0.43.0";
413362
+ var VERSION2 = "0.43.2";
413360
413363
  var HELP = `popcraft ${VERSION2} \u2014 the PopCraft command line
413361
413364
 
413362
413365
  Files (headless, on .popcraft files):
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@popcraft/cli",
3
- "version": "0.43.0",
3
+ "version": "0.43.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.43.0"
37
+ "@popcraft/kit": "0.43.2"
38
38
  },
39
39
  "scripts": {
40
40
  "build": "node build.mjs",