@popcraft/cli 0.53.6 → 0.53.7
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 +35 -12
- 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.53.
|
|
1199
|
+
const headers = { "user-agent": `popcraft-cli/${"0.53.7"}`, ...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 {
|
|
@@ -94510,6 +94510,7 @@ function hasMessage(key5) {
|
|
|
94510
94510
|
var current2, loading, listeners, formats, asts;
|
|
94511
94511
|
var init_runtime = __esm({
|
|
94512
94512
|
"lib/i18n/runtime.ts"() {
|
|
94513
|
+
"use strict";
|
|
94513
94514
|
init_intl_messageformat();
|
|
94514
94515
|
init_icu_messageformat_parser();
|
|
94515
94516
|
init_catalogs();
|
|
@@ -97386,6 +97387,7 @@ function selectionWorldBounds(nodes, ids2, scrollState) {
|
|
|
97386
97387
|
}
|
|
97387
97388
|
var init_selection_bounds = __esm({
|
|
97388
97389
|
"lib/editor/selection-bounds.ts"() {
|
|
97390
|
+
"use strict";
|
|
97389
97391
|
init_scene_graph();
|
|
97390
97392
|
init_transform();
|
|
97391
97393
|
}
|
|
@@ -97577,6 +97579,7 @@ function relinkCopies(doc2, copies) {
|
|
|
97577
97579
|
var TEXT_PATH_SOURCE_TYPES, isPathSource;
|
|
97578
97580
|
var init_text_links = __esm({
|
|
97579
97581
|
"lib/document/text-links.ts"() {
|
|
97582
|
+
"use strict";
|
|
97580
97583
|
init_transform();
|
|
97581
97584
|
TEXT_PATH_SOURCE_TYPES = ["VECTOR", "ELLIPSE", "RECTANGLE", "POLYGON", "STAR", "LINE", "ARROW", "FRAME"];
|
|
97582
97585
|
isPathSource = (n) => !!n && TEXT_PATH_SOURCE_TYPES.includes(n.type);
|
|
@@ -247044,6 +247047,7 @@ function rescaleTextEffect(node2) {
|
|
|
247044
247047
|
var DEFAULTS, BLACK5, WHITE5, fillPaint, fillColor, shadow, round, OUTLINED;
|
|
247045
247048
|
var init_effect_presets = __esm({
|
|
247046
247049
|
"lib/text/effect-presets.ts"() {
|
|
247050
|
+
"use strict";
|
|
247047
247051
|
init_effects();
|
|
247048
247052
|
DEFAULTS = {
|
|
247049
247053
|
SHADOW: { distance: 17.68, angle: 45, blur: 12.5, thickness: 0, intensity: 45 },
|
|
@@ -253121,6 +253125,7 @@ function getActiveRenderer() {
|
|
|
253121
253125
|
var active;
|
|
253122
253126
|
var init_renderer_registry = __esm({
|
|
253123
253127
|
"lib/engine/renderer-registry.ts"() {
|
|
253128
|
+
"use strict";
|
|
253124
253129
|
active = null;
|
|
253125
253130
|
}
|
|
253126
253131
|
});
|
|
@@ -257992,6 +257997,7 @@ async function docExists(id3) {
|
|
|
257992
257997
|
var INDEX_KEY, docKey, thumbKey, THUMB_MAX_BYTES, THUMB_TYPES, LEGACY_DATA_URL, migrating, SPLIT_LAYOUT, nodeKey, WRITER, persisted, saving, deletedHere, keyval, keyvalStore;
|
|
257993
257998
|
var init_document_library = __esm({
|
|
257994
257999
|
"lib/storage/document-library.ts"() {
|
|
258000
|
+
"use strict";
|
|
257995
258001
|
init_idb();
|
|
257996
258002
|
init_media_types();
|
|
257997
258003
|
init_collapse_duplicates();
|
|
@@ -258063,6 +258069,7 @@ function onTabMessage(fn) {
|
|
|
258063
258069
|
var EDITOR_HOME, localDocPath, cloudFilePath, CHANNEL2, channel2;
|
|
258064
258070
|
var init_tab_mode = __esm({
|
|
258065
258071
|
"lib/desktop/tab-mode.ts"() {
|
|
258072
|
+
"use strict";
|
|
258066
258073
|
EDITOR_HOME = "/home";
|
|
258067
258074
|
localDocPath = (docId) => `${EDITOR_HOME}?doc=${encodeURIComponent(docId)}`;
|
|
258068
258075
|
cloudFilePath = (key5) => `/pop/${encodeURIComponent(key5)}`;
|
|
@@ -258140,6 +258147,7 @@ function scaleSubtreePatches(nodes, id3, sx, sy, includeSelf = true) {
|
|
|
258140
258147
|
var scalePoint;
|
|
258141
258148
|
var init_scale_geometry = __esm({
|
|
258142
258149
|
"lib/document/scale-geometry.ts"() {
|
|
258150
|
+
"use strict";
|
|
258143
258151
|
scalePoint = (p2, sx, sy) => ({
|
|
258144
258152
|
...p2,
|
|
258145
258153
|
x: p2.x * sx,
|
|
@@ -259135,6 +259143,7 @@ function describeModifier(m) {
|
|
|
259135
259143
|
var FLASH_WHITE, BEHAVIOUR_PRESETS, AUDIO_SIGNAL_OPTIONS, AUDIO_MODES, LOOP_MODES, UNKEYABLE, isKeyableParam, freshId4, listOf;
|
|
259136
259144
|
var init_modifier_edit = __esm({
|
|
259137
259145
|
"lib/motion/modifier-edit.ts"() {
|
|
259146
|
+
"use strict";
|
|
259138
259147
|
init_easing();
|
|
259139
259148
|
init_sample_keys();
|
|
259140
259149
|
FLASH_WHITE = { r: 1, g: 1, b: 1, a: 1 };
|
|
@@ -259579,6 +259588,7 @@ function staggerDocument(doc2, ids2, opts) {
|
|
|
259579
259588
|
var PRESET_IDS, num6, restOpacity, overshoots, fadeCurve, span, enter2, leave2, fadeIn, fadeOut, along, scaleSpan, wave, BLUR_ID, SMEAR_ID, SHAKE_STEPS, SHAKE, clips, clipping, WIPE_MIN, wipeGroupId, wipeMaskId, any2, CONTAINERS2, isContainer, autoRise, CAM, zoomOf, camTravel, camArrive, dollyAxis, cameraOrGroup, isPlainText, TEXT_NEEDS, unitRise, cascade, cascadeKeys, cascadeAmount, slideDistance, LIBRARY, BY_ID2, MOTION_PRESETS, presetById2, lengthenedTo;
|
|
259580
259589
|
var init_presets = __esm({
|
|
259581
259590
|
"lib/motion/presets.ts"() {
|
|
259591
|
+
"use strict";
|
|
259582
259592
|
init_author();
|
|
259583
259593
|
init_keys();
|
|
259584
259594
|
init_markers();
|
|
@@ -260740,6 +260750,7 @@ function retuneShaderAudio(node2, fillId) {
|
|
|
260740
260750
|
}
|
|
260741
260751
|
var init_shader_audio = __esm({
|
|
260742
260752
|
"lib/motion/shader-audio.ts"() {
|
|
260753
|
+
"use strict";
|
|
260743
260754
|
init_shader_params();
|
|
260744
260755
|
init_modifier_edit();
|
|
260745
260756
|
init_keys();
|
|
@@ -261504,6 +261515,7 @@ function breakpointView(state, doc2 = state.document) {
|
|
|
261504
261515
|
var storedDocument;
|
|
261505
261516
|
var init_view = __esm({
|
|
261506
261517
|
"lib/motion/view.ts"() {
|
|
261518
|
+
"use strict";
|
|
261507
261519
|
init_motion_slice();
|
|
261508
261520
|
init_transport_clock();
|
|
261509
261521
|
init_autokey();
|
|
@@ -273487,6 +273499,7 @@ async function prepareTemplate(t3) {
|
|
|
273487
273499
|
var templateMediaSources, MEDIA_FETCH_TIMEOUT_MS2, PREPARE_BUDGET_MS, MEDIA_CONCURRENCY, timeoutOf;
|
|
273488
273500
|
var init_use = __esm({
|
|
273489
273501
|
"lib/templates/use.ts"() {
|
|
273502
|
+
"use strict";
|
|
273490
273503
|
init_capture();
|
|
273491
273504
|
templateMediaSources = (t3, hash3) => [
|
|
273492
273505
|
`/templates/media/${hash3}`,
|
|
@@ -312378,6 +312391,7 @@ function creditLine(c2) {
|
|
|
312378
312391
|
var MAX_PHOTO_PAGE, MAX_PHOTO_QUERY, UUID, isPhotoId, photoImagePath;
|
|
312379
312392
|
var init_stock = __esm({
|
|
312380
312393
|
"lib/photos/stock.ts"() {
|
|
312394
|
+
"use strict";
|
|
312381
312395
|
MAX_PHOTO_PAGE = 12;
|
|
312382
312396
|
MAX_PHOTO_QUERY = 200;
|
|
312383
312397
|
UUID = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
|
|
@@ -313039,6 +313053,7 @@ function applyTextPath(layout2, path, tp, rebase = true) {
|
|
|
313039
313053
|
var defaultCircleRadius, ownsPath, mapPoint;
|
|
313040
313054
|
var init_text_path = __esm({
|
|
313041
313055
|
"lib/engine/text/text-path.ts"() {
|
|
313056
|
+
"use strict";
|
|
313042
313057
|
init_scene_graph();
|
|
313043
313058
|
init_transform();
|
|
313044
313059
|
init_shape_to_path();
|
|
@@ -313156,6 +313171,7 @@ function areaBounds(rings) {
|
|
|
313156
313171
|
}
|
|
313157
313172
|
var init_text_area = __esm({
|
|
313158
313173
|
"lib/engine/text/text-area.ts"() {
|
|
313174
|
+
"use strict";
|
|
313159
313175
|
}
|
|
313160
313176
|
});
|
|
313161
313177
|
|
|
@@ -317129,15 +317145,14 @@ function paperFill(root2, doc2) {
|
|
|
317129
317145
|
const f2 = fills.length ? fills[fills.length - 1] : void 0;
|
|
317130
317146
|
return f2 && f2.type === "SOLID" && f2.color ? { kind: "solid", color: f2.color, alpha: (f2.opacity ?? 1) * (f2.color.a ?? 1) } : null;
|
|
317131
317147
|
};
|
|
317132
|
-
const
|
|
317133
|
-
|
|
317134
|
-
|
|
317135
|
-
const c2 = doc2.nodes[id3];
|
|
317148
|
+
const ids2 = root2.childIds ?? [];
|
|
317149
|
+
for (let i2 = ids2.length - 1; i2 >= 0; i2--) {
|
|
317150
|
+
const c2 = doc2.nodes[ids2[i2]];
|
|
317136
317151
|
if (!c2 || !c2.visible || c2.x > 0.5 || c2.y > 0.5 || c2.x + c2.width < root2.width - 0.5 || c2.y + c2.height < root2.height - 0.5) continue;
|
|
317137
317152
|
const f2 = solid5(c2);
|
|
317138
317153
|
if (f2 && f2.alpha >= 0.999) return f2;
|
|
317139
317154
|
}
|
|
317140
|
-
return
|
|
317155
|
+
return solid5(root2);
|
|
317141
317156
|
}
|
|
317142
317157
|
function pageBox(node2, doc2, opts) {
|
|
317143
317158
|
const bounds2 = getWorldRenderBounds(doc2, node2.id);
|
|
@@ -317251,20 +317266,21 @@ async function exportNodesToPDF(renderer, nodes, scaleOrOpts, doc2, styles) {
|
|
|
317251
317266
|
for (const sl of slots2) {
|
|
317252
317267
|
const vp = sl.page;
|
|
317253
317268
|
const node2 = roots[vp.index];
|
|
317254
|
-
const
|
|
317269
|
+
const bleedOut = single ? Math.max(geo.bleed.maxX - geo.trim.maxX, geo.trim.minX - geo.bleed.minX, geo.bleed.maxY - geo.trim.maxY, geo.trim.minY - geo.bleed.minY) : 0;
|
|
317270
|
+
const ir = buildExportIR(bleedOut > 0 ? { ...node2, clipsContent: false } : node2, ctx2);
|
|
317255
317271
|
if (!ir) continue;
|
|
317256
317272
|
const m = sl.matrix;
|
|
317257
317273
|
const s2 = vp.scale;
|
|
317274
|
+
const ox = vp.offset.x - bleedOut * s2, oy = vp.offset.y - bleedOut * s2;
|
|
317258
317275
|
const place4 = [
|
|
317259
317276
|
m[0] * s2,
|
|
317260
317277
|
m[1] * s2,
|
|
317261
317278
|
m[2] * s2,
|
|
317262
317279
|
m[3] * s2,
|
|
317263
|
-
m[4] + m[0] *
|
|
317264
|
-
m[5] + m[1] *
|
|
317280
|
+
m[4] + m[0] * ox + m[2] * oy,
|
|
317281
|
+
m[5] + m[1] * ox + m[3] * oy
|
|
317265
317282
|
];
|
|
317266
317283
|
const inner = { t: "group", name: "page", local: [1, 0, 0, 1, -node2.x - vp.crop.x, -node2.y - vp.crop.y], opacity: 1, blend: "NORMAL", clip: null, children: [ir] };
|
|
317267
|
-
const bleedOut = single ? Math.max(geo.bleed.maxX - geo.trim.maxX, geo.trim.minX - geo.bleed.minX, geo.bleed.maxY - geo.trim.maxY, geo.trim.minY - geo.bleed.minY) : 0;
|
|
317268
317284
|
cb.emit({
|
|
317269
317285
|
t: "group",
|
|
317270
317286
|
name: "slot",
|
|
@@ -317500,6 +317516,7 @@ async function exportSettingFile(renderer, node2, setting, doc2, styles) {
|
|
|
317500
317516
|
var MIME, DEFAULT_EXPORT, exportSettingsOf;
|
|
317501
317517
|
var init_export = __esm({
|
|
317502
317518
|
"lib/io/export.ts"() {
|
|
317519
|
+
"use strict";
|
|
317503
317520
|
init_download();
|
|
317504
317521
|
init_scene_graph();
|
|
317505
317522
|
init_codecs();
|
|
@@ -328786,7 +328803,7 @@ var init_package = __esm({
|
|
|
328786
328803
|
"packages/runtime/package.json"() {
|
|
328787
328804
|
package_default = {
|
|
328788
328805
|
name: "@popcraft/runtime",
|
|
328789
|
-
version: "0.53.
|
|
328806
|
+
version: "0.53.7",
|
|
328790
328807
|
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.",
|
|
328791
328808
|
license: "MIT",
|
|
328792
328809
|
homepage: "https://popcraft.app/docs/exporting/nextjs",
|
|
@@ -353452,6 +353469,7 @@ function exportsOf(source3) {
|
|
|
353452
353469
|
var CODE_LIMITS, packageOf;
|
|
353453
353470
|
var init_source2 = __esm({
|
|
353454
353471
|
"lib/code/source.ts"() {
|
|
353472
|
+
"use strict";
|
|
353455
353473
|
CODE_LIMITS = { modules: 100, sourceLength: 2e5, packages: 12 };
|
|
353456
353474
|
packageOf = (spec) => spec.split("/").slice(0, spec.startsWith("@") ? 2 : 1).join("/");
|
|
353457
353475
|
}
|
|
@@ -353494,6 +353512,7 @@ function compileModule(module2) {
|
|
|
353494
353512
|
var import_sucrase, BUILT_IN, memo4;
|
|
353495
353513
|
var init_compile2 = __esm({
|
|
353496
353514
|
"lib/code/compile.ts"() {
|
|
353515
|
+
"use strict";
|
|
353497
353516
|
import_sucrase = __toESM(require_dist2());
|
|
353498
353517
|
init_source2();
|
|
353499
353518
|
init_source2();
|
|
@@ -358956,6 +358975,7 @@ function diagnosticsText(diagnostics) {
|
|
|
358956
358975
|
var HARNESS_NAMES, plainDiagnostics;
|
|
358957
358976
|
var init_shader_diagnostics = __esm({
|
|
358958
358977
|
"lib/engine/shader-diagnostics.ts"() {
|
|
358978
|
+
"use strict";
|
|
358959
358979
|
HARNESS_NAMES = ["ShaderUniforms", "VOut", "vs_main", "fs_main", "u", "p"];
|
|
358960
358980
|
plainDiagnostics = (errors2) => errors2.map((message) => ({ line: null, column: null, message, severity: "error" }));
|
|
358961
358981
|
}
|
|
@@ -362014,6 +362034,7 @@ function publishSite(key5, files, opts = {}) {
|
|
|
362014
362034
|
var siteStatus, setSiteVersion, workspaceSites, deleteSite, renameSite;
|
|
362015
362035
|
var init_sites = __esm({
|
|
362016
362036
|
"lib/client/cloud/sites.ts"() {
|
|
362037
|
+
"use strict";
|
|
362017
362038
|
init_files();
|
|
362018
362039
|
init_upload2();
|
|
362019
362040
|
init_api4();
|
|
@@ -368151,6 +368172,7 @@ var init_doc2 = __esm({
|
|
|
368151
368172
|
var POSTER_KEY, MAX_PREVIEW_BYTES2, PREVIEW_STILL_TYPE, previewPath;
|
|
368152
368173
|
var init_motion3 = __esm({
|
|
368153
368174
|
"lib/marketplace/motion.ts"() {
|
|
368175
|
+
"use strict";
|
|
368154
368176
|
init_instances2();
|
|
368155
368177
|
POSTER_KEY = "poster";
|
|
368156
368178
|
MAX_PREVIEW_BYTES2 = 4 * 1024 * 1024;
|
|
@@ -368266,6 +368288,7 @@ async function renderLibraryPreviews(renderer, doc2, listing, format = pickPrevi
|
|
|
368266
368288
|
var PREVIEW_FORMATS, PREVIEW_FPS, PREVIEW_MAX_MS2, PREVIEW_HOLD_MS, PREVIEW_BOX, POSTER_CELL, PREVIEW_MAX_SCALE, POSTER_COLS, POSTER_MAX, previewScale, componentSchedule;
|
|
368267
368289
|
var init_library_previews = __esm({
|
|
368268
368290
|
"lib/motion/library-previews.ts"() {
|
|
368291
|
+
"use strict";
|
|
368269
368292
|
init_codecs();
|
|
368270
368293
|
init_gpu_pixels();
|
|
368271
368294
|
init_render_frames();
|
|
@@ -414373,7 +414396,7 @@ init_resources();
|
|
|
414373
414396
|
init_desktop();
|
|
414374
414397
|
init_hypery();
|
|
414375
414398
|
import { createInterface } from "node:readline";
|
|
414376
|
-
var VERSION2 = "0.53.
|
|
414399
|
+
var VERSION2 = "0.53.7";
|
|
414377
414400
|
var HELP = `popcraft ${VERSION2} \u2014 the PopCraft command line
|
|
414378
414401
|
|
|
414379
414402
|
Files (headless, on .popcraft files):
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@popcraft/cli",
|
|
3
|
-
"version": "0.53.
|
|
3
|
+
"version": "0.53.7",
|
|
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.
|
|
37
|
+
"@popcraft/kit": "0.53.7"
|
|
38
38
|
},
|
|
39
39
|
"scripts": {
|
|
40
40
|
"build": "node build.mjs",
|