@popcraft/cli 0.8.4 → 0.8.5

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 +7 -18
  2. package/package.json +2 -2
package/dist/popcraft.mjs CHANGED
@@ -1173,7 +1173,7 @@ function operations(spec = openapi) {
1173
1173
  }
1174
1174
  async function call(target2, method, path, opts = {}) {
1175
1175
  const qs = new URLSearchParams(opts.query ?? {}).toString();
1176
- const headers = { "user-agent": `popcraft-cli/${"0.8.4"}`, ...opts.headers };
1176
+ const headers = { "user-agent": `popcraft-cli/${"0.8.5"}`, ...opts.headers };
1177
1177
  if (target2.token) headers.authorization = `Bearer ${target2.token}`;
1178
1178
  if (opts.contentType) headers["content-type"] = opts.contentType;
1179
1179
  try {
@@ -85981,6 +85981,7 @@ function repairDocumentPaints(doc2) {
85981
85981
  var broken;
85982
85982
  var init_paint_repair = __esm({
85983
85983
  "lib/document/paint-repair.ts"() {
85984
+ "use strict";
85984
85985
  init_shader_graph();
85985
85986
  broken = (p2) => {
85986
85987
  if (!p2 || typeof p2 !== "object") return false;
@@ -87259,7 +87260,6 @@ function relinkCopies(doc2, copies) {
87259
87260
  var TEXT_PATH_SOURCE_TYPES, isPathSource;
87260
87261
  var init_text_links = __esm({
87261
87262
  "lib/document/text-links.ts"() {
87262
- "use strict";
87263
87263
  init_transform();
87264
87264
  TEXT_PATH_SOURCE_TYPES = ["VECTOR", "ELLIPSE", "RECTANGLE", "POLYGON", "STAR", "LINE", "ARROW", "FRAME"];
87265
87265
  isPathSource = (n) => !!n && TEXT_PATH_SOURCE_TYPES.includes(n.type);
@@ -87971,7 +87971,6 @@ function isAutoLayout(node2) {
87971
87971
  }
87972
87972
  var init_auto_layout = __esm({
87973
87973
  "lib/document/auto-layout.ts"() {
87974
- "use strict";
87975
87974
  init_instance_layout();
87976
87975
  setLayoutEngine(applyAutoLayout);
87977
87976
  }
@@ -90916,7 +90915,6 @@ function layerInputPatch(node2, name2, path) {
90916
90915
  var NO_RUNTIME, MAX_DEPTH, freshIndex, indexOf, isComponentLike, selfStarting, startedAt, endMemo, HOST_OWNS, rootTracksMemo, layerMemo, idle;
90917
90916
  var init_instances2 = __esm({
90918
90917
  "lib/motion/instances.ts"() {
90919
- "use strict";
90920
90918
  init_node_delta();
90921
90919
  init_instances();
90922
90920
  init_scene_graph();
@@ -91188,7 +91186,6 @@ function repairStateMachine(raw, markerIds, hasNode) {
91188
91186
  var STATE_MACHINE_INPUT_TYPES, STATE_MACHINE_GUARD_OPS, STATE_MACHINE_ACTION_TYPES, STATE_MACHINE_LISTENER_TYPES, isKeyListener, ANY_STATE, MAX_STEPS2, byId2, sortedValues, machineOf, startValue, isObj3, finite4, isValue, goodId;
91189
91187
  var init_state_machine = __esm({
91190
91188
  "lib/motion/state-machine.ts"() {
91191
- "use strict";
91192
91189
  STATE_MACHINE_INPUT_TYPES = ["boolean", "number", "string", "event"];
91193
91190
  STATE_MACHINE_GUARD_OPS = ["eq", "neq", "gt", "gte", "lt", "lte"];
91194
91191
  STATE_MACHINE_ACTION_TYPES = ["set", "toggle", "increment", "decrement", "fire", "reset"];
@@ -235369,7 +235366,6 @@ function repairCompositions(comps, nodes) {
235369
235366
  var isObj5, finite6, optFinite, isVec2, TIMELINE_COLOR_IDS, TIMELINE_COLORS, UNITS, ORDERS, PROP_KEYS, ANIMATOR_ID, MOTION_TYPES, TRANSITIONS, isFraction, MEDIA_HASH;
235370
235367
  var init_invariants = __esm({
235371
235368
  "lib/motion/invariants.ts"() {
235372
- "use strict";
235373
235369
  init_easing();
235374
235370
  init_properties();
235375
235371
  init_markers();
@@ -239894,7 +239890,6 @@ function resizeWindow(doc2, target2, rect) {
239894
239890
  }
239895
239891
  var init_crop = __esm({
239896
239892
  "lib/editor/crop.ts"() {
239897
- "use strict";
239898
239893
  init_dist_node();
239899
239894
  init_scene_graph();
239900
239895
  init_photo_frames();
@@ -243417,7 +243412,6 @@ fn shade(uv: vec2<f32>, res: vec2<f32>, tm: f32) -> vec4<f32> {
243417
243412
  var SHADER_PRESETS, shaderPreset, legacyPresetOf, DEFAULT_SHADER_PRESET, DEFAULT_TEXTURE_PARAMS, f, vec4, NOISE_LIB;
243418
243413
  var init_shader_presets = __esm({
243419
243414
  "lib/engine/shader-presets.ts"() {
243420
- "use strict";
243421
243415
  init_shader_graph();
243422
243416
  init_shader_graph_presets();
243423
243417
  init_shader_presets_legacy();
@@ -247758,7 +247752,6 @@ function retuneShaderAudio(node2, fillId) {
247758
247752
  }
247759
247753
  var init_shader_audio = __esm({
247760
247754
  "lib/motion/shader-audio.ts"() {
247761
- "use strict";
247762
247755
  init_shader_params();
247763
247756
  init_modifier_edit();
247764
247757
  init_keys();
@@ -293248,7 +293241,6 @@ function decodeSource(key5, label3) {
293248
293241
  var DECODE_CACHE_BYTES, cache7, pending3, held, sizeOf, lengths, decodedLengths, DECODE_TIMEOUT_MS, decodedAudio, decodedSource, pcmOf;
293249
293242
  var init_audio_decode = __esm({
293250
293243
  "lib/motion/audio-decode.ts"() {
293251
- "use strict";
293252
293244
  init_media_store();
293253
293245
  init_audio_plan();
293254
293246
  init_time_stretch();
@@ -296449,7 +296441,6 @@ async function createFreshFileOrExplain(place3 = {}, seed2 = {}) {
296449
296441
  var online, goesLocal;
296450
296442
  var init_new_file = __esm({
296451
296443
  "lib/client/cloud/new-file.ts"() {
296452
- "use strict";
296453
296444
  init_scene_graph();
296454
296445
  init_print_pages();
296455
296446
  init_page_presets();
@@ -296957,6 +296948,7 @@ function startCloudSync() {
296957
296948
  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, putThumbnail, openingFiles, mediaHealed, started;
296958
296949
  var init_sync2 = __esm({
296959
296950
  "lib/client/cloud/sync.ts"() {
296951
+ "use strict";
296960
296952
  init_paint_repair();
296961
296953
  init_migrate();
296962
296954
  init_view();
@@ -298206,7 +298198,6 @@ function applyTextPath(layout2, path, tp, rebase = true) {
298206
298198
  var defaultCircleRadius, ownsPath, mapPoint;
298207
298199
  var init_text_path = __esm({
298208
298200
  "lib/engine/text/text-path.ts"() {
298209
- "use strict";
298210
298201
  init_scene_graph();
298211
298202
  init_transform();
298212
298203
  init_shape_to_path();
@@ -298324,7 +298315,6 @@ function areaBounds(rings) {
298324
298315
  }
298325
298316
  var init_text_area = __esm({
298326
298317
  "lib/engine/text/text-area.ts"() {
298327
- "use strict";
298328
298318
  }
298329
298319
  });
298330
298320
 
@@ -312852,7 +312842,7 @@ var init_package = __esm({
312852
312842
  "packages/runtime/package.json"() {
312853
312843
  package_default = {
312854
312844
  name: "@popcraft/runtime",
312855
- version: "0.8.4",
312845
+ version: "0.8.5",
312856
312846
  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.",
312857
312847
  license: "MIT",
312858
312848
  homepage: "https://popcraft.app/docs/exporting/nextjs",
@@ -313478,6 +313468,7 @@ function routesOf(screens) {
313478
313468
  var slug2;
313479
313469
  var init_routes = __esm({
313480
313470
  "lib/document/routes.ts"() {
313471
+ "use strict";
313481
313472
  slug2 = (s) => s.toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/^-|-$/g, "");
313482
313473
  }
313483
313474
  });
@@ -313607,6 +313598,7 @@ function fieldPart(nodes, id3) {
313607
313598
  var cleanName2;
313608
313599
  var init_controls = __esm({
313609
313600
  "lib/document/controls.ts"() {
313601
+ "use strict";
313610
313602
  cleanName2 = (raw) => raw.trim().replace(/[^A-Za-z0-9_-]+/g, "-").replace(/^-+|-+$/g, "");
313611
313603
  }
313612
313604
  });
@@ -345044,7 +345036,6 @@ function designRecorder() {
345044
345036
  var installed;
345045
345037
  var init_recorders = __esm({
345046
345038
  "lib/agent/design-script/recorders.ts"() {
345047
- "use strict";
345048
345039
  installed = null;
345049
345040
  }
345050
345041
  });
@@ -345071,7 +345062,6 @@ function designFrameOf(doc2, id3) {
345071
345062
  }
345072
345063
  var init_locate = __esm({
345073
345064
  "lib/agent/design-script/locate.ts"() {
345074
- "use strict";
345075
345065
  }
345076
345066
  });
345077
345067
 
@@ -345310,7 +345300,6 @@ function placeDesign(doc2, built, source3, size6, name2, at3) {
345310
345300
  var DESIGN_NAMESPACES, DERIVED2, templateOfBuild;
345311
345301
  var init_build3 = __esm({
345312
345302
  "lib/agent/design-script/build.ts"() {
345313
- "use strict";
345314
345303
  init_hash();
345315
345304
  init_scene_graph();
345316
345305
  init_libraries();
@@ -393404,7 +393393,7 @@ init_resources();
393404
393393
  init_desktop();
393405
393394
  init_hypery();
393406
393395
  import { createInterface } from "node:readline";
393407
- var VERSION2 = "0.8.4";
393396
+ var VERSION2 = "0.8.5";
393408
393397
  var HELP = `popcraft ${VERSION2} \u2014 the PopCraft command line
393409
393398
 
393410
393399
  Files (headless, on .popcraft files):
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@popcraft/cli",
3
- "version": "0.8.4",
3
+ "version": "0.8.5",
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.8.4"
37
+ "@popcraft/kit": "0.8.5"
38
38
  },
39
39
  "scripts": {
40
40
  "build": "node build.mjs",