@popcraft/cli 0.57.0 → 0.57.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.
- package/dist/popcraft.mjs +176 -127
- 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.57.
|
|
1201
|
+
const headers = { "user-agent": `popcraft-cli/${"0.57.1"}`, ...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 {
|
|
@@ -29244,6 +29244,7 @@ function selectionWorldBounds(nodes, ids2, scrollState) {
|
|
|
29244
29244
|
}
|
|
29245
29245
|
var init_selection_bounds = __esm({
|
|
29246
29246
|
"lib/editor/selection-bounds.ts"() {
|
|
29247
|
+
"use strict";
|
|
29247
29248
|
init_scene_graph();
|
|
29248
29249
|
init_transform();
|
|
29249
29250
|
}
|
|
@@ -172955,6 +172956,7 @@ function releaseMediaMemory(hash3) {
|
|
|
172955
172956
|
var key2, peaksKey, objectUrls, sourceKey, remoteResolver, MEDIA_FETCH_TIMEOUT_MS, SHIPPED_MEDIA_PATH, notShipped, MEDIA_SCHEME, isImageDataUrl, memory, pendingLoads, sourceAliases, PAINT_KEYS, URL_KEYS;
|
|
172956
172957
|
var init_media_store = __esm({
|
|
172957
172958
|
"lib/storage/media-store.ts"() {
|
|
172959
|
+
"use strict";
|
|
172958
172960
|
init_media_types();
|
|
172959
172961
|
init_idb();
|
|
172960
172962
|
init_media_hash();
|
|
@@ -176240,6 +176242,7 @@ var init_frame_labels = __esm({
|
|
|
176240
176242
|
var MODE_PROFILES, isTimelineMode, FOCUS_PROFILES, MODE_LIST, FOCUS_BY_PRECEDENCE;
|
|
176241
176243
|
var init_registry2 = __esm({
|
|
176242
176244
|
"lib/editor/modes/registry.ts"() {
|
|
176245
|
+
"use strict";
|
|
176243
176246
|
MODE_PROFILES = {
|
|
176244
176247
|
DESIGN: {
|
|
176245
176248
|
id: "DESIGN",
|
|
@@ -254376,6 +254379,7 @@ function repairDocumentPaints(doc2) {
|
|
|
254376
254379
|
var broken;
|
|
254377
254380
|
var init_paint_repair = __esm({
|
|
254378
254381
|
"lib/document/paint-repair.ts"() {
|
|
254382
|
+
"use strict";
|
|
254379
254383
|
init_shader_graph();
|
|
254380
254384
|
broken = (p2) => {
|
|
254381
254385
|
if (!p2 || typeof p2 !== "object") return false;
|
|
@@ -254975,6 +254979,7 @@ function relinkCopies(doc2, copies) {
|
|
|
254975
254979
|
var TEXT_PATH_SOURCE_TYPES, isPathSource;
|
|
254976
254980
|
var init_text_links = __esm({
|
|
254977
254981
|
"lib/document/text-links.ts"() {
|
|
254982
|
+
"use strict";
|
|
254978
254983
|
init_transform();
|
|
254979
254984
|
TEXT_PATH_SOURCE_TYPES = ["VECTOR", "ELLIPSE", "RECTANGLE", "POLYGON", "STAR", "LINE", "ARROW", "FRAME"];
|
|
254980
254985
|
isPathSource = (n) => !!n && TEXT_PATH_SOURCE_TYPES.includes(n.type);
|
|
@@ -260657,7 +260662,6 @@ function repairFx(raw) {
|
|
|
260657
260662
|
var isObj5, finite6, optFinite, isVec2, TIMELINE_COLOR_IDS, TIMELINE_COLORS, UNITS, ORDERS, PROP_KEYS, ANIMATOR_ID, MOTION_TYPES, TRANSITIONS, isFraction, MEDIA_HASH, LAYER_KINDS, ADJUSTMENT_TYPES, OPACITY_PROPERTY, CAPTION_PRESET_NAMES, inRange;
|
|
260658
260663
|
var init_invariants = __esm({
|
|
260659
260664
|
"lib/motion/invariants.ts"() {
|
|
260660
|
-
"use strict";
|
|
260661
260665
|
init_adjustments();
|
|
260662
260666
|
init_captions();
|
|
260663
260667
|
init_lut();
|
|
@@ -263716,6 +263720,7 @@ function getActiveRenderer() {
|
|
|
263716
263720
|
var active;
|
|
263717
263721
|
var init_renderer_registry = __esm({
|
|
263718
263722
|
"lib/engine/renderer-registry.ts"() {
|
|
263723
|
+
"use strict";
|
|
263719
263724
|
active = null;
|
|
263720
263725
|
}
|
|
263721
263726
|
});
|
|
@@ -271134,6 +271139,7 @@ function retuneShaderAudio(node2, fillId) {
|
|
|
271134
271139
|
}
|
|
271135
271140
|
var init_shader_audio = __esm({
|
|
271136
271141
|
"lib/motion/shader-audio.ts"() {
|
|
271142
|
+
"use strict";
|
|
271137
271143
|
init_shader_params();
|
|
271138
271144
|
init_modifier_edit();
|
|
271139
271145
|
init_keys();
|
|
@@ -273028,128 +273034,6 @@ var init_tauri = __esm({
|
|
|
273028
273034
|
}
|
|
273029
273035
|
});
|
|
273030
273036
|
|
|
273031
|
-
// lib/desktop/open-link.ts
|
|
273032
|
-
function openLink(href) {
|
|
273033
|
-
if (isDesktop()) window.location.assign(href);
|
|
273034
|
-
else window.open(href, "_blank", "noopener");
|
|
273035
|
-
}
|
|
273036
|
-
function openSitePage(path) {
|
|
273037
|
-
if (!isDesktop()) {
|
|
273038
|
-
window.open(path, "_blank", "noopener");
|
|
273039
|
-
return;
|
|
273040
|
-
}
|
|
273041
|
-
const url4 = new URL(path, window.location.origin).href;
|
|
273042
|
-
invoke("open_external", { url: url4 }).catch(() => window.location.assign(path));
|
|
273043
|
-
}
|
|
273044
|
-
function openBeside(href) {
|
|
273045
|
-
if (!isDesktop()) return !!window.open(href, "_blank", "noopener,noreferrer");
|
|
273046
|
-
const url4 = new URL(href, window.location.href);
|
|
273047
|
-
if (url4.origin === window.location.origin) openSitePage(url4.pathname + url4.search + url4.hash);
|
|
273048
|
-
else window.location.assign(url4.href);
|
|
273049
|
-
return true;
|
|
273050
|
-
}
|
|
273051
|
-
var init_open_link = __esm({
|
|
273052
|
-
"lib/desktop/open-link.ts"() {
|
|
273053
|
-
init_tauri();
|
|
273054
|
-
}
|
|
273055
|
-
});
|
|
273056
|
-
|
|
273057
|
-
// lib/plugins/plugin-store.ts
|
|
273058
|
-
var plugin_store_exports = {};
|
|
273059
|
-
__export(plugin_store_exports, {
|
|
273060
|
-
usePluginStore: () => usePluginStore
|
|
273061
|
-
});
|
|
273062
|
-
var toastSeq, usePluginStore;
|
|
273063
|
-
var init_plugin_store = __esm({
|
|
273064
|
-
"lib/plugins/plugin-store.ts"() {
|
|
273065
|
-
"use strict";
|
|
273066
|
-
init_esm();
|
|
273067
|
-
init_announce();
|
|
273068
|
-
toastSeq = 1;
|
|
273069
|
-
usePluginStore = create2()((set4) => ({
|
|
273070
|
-
installed: [],
|
|
273071
|
-
sessions: [],
|
|
273072
|
-
toasts: [],
|
|
273073
|
-
permissionPrompt: null,
|
|
273074
|
-
managerOpen: false,
|
|
273075
|
-
setInstalled: (installed4) => set4({ installed: installed4 }),
|
|
273076
|
-
setManagerOpen: (managerOpen) => set4({ managerOpen }),
|
|
273077
|
-
upsertSession: (s) => set4((st3) => ({ sessions: [...st3.sessions.filter((x2) => x2.sessionId !== s.sessionId), s] })),
|
|
273078
|
-
patchSession: (sessionId, patch2) => set4((st3) => ({ sessions: st3.sessions.map((x2) => x2.sessionId === sessionId ? { ...x2, ...patch2 } : x2) })),
|
|
273079
|
-
removeSession: (sessionId) => set4((st3) => ({ sessions: st3.sessions.filter((x2) => x2.sessionId !== sessionId) })),
|
|
273080
|
-
toast: (message, opts = {}) => {
|
|
273081
|
-
announce(opts.source ? `${opts.source}: ${message}` : message, opts.error ? "assertive" : "polite");
|
|
273082
|
-
const id3 = toastSeq++;
|
|
273083
|
-
set4((st3) => ({ toasts: [...st3.toasts.slice(-4), { id: id3, message, error: !!opts.error, source: opts.source ?? "" }] }));
|
|
273084
|
-
setTimeout(() => set4((st3) => ({ toasts: st3.toasts.filter((t3) => t3.id !== id3) })), opts.error ? 7e3 : 4e3);
|
|
273085
|
-
},
|
|
273086
|
-
dismissToast: (id3) => set4((st3) => ({ toasts: st3.toasts.filter((t3) => t3.id !== id3) })),
|
|
273087
|
-
setPermissionPrompt: (permissionPrompt) => set4({ permissionPrompt })
|
|
273088
|
-
}));
|
|
273089
|
-
}
|
|
273090
|
-
});
|
|
273091
|
-
|
|
273092
|
-
// lib/client/network.ts
|
|
273093
|
-
function isOnline() {
|
|
273094
|
-
return typeof navigator === "undefined" || navigator.onLine !== false;
|
|
273095
|
-
}
|
|
273096
|
-
function networkSignal(signal, timeoutMs = NETWORK_TIMEOUT_MS) {
|
|
273097
|
-
if (!isOnline()) throw new OfflineError();
|
|
273098
|
-
const deadline = AbortSignal.timeout(timeoutMs);
|
|
273099
|
-
return signal ? AbortSignal.any([signal, deadline]) : deadline;
|
|
273100
|
-
}
|
|
273101
|
-
var import_react3, NETWORK_TIMEOUT_MS, OfflineError;
|
|
273102
|
-
var init_network = __esm({
|
|
273103
|
-
"lib/client/network.ts"() {
|
|
273104
|
-
import_react3 = __toESM(require_react());
|
|
273105
|
-
NETWORK_TIMEOUT_MS = 8e3;
|
|
273106
|
-
OfflineError = class extends Error {
|
|
273107
|
-
constructor() {
|
|
273108
|
-
super("You are offline");
|
|
273109
|
-
this.name = "OfflineError";
|
|
273110
|
-
}
|
|
273111
|
-
};
|
|
273112
|
-
}
|
|
273113
|
-
});
|
|
273114
|
-
|
|
273115
|
-
// lib/client/cloud/plan-limit.ts
|
|
273116
|
-
var plan_limit_exports = {};
|
|
273117
|
-
__export(plan_limit_exports, {
|
|
273118
|
-
closePlanDialog: () => closePlanDialog,
|
|
273119
|
-
dismissPlanLimit: () => dismissPlanLimit,
|
|
273120
|
-
openPlanDialog: () => openPlanDialog,
|
|
273121
|
-
reportPlanLimit: () => reportPlanLimit,
|
|
273122
|
-
resetPlanLimitNotices: () => resetPlanLimitNotices,
|
|
273123
|
-
usePlanLimit: () => usePlanLimit
|
|
273124
|
-
});
|
|
273125
|
-
function reportPlanLimit(message, details, now3 = Date.now()) {
|
|
273126
|
-
const key5 = `${details.tier}:${details.limit}`;
|
|
273127
|
-
const prev = lastShown.get(key5);
|
|
273128
|
-
if (prev !== void 0 && now3 - prev < REPEAT_MS) return false;
|
|
273129
|
-
lastShown.set(key5, now3);
|
|
273130
|
-
usePlanLimit.setState({ notice: { message, details, at: now3 } });
|
|
273131
|
-
return true;
|
|
273132
|
-
}
|
|
273133
|
-
function openPlanDialog(workspaceId, opts = {}) {
|
|
273134
|
-
usePlanLimit.setState({ notice: null, planDialogOpen: true, planDialogWorkspaceId: typeof workspaceId === "string" ? workspaceId : null, planDialogIntro: !!opts.intro });
|
|
273135
|
-
}
|
|
273136
|
-
function resetPlanLimitNotices() {
|
|
273137
|
-
lastShown.clear();
|
|
273138
|
-
usePlanLimit.setState({ notice: null, planDialogOpen: false, planDialogWorkspaceId: null, planDialogIntro: false });
|
|
273139
|
-
}
|
|
273140
|
-
var usePlanLimit, REPEAT_MS, lastShown, dismissPlanLimit, closePlanDialog;
|
|
273141
|
-
var init_plan_limit = __esm({
|
|
273142
|
-
"lib/client/cloud/plan-limit.ts"() {
|
|
273143
|
-
"use strict";
|
|
273144
|
-
init_esm();
|
|
273145
|
-
usePlanLimit = create2(() => ({ notice: null, planDialogOpen: false, planDialogWorkspaceId: null, planDialogIntro: false }));
|
|
273146
|
-
REPEAT_MS = 10 * 6e4;
|
|
273147
|
-
lastShown = /* @__PURE__ */ new Map();
|
|
273148
|
-
dismissPlanLimit = () => usePlanLimit.setState({ notice: null });
|
|
273149
|
-
closePlanDialog = () => usePlanLimit.setState({ planDialogOpen: false, planDialogWorkspaceId: null, planDialogIntro: false });
|
|
273150
|
-
}
|
|
273151
|
-
});
|
|
273152
|
-
|
|
273153
273037
|
// lib/i18n/format.ts
|
|
273154
273038
|
function cached2(kind, opts, make) {
|
|
273155
273039
|
const locale = intlLocale(getLocale());
|
|
@@ -273196,6 +273080,7 @@ function formatLimit(key5, max3) {
|
|
|
273196
273080
|
var formatBytes;
|
|
273197
273081
|
var init_limits2 = __esm({
|
|
273198
273082
|
"lib/billing/limits.ts"() {
|
|
273083
|
+
"use strict";
|
|
273199
273084
|
init_format();
|
|
273200
273085
|
init_plans();
|
|
273201
273086
|
formatBytes = formatFileSize;
|
|
@@ -273422,6 +273307,163 @@ var init_purchases = __esm({
|
|
|
273422
273307
|
}
|
|
273423
273308
|
});
|
|
273424
273309
|
|
|
273310
|
+
// lib/desktop/play-app.ts
|
|
273311
|
+
function isAppPage(href, origin) {
|
|
273312
|
+
const url4 = new URL(href, origin);
|
|
273313
|
+
if (url4.origin !== origin) return false;
|
|
273314
|
+
return APP_PATHS.some((p2) => url4.pathname === p2 || url4.pathname.startsWith(p2 + "/"));
|
|
273315
|
+
}
|
|
273316
|
+
function chromeIntent(href) {
|
|
273317
|
+
const url4 = new URL(href);
|
|
273318
|
+
if (url4.protocol !== "https:" && url4.protocol !== "http:") return null;
|
|
273319
|
+
const scheme = url4.protocol.slice(0, -1);
|
|
273320
|
+
return `intent://${url4.host}${url4.pathname}${url4.search}#Intent;scheme=${scheme};package=com.android.chrome;S.browser_fallback_url=${encodeURIComponent(url4.href)};end`;
|
|
273321
|
+
}
|
|
273322
|
+
function openOutside(href) {
|
|
273323
|
+
const url4 = new URL(href, window.location.href);
|
|
273324
|
+
const intent = chromeIntent(url4.href);
|
|
273325
|
+
window.location.assign(intent ?? url4.href);
|
|
273326
|
+
}
|
|
273327
|
+
function sentOutOfPlayApp(href) {
|
|
273328
|
+
if (!inPlayApp() || isAppPage(href, window.location.origin)) return false;
|
|
273329
|
+
openOutside(new URL(href, window.location.href).href);
|
|
273330
|
+
return true;
|
|
273331
|
+
}
|
|
273332
|
+
var APP_PATHS;
|
|
273333
|
+
var init_play_app = __esm({
|
|
273334
|
+
"lib/desktop/play-app.ts"() {
|
|
273335
|
+
"use strict";
|
|
273336
|
+
init_purchases();
|
|
273337
|
+
APP_PATHS = ["/home", "/pop", "/callback"];
|
|
273338
|
+
}
|
|
273339
|
+
});
|
|
273340
|
+
|
|
273341
|
+
// lib/desktop/open-link.ts
|
|
273342
|
+
function openLink(href) {
|
|
273343
|
+
if (sentOutOfPlayApp(href)) return;
|
|
273344
|
+
if (isDesktop()) window.location.assign(href);
|
|
273345
|
+
else window.open(href, "_blank", "noopener");
|
|
273346
|
+
}
|
|
273347
|
+
function openSitePage(path) {
|
|
273348
|
+
if (sentOutOfPlayApp(path)) return;
|
|
273349
|
+
if (!isDesktop()) {
|
|
273350
|
+
window.open(path, "_blank", "noopener");
|
|
273351
|
+
return;
|
|
273352
|
+
}
|
|
273353
|
+
const url4 = new URL(path, window.location.origin).href;
|
|
273354
|
+
invoke("open_external", { url: url4 }).catch(() => window.location.assign(path));
|
|
273355
|
+
}
|
|
273356
|
+
function openBeside(href) {
|
|
273357
|
+
if (sentOutOfPlayApp(href)) return true;
|
|
273358
|
+
if (!isDesktop()) return !!window.open(href, "_blank", "noopener,noreferrer");
|
|
273359
|
+
const url4 = new URL(href, window.location.href);
|
|
273360
|
+
if (url4.origin === window.location.origin) openSitePage(url4.pathname + url4.search + url4.hash);
|
|
273361
|
+
else window.location.assign(url4.href);
|
|
273362
|
+
return true;
|
|
273363
|
+
}
|
|
273364
|
+
var init_open_link = __esm({
|
|
273365
|
+
"lib/desktop/open-link.ts"() {
|
|
273366
|
+
init_tauri();
|
|
273367
|
+
init_play_app();
|
|
273368
|
+
}
|
|
273369
|
+
});
|
|
273370
|
+
|
|
273371
|
+
// lib/plugins/plugin-store.ts
|
|
273372
|
+
var plugin_store_exports = {};
|
|
273373
|
+
__export(plugin_store_exports, {
|
|
273374
|
+
usePluginStore: () => usePluginStore
|
|
273375
|
+
});
|
|
273376
|
+
var toastSeq, usePluginStore;
|
|
273377
|
+
var init_plugin_store = __esm({
|
|
273378
|
+
"lib/plugins/plugin-store.ts"() {
|
|
273379
|
+
"use strict";
|
|
273380
|
+
init_esm();
|
|
273381
|
+
init_announce();
|
|
273382
|
+
toastSeq = 1;
|
|
273383
|
+
usePluginStore = create2()((set4) => ({
|
|
273384
|
+
installed: [],
|
|
273385
|
+
sessions: [],
|
|
273386
|
+
toasts: [],
|
|
273387
|
+
permissionPrompt: null,
|
|
273388
|
+
managerOpen: false,
|
|
273389
|
+
setInstalled: (installed4) => set4({ installed: installed4 }),
|
|
273390
|
+
setManagerOpen: (managerOpen) => set4({ managerOpen }),
|
|
273391
|
+
upsertSession: (s) => set4((st3) => ({ sessions: [...st3.sessions.filter((x2) => x2.sessionId !== s.sessionId), s] })),
|
|
273392
|
+
patchSession: (sessionId, patch2) => set4((st3) => ({ sessions: st3.sessions.map((x2) => x2.sessionId === sessionId ? { ...x2, ...patch2 } : x2) })),
|
|
273393
|
+
removeSession: (sessionId) => set4((st3) => ({ sessions: st3.sessions.filter((x2) => x2.sessionId !== sessionId) })),
|
|
273394
|
+
toast: (message, opts = {}) => {
|
|
273395
|
+
announce(opts.source ? `${opts.source}: ${message}` : message, opts.error ? "assertive" : "polite");
|
|
273396
|
+
const id3 = toastSeq++;
|
|
273397
|
+
set4((st3) => ({ toasts: [...st3.toasts.slice(-4), { id: id3, message, error: !!opts.error, source: opts.source ?? "" }] }));
|
|
273398
|
+
setTimeout(() => set4((st3) => ({ toasts: st3.toasts.filter((t3) => t3.id !== id3) })), opts.error ? 7e3 : 4e3);
|
|
273399
|
+
},
|
|
273400
|
+
dismissToast: (id3) => set4((st3) => ({ toasts: st3.toasts.filter((t3) => t3.id !== id3) })),
|
|
273401
|
+
setPermissionPrompt: (permissionPrompt) => set4({ permissionPrompt })
|
|
273402
|
+
}));
|
|
273403
|
+
}
|
|
273404
|
+
});
|
|
273405
|
+
|
|
273406
|
+
// lib/client/network.ts
|
|
273407
|
+
function isOnline() {
|
|
273408
|
+
return typeof navigator === "undefined" || navigator.onLine !== false;
|
|
273409
|
+
}
|
|
273410
|
+
function networkSignal(signal, timeoutMs = NETWORK_TIMEOUT_MS) {
|
|
273411
|
+
if (!isOnline()) throw new OfflineError();
|
|
273412
|
+
const deadline = AbortSignal.timeout(timeoutMs);
|
|
273413
|
+
return signal ? AbortSignal.any([signal, deadline]) : deadline;
|
|
273414
|
+
}
|
|
273415
|
+
var import_react3, NETWORK_TIMEOUT_MS, OfflineError;
|
|
273416
|
+
var init_network = __esm({
|
|
273417
|
+
"lib/client/network.ts"() {
|
|
273418
|
+
import_react3 = __toESM(require_react());
|
|
273419
|
+
NETWORK_TIMEOUT_MS = 8e3;
|
|
273420
|
+
OfflineError = class extends Error {
|
|
273421
|
+
constructor() {
|
|
273422
|
+
super("You are offline");
|
|
273423
|
+
this.name = "OfflineError";
|
|
273424
|
+
}
|
|
273425
|
+
};
|
|
273426
|
+
}
|
|
273427
|
+
});
|
|
273428
|
+
|
|
273429
|
+
// lib/client/cloud/plan-limit.ts
|
|
273430
|
+
var plan_limit_exports = {};
|
|
273431
|
+
__export(plan_limit_exports, {
|
|
273432
|
+
closePlanDialog: () => closePlanDialog,
|
|
273433
|
+
dismissPlanLimit: () => dismissPlanLimit,
|
|
273434
|
+
openPlanDialog: () => openPlanDialog,
|
|
273435
|
+
reportPlanLimit: () => reportPlanLimit,
|
|
273436
|
+
resetPlanLimitNotices: () => resetPlanLimitNotices,
|
|
273437
|
+
usePlanLimit: () => usePlanLimit
|
|
273438
|
+
});
|
|
273439
|
+
function reportPlanLimit(message, details, now3 = Date.now()) {
|
|
273440
|
+
const key5 = `${details.tier}:${details.limit}`;
|
|
273441
|
+
const prev = lastShown.get(key5);
|
|
273442
|
+
if (prev !== void 0 && now3 - prev < REPEAT_MS) return false;
|
|
273443
|
+
lastShown.set(key5, now3);
|
|
273444
|
+
usePlanLimit.setState({ notice: { message, details, at: now3 } });
|
|
273445
|
+
return true;
|
|
273446
|
+
}
|
|
273447
|
+
function openPlanDialog(workspaceId, opts = {}) {
|
|
273448
|
+
usePlanLimit.setState({ notice: null, planDialogOpen: true, planDialogWorkspaceId: typeof workspaceId === "string" ? workspaceId : null, planDialogIntro: !!opts.intro });
|
|
273449
|
+
}
|
|
273450
|
+
function resetPlanLimitNotices() {
|
|
273451
|
+
lastShown.clear();
|
|
273452
|
+
usePlanLimit.setState({ notice: null, planDialogOpen: false, planDialogWorkspaceId: null, planDialogIntro: false });
|
|
273453
|
+
}
|
|
273454
|
+
var usePlanLimit, REPEAT_MS, lastShown, dismissPlanLimit, closePlanDialog;
|
|
273455
|
+
var init_plan_limit = __esm({
|
|
273456
|
+
"lib/client/cloud/plan-limit.ts"() {
|
|
273457
|
+
"use strict";
|
|
273458
|
+
init_esm();
|
|
273459
|
+
usePlanLimit = create2(() => ({ notice: null, planDialogOpen: false, planDialogWorkspaceId: null, planDialogIntro: false }));
|
|
273460
|
+
REPEAT_MS = 10 * 6e4;
|
|
273461
|
+
lastShown = /* @__PURE__ */ new Map();
|
|
273462
|
+
dismissPlanLimit = () => usePlanLimit.setState({ notice: null });
|
|
273463
|
+
closePlanDialog = () => usePlanLimit.setState({ planDialogOpen: false, planDialogWorkspaceId: null, planDialogIntro: false });
|
|
273464
|
+
}
|
|
273465
|
+
});
|
|
273466
|
+
|
|
273425
273467
|
// lib/client/cloud/api.ts
|
|
273426
273468
|
var api_exports = {};
|
|
273427
273469
|
__export(api_exports, {
|
|
@@ -273741,6 +273783,7 @@ function planEntryAction({ home }) {
|
|
|
273741
273783
|
var STORAGE_KEY2, useHyperyTeam, TEAM_PROMPT_ENABLED, TEAM_PROMPTED_KEY, PROMPTED_KEY, useTeamPrompt, started;
|
|
273742
273784
|
var init_team = __esm({
|
|
273743
273785
|
"lib/client/cloud/team.ts"() {
|
|
273786
|
+
"use strict";
|
|
273744
273787
|
init_esm();
|
|
273745
273788
|
init_api4();
|
|
273746
273789
|
init_session();
|
|
@@ -317407,6 +317450,7 @@ function decodeSource(key5, label3) {
|
|
|
317407
317450
|
var DECODE_CACHE_BYTES, cache7, pending4, held, sizeOf, lengths, decodedLengths, DECODE_TIMEOUT_MS, decodedAudio, decodedSource, pcmOf;
|
|
317408
317451
|
var init_audio_decode = __esm({
|
|
317409
317452
|
"lib/motion/audio-decode.ts"() {
|
|
317453
|
+
"use strict";
|
|
317410
317454
|
init_media_store();
|
|
317411
317455
|
init_audio_plan();
|
|
317412
317456
|
init_time_stretch();
|
|
@@ -322599,7 +322643,6 @@ function startCloudSync() {
|
|
|
322599
322643
|
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, SEEN_KEY, started2;
|
|
322600
322644
|
var init_sync2 = __esm({
|
|
322601
322645
|
"lib/client/cloud/sync.ts"() {
|
|
322602
|
-
"use strict";
|
|
322603
322646
|
init_kinds();
|
|
322604
322647
|
init_paint_repair();
|
|
322605
322648
|
init_migrate();
|
|
@@ -322811,6 +322854,7 @@ async function dispatchShaped(key5, options) {
|
|
|
322811
322854
|
var onViolation;
|
|
322812
322855
|
var init_dispatch = __esm({
|
|
322813
322856
|
"lib/commands/dispatch.ts"() {
|
|
322857
|
+
"use strict";
|
|
322814
322858
|
init_errors();
|
|
322815
322859
|
init_registry();
|
|
322816
322860
|
init_confirm();
|
|
@@ -323990,6 +324034,7 @@ function areaBounds(rings) {
|
|
|
323990
324034
|
}
|
|
323991
324035
|
var init_text_area = __esm({
|
|
323992
324036
|
"lib/engine/text/text-area.ts"() {
|
|
324037
|
+
"use strict";
|
|
323993
324038
|
}
|
|
323994
324039
|
});
|
|
323995
324040
|
|
|
@@ -328030,6 +328075,7 @@ async function exportSettingFile(renderer, node2, setting, doc2, styles) {
|
|
|
328030
328075
|
var MIME, DEFAULT_EXPORT, exportSettingsOf;
|
|
328031
328076
|
var init_export = __esm({
|
|
328032
328077
|
"lib/io/export.ts"() {
|
|
328078
|
+
"use strict";
|
|
328033
328079
|
init_download();
|
|
328034
328080
|
init_scene_graph();
|
|
328035
328081
|
init_codecs();
|
|
@@ -339023,7 +339069,7 @@ var init_package = __esm({
|
|
|
339023
339069
|
"packages/runtime/package.json"() {
|
|
339024
339070
|
package_default = {
|
|
339025
339071
|
name: "@popcraft/runtime",
|
|
339026
|
-
version: "0.57.
|
|
339072
|
+
version: "0.57.1",
|
|
339027
339073
|
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.",
|
|
339028
339074
|
license: "MIT",
|
|
339029
339075
|
homepage: "https://popcraft.app/docs/exporting/nextjs",
|
|
@@ -363731,6 +363777,7 @@ function compileModule(module2) {
|
|
|
363731
363777
|
var import_sucrase, BUILT_IN, memo7;
|
|
363732
363778
|
var init_compile2 = __esm({
|
|
363733
363779
|
"lib/code/compile.ts"() {
|
|
363780
|
+
"use strict";
|
|
363734
363781
|
import_sucrase = __toESM(require_dist2());
|
|
363735
363782
|
init_source2();
|
|
363736
363783
|
init_source2();
|
|
@@ -373894,6 +373941,7 @@ var init_source_monitor = __esm({
|
|
|
373894
373941
|
var storeOpsSeam;
|
|
373895
373942
|
var init_seams = __esm({
|
|
373896
373943
|
"lib/commands/seams.ts"() {
|
|
373944
|
+
"use strict";
|
|
373897
373945
|
storeOpsSeam = (st3) => ({
|
|
373898
373946
|
booleanOperation: (op4) => st3().booleanOperation(op4),
|
|
373899
373947
|
flatten: () => st3().flattenSelection(),
|
|
@@ -418096,6 +418144,7 @@ function registerBuiltinCommands() {
|
|
|
418096
418144
|
var builtinCommands, uiOnlyCommands;
|
|
418097
418145
|
var init_builtin4 = __esm({
|
|
418098
418146
|
"lib/commands/builtin.ts"() {
|
|
418147
|
+
"use strict";
|
|
418099
418148
|
init_registry();
|
|
418100
418149
|
init_node();
|
|
418101
418150
|
init_node();
|
|
@@ -425727,7 +425776,7 @@ init_resources();
|
|
|
425727
425776
|
init_desktop();
|
|
425728
425777
|
init_hypery();
|
|
425729
425778
|
import { createInterface } from "node:readline";
|
|
425730
|
-
var VERSION2 = "0.57.
|
|
425779
|
+
var VERSION2 = "0.57.1";
|
|
425731
425780
|
var HELP = `popcraft ${VERSION2} \u2014 the PopCraft command line
|
|
425732
425781
|
|
|
425733
425782
|
Files (headless, on .popcraft files):
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@popcraft/cli",
|
|
3
|
-
"version": "0.57.
|
|
3
|
+
"version": "0.57.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.57.
|
|
37
|
+
"@popcraft/kit": "0.57.1"
|
|
38
38
|
},
|
|
39
39
|
"scripts": {
|
|
40
40
|
"build": "node build.mjs",
|