@popcraft/cli 0.42.7 → 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 +13 -17
  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.42.7"}`, ...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();
@@ -247888,6 +247887,7 @@ function repairCompositions(comps, nodes) {
247888
247887
  var isObj5, finite6, optFinite, isVec2, TIMELINE_COLOR_IDS, TIMELINE_COLORS, UNITS, ORDERS, PROP_KEYS, ANIMATOR_ID, MOTION_TYPES, TRANSITIONS, isFraction, MEDIA_HASH;
247889
247888
  var init_invariants = __esm({
247890
247889
  "lib/motion/invariants.ts"() {
247890
+ "use strict";
247891
247891
  init_easing();
247892
247892
  init_properties();
247893
247893
  init_markers();
@@ -256908,7 +256908,6 @@ function followPeers(peers) {
256908
256908
  var PALETTE, usePresence, awareness, CURSOR_SEND_MS, VIEWPORT_SEND_MS, cursorTimer, pendingCursor, sentCursor, EMOTE_MS, lastFollowCamera;
256909
256909
  var init_presence = __esm({
256910
256910
  "lib/collab/presence.ts"() {
256911
- "use strict";
256912
256911
  init_esm();
256913
256912
  init_editor_store();
256914
256913
  init_status_announcements();
@@ -257887,8 +257886,8 @@ function stageFrameId(s) {
257887
257886
  }
257888
257887
  return best;
257889
257888
  }
257890
- function stageTarget(s) {
257891
- const nodes = s.document.nodes;
257889
+ function stageTarget(s, doc2 = s.document) {
257890
+ const nodes = doc2.nodes;
257892
257891
  const comp = openComposition(s);
257893
257892
  if (comp) {
257894
257893
  const rect = compositionStage(comp, (id3) => {
@@ -261156,8 +261155,11 @@ function activeTarget(state) {
261156
261155
  function shownBreakpoint(state) {
261157
261156
  const id3 = state.activeBreakpoint;
261158
261157
  if (!id3 || state.isPresentMode || state.machinePreview || isBaseBreakpoint(state.document, id3)) return null;
261159
- const target2 = state.transport.target;
261160
- 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;
261161
261163
  }
261162
261164
  var storedDocument;
261163
261165
  var init_view = __esm({
@@ -262388,7 +262390,6 @@ function formatDate(date5, opts = { month: "short", day: "numeric", year: "numer
262388
262390
  var cache5, nf;
262389
262391
  var init_format = __esm({
262390
262392
  "lib/i18n/format.ts"() {
262391
- "use strict";
262392
262393
  init_runtime();
262393
262394
  cache5 = /* @__PURE__ */ new Map();
262394
262395
  nf = (opts) => cached2("n", opts, (l) => new Intl.NumberFormat(l, opts));
@@ -262939,6 +262940,7 @@ function planEntryAction({ home }) {
262939
262940
  var STORAGE_KEY2, useHyperyTeam, TEAM_PROMPT_ENABLED, TEAM_PROMPTED_KEY, PROMPTED_KEY, useTeamPrompt, started;
262940
262941
  var init_team = __esm({
262941
262942
  "lib/client/cloud/team.ts"() {
262943
+ "use strict";
262942
262944
  init_esm();
262943
262945
  init_api4();
262944
262946
  init_session();
@@ -311483,7 +311485,6 @@ async function dispatchShaped(key5, options) {
311483
311485
  var onViolation;
311484
311486
  var init_dispatch = __esm({
311485
311487
  "lib/commands/dispatch.ts"() {
311486
- "use strict";
311487
311488
  init_errors();
311488
311489
  init_registry();
311489
311490
  init_confirm();
@@ -312662,7 +312663,6 @@ function areaBounds(rings) {
312662
312663
  }
312663
312664
  var init_text_area = __esm({
312664
312665
  "lib/engine/text/text-area.ts"() {
312665
- "use strict";
312666
312666
  }
312667
312667
  });
312668
312668
 
@@ -327805,7 +327805,7 @@ var init_package = __esm({
327805
327805
  "packages/runtime/package.json"() {
327806
327806
  package_default = {
327807
327807
  name: "@popcraft/runtime",
327808
- version: "0.42.7",
327808
+ version: "0.43.1",
327809
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.",
327810
327810
  license: "MIT",
327811
327811
  homepage: "https://popcraft.app/docs/exporting/nextjs",
@@ -352471,7 +352471,6 @@ function exportsOf(source3) {
352471
352471
  var CODE_LIMITS, packageOf;
352472
352472
  var init_source2 = __esm({
352473
352473
  "lib/code/source.ts"() {
352474
- "use strict";
352475
352474
  CODE_LIMITS = { modules: 100, sourceLength: 2e5, packages: 12 };
352476
352475
  packageOf = (spec) => spec.split("/").slice(0, spec.startsWith("@") ? 2 : 1).join("/");
352477
352476
  }
@@ -361027,7 +361026,6 @@ function publishSite(key5, files, opts = {}) {
361027
361026
  var siteStatus, setSiteVersion, workspaceSites, deleteSite, renameSite;
361028
361027
  var init_sites = __esm({
361029
361028
  "lib/client/cloud/sites.ts"() {
361030
- "use strict";
361031
361029
  init_files();
361032
361030
  init_upload2();
361033
361031
  init_api4();
@@ -361555,7 +361553,6 @@ var init_delete_current_file = __esm({
361555
361553
  var storeOpsSeam;
361556
361554
  var init_seams = __esm({
361557
361555
  "lib/commands/seams.ts"() {
361558
- "use strict";
361559
361556
  storeOpsSeam = (st) => ({
361560
361557
  booleanOperation: (op4) => st().booleanOperation(op4),
361561
361558
  flatten: () => st().flattenSelection(),
@@ -405771,7 +405768,6 @@ function registerBuiltinCommands() {
405771
405768
  var builtinCommands, uiOnlyCommands;
405772
405769
  var init_builtin4 = __esm({
405773
405770
  "lib/commands/builtin.ts"() {
405774
- "use strict";
405775
405771
  init_registry();
405776
405772
  init_node();
405777
405773
  init_node();
@@ -408784,7 +408780,7 @@ var init_editor_store = __esm({
408784
408780
  zoomToSelection: () => get4().zoomToNodes(get4().selection, 0.2),
408785
408781
  zoomToFrame: (opts) => {
408786
408782
  const state = get4();
408787
- const target2 = stageTarget(state);
408783
+ const target2 = stageTarget(state, breakpointView(state));
408788
408784
  const camera2 = target2 && stageFit(target2.rect, canvasViewport(), canvasInsets(), STAGE_PADDING * canvasPixelRatio());
408789
408785
  if (!target2 || !camera2) return false;
408790
408786
  if (target2.kind === "frame") state.setStageFrameId(target2.frameId);
@@ -413361,7 +413357,7 @@ init_resources();
413361
413357
  init_desktop();
413362
413358
  init_hypery();
413363
413359
  import { createInterface } from "node:readline";
413364
- var VERSION2 = "0.42.7";
413360
+ var VERSION2 = "0.43.1";
413365
413361
  var HELP = `popcraft ${VERSION2} \u2014 the PopCraft command line
413366
413362
 
413367
413363
  Files (headless, on .popcraft files):
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@popcraft/cli",
3
- "version": "0.42.7",
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.42.7"
37
+ "@popcraft/kit": "0.43.1"
38
38
  },
39
39
  "scripts": {
40
40
  "build": "node build.mjs",