@popcraft/cli 0.7.0 → 0.7.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 +7 -18
  2. package/package.json +2 -2
package/dist/popcraft.mjs CHANGED
@@ -378,7 +378,6 @@ var init_page_presets = __esm({
378
378
  var TEMPLATE_GROUP_IDS, t, ids, COMIC_PRESETS, TEMPLATE_GROUPS, BY_ID, TEMPLATE_TYPES, typesForKind;
379
379
  var init_groups = __esm({
380
380
  "lib/templates/groups.ts"() {
381
- "use strict";
382
381
  init_page_presets();
383
382
  TEMPLATE_GROUP_IDS = ["print", "comic", "social", "slides", "web", "app", "game", "email", "motion", "board"];
384
383
  t = (id3, label3, ...kinds) => ({ id: id3, label: label3, kinds });
@@ -1174,7 +1173,7 @@ function operations(spec = openapi) {
1174
1173
  }
1175
1174
  async function call(target2, method, path, opts = {}) {
1176
1175
  const qs = new URLSearchParams(opts.query ?? {}).toString();
1177
- const headers = { "user-agent": `popcraft-cli/${"0.7.0"}`, ...opts.headers };
1176
+ const headers = { "user-agent": `popcraft-cli/${"0.7.1"}`, ...opts.headers };
1178
1177
  if (target2.token) headers.authorization = `Bearer ${target2.token}`;
1179
1178
  if (opts.contentType) headers["content-type"] = opts.contentType;
1180
1179
  try {
@@ -7973,6 +7972,7 @@ function updateConnectors(document2, movedNodeIds) {
7973
7972
  var ZERO_TRANSFORM, ROOT, resolverCache, OBSTACLE_TYPES, connectorIdCache;
7974
7973
  var init_scene_graph = __esm({
7975
7974
  "lib/document/scene-graph.ts"() {
7975
+ "use strict";
7976
7976
  init_dist_node();
7977
7977
  init_effects();
7978
7978
  init_variables();
@@ -85937,6 +85937,7 @@ function repairDocumentPaints(doc2) {
85937
85937
  var broken;
85938
85938
  var init_paint_repair = __esm({
85939
85939
  "lib/document/paint-repair.ts"() {
85940
+ "use strict";
85940
85941
  init_shader_graph();
85941
85942
  broken = (p2) => {
85942
85943
  if (!p2 || typeof p2 !== "object") return false;
@@ -87161,7 +87162,6 @@ function relinkCopies(doc2, copies) {
87161
87162
  var TEXT_PATH_SOURCE_TYPES, isPathSource;
87162
87163
  var init_text_links = __esm({
87163
87164
  "lib/document/text-links.ts"() {
87164
- "use strict";
87165
87165
  init_transform();
87166
87166
  TEXT_PATH_SOURCE_TYPES = ["VECTOR", "ELLIPSE", "RECTANGLE", "POLYGON", "STAR", "LINE", "ARROW", "FRAME"];
87167
87167
  isPathSource = (n) => !!n && TEXT_PATH_SOURCE_TYPES.includes(n.type);
@@ -87873,7 +87873,6 @@ function isAutoLayout(node2) {
87873
87873
  }
87874
87874
  var init_auto_layout = __esm({
87875
87875
  "lib/document/auto-layout.ts"() {
87876
- "use strict";
87877
87876
  init_instance_layout();
87878
87877
  setLayoutEngine(applyAutoLayout);
87879
87878
  }
@@ -90678,7 +90677,6 @@ function layerInputPatch(node2, name2, path) {
90678
90677
  var NO_RUNTIME, MAX_DEPTH, freshIndex, indexOf, isComponentLike, selfStarting, startedAt, endMemo, HOST_OWNS, rootTracksMemo, layerMemo, idle;
90679
90678
  var init_instances2 = __esm({
90680
90679
  "lib/motion/instances.ts"() {
90681
- "use strict";
90682
90680
  init_node_delta();
90683
90681
  init_instances();
90684
90682
  init_scene_graph();
@@ -90950,7 +90948,6 @@ function repairStateMachine(raw, markerIds, hasNode) {
90950
90948
  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;
90951
90949
  var init_state_machine = __esm({
90952
90950
  "lib/motion/state-machine.ts"() {
90953
- "use strict";
90954
90951
  STATE_MACHINE_INPUT_TYPES = ["boolean", "number", "string", "event"];
90955
90952
  STATE_MACHINE_GUARD_OPS = ["eq", "neq", "gt", "gte", "lt", "lte"];
90956
90953
  STATE_MACHINE_ACTION_TYPES = ["set", "toggle", "increment", "decrement", "fire", "reset"];
@@ -235131,7 +235128,6 @@ function repairCompositions(comps, nodes) {
235131
235128
  var isObj5, finite6, optFinite, isVec2, TIMELINE_COLOR_IDS, TIMELINE_COLORS, UNITS, ORDERS, PROP_KEYS, ANIMATOR_ID, MOTION_TYPES, TRANSITIONS, isFraction, MEDIA_HASH;
235132
235129
  var init_invariants = __esm({
235133
235130
  "lib/motion/invariants.ts"() {
235134
- "use strict";
235135
235131
  init_easing();
235136
235132
  init_properties();
235137
235133
  init_markers();
@@ -239656,7 +239652,6 @@ function resizeWindow(doc2, target2, rect) {
239656
239652
  }
239657
239653
  var init_crop = __esm({
239658
239654
  "lib/editor/crop.ts"() {
239659
- "use strict";
239660
239655
  init_dist_node();
239661
239656
  init_scene_graph();
239662
239657
  init_photo_frames();
@@ -243179,7 +243174,6 @@ fn shade(uv: vec2<f32>, res: vec2<f32>, tm: f32) -> vec4<f32> {
243179
243174
  var SHADER_PRESETS, shaderPreset, legacyPresetOf, DEFAULT_SHADER_PRESET, DEFAULT_TEXTURE_PARAMS, f, vec4, NOISE_LIB;
243180
243175
  var init_shader_presets = __esm({
243181
243176
  "lib/engine/shader-presets.ts"() {
243182
- "use strict";
243183
243177
  init_shader_graph();
243184
243178
  init_shader_graph_presets();
243185
243179
  init_shader_presets_legacy();
@@ -247520,7 +247514,6 @@ function retuneShaderAudio(node2, fillId) {
247520
247514
  }
247521
247515
  var init_shader_audio = __esm({
247522
247516
  "lib/motion/shader-audio.ts"() {
247523
- "use strict";
247524
247517
  init_shader_params();
247525
247518
  init_modifier_edit();
247526
247519
  init_keys();
@@ -248292,7 +248285,6 @@ function hrefOf(link2, nodes, routes) {
248292
248285
  var anchorOf, cleanAnchor, opensNewTab;
248293
248286
  var init_semantics = __esm({
248294
248287
  "lib/document/semantics.ts"() {
248295
- "use strict";
248296
248288
  init_safe_url();
248297
248289
  anchorOf = (node2) => node2.semantics?.anchor || `pc-${node2.id.replace(/[^A-Za-z0-9_-]/g, "-")}`;
248298
248290
  cleanAnchor = (raw) => raw.trim().toLowerCase().replace(/^#/, "").replace(/[^a-z0-9_-]+/g, "-").replace(/^-+|-+$/g, "");
@@ -248500,7 +248492,6 @@ function removeRecords(doc2, ids2) {
248500
248492
  var COLLECTION_LIMITS, slugify2, dataMemo, withData, ITEM_RECORD, MARK, itemMark, templateRecord, compare, TOKEN2, hasItemToken, layerId, copyRecord, coerce3, newId;
248501
248493
  var init_collections = __esm({
248502
248494
  "lib/document/collections.ts"() {
248503
- "use strict";
248504
248495
  init_expressions2();
248505
248496
  init_variables();
248506
248497
  init_contract();
@@ -296704,6 +296695,7 @@ function startCloudSync() {
296704
296695
  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;
296705
296696
  var init_sync2 = __esm({
296706
296697
  "lib/client/cloud/sync.ts"() {
296698
+ "use strict";
296707
296699
  init_paint_repair();
296708
296700
  init_migrate();
296709
296701
  init_view();
@@ -312569,7 +312561,7 @@ var init_package = __esm({
312569
312561
  "packages/runtime/package.json"() {
312570
312562
  package_default = {
312571
312563
  name: "@popcraft/runtime",
312572
- version: "0.7.0",
312564
+ version: "0.7.1",
312573
312565
  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.",
312574
312566
  license: "MIT",
312575
312567
  homepage: "https://popcraft.app/docs/exporting/nextjs",
@@ -337423,7 +337415,6 @@ function fieldPart(nodes, id3) {
337423
337415
  var cleanName2;
337424
337416
  var init_controls = __esm({
337425
337417
  "lib/document/controls.ts"() {
337426
- "use strict";
337427
337418
  cleanName2 = (raw) => raw.trim().replace(/[^A-Za-z0-9_-]+/g, "-").replace(/^-+|-+$/g, "");
337428
337419
  }
337429
337420
  });
@@ -344184,6 +344175,7 @@ function publishSite(key5, files, opts = {}) {
344184
344175
  var siteStatus, setSiteVersion, renameSite;
344185
344176
  var init_sites = __esm({
344186
344177
  "lib/client/cloud/sites.ts"() {
344178
+ "use strict";
344187
344179
  init_files();
344188
344180
  init_upload2();
344189
344181
  init_api4();
@@ -344697,7 +344689,6 @@ function designRecorder() {
344697
344689
  var installed;
344698
344690
  var init_recorders = __esm({
344699
344691
  "lib/agent/design-script/recorders.ts"() {
344700
- "use strict";
344701
344692
  installed = null;
344702
344693
  }
344703
344694
  });
@@ -344724,7 +344715,6 @@ function designFrameOf(doc2, id3) {
344724
344715
  }
344725
344716
  var init_locate = __esm({
344726
344717
  "lib/agent/design-script/locate.ts"() {
344727
- "use strict";
344728
344718
  }
344729
344719
  });
344730
344720
 
@@ -344963,7 +344953,6 @@ function placeDesign(doc2, built, source3, size6, name2, at3) {
344963
344953
  var DESIGN_NAMESPACES, DERIVED2, templateOfBuild;
344964
344954
  var init_build3 = __esm({
344965
344955
  "lib/agent/design-script/build.ts"() {
344966
- "use strict";
344967
344956
  init_hash();
344968
344957
  init_scene_graph();
344969
344958
  init_libraries();
@@ -393030,7 +393019,7 @@ init_resources();
393030
393019
  init_desktop();
393031
393020
  init_hypery();
393032
393021
  import { createInterface } from "node:readline";
393033
- var VERSION2 = "0.7.0";
393022
+ var VERSION2 = "0.7.1";
393034
393023
  var HELP = `popcraft ${VERSION2} \u2014 the PopCraft command line
393035
393024
 
393036
393025
  Files (headless, on .popcraft files):
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@popcraft/cli",
3
- "version": "0.7.0",
3
+ "version": "0.7.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.7.0"
37
+ "@popcraft/kit": "0.7.1"
38
38
  },
39
39
  "scripts": {
40
40
  "build": "node build.mjs",