@popcraft/cli 0.38.7 → 0.39.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 +22 -11
  2. 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.38.7"}`, ...opts.headers };
1199
+ const headers = { "user-agent": `popcraft-cli/${"0.39.1"}`, ...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 {
@@ -36612,6 +36612,7 @@ var init_en2 = __esm({
36612
36612
  "userMenu.collaboratorsCanTSeeYour": "Collaborators can't see your cursor while this is on",
36613
36613
  "userMenu.emailMeAboutMentionsReplies": "Email me about mentions, replies and invites I haven't seen in PopCraft",
36614
36614
  "userMenu.emailNotifications": "Email notifications",
36615
+ "userMenu.endsOn": "Ends {date}",
36615
36616
  "userMenu.helpLegal": "Help & legal",
36616
36617
  "userMenu.integrations": "Integrations",
36617
36618
  "userMenu.localModeFilesAreStored": "Local mode \u2014 files are stored in this browser",
@@ -41369,6 +41370,7 @@ var require_es = __commonJS({
41369
41370
  "userMenu.collaboratorsCanTSeeYour": "Los colaboradores no pueden ver tu cursor mientras esto est\xE1 activado",
41370
41371
  "userMenu.emailMeAboutMentionsReplies": "Enviarme un correo sobre menciones, respuestas e invitaciones que no haya visto en PopCraft",
41371
41372
  "userMenu.emailNotifications": "Notificaciones por correo",
41373
+ "userMenu.endsOn": "Finaliza {date}",
41372
41374
  "userMenu.helpLegal": "Ayuda y legal",
41373
41375
  "userMenu.integrations": "Integraciones",
41374
41376
  "userMenu.localModeFilesAreStored": "Modo local \u2014 los archivos se guardan en este navegador",
@@ -46126,6 +46128,7 @@ var require_fr = __commonJS({
46126
46128
  "userMenu.collaboratorsCanTSeeYour": "Les collaborateurs ne peuvent pas voir votre curseur lorsque cette option est activ\xE9e",
46127
46129
  "userMenu.emailMeAboutMentionsReplies": "M\u2019envoyer un e-mail pour les mentions, les r\xE9ponses et les invitations que je n\u2019ai pas vues dans PopCraft",
46128
46130
  "userMenu.emailNotifications": "Notifications par e-mail",
46131
+ "userMenu.endsOn": "Se termine le {date}",
46129
46132
  "userMenu.helpLegal": "Aide et mentions l\xE9gales",
46130
46133
  "userMenu.integrations": "Int\xE9grations",
46131
46134
  "userMenu.localModeFilesAreStored": "Mode local \u2014 les fichiers sont stock\xE9s dans ce navigateur",
@@ -55640,6 +55643,7 @@ var require_it = __commonJS({
55640
55643
  "userMenu.collaboratorsCanTSeeYour": "I collaboratori non possono vedere il tuo cursore quando questa opzione \xE8 attiva",
55641
55644
  "userMenu.emailMeAboutMentionsReplies": "Inviami email su menzioni, risposte e inviti che non ho visto in PopCraft",
55642
55645
  "userMenu.emailNotifications": "Notifiche email",
55646
+ "userMenu.endsOn": "Termina il {date}",
55643
55647
  "userMenu.helpLegal": "Aiuto e legale",
55644
55648
  "userMenu.integrations": "Integrazioni",
55645
55649
  "userMenu.localModeFilesAreStored": "Modalit\xE0 locale \u2014 i file sono archiviati in questo browser",
@@ -65154,6 +65158,7 @@ var require_ja = __commonJS({
65154
65158
  "userMenu.collaboratorsCanTSeeYour": "\u3053\u308C\u304C\u30AA\u30F3\u306E\u5834\u5408\u3001\u5171\u540C\u7DE8\u96C6\u8005\u306F\u3042\u306A\u305F\u306E\u30AB\u30FC\u30BD\u30EB\u3092\u898B\u308B\u3053\u3068\u304C\u3067\u304D\u307E\u305B\u3093",
65155
65159
  "userMenu.emailMeAboutMentionsReplies": "PopCraft\u3067\u672A\u8AAD\u306E\u30E1\u30F3\u30B7\u30E7\u30F3\u3001\u8FD4\u4FE1\u3001\u62DB\u5F85\u306B\u3064\u3044\u3066\u30E1\u30FC\u30EB\u3067\u901A\u77E5\u3059\u308B",
65156
65160
  "userMenu.emailNotifications": "\u30E1\u30FC\u30EB\u901A\u77E5",
65161
+ "userMenu.endsOn": "{date}\u7D42\u4E86",
65157
65162
  "userMenu.helpLegal": "\u30D8\u30EB\u30D7\u3068\u6CD5\u52D9",
65158
65163
  "userMenu.integrations": "\u9023\u643A",
65159
65164
  "userMenu.localModeFilesAreStored": "\u30ED\u30FC\u30AB\u30EB\u30E2\u30FC\u30C9 \u2014 \u30D5\u30A1\u30A4\u30EB\u306F\u3053\u306E\u30D6\u30E9\u30A6\u30B6\u306B\u4FDD\u5B58\u3055\u308C\u307E\u3059",
@@ -69911,6 +69916,7 @@ var require_ko = __commonJS({
69911
69916
  "userMenu.collaboratorsCanTSeeYour": "\uC774 \uAE30\uB2A5\uC774 \uCF1C\uC838 \uC788\uB294 \uB3D9\uC548 \uACF5\uB3D9 \uC791\uC5C5\uC790\uB294 \uC0AC\uC6A9\uC790 \uCEE4\uC11C\uB97C \uBCFC \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.",
69912
69917
  "userMenu.emailMeAboutMentionsReplies": "PopCraft\uC5D0\uC11C \uD655\uC778\uD558\uC9C0 \uC54A\uC740 \uBA58\uC158, \uB2F5\uAE00 \uBC0F \uCD08\uB300 \uAD00\uB828 \uC774\uBA54\uC77C \uBC1B\uAE30",
69913
69918
  "userMenu.emailNotifications": "\uC774\uBA54\uC77C \uC54C\uB9BC",
69919
+ "userMenu.endsOn": "{date}\uC5D0 \uC885\uB8CC",
69914
69920
  "userMenu.helpLegal": "\uB3C4\uC6C0\uB9D0 \uBC0F \uBC95\uB960",
69915
69921
  "userMenu.integrations": "\uD1B5\uD569",
69916
69922
  "userMenu.localModeFilesAreStored": "\uB85C\uCEEC \uBAA8\uB4DC \u2014 \uD30C\uC77C\uC774 \uC774 \uBE0C\uB77C\uC6B0\uC800\uC5D0 \uC800\uC7A5\uB429\uB2C8\uB2E4.",
@@ -74668,6 +74674,7 @@ var require_zh_CN = __commonJS({
74668
74674
  "userMenu.collaboratorsCanTSeeYour": "\u5F00\u542F\u6B64\u529F\u80FD\u65F6\uFF0C\u534F\u4F5C\u8005\u65E0\u6CD5\u770B\u5230\u60A8\u7684\u5149\u6807",
74669
74675
  "userMenu.emailMeAboutMentionsReplies": "\u901A\u8FC7\u7535\u5B50\u90AE\u4EF6\u901A\u77E5\u6211 PopCraft \u4E2D\u672A\u8BFB\u7684\u63D0\u53CA\u3001\u56DE\u590D\u548C\u9080\u8BF7",
74670
74676
  "userMenu.emailNotifications": "\u7535\u5B50\u90AE\u4EF6\u901A\u77E5",
74677
+ "userMenu.endsOn": "\u7ED3\u675F\u4E8E {date}",
74671
74678
  "userMenu.helpLegal": "\u5E2E\u52A9\u4E0E\u6CD5\u5F8B",
74672
74679
  "userMenu.integrations": "\u96C6\u6210",
74673
74680
  "userMenu.localModeFilesAreStored": "\u672C\u5730\u6A21\u5F0F \u2014 \u6587\u4EF6\u5B58\u50A8\u5728\u6B64\u6D4F\u89C8\u5668\u4E2D",
@@ -79425,6 +79432,7 @@ var require_zh_TW = __commonJS({
79425
79432
  "userMenu.collaboratorsCanTSeeYour": "\u555F\u7528\u6B64\u529F\u80FD\u6642\uFF0C\u5354\u4F5C\u8005\u7121\u6CD5\u770B\u5230\u60A8\u7684\u6E38\u6A19",
79426
79433
  "userMenu.emailMeAboutMentionsReplies": "\u7576\u6211\u5728 PopCraft \u4E2D\u672A\u66FE\u898B\u904E\u7684\u63D0\u53CA\u3001\u56DE\u8986\u548C\u9080\u8ACB\u6642\uFF0C\u8ACB\u900F\u904E\u96FB\u5B50\u90F5\u4EF6\u901A\u77E5\u6211",
79427
79434
  "userMenu.emailNotifications": "\u96FB\u5B50\u90F5\u4EF6\u901A\u77E5",
79435
+ "userMenu.endsOn": "\u622A\u6B62 {date}",
79428
79436
  "userMenu.helpLegal": "\u8AAA\u660E\u8207\u6CD5\u5F8B",
79429
79437
  "userMenu.integrations": "\u6574\u5408",
79430
79438
  "userMenu.localModeFilesAreStored": "\u672C\u6A5F\u6A21\u5F0F \u2014 \u6A94\u6848\u5132\u5B58\u5728\u6B64\u700F\u89BD\u5668\u4E2D",
@@ -84182,6 +84190,7 @@ var require_ru = __commonJS({
84182
84190
  "userMenu.collaboratorsCanTSeeYour": "\u0421\u043E\u0430\u0432\u0442\u043E\u0440\u044B \u043D\u0435 \u0441\u043C\u043E\u0433\u0443\u0442 \u0432\u0438\u0434\u0435\u0442\u044C \u0432\u0430\u0448 \u043A\u0443\u0440\u0441\u043E\u0440, \u043F\u043E\u043A\u0430 \u044D\u0442\u0430 \u0444\u0443\u043D\u043A\u0446\u0438\u044F \u0432\u043A\u043B\u044E\u0447\u0435\u043D\u0430",
84183
84191
  "userMenu.emailMeAboutMentionsReplies": "\u041E\u0442\u043F\u0440\u0430\u0432\u043B\u044F\u0442\u044C \u043C\u043D\u0435 \u0443\u0432\u0435\u0434\u043E\u043C\u043B\u0435\u043D\u0438\u044F \u043F\u043E \u044D\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u043E\u0439 \u043F\u043E\u0447\u0442\u0435 \u043E \u0443\u043F\u043E\u043C\u0438\u043D\u0430\u043D\u0438\u044F\u0445, \u043E\u0442\u0432\u0435\u0442\u0430\u0445 \u0438 \u043F\u0440\u0438\u0433\u043B\u0430\u0448\u0435\u043D\u0438\u044F\u0445, \u043A\u043E\u0442\u043E\u0440\u044B\u0435 \u044F \u043D\u0435 \u0432\u0438\u0434\u0435\u043B \u0432 PopCraft",
84184
84192
  "userMenu.emailNotifications": "\u0423\u0432\u0435\u0434\u043E\u043C\u043B\u0435\u043D\u0438\u044F \u043F\u043E \u044D\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u043E\u0439 \u043F\u043E\u0447\u0442\u0435",
84193
+ "userMenu.endsOn": "\u0417\u0430\u043A\u0430\u043D\u0447\u0438\u0432\u0430\u0435\u0442\u0441\u044F {date}",
84185
84194
  "userMenu.helpLegal": "\u041F\u043E\u043C\u043E\u0449\u044C \u0438 \u043F\u0440\u0430\u0432\u043E\u0432\u0430\u044F \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044F",
84186
84195
  "userMenu.integrations": "\u0418\u043D\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u0438",
84187
84196
  "userMenu.localModeFilesAreStored": "\u041B\u043E\u043A\u0430\u043B\u044C\u043D\u044B\u0439 \u0440\u0435\u0436\u0438\u043C \u2014 \u0444\u0430\u0439\u043B\u044B \u0445\u0440\u0430\u043D\u044F\u0442\u0441\u044F \u0432 \u044D\u0442\u043E\u043C \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0435",
@@ -93696,6 +93705,7 @@ var require_hi = __commonJS({
93696
93705
  "userMenu.collaboratorsCanTSeeYour": "\u091C\u092C \u092F\u0939 \u091A\u093E\u0932\u0942 \u0939\u094B, \u0924\u094B \u0938\u0939\u092F\u094B\u0917\u0940 \u0906\u092A\u0915\u093E \u0915\u0930\u094D\u0938\u0930 \u0928\u0939\u0940\u0902 \u0926\u0947\u0916 \u0938\u0915\u0924\u0947",
93697
93706
  "userMenu.emailMeAboutMentionsReplies": "\u092E\u0941\u091D\u0947 \u0909\u0928 \u0909\u0932\u094D\u0932\u0947\u0916\u094B\u0902, \u091C\u0935\u093E\u092C\u094B\u0902 \u0914\u0930 \u0906\u092E\u0902\u0924\u094D\u0930\u0923\u094B\u0902 \u0915\u0947 \u092C\u093E\u0930\u0947 \u092E\u0947\u0902 \u0908\u092E\u0947\u0932 \u0915\u0930\u0947\u0902 \u091C\u094B \u092E\u0948\u0902\u0928\u0947 PopCraft \u092E\u0947\u0902 \u0928\u0939\u0940\u0902 \u0926\u0947\u0916\u0947 \u0939\u0948\u0902",
93698
93707
  "userMenu.emailNotifications": "\u0908\u092E\u0947\u0932 \u0938\u0942\u091A\u0928\u093E\u090F\u0901",
93708
+ "userMenu.endsOn": "{date} \u0915\u094B \u0938\u092E\u093E\u092A\u094D\u0924 \u0939\u094B\u0917\u093E",
93699
93709
  "userMenu.helpLegal": "\u0938\u0939\u093E\u092F\u0924\u093E \u0914\u0930 \u0915\u093E\u0928\u0942\u0928\u0940",
93700
93710
  "userMenu.integrations": "\u090F\u0915\u0940\u0915\u0930\u0923",
93701
93711
  "userMenu.localModeFilesAreStored": "\u0938\u094D\u0925\u093E\u0928\u0940\u092F \u092E\u094B\u0921 \u2014 \u092B\u093C\u093E\u0907\u0932\u0947\u0902 \u0907\u0938 \u092C\u094D\u0930\u093E\u0909\u091C\u093C\u0930 \u092E\u0947\u0902 \u0938\u0902\u0917\u094D\u0930\u0939\u0940\u0924 \u0939\u0948\u0902",
@@ -96128,7 +96138,6 @@ async function sha256Prefix(bytes2) {
96128
96138
  }
96129
96139
  var init_media_hash = __esm({
96130
96140
  "lib/storage/media-hash.ts"() {
96131
- "use strict";
96132
96141
  }
96133
96142
  });
96134
96143
 
@@ -96511,7 +96520,6 @@ function releaseMediaMemory(hash3) {
96511
96520
  var key2, peaksKey, objectUrls, sourceKey, remoteResolver, MEDIA_FETCH_TIMEOUT_MS, SHIPPED_MEDIA_PATH, notShipped, MEDIA_SCHEME, isImageDataUrl, memory, pendingLoads, sourceAliases, PAINT_KEYS, URL_KEYS;
96512
96521
  var init_media_store = __esm({
96513
96522
  "lib/storage/media-store.ts"() {
96514
- "use strict";
96515
96523
  init_media_types();
96516
96524
  init_idb();
96517
96525
  init_media_hash();
@@ -247573,6 +247581,7 @@ function repairCompositions(comps, nodes) {
247573
247581
  var isObj5, finite6, optFinite, isVec2, TIMELINE_COLOR_IDS, TIMELINE_COLORS, UNITS, ORDERS, PROP_KEYS, ANIMATOR_ID, MOTION_TYPES, TRANSITIONS, isFraction, MEDIA_HASH;
247574
247582
  var init_invariants = __esm({
247575
247583
  "lib/motion/invariants.ts"() {
247584
+ "use strict";
247576
247585
  init_easing();
247577
247586
  init_properties();
247578
247587
  init_markers();
@@ -311502,7 +311511,6 @@ function creditLine(c2) {
311502
311511
  var MAX_PHOTO_PAGE, MAX_PHOTO_QUERY, UUID, isPhotoId, photoImagePath;
311503
311512
  var init_stock = __esm({
311504
311513
  "lib/photos/stock.ts"() {
311505
- "use strict";
311506
311514
  MAX_PHOTO_PAGE = 12;
311507
311515
  MAX_PHOTO_QUERY = 200;
311508
311516
  UUID = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
@@ -327419,7 +327427,7 @@ var init_package = __esm({
327419
327427
  "packages/runtime/package.json"() {
327420
327428
  package_default = {
327421
327429
  name: "@popcraft/runtime",
327422
- version: "0.38.7",
327430
+ version: "0.39.1",
327423
327431
  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.",
327424
327432
  license: "MIT",
327425
327433
  homepage: "https://popcraft.app/docs/exporting/nextjs",
@@ -352085,7 +352093,6 @@ function exportsOf(source3) {
352085
352093
  var CODE_LIMITS, packageOf;
352086
352094
  var init_source2 = __esm({
352087
352095
  "lib/code/source.ts"() {
352088
- "use strict";
352089
352096
  CODE_LIMITS = { modules: 100, sourceLength: 2e5, packages: 12 };
352090
352097
  packageOf = (spec) => spec.split("/").slice(0, spec.startsWith("@") ? 2 : 1).join("/");
352091
352098
  }
@@ -352128,7 +352135,6 @@ function compileModule(module2) {
352128
352135
  var import_sucrase, BUILT_IN, memo4;
352129
352136
  var init_compile2 = __esm({
352130
352137
  "lib/code/compile.ts"() {
352131
- "use strict";
352132
352138
  import_sucrase = __toESM(require_dist2());
352133
352139
  init_source2();
352134
352140
  init_source2();
@@ -352206,7 +352212,6 @@ function hashOf2(text) {
352206
352212
  }
352207
352213
  var init_hash = __esm({
352208
352214
  "lib/code/hash.ts"() {
352209
- "use strict";
352210
352215
  }
352211
352216
  });
352212
352217
 
@@ -360729,6 +360734,7 @@ __export(integrations_exports, {
360729
360734
  siteBackend: () => siteBackend
360730
360735
  });
360731
360736
  function connectWithOAuth(workspaceId, provider2) {
360737
+ if (storePlatform() === "ios" || storePlatform() === "macos") return connectInSheet(workspaceId, provider2);
360732
360738
  const popup = window.open("", "popcraft-integration", "popup,width=640,height=760");
360733
360739
  if (!popup) return Promise.reject(new Error("The browser blocked the window. Allow pop-ups for PopCraft and try again."));
360734
360740
  return new Promise((resolve6, reject) => {
@@ -360759,6 +360765,11 @@ function connectWithOAuth(workspaceId, provider2) {
360759
360765
  });
360760
360766
  });
360761
360767
  }
360768
+ async function connectInSheet(workspaceId, provider2) {
360769
+ const { url: url4 } = await api(`/api/integrations/${encodeURIComponent(provider2)}/authorize`, { method: "POST", json: { workspaceId, app: true } });
360770
+ const done = new URL(await invoke("auth_session_open", { url: url4 }));
360771
+ if (done.searchParams.get("ok") !== "1") throw new Error(done.searchParams.get("error") || "The account was not connected.");
360772
+ }
360762
360773
  async function sha12(bytes2) {
360763
360774
  const digest = await crypto.subtle.digest("SHA-1", bytes2);
360764
360775
  return [...new Uint8Array(digest)].map((b) => b.toString(16).padStart(2, "0")).join("");
@@ -360779,6 +360790,7 @@ async function deployStore(key5, id3, files, env, onProgress) {
360779
360790
  var integrationsWorkspaceId, listWorkspaceIntegrations, connectWithToken, disconnect, listResources, createResource, listDestinations, addDestination, removeDestination, deployDestination, siteBackend, attachDatabase, setSignIn, detachDatabase, listSubmissions, listCandidates, createDatabase, createDestination;
360780
360791
  var init_integrations = __esm({
360781
360792
  "lib/client/cloud/integrations.ts"() {
360793
+ init_tauri();
360782
360794
  init_api4();
360783
360795
  init_team();
360784
360796
  integrationsWorkspaceId = () => activeTeamWorkspaceId() ?? useHyperyTeam.getState().personalWorkspaceId;
@@ -361152,7 +361164,6 @@ var init_delete_current_file = __esm({
361152
361164
  var storeOpsSeam;
361153
361165
  var init_seams = __esm({
361154
361166
  "lib/commands/seams.ts"() {
361155
- "use strict";
361156
361167
  storeOpsSeam = (st) => ({
361157
361168
  booleanOperation: (op4) => st().booleanOperation(op4),
361158
361169
  flatten: () => st().flattenSelection(),
@@ -398211,6 +398222,7 @@ function record(source, namespaces, globals, limits) {
398211
398222
  var HELPER_NAMES;
398212
398223
  var init_helper_names = __esm({
398213
398224
  "lib/agent/design-script/helper-names.ts"() {
398225
+ "use strict";
398214
398226
  HELPER_NAMES = ["draw", "marks", "fit", "motion", "captions", "overlays", "texture", "pointer", "windows", "devices", "type", "beat", "web", "social", "video", "site", "effects"];
398215
398227
  }
398216
398228
  });
@@ -403423,7 +403435,6 @@ function registerBuiltinCommands() {
403423
403435
  var builtinCommands, uiOnlyCommands;
403424
403436
  var init_builtin4 = __esm({
403425
403437
  "lib/commands/builtin.ts"() {
403426
- "use strict";
403427
403438
  init_registry();
403428
403439
  init_node();
403429
403440
  init_node();
@@ -411002,7 +411013,7 @@ init_resources();
411002
411013
  init_desktop();
411003
411014
  init_hypery();
411004
411015
  import { createInterface } from "node:readline";
411005
- var VERSION2 = "0.38.7";
411016
+ var VERSION2 = "0.39.1";
411006
411017
  var HELP = `popcraft ${VERSION2} \u2014 the PopCraft command line
411007
411018
 
411008
411019
  Files (headless, on .popcraft files):
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@popcraft/cli",
3
- "version": "0.38.7",
3
+ "version": "0.39.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.38.7"
37
+ "@popcraft/kit": "0.39.1"
38
38
  },
39
39
  "scripts": {
40
40
  "build": "node build.mjs",