@popcraft/cli 0.50.2 → 0.51.0

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 +18 -10
  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.50.2"}`, ...opts.headers };
1199
+ const headers = { "user-agent": `popcraft-cli/${"0.51.0"}`, ...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 {
@@ -33955,10 +33955,13 @@ var init_en2 = __esm({
33955
33955
  "homeTemplates.browseAll": "Browse all templates",
33956
33956
  "homeTemplates.communityBody": "Templates people made and shared. Tap one to start from a copy.",
33957
33957
  "homeTemplates.fromTheCommunity": "From the community",
33958
+ "homeTemplates.loadMore": "Load more templates",
33958
33959
  "homeTemplates.loading": "Loading templates\u2026",
33960
+ "homeTemplates.loadingMore": "Loading more templates\u2026",
33959
33961
  "homeTemplates.noneInThisGroup": "No templates in this group yet.",
33960
33962
  "homeTemplates.pickOneToOpen": "Pick one and it opens as a new file, ready to edit.",
33961
33963
  "homeTemplates.startFromATemplate": "Start from a template",
33964
+ "homeTemplates.thatsEverything": "That\u2019s every template for now.",
33962
33965
  "homeTemplates.useTemplate": "Use the {name} template",
33963
33966
  "homeWelcome.about": "About",
33964
33967
  "homeWelcome.aboutPopCraft": "About PopCraft",
@@ -94512,7 +94515,6 @@ function hasMessage(key5) {
94512
94515
  var current2, loading, listeners, formats, asts;
94513
94516
  var init_runtime = __esm({
94514
94517
  "lib/i18n/runtime.ts"() {
94515
- "use strict";
94516
94518
  init_intl_messageformat();
94517
94519
  init_icu_messageformat_parser();
94518
94520
  init_catalogs();
@@ -96490,6 +96492,7 @@ async function sha256Prefix(bytes2) {
96490
96492
  }
96491
96493
  var init_media_hash = __esm({
96492
96494
  "lib/storage/media-hash.ts"() {
96495
+ "use strict";
96493
96496
  }
96494
96497
  });
96495
96498
 
@@ -96872,6 +96875,7 @@ function releaseMediaMemory(hash3) {
96872
96875
  var key2, peaksKey, objectUrls, sourceKey, remoteResolver, MEDIA_FETCH_TIMEOUT_MS, SHIPPED_MEDIA_PATH, notShipped, MEDIA_SCHEME, isImageDataUrl, memory, pendingLoads, sourceAliases, PAINT_KEYS, URL_KEYS;
96873
96876
  var init_media_store = __esm({
96874
96877
  "lib/storage/media-store.ts"() {
96878
+ "use strict";
96875
96879
  init_media_types();
96876
96880
  init_idb();
96877
96881
  init_media_hash();
@@ -97388,6 +97392,7 @@ function selectionWorldBounds(nodes, ids2, scrollState) {
97388
97392
  }
97389
97393
  var init_selection_bounds = __esm({
97390
97394
  "lib/editor/selection-bounds.ts"() {
97395
+ "use strict";
97391
97396
  init_scene_graph();
97392
97397
  init_transform();
97393
97398
  }
@@ -248028,6 +248033,7 @@ function repairCompositions(comps, nodes) {
248028
248033
  var isObj5, finite6, optFinite, isVec2, TIMELINE_COLOR_IDS, TIMELINE_COLORS, UNITS, ORDERS, PROP_KEYS, ANIMATOR_ID, MOTION_TYPES, TRANSITIONS, isFraction, MEDIA_HASH;
248029
248034
  var init_invariants = __esm({
248030
248035
  "lib/motion/invariants.ts"() {
248036
+ "use strict";
248031
248037
  init_easing();
248032
248038
  init_properties();
248033
248039
  init_markers();
@@ -249150,6 +249156,7 @@ function beforeWrite() {
249150
249156
  var leave;
249151
249157
  var init_read_only = __esm({
249152
249158
  "lib/editor/modes/read-only.ts"() {
249159
+ "use strict";
249153
249160
  leave = null;
249154
249161
  }
249155
249162
  });
@@ -252591,6 +252598,7 @@ function resizeWindow(doc2, target2, rect) {
252591
252598
  }
252592
252599
  var init_crop = __esm({
252593
252600
  "lib/editor/crop.ts"() {
252601
+ "use strict";
252594
252602
  init_dist_node();
252595
252603
  init_scene_graph();
252596
252604
  init_photo_frames();
@@ -253054,6 +253062,7 @@ function getActiveRenderer() {
253054
253062
  var active;
253055
253063
  var init_renderer_registry = __esm({
253056
253064
  "lib/engine/renderer-registry.ts"() {
253065
+ "use strict";
253057
253066
  active = null;
253058
253067
  }
253059
253068
  });
@@ -257086,6 +257095,7 @@ function followPeers(peers) {
257086
257095
  var PALETTE, usePresence, awareness, CURSOR_SEND_MS, VIEWPORT_SEND_MS, cursorTimer, pendingCursor, sentCursor, EMOTE_MS, lastFollowCamera;
257087
257096
  var init_presence = __esm({
257088
257097
  "lib/collab/presence.ts"() {
257098
+ "use strict";
257089
257099
  init_esm();
257090
257100
  init_editor_store();
257091
257101
  init_status_announcements();
@@ -311653,7 +311663,6 @@ function startCloudSync() {
311653
311663
  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;
311654
311664
  var init_sync2 = __esm({
311655
311665
  "lib/client/cloud/sync.ts"() {
311656
- "use strict";
311657
311666
  init_paint_repair();
311658
311667
  init_migrate();
311659
311668
  init_view();
@@ -311863,6 +311872,7 @@ async function dispatchShaped(key5, options) {
311863
311872
  var onViolation;
311864
311873
  var init_dispatch = __esm({
311865
311874
  "lib/commands/dispatch.ts"() {
311875
+ "use strict";
311866
311876
  init_errors();
311867
311877
  init_registry();
311868
311878
  init_confirm();
@@ -312924,7 +312934,6 @@ function applyTextPath(layout2, path, tp, rebase = true) {
312924
312934
  var defaultCircleRadius, ownsPath, mapPoint;
312925
312935
  var init_text_path = __esm({
312926
312936
  "lib/engine/text/text-path.ts"() {
312927
- "use strict";
312928
312937
  init_scene_graph();
312929
312938
  init_transform();
312930
312939
  init_shape_to_path();
@@ -313042,7 +313051,6 @@ function areaBounds(rings) {
313042
313051
  }
313043
313052
  var init_text_area = __esm({
313044
313053
  "lib/engine/text/text-area.ts"() {
313045
- "use strict";
313046
313054
  }
313047
313055
  });
313048
313056
 
@@ -317387,6 +317395,7 @@ async function exportSettingFile(renderer, node2, setting, doc2, styles) {
317387
317395
  var MIME, DEFAULT_EXPORT, exportSettingsOf;
317388
317396
  var init_export = __esm({
317389
317397
  "lib/io/export.ts"() {
317398
+ "use strict";
317390
317399
  init_download();
317391
317400
  init_scene_graph();
317392
317401
  init_codecs();
@@ -318320,7 +318329,6 @@ function agentToolList() {
318320
318329
  var AGENT_CAPABILITIES, legacyCommandId, legacyTools, blobToDataUrl3, provided, legacyTool, legacyToolList;
318321
318330
  var init_agent = __esm({
318322
318331
  "lib/commands/agent.ts"() {
318323
- "use strict";
318324
318332
  init_types5();
318325
318333
  init_registry();
318326
318334
  init_errors();
@@ -328475,7 +328483,7 @@ var init_package = __esm({
328475
328483
  "packages/runtime/package.json"() {
328476
328484
  package_default = {
328477
328485
  name: "@popcraft/runtime",
328478
- version: "0.50.2",
328486
+ version: "0.51.0",
328479
328487
  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.",
328480
328488
  license: "MIT",
328481
328489
  homepage: "https://popcraft.app/docs/exporting/nextjs",
@@ -353141,7 +353149,6 @@ function exportsOf(source3) {
353141
353149
  var CODE_LIMITS, packageOf;
353142
353150
  var init_source2 = __esm({
353143
353151
  "lib/code/source.ts"() {
353144
- "use strict";
353145
353152
  CODE_LIMITS = { modules: 100, sourceLength: 2e5, packages: 12 };
353146
353153
  packageOf = (spec) => spec.split("/").slice(0, spec.startsWith("@") ? 2 : 1).join("/");
353147
353154
  }
@@ -353184,7 +353191,6 @@ function compileModule(module2) {
353184
353191
  var import_sucrase, BUILT_IN, memo4;
353185
353192
  var init_compile2 = __esm({
353186
353193
  "lib/code/compile.ts"() {
353187
- "use strict";
353188
353194
  import_sucrase = __toESM(require_dist2());
353189
353195
  init_source2();
353190
353196
  init_source2();
@@ -362227,6 +362233,7 @@ var init_delete_current_file = __esm({
362227
362233
  var storeOpsSeam;
362228
362234
  var init_seams = __esm({
362229
362235
  "lib/commands/seams.ts"() {
362236
+ "use strict";
362230
362237
  storeOpsSeam = (st) => ({
362231
362238
  booleanOperation: (op4) => st().booleanOperation(op4),
362232
362239
  flatten: () => st().flattenSelection(),
@@ -406452,6 +406459,7 @@ function registerBuiltinCommands() {
406452
406459
  var builtinCommands, uiOnlyCommands;
406453
406460
  var init_builtin4 = __esm({
406454
406461
  "lib/commands/builtin.ts"() {
406462
+ "use strict";
406455
406463
  init_registry();
406456
406464
  init_node();
406457
406465
  init_node();
@@ -414056,7 +414064,7 @@ init_resources();
414056
414064
  init_desktop();
414057
414065
  init_hypery();
414058
414066
  import { createInterface } from "node:readline";
414059
- var VERSION2 = "0.50.2";
414067
+ var VERSION2 = "0.51.0";
414060
414068
  var HELP = `popcraft ${VERSION2} \u2014 the PopCraft command line
414061
414069
 
414062
414070
  Files (headless, on .popcraft files):
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@popcraft/cli",
3
- "version": "0.50.2",
3
+ "version": "0.51.0",
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.50.2"
37
+ "@popcraft/kit": "0.51.0"
38
38
  },
39
39
  "scripts": {
40
40
  "build": "node build.mjs",