@popcraft/cli 0.43.0 → 0.43.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 +17 -16
  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.1"}`, ...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 {
@@ -94485,7 +94485,6 @@ function hasMessage(key5) {
94485
94485
  var current2, loading, listeners, formats, asts;
94486
94486
  var init_runtime = __esm({
94487
94487
  "lib/i18n/runtime.ts"() {
94488
- "use strict";
94489
94488
  init_intl_messageformat();
94490
94489
  init_icu_messageformat_parser();
94491
94490
  init_catalogs();
@@ -96827,7 +96826,6 @@ function releaseMediaMemory(hash3) {
96827
96826
  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
96827
  var init_media_store = __esm({
96829
96828
  "lib/storage/media-store.ts"() {
96830
- "use strict";
96831
96829
  init_media_types();
96832
96830
  init_idb();
96833
96831
  init_media_hash();
@@ -247889,6 +247887,7 @@ function repairCompositions(comps, nodes) {
247889
247887
  var isObj5, finite6, optFinite, isVec2, TIMELINE_COLOR_IDS, TIMELINE_COLORS, UNITS, ORDERS, PROP_KEYS, ANIMATOR_ID, MOTION_TYPES, TRANSITIONS, isFraction, MEDIA_HASH;
247890
247888
  var init_invariants = __esm({
247891
247889
  "lib/motion/invariants.ts"() {
247890
+ "use strict";
247892
247891
  init_easing();
247893
247892
  init_properties();
247894
247893
  init_markers();
@@ -248866,6 +248865,7 @@ function fillPhotoFrame(doc2, groupId, imageUrl, size6, name2 = "Photo", credit)
248866
248865
  var isPhotoFrame;
248867
248866
  var init_photo_frames = __esm({
248868
248867
  "lib/document/photo-frames.ts"() {
248868
+ "use strict";
248869
248869
  init_dist_node();
248870
248870
  init_scene_graph();
248871
248871
  init_types();
@@ -252419,6 +252419,7 @@ function resizeWindow(doc2, target2, rect) {
252419
252419
  }
252420
252420
  var init_crop = __esm({
252421
252421
  "lib/editor/crop.ts"() {
252422
+ "use strict";
252422
252423
  init_dist_node();
252423
252424
  init_scene_graph();
252424
252425
  init_photo_frames();
@@ -257885,8 +257886,8 @@ function stageFrameId(s) {
257885
257886
  }
257886
257887
  return best;
257887
257888
  }
257888
- function stageTarget(s) {
257889
- const nodes = s.document.nodes;
257889
+ function stageTarget(s, doc2 = s.document) {
257890
+ const nodes = doc2.nodes;
257890
257891
  const comp = openComposition(s);
257891
257892
  if (comp) {
257892
257893
  const rect = compositionStage(comp, (id3) => {
@@ -261154,8 +261155,11 @@ function activeTarget(state) {
261154
261155
  function shownBreakpoint(state) {
261155
261156
  const id3 = state.activeBreakpoint;
261156
261157
  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;
261158
+ return id3;
261159
+ }
261160
+ function breakpointView(state, doc2 = state.document) {
261161
+ const id3 = state.breakpointGesture ? null : shownBreakpoint(state);
261162
+ return id3 ? breakpointDocument(doc2, id3) : doc2;
261159
261163
  }
261160
261164
  var storedDocument;
261161
261165
  var init_view = __esm({
@@ -262386,7 +262390,6 @@ function formatDate(date5, opts = { month: "short", day: "numeric", year: "numer
262386
262390
  var cache5, nf;
262387
262391
  var init_format = __esm({
262388
262392
  "lib/i18n/format.ts"() {
262389
- "use strict";
262390
262393
  init_runtime();
262391
262394
  cache5 = /* @__PURE__ */ new Map();
262392
262395
  nf = (opts) => cached2("n", opts, (l) => new Intl.NumberFormat(l, opts));
@@ -262406,7 +262409,6 @@ function formatLimit(key5, max3) {
262406
262409
  var formatBytes;
262407
262410
  var init_limits2 = __esm({
262408
262411
  "lib/billing/limits.ts"() {
262409
- "use strict";
262410
262412
  init_format();
262411
262413
  init_plans();
262412
262414
  formatBytes = formatFileSize;
@@ -311277,7 +311279,6 @@ function startCloudSync() {
311277
311279
  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
311280
  var init_sync2 = __esm({
311279
311281
  "lib/client/cloud/sync.ts"() {
311280
- "use strict";
311281
311282
  init_paint_repair();
311282
311283
  init_migrate();
311283
311284
  init_view();
@@ -311882,6 +311883,7 @@ function creditLine(c2) {
311882
311883
  var MAX_PHOTO_PAGE, MAX_PHOTO_QUERY, UUID, isPhotoId, photoImagePath;
311883
311884
  var init_stock = __esm({
311884
311885
  "lib/photos/stock.ts"() {
311886
+ "use strict";
311885
311887
  MAX_PHOTO_PAGE = 12;
311886
311888
  MAX_PHOTO_QUERY = 200;
311887
311889
  UUID = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
@@ -312661,7 +312663,6 @@ function areaBounds(rings) {
312661
312663
  }
312662
312664
  var init_text_area = __esm({
312663
312665
  "lib/engine/text/text-area.ts"() {
312664
- "use strict";
312665
312666
  }
312666
312667
  });
312667
312668
 
@@ -327804,7 +327805,7 @@ var init_package = __esm({
327804
327805
  "packages/runtime/package.json"() {
327805
327806
  package_default = {
327806
327807
  name: "@popcraft/runtime",
327807
- version: "0.43.0",
327808
+ version: "0.43.1",
327808
327809
  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
327810
  license: "MIT",
327810
327811
  homepage: "https://popcraft.app/docs/exporting/nextjs",
@@ -352470,7 +352471,6 @@ function exportsOf(source3) {
352470
352471
  var CODE_LIMITS, packageOf;
352471
352472
  var init_source2 = __esm({
352472
352473
  "lib/code/source.ts"() {
352473
- "use strict";
352474
352474
  CODE_LIMITS = { modules: 100, sourceLength: 2e5, packages: 12 };
352475
352475
  packageOf = (spec) => spec.split("/").slice(0, spec.startsWith("@") ? 2 : 1).join("/");
352476
352476
  }
@@ -361026,7 +361026,6 @@ function publishSite(key5, files, opts = {}) {
361026
361026
  var siteStatus, setSiteVersion, workspaceSites, deleteSite, renameSite;
361027
361027
  var init_sites = __esm({
361028
361028
  "lib/client/cloud/sites.ts"() {
361029
- "use strict";
361030
361029
  init_files();
361031
361030
  init_upload2();
361032
361031
  init_api4();
@@ -400564,6 +400563,7 @@ function placeDesign(doc2, built, source3, size6, name2, at4) {
400564
400563
  var DESIGN_NAMESPACES, DERIVED2, templateOfBuild;
400565
400564
  var init_build3 = __esm({
400566
400565
  "lib/agent/design-script/build.ts"() {
400566
+ "use strict";
400567
400567
  init_hash();
400568
400568
  init_scene_graph();
400569
400569
  init_libraries();
@@ -400593,6 +400593,7 @@ function designFrameOf(doc2, id3) {
400593
400593
  }
400594
400594
  var init_locate = __esm({
400595
400595
  "lib/agent/design-script/locate.ts"() {
400596
+ "use strict";
400596
400597
  }
400597
400598
  });
400598
400599
 
@@ -408779,7 +408780,7 @@ var init_editor_store = __esm({
408779
408780
  zoomToSelection: () => get4().zoomToNodes(get4().selection, 0.2),
408780
408781
  zoomToFrame: (opts) => {
408781
408782
  const state = get4();
408782
- const target2 = stageTarget(state);
408783
+ const target2 = stageTarget(state, breakpointView(state));
408783
408784
  const camera2 = target2 && stageFit(target2.rect, canvasViewport(), canvasInsets(), STAGE_PADDING * canvasPixelRatio());
408784
408785
  if (!target2 || !camera2) return false;
408785
408786
  if (target2.kind === "frame") state.setStageFrameId(target2.frameId);
@@ -413356,7 +413357,7 @@ init_resources();
413356
413357
  init_desktop();
413357
413358
  init_hypery();
413358
413359
  import { createInterface } from "node:readline";
413359
- var VERSION2 = "0.43.0";
413360
+ var VERSION2 = "0.43.1";
413360
413361
  var HELP = `popcraft ${VERSION2} \u2014 the PopCraft command line
413361
413362
 
413362
413363
  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.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.43.0"
37
+ "@popcraft/kit": "0.43.1"
38
38
  },
39
39
  "scripts": {
40
40
  "build": "node build.mjs",