@popcraft/cli 0.53.9 → 0.53.11

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 +39 -6
  2. package/package.json +2 -2
package/dist/popcraft.mjs CHANGED
@@ -1198,7 +1198,7 @@ function operations(spec = openapi) {
1198
1198
  }
1199
1199
  async function call(target2, method, path, opts = {}) {
1200
1200
  const qs = new URLSearchParams(opts.query ?? {}).toString();
1201
- const headers = { "user-agent": `popcraft-cli/${"0.53.9"}`, ...opts.headers };
1201
+ const headers = { "user-agent": `popcraft-cli/${"0.53.11"}`, ...opts.headers };
1202
1202
  if (target2.token) headers.authorization = `Bearer ${target2.token}`;
1203
1203
  if (opts.contentType) headers["content-type"] = opts.contentType;
1204
1204
  try {
@@ -32454,6 +32454,7 @@ var init_en2 = __esm({
32454
32454
  "canvas.comment": "Comment",
32455
32455
  "canvas.dismiss": "Dismiss",
32456
32456
  "canvas.dragToLassoLayers": "Drag to lasso layers",
32457
+ "canvas.figmaCopyCantBePasted": "Figma's Copy can't be pasted here. In Figma, use Copy as SVG or Copy as PNG.",
32457
32458
  "canvas.forStraightEdges": "for straight edges",
32458
32459
  "canvas.hold": "hold",
32459
32460
  "canvas.linkSchemeNotAllowed": "Only http, https, mailto and tel links are allowed.",
@@ -35195,6 +35196,7 @@ var init_en2 = __esm({
35195
35196
  "pluginOverlays.installedByYourWorkspace": "Installed by your workspace",
35196
35197
  "pluginOverlays.installForEveryoneIn": "Install for everyone in {name}",
35197
35198
  "pluginOverlays.installFromFile": "Install from file\u2026",
35199
+ "pluginOverlays.installing": "Installing\u2026",
35198
35200
  "pluginOverlays.local": "Local",
35199
35201
  "pluginOverlays.manifestJsonCodeOrA": "(manifest.json + code) or a single-file",
35200
35202
  "pluginOverlays.marketplace": "Marketplace",
@@ -35208,6 +35210,7 @@ var init_en2 = __esm({
35208
35210
  "pluginOverlays.plugins": "Plugins",
35209
35211
  "pluginOverlays.published": "Published {name} {version}",
35210
35212
  "pluginOverlays.publishFromFile": "Publish from file\u2026",
35213
+ "pluginOverlays.publishing": "Publishing\u2026",
35211
35214
  "pluginOverlays.publishToTheMarketplace": "Publish to the marketplace",
35212
35215
  "pluginOverlays.reject": "Reject",
35213
35216
  "pluginOverlays.rejected": "Rejected",
@@ -248028,6 +248031,7 @@ function repairCompositions(comps, nodes) {
248028
248031
  var isObj5, finite6, optFinite, isVec2, TIMELINE_COLOR_IDS, TIMELINE_COLORS, UNITS, ORDERS, PROP_KEYS, ANIMATOR_ID, MOTION_TYPES, TRANSITIONS, isFraction, MEDIA_HASH;
248029
248032
  var init_invariants = __esm({
248030
248033
  "lib/motion/invariants.ts"() {
248034
+ "use strict";
248031
248035
  init_easing();
248032
248036
  init_properties();
248033
248037
  init_markers();
@@ -248124,6 +248128,7 @@ function resyncText(doc2, ids2) {
248124
248128
  var isVirtualId;
248125
248129
  var init_invariants2 = __esm({
248126
248130
  "lib/document/invariants.ts"() {
248131
+ "use strict";
248127
248132
  init_auto_layout();
248128
248133
  init_scene_graph();
248129
248134
  init_text_bounds();
@@ -249150,6 +249155,7 @@ function beforeWrite() {
249150
249155
  var leave;
249151
249156
  var init_read_only = __esm({
249152
249157
  "lib/editor/modes/read-only.ts"() {
249158
+ "use strict";
249153
249159
  leave = null;
249154
249160
  }
249155
249161
  });
@@ -256746,6 +256752,7 @@ function mergeFonts(fonts, incoming) {
256746
256752
  var fontWeightOf, fontStyleOf, sameSlot, hashOf, documentFontHashes;
256747
256753
  var init_document_fonts = __esm({
256748
256754
  "lib/fonts/document-fonts.ts"() {
256755
+ "use strict";
256749
256756
  init_media_store();
256750
256757
  init_media_hash();
256751
256758
  fontWeightOf = (f2) => f2.weight ?? 400;
@@ -257158,6 +257165,7 @@ function followPeers(peers) {
257158
257165
  var PALETTE, usePresence, awareness, CURSOR_SEND_MS, VIEWPORT_SEND_MS, cursorTimer, pendingCursor, sentCursor, EMOTE_MS, lastFollowCamera;
257159
257166
  var init_presence = __esm({
257160
257167
  "lib/collab/presence.ts"() {
257168
+ "use strict";
257161
257169
  init_esm();
257162
257170
  init_editor_store();
257163
257171
  init_status_announcements();
@@ -262765,6 +262773,7 @@ function formatDate(date5, opts = { month: "short", day: "numeric", year: "numer
262765
262773
  var cache5, nf;
262766
262774
  var init_format = __esm({
262767
262775
  "lib/i18n/format.ts"() {
262776
+ "use strict";
262768
262777
  init_runtime();
262769
262778
  cache5 = /* @__PURE__ */ new Map();
262770
262779
  nf = (opts) => cached2("n", opts, (l) => new Intl.NumberFormat(l, opts));
@@ -311991,7 +312000,6 @@ async function dispatchShaped(key5, options) {
311991
312000
  var onViolation;
311992
312001
  var init_dispatch = __esm({
311993
312002
  "lib/commands/dispatch.ts"() {
311994
- "use strict";
311995
312003
  init_errors();
311996
312004
  init_registry();
311997
312005
  init_confirm();
@@ -312391,6 +312399,7 @@ function creditLine(c2) {
312391
312399
  var MAX_PHOTO_PAGE, MAX_PHOTO_QUERY, UUID, isPhotoId, photoImagePath;
312392
312400
  var init_stock = __esm({
312393
312401
  "lib/photos/stock.ts"() {
312402
+ "use strict";
312394
312403
  MAX_PHOTO_PAGE = 12;
312395
312404
  MAX_PHOTO_QUERY = 200;
312396
312405
  UUID = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
@@ -313052,6 +313061,7 @@ function applyTextPath(layout2, path, tp, rebase = true) {
313052
313061
  var defaultCircleRadius, ownsPath, mapPoint;
313053
313062
  var init_text_path = __esm({
313054
313063
  "lib/engine/text/text-path.ts"() {
313064
+ "use strict";
313055
313065
  init_scene_graph();
313056
313066
  init_transform();
313057
313067
  init_shape_to_path();
@@ -313169,6 +313179,7 @@ function areaBounds(rings) {
313169
313179
  }
313170
313180
  var init_text_area = __esm({
313171
313181
  "lib/engine/text/text-area.ts"() {
313182
+ "use strict";
313172
313183
  }
313173
313184
  });
313174
313185
 
@@ -319244,6 +319255,8 @@ var init_ui = __esm({
319244
319255
  var svg_place_exports = {};
319245
319256
  __export(svg_place_exports, {
319246
319257
  MAX_SVG_LAYER_BYTES: () => MAX_SVG_LAYER_BYTES,
319258
+ extractSvgMarkup: () => extractSvgMarkup,
319259
+ isFigmaClipboardHtml: () => isFigmaClipboardHtml,
319247
319260
  isSvgMarkup: () => isSvgMarkup,
319248
319261
  placeSvgLayers: () => placeSvgLayers
319249
319262
  });
@@ -319254,6 +319267,26 @@ function isSvgMarkup(text) {
319254
319267
  const tail = text.trimEnd();
319255
319268
  return /<\/svg\s*>$/i.test(tail) || /^<svg[^>]*\/>$/i.test(head2.trimEnd());
319256
319269
  }
319270
+ function isFigmaClipboardHtml(html) {
319271
+ return !!html && /\(fig(?:meta|ma)\)/.test(html);
319272
+ }
319273
+ function extractSvgMarkup(text) {
319274
+ if (!text) return null;
319275
+ if (isSvgMarkup(text)) return text;
319276
+ const find2 = (s) => {
319277
+ const start2 = s.search(/<svg[\s>/]/i);
319278
+ if (start2 < 0) return null;
319279
+ const end = s.toLowerCase().lastIndexOf("</svg>");
319280
+ if (end < start2) return null;
319281
+ const svg = s.slice(start2, end + 6);
319282
+ return isSvgMarkup(svg) ? svg : null;
319283
+ };
319284
+ const direct = find2(text);
319285
+ if (direct) return direct;
319286
+ if (!/&lt;svg/i.test(text)) return null;
319287
+ const decoded = text.replace(/&lt;/g, "<").replace(/&gt;/g, ">").replace(/&quot;/g, '"').replace(/&#39;|&apos;/g, "'").replace(/&nbsp;/g, " ").replace(/&amp;/g, "&");
319288
+ return find2(decoded);
319289
+ }
319257
319290
  function placeSvgLayers(doc2, parentId, svg, place4) {
319258
319291
  if (!doc2.nodes[parentId] || svg.length > MAX_SVG_LAYER_BYTES) return null;
319259
319292
  const frame3 = createFrame({ name: place4.name, x: place4.cx, y: place4.cy, width: 1, height: 1, fills: [], backgroundColor: { r: 1, g: 1, b: 1, a: 0 }, clipsContent: false });
@@ -328799,7 +328832,7 @@ var init_package = __esm({
328799
328832
  "packages/runtime/package.json"() {
328800
328833
  package_default = {
328801
328834
  name: "@popcraft/runtime",
328802
- version: "0.53.9",
328835
+ version: "0.53.11",
328803
328836
  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.",
328804
328837
  license: "MIT",
328805
328838
  homepage: "https://popcraft.app/docs/exporting/nextjs",
@@ -362558,7 +362591,6 @@ var init_delete_current_file = __esm({
362558
362591
  var storeOpsSeam;
362559
362592
  var init_seams = __esm({
362560
362593
  "lib/commands/seams.ts"() {
362561
- "use strict";
362562
362594
  storeOpsSeam = (st) => ({
362563
362595
  booleanOperation: (op4) => st().booleanOperation(op4),
362564
362596
  flatten: () => st().flattenSelection(),
@@ -401378,6 +401410,7 @@ function record(source, namespaces, globals, limits) {
401378
401410
  var HELPER_NAMES;
401379
401411
  var init_helper_names = __esm({
401380
401412
  "lib/agent/design-script/helper-names.ts"() {
401413
+ "use strict";
401381
401414
  HELPER_NAMES = ["draw", "marks", "fit", "motion", "captions", "overlays", "texture", "pointer", "windows", "devices", "type", "beat", "web", "social", "video", "site", "effects"];
401382
401415
  }
401383
401416
  });
@@ -401760,6 +401793,7 @@ function designRecorder() {
401760
401793
  var installed2;
401761
401794
  var init_recorders = __esm({
401762
401795
  "lib/agent/design-script/recorders.ts"() {
401796
+ "use strict";
401763
401797
  installed2 = null;
401764
401798
  }
401765
401799
  });
@@ -406834,7 +406868,6 @@ function registerBuiltinCommands() {
406834
406868
  var builtinCommands, uiOnlyCommands;
406835
406869
  var init_builtin4 = __esm({
406836
406870
  "lib/commands/builtin.ts"() {
406837
- "use strict";
406838
406871
  init_registry();
406839
406872
  init_node();
406840
406873
  init_node();
@@ -414396,7 +414429,7 @@ init_resources();
414396
414429
  init_desktop();
414397
414430
  init_hypery();
414398
414431
  import { createInterface } from "node:readline";
414399
- var VERSION2 = "0.53.9";
414432
+ var VERSION2 = "0.53.11";
414400
414433
  var HELP = `popcraft ${VERSION2} \u2014 the PopCraft command line
414401
414434
 
414402
414435
  Files (headless, on .popcraft files):
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@popcraft/cli",
3
- "version": "0.53.9",
3
+ "version": "0.53.11",
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.53.9"
37
+ "@popcraft/kit": "0.53.11"
38
38
  },
39
39
  "scripts": {
40
40
  "build": "node build.mjs",