@popcraft/cli 0.44.1 → 0.45.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.
- package/dist/popcraft.mjs +11 -9
- 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.
|
|
1199
|
+
const headers = { "user-agent": `popcraft-cli/${"0.45.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 {
|
|
@@ -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();
|
|
@@ -97535,6 +97534,7 @@ function relinkCopies(doc2, copies) {
|
|
|
97535
97534
|
var TEXT_PATH_SOURCE_TYPES, isPathSource;
|
|
97536
97535
|
var init_text_links = __esm({
|
|
97537
97536
|
"lib/document/text-links.ts"() {
|
|
97537
|
+
"use strict";
|
|
97538
97538
|
init_transform();
|
|
97539
97539
|
TEXT_PATH_SOURCE_TYPES = ["VECTOR", "ELLIPSE", "RECTANGLE", "POLYGON", "STAR", "LINE", "ARROW", "FRAME"];
|
|
97540
97540
|
isPathSource = (n) => !!n && TEXT_PATH_SOURCE_TYPES.includes(n.type);
|
|
@@ -247904,6 +247904,7 @@ function repairCompositions(comps, nodes) {
|
|
|
247904
247904
|
var isObj5, finite6, optFinite, isVec2, TIMELINE_COLOR_IDS, TIMELINE_COLORS, UNITS, ORDERS, PROP_KEYS, ANIMATOR_ID, MOTION_TYPES, TRANSITIONS, isFraction, MEDIA_HASH;
|
|
247905
247905
|
var init_invariants = __esm({
|
|
247906
247906
|
"lib/motion/invariants.ts"() {
|
|
247907
|
+
"use strict";
|
|
247907
247908
|
init_easing();
|
|
247908
247909
|
init_properties();
|
|
247909
247910
|
init_markers();
|
|
@@ -248000,6 +248001,7 @@ function resyncText(doc2, ids2) {
|
|
|
248000
248001
|
var isVirtualId;
|
|
248001
248002
|
var init_invariants2 = __esm({
|
|
248002
248003
|
"lib/document/invariants.ts"() {
|
|
248004
|
+
"use strict";
|
|
248003
248005
|
init_auto_layout();
|
|
248004
248006
|
init_scene_graph();
|
|
248005
248007
|
init_text_bounds();
|
|
@@ -252435,6 +252437,7 @@ function resizeWindow(doc2, target2, rect) {
|
|
|
252435
252437
|
}
|
|
252436
252438
|
var init_crop = __esm({
|
|
252437
252439
|
"lib/editor/crop.ts"() {
|
|
252440
|
+
"use strict";
|
|
252438
252441
|
init_dist_node();
|
|
252439
252442
|
init_scene_graph();
|
|
252440
252443
|
init_photo_frames();
|
|
@@ -256926,6 +256929,7 @@ function followPeers(peers) {
|
|
|
256926
256929
|
var PALETTE, usePresence, awareness, CURSOR_SEND_MS, VIEWPORT_SEND_MS, cursorTimer, pendingCursor, sentCursor, EMOTE_MS, lastFollowCamera;
|
|
256927
256930
|
var init_presence = __esm({
|
|
256928
256931
|
"lib/collab/presence.ts"() {
|
|
256932
|
+
"use strict";
|
|
256929
256933
|
init_esm();
|
|
256930
256934
|
init_editor_store();
|
|
256931
256935
|
init_status_announcements();
|
|
@@ -260457,6 +260461,7 @@ function retuneShaderAudio(node2, fillId) {
|
|
|
260457
260461
|
}
|
|
260458
260462
|
var init_shader_audio = __esm({
|
|
260459
260463
|
"lib/motion/shader-audio.ts"() {
|
|
260464
|
+
"use strict";
|
|
260460
260465
|
init_shader_params();
|
|
260461
260466
|
init_modifier_edit();
|
|
260462
260467
|
init_keys();
|
|
@@ -262407,7 +262412,6 @@ function formatDate(date5, opts = { month: "short", day: "numeric", year: "numer
|
|
|
262407
262412
|
var cache5, nf;
|
|
262408
262413
|
var init_format = __esm({
|
|
262409
262414
|
"lib/i18n/format.ts"() {
|
|
262410
|
-
"use strict";
|
|
262411
262415
|
init_runtime();
|
|
262412
262416
|
cache5 = /* @__PURE__ */ new Map();
|
|
262413
262417
|
nf = (opts) => cached2("n", opts, (l) => new Intl.NumberFormat(l, opts));
|
|
@@ -311422,7 +311426,6 @@ function startCloudSync() {
|
|
|
311422
311426
|
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;
|
|
311423
311427
|
var init_sync2 = __esm({
|
|
311424
311428
|
"lib/client/cloud/sync.ts"() {
|
|
311425
|
-
"use strict";
|
|
311426
311429
|
init_paint_repair();
|
|
311427
311430
|
init_migrate();
|
|
311428
311431
|
init_view();
|
|
@@ -312809,6 +312812,7 @@ function areaBounds(rings) {
|
|
|
312809
312812
|
}
|
|
312810
312813
|
var init_text_area = __esm({
|
|
312811
312814
|
"lib/engine/text/text-area.ts"() {
|
|
312815
|
+
"use strict";
|
|
312812
312816
|
}
|
|
312813
312817
|
});
|
|
312814
312818
|
|
|
@@ -317153,7 +317157,6 @@ async function exportSettingFile(renderer, node2, setting, doc2, styles) {
|
|
|
317153
317157
|
var MIME, DEFAULT_EXPORT, exportSettingsOf;
|
|
317154
317158
|
var init_export = __esm({
|
|
317155
317159
|
"lib/io/export.ts"() {
|
|
317156
|
-
"use strict";
|
|
317157
317160
|
init_download();
|
|
317158
317161
|
init_scene_graph();
|
|
317159
317162
|
init_codecs();
|
|
@@ -327951,7 +327954,7 @@ var init_package = __esm({
|
|
|
327951
327954
|
"packages/runtime/package.json"() {
|
|
327952
327955
|
package_default = {
|
|
327953
327956
|
name: "@popcraft/runtime",
|
|
327954
|
-
version: "0.
|
|
327957
|
+
version: "0.45.0",
|
|
327955
327958
|
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.",
|
|
327956
327959
|
license: "MIT",
|
|
327957
327960
|
homepage: "https://popcraft.app/docs/exporting/nextjs",
|
|
@@ -352617,7 +352620,6 @@ function exportsOf(source3) {
|
|
|
352617
352620
|
var CODE_LIMITS, packageOf;
|
|
352618
352621
|
var init_source2 = __esm({
|
|
352619
352622
|
"lib/code/source.ts"() {
|
|
352620
|
-
"use strict";
|
|
352621
352623
|
CODE_LIMITS = { modules: 100, sourceLength: 2e5, packages: 12 };
|
|
352622
352624
|
packageOf = (spec) => spec.split("/").slice(0, spec.startsWith("@") ? 2 : 1).join("/");
|
|
352623
352625
|
}
|
|
@@ -352660,7 +352662,6 @@ function compileModule(module2) {
|
|
|
352660
352662
|
var import_sucrase, BUILT_IN, memo4;
|
|
352661
352663
|
var init_compile2 = __esm({
|
|
352662
352664
|
"lib/code/compile.ts"() {
|
|
352663
|
-
"use strict";
|
|
352664
352665
|
import_sucrase = __toESM(require_dist2());
|
|
352665
352666
|
init_source2();
|
|
352666
352667
|
init_source2();
|
|
@@ -367311,6 +367312,7 @@ var init_doc2 = __esm({
|
|
|
367311
367312
|
var POSTER_KEY, MAX_PREVIEW_BYTES2, PREVIEW_STILL_TYPE, previewPath;
|
|
367312
367313
|
var init_motion3 = __esm({
|
|
367313
367314
|
"lib/marketplace/motion.ts"() {
|
|
367315
|
+
"use strict";
|
|
367314
367316
|
init_instances2();
|
|
367315
367317
|
POSTER_KEY = "poster";
|
|
367316
367318
|
MAX_PREVIEW_BYTES2 = 4 * 1024 * 1024;
|
|
@@ -413504,7 +413506,7 @@ init_resources();
|
|
|
413504
413506
|
init_desktop();
|
|
413505
413507
|
init_hypery();
|
|
413506
413508
|
import { createInterface } from "node:readline";
|
|
413507
|
-
var VERSION2 = "0.
|
|
413509
|
+
var VERSION2 = "0.45.0";
|
|
413508
413510
|
var HELP = `popcraft ${VERSION2} \u2014 the PopCraft command line
|
|
413509
413511
|
|
|
413510
413512
|
Files (headless, on .popcraft files):
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@popcraft/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.45.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.
|
|
37
|
+
"@popcraft/kit": "0.45.0"
|
|
38
38
|
},
|
|
39
39
|
"scripts": {
|
|
40
40
|
"build": "node build.mjs",
|