@popcraft/cli 0.48.0 → 0.48.2

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 +57 -32
  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.48.0"}`, ...opts.headers };
1199
+ const headers = { "user-agent": `popcraft-cli/${"0.48.2"}`, ...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 {
@@ -33943,7 +33943,6 @@ var init_en2 = __esm({
33943
33943
  "homeTeam.viewListing": "View its marketplace listing",
33944
33944
  "homeTemplates.browseAll": "Browse all templates",
33945
33945
  "homeTemplates.communityBody": "Templates people made and shared. Tap one to start from a copy.",
33946
- "homeTemplates.couldNotLoad": "Templates couldn't load. Browse all templates to try again.",
33947
33946
  "homeTemplates.fromTheCommunity": "From the community",
33948
33947
  "homeTemplates.loading": "Loading templates\u2026",
33949
33948
  "homeTemplates.noneInThisGroup": "No templates in this group yet.",
@@ -34615,6 +34614,12 @@ var init_en2 = __esm({
34615
34614
  "objectActions.brushPartsOfThePicture": "Brush parts of the picture away \u2014 non-destructive, and you can paint them back",
34616
34615
  "objectActions.crop": "Crop",
34617
34616
  "objectActions.erase": "Erase",
34617
+ "offlineNotice.blankCanvas": "Start with a blank canvas",
34618
+ "offlineNotice.offlineBody": "This needs a connection. It loads by itself as soon as you\u2019re back online.",
34619
+ "offlineNotice.offlineTitle": "You\u2019re offline",
34620
+ "offlineNotice.retry": "Retry",
34621
+ "offlineNotice.unreachableBody": "Check your connection and try again.",
34622
+ "offlineNotice.unreachableTitle": "Couldn\u2019t reach PopCraft",
34618
34623
  "ownerPicker.loadingWorkspaces": "Loading workspaces",
34619
34624
  "ownerPicker.owner": "Owner: {name}",
34620
34625
  "pagePreset:a0": "A0",
@@ -38730,7 +38735,6 @@ var require_es = __commonJS({
38730
38735
  "homeTeam.viewListing": "Ver su listado en el marketplace",
38731
38736
  "homeTemplates.browseAll": "Explorar todas las plantillas",
38732
38737
  "homeTemplates.communityBody": "Plantillas creadas y compartidas por la gente. Toca una para empezar desde una copia.",
38733
- "homeTemplates.couldNotLoad": "No se pudieron cargar las plantillas. Explora todas las plantillas para intentarlo de nuevo.",
38734
38738
  "homeTemplates.fromTheCommunity": "De la comunidad",
38735
38739
  "homeTemplates.loading": "Cargando plantillas\u2026",
38736
38740
  "homeTemplates.noneInThisGroup": "A\xFAn no hay plantillas en este grupo.",
@@ -43506,7 +43510,6 @@ var require_fr = __commonJS({
43506
43510
  "homeTeam.viewListing": "Voir sa fiche sur la place de march\xE9",
43507
43511
  "homeTemplates.browseAll": "Parcourir tous les mod\xE8les",
43508
43512
  "homeTemplates.communityBody": "Mod\xE8les cr\xE9\xE9s et partag\xE9s par la communaut\xE9. Touchez-en un pour commencer \xE0 partir d\u2019une copie.",
43509
- "homeTemplates.couldNotLoad": "Impossible de charger les mod\xE8les. Parcourez tous les mod\xE8les pour r\xE9essayer.",
43510
43513
  "homeTemplates.fromTheCommunity": "De la communaut\xE9",
43511
43514
  "homeTemplates.loading": "Chargement des mod\xE8les\u2026",
43512
43515
  "homeTemplates.noneInThisGroup": "Aucun mod\xE8le dans ce groupe pour l\u2019instant.",
@@ -48282,7 +48285,6 @@ var require_de = __commonJS({
48282
48285
  "homeTeam.viewListing": "Marktplatz-Eintrag ansehen",
48283
48286
  "homeTemplates.browseAll": "Alle Vorlagen durchsuchen",
48284
48287
  "homeTemplates.communityBody": "Vorlagen, die andere erstellt und geteilt haben. Tippe auf eine, um mit einer Kopie zu beginnen.",
48285
- "homeTemplates.couldNotLoad": "Vorlagen konnten nicht geladen werden. Durchsuche alle Vorlagen, um es erneut zu versuchen.",
48286
48288
  "homeTemplates.fromTheCommunity": "Aus der Community",
48287
48289
  "homeTemplates.loading": "Vorlagen werden geladen\u2026",
48288
48290
  "homeTemplates.noneInThisGroup": "Noch keine Vorlagen in dieser Gruppe.",
@@ -53058,7 +53060,6 @@ var require_it = __commonJS({
53058
53060
  "homeTeam.viewListing": "Visualizza la sua inserzione nel marketplace",
53059
53061
  "homeTemplates.browseAll": "Sfoglia tutti i modelli",
53060
53062
  "homeTemplates.communityBody": "Modelli creati e condivisi dalla community. Toccane uno per iniziare da una copia.",
53061
- "homeTemplates.couldNotLoad": "Impossibile caricare i modelli. Sfoglia tutti i modelli per riprovare.",
53062
53063
  "homeTemplates.fromTheCommunity": "Dalla community",
53063
53064
  "homeTemplates.loading": "Caricamento modelli\u2026",
53064
53065
  "homeTemplates.noneInThisGroup": "Nessun modello in questo gruppo per ora.",
@@ -57834,7 +57835,6 @@ var require_pt_BR = __commonJS({
57834
57835
  "homeTeam.viewListing": "Ver sua listagem no marketplace",
57835
57836
  "homeTemplates.browseAll": "Procurar todos os modelos",
57836
57837
  "homeTemplates.communityBody": "Modelos criados e compartilhados por pessoas. Toque em um para come\xE7ar a partir de uma c\xF3pia.",
57837
- "homeTemplates.couldNotLoad": "N\xE3o foi poss\xEDvel carregar os modelos. Procure todos os modelos para tentar novamente.",
57838
57838
  "homeTemplates.fromTheCommunity": "Da comunidade",
57839
57839
  "homeTemplates.loading": "Carregando modelos\u2026",
57840
57840
  "homeTemplates.noneInThisGroup": "Nenhum modelo neste grupo ainda.",
@@ -62610,7 +62610,6 @@ var require_ja = __commonJS({
62610
62610
  "homeTeam.viewListing": "\u30DE\u30FC\u30B1\u30C3\u30C8\u30D7\u30EC\u30A4\u30B9\u306E\u63B2\u8F09\u60C5\u5831\u3092\u8868\u793A",
62611
62611
  "homeTemplates.browseAll": "\u3059\u3079\u3066\u306E\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u3092\u53C2\u7167",
62612
62612
  "homeTemplates.communityBody": "\u4EBA\u3005\u304C\u4F5C\u6210\u30FB\u5171\u6709\u3057\u305F\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u3002\u30BF\u30C3\u30D7\u3057\u3066\u30B3\u30D4\u30FC\u304B\u3089\u958B\u59CB\u3057\u307E\u3059\u3002",
62613
- "homeTemplates.couldNotLoad": "\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u3092\u8AAD\u307F\u8FBC\u3081\u307E\u305B\u3093\u3067\u3057\u305F\u3002\u3059\u3079\u3066\u306E\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u3092\u53C2\u7167\u3057\u3066\u518D\u8A66\u884C\u3057\u3066\u304F\u3060\u3055\u3044\u3002",
62614
62613
  "homeTemplates.fromTheCommunity": "\u30B3\u30DF\u30E5\u30CB\u30C6\u30A3\u304B\u3089",
62615
62614
  "homeTemplates.loading": "\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u3092\u8AAD\u307F\u8FBC\u307F\u4E2D\u2026",
62616
62615
  "homeTemplates.noneInThisGroup": "\u3053\u306E\u30B0\u30EB\u30FC\u30D7\u306B\u306F\u307E\u3060\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u304C\u3042\u308A\u307E\u305B\u3093\u3002",
@@ -67386,7 +67385,6 @@ var require_ko = __commonJS({
67386
67385
  "homeTeam.viewListing": "\uB9C8\uCF13\uD50C\uB808\uC774\uC2A4 \uBAA9\uB85D \uBCF4\uAE30",
67387
67386
  "homeTemplates.browseAll": "\uBAA8\uB4E0 \uD15C\uD50C\uB9BF \uCC3E\uC544\uBCF4\uAE30",
67388
67387
  "homeTemplates.communityBody": "\uC0AC\uB78C\uB4E4\uC774 \uB9CC\uB4E4\uACE0 \uACF5\uC720\uD55C \uD15C\uD50C\uB9BF\uC785\uB2C8\uB2E4. \uD0ED\uD558\uC5EC \uC0AC\uBCF8\uC73C\uB85C \uC2DC\uC791\uD558\uC138\uC694.",
67389
- "homeTemplates.couldNotLoad": "\uD15C\uD50C\uB9BF\uC744 \uB85C\uB4DC\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4. \uBAA8\uB4E0 \uD15C\uD50C\uB9BF\uC744 \uCC3E\uC544 \uB2E4\uC2DC \uC2DC\uB3C4\uD558\uC138\uC694.",
67390
67388
  "homeTemplates.fromTheCommunity": "\uCEE4\uBBA4\uB2C8\uD2F0\uC5D0\uC11C",
67391
67389
  "homeTemplates.loading": "\uD15C\uD50C\uB9BF \uB85C\uB4DC \uC911\u2026",
67392
67390
  "homeTemplates.noneInThisGroup": "\uC774 \uADF8\uB8F9\uC5D0\uB294 \uC544\uC9C1 \uD15C\uD50C\uB9BF\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.",
@@ -72162,7 +72160,6 @@ var require_zh_CN = __commonJS({
72162
72160
  "homeTeam.viewListing": "\u67E5\u770B\u5176\u5E02\u573A\u5217\u8868",
72163
72161
  "homeTemplates.browseAll": "\u6D4F\u89C8\u6240\u6709\u6A21\u677F",
72164
72162
  "homeTemplates.communityBody": "\u5927\u5BB6\u5236\u4F5C\u5E76\u5206\u4EAB\u7684\u6A21\u677F\u3002\u8F7B\u70B9\u4E00\u4E2A\u5373\u53EF\u4ECE\u526F\u672C\u5F00\u59CB\u3002",
72165
- "homeTemplates.couldNotLoad": "\u6A21\u677F\u65E0\u6CD5\u52A0\u8F7D\u3002\u8BF7\u6D4F\u89C8\u6240\u6709\u6A21\u677F\u91CD\u8BD5\u3002",
72166
72163
  "homeTemplates.fromTheCommunity": "\u6765\u81EA\u793E\u533A",
72167
72164
  "homeTemplates.loading": "\u6B63\u5728\u52A0\u8F7D\u6A21\u677F\u2026",
72168
72165
  "homeTemplates.noneInThisGroup": "\u6B64\u7EC4\u4E2D\u6682\u65E0\u6A21\u677F\u3002",
@@ -76938,7 +76935,6 @@ var require_zh_TW = __commonJS({
76938
76935
  "homeTeam.viewListing": "\u67E5\u770B\u5176\u5E02\u96C6\u4E0A\u67B6\u8CC7\u8A0A",
76939
76936
  "homeTemplates.browseAll": "\u700F\u89BD\u6240\u6709\u7BC4\u672C",
76940
76937
  "homeTemplates.communityBody": "\u4EBA\u5011\u88FD\u4F5C\u4E26\u5206\u4EAB\u7684\u7BC4\u672C\u3002\u8F15\u9EDE\u4E00\u500B\u5373\u53EF\u5F9E\u526F\u672C\u958B\u59CB\u3002",
76941
- "homeTemplates.couldNotLoad": "\u7BC4\u672C\u7121\u6CD5\u8F09\u5165\u3002\u700F\u89BD\u6240\u6709\u7BC4\u672C\u4EE5\u91CD\u8A66\u3002",
76942
76938
  "homeTemplates.fromTheCommunity": "\u4F86\u81EA\u793E\u7FA4",
76943
76939
  "homeTemplates.loading": "\u6B63\u5728\u8F09\u5165\u7BC4\u672C\u2026",
76944
76940
  "homeTemplates.noneInThisGroup": "\u6B64\u7FA4\u7D44\u4E2D\u5C1A\u7121\u7BC4\u672C\u3002",
@@ -81714,7 +81710,6 @@ var require_ru = __commonJS({
81714
81710
  "homeTeam.viewListing": "\u041F\u0440\u043E\u0441\u043C\u043E\u0442\u0440\u0435\u0442\u044C \u043E\u0431\u044A\u044F\u0432\u043B\u0435\u043D\u0438\u0435 \u043D\u0430 \u043C\u0430\u0440\u043A\u0435\u0442\u043F\u043B\u0435\u0439\u0441\u0435",
81715
81711
  "homeTemplates.browseAll": "\u041F\u0440\u043E\u0441\u043C\u043E\u0442\u0440\u0435\u0442\u044C \u0432\u0441\u0435 \u0448\u0430\u0431\u043B\u043E\u043D\u044B",
81716
81712
  "homeTemplates.communityBody": "\u0428\u0430\u0431\u043B\u043E\u043D\u044B, \u0441\u043E\u0437\u0434\u0430\u043D\u043D\u044B\u0435 \u0438 \u043E\u043F\u0443\u0431\u043B\u0438\u043A\u043E\u0432\u0430\u043D\u043D\u044B\u0435 \u0434\u0440\u0443\u0433\u0438\u043C\u0438 \u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044F\u043C\u0438. \u041D\u0430\u0436\u043C\u0438\u0442\u0435 \u043D\u0430 \u043E\u0434\u0438\u043D, \u0447\u0442\u043E\u0431\u044B \u043D\u0430\u0447\u0430\u0442\u044C \u0441 \u043A\u043E\u043F\u0438\u0438.",
81717
- "homeTemplates.couldNotLoad": "\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044C \u0448\u0430\u0431\u043B\u043E\u043D\u044B. \u041F\u0440\u043E\u0441\u043C\u043E\u0442\u0440\u0438\u0442\u0435 \u0432\u0441\u0435 \u0448\u0430\u0431\u043B\u043E\u043D\u044B, \u0447\u0442\u043E\u0431\u044B \u043F\u043E\u0432\u0442\u043E\u0440\u0438\u0442\u044C \u043F\u043E\u043F\u044B\u0442\u043A\u0443.",
81718
81713
  "homeTemplates.fromTheCommunity": "\u041E\u0442 \u0441\u043E\u043E\u0431\u0449\u0435\u0441\u0442\u0432\u0430",
81719
81714
  "homeTemplates.loading": "\u0417\u0430\u0433\u0440\u0443\u0437\u043A\u0430 \u0448\u0430\u0431\u043B\u043E\u043D\u043E\u0432\u2026",
81720
81715
  "homeTemplates.noneInThisGroup": "\u0412 \u044D\u0442\u043E\u0439 \u0433\u0440\u0443\u043F\u043F\u0435 \u043F\u043E\u043A\u0430 \u043D\u0435\u0442 \u0448\u0430\u0431\u043B\u043E\u043D\u043E\u0432.",
@@ -86490,7 +86485,6 @@ var require_ar = __commonJS({
86490
86485
  "homeTeam.viewListing": "\u0639\u0631\u0636 \u0625\u062F\u0631\u0627\u062C\u0647 \u0641\u064A \u0627\u0644\u0645\u062A\u062C\u0631",
86491
86486
  "homeTemplates.browseAll": "\u062A\u0635\u0641\u062D \u062C\u0645\u064A\u0639 \u0627\u0644\u0642\u0648\u0627\u0644\u0628",
86492
86487
  "homeTemplates.communityBody": "\u0642\u0648\u0627\u0644\u0628 \u0623\u0646\u0634\u0623\u0647\u0627 \u0648\u0634\u0627\u0631\u0643\u0647\u0627 \u0627\u0644\u0622\u062E\u0631\u0648\u0646. \u0627\u0646\u0642\u0631 \u0639\u0644\u0649 \u0623\u062D\u062F\u0647\u0627 \u0644\u0644\u0628\u062F\u0621 \u0645\u0646 \u0646\u0633\u062E\u0629.",
86493
- "homeTemplates.couldNotLoad": "\u062A\u0639\u0630\u0631 \u062A\u062D\u0645\u064A\u0644 \u0627\u0644\u0642\u0648\u0627\u0644\u0628. \u062A\u0635\u0641\u062D \u062C\u0645\u064A\u0639 \u0627\u0644\u0642\u0648\u0627\u0644\u0628 \u0644\u0644\u0645\u062D\u0627\u0648\u0644\u0629 \u0645\u0631\u0629 \u0623\u062E\u0631\u0649.",
86494
86488
  "homeTemplates.fromTheCommunity": "\u0645\u0646 \u0627\u0644\u0645\u062C\u062A\u0645\u0639",
86495
86489
  "homeTemplates.loading": "\u062C\u0627\u0631\u064D \u062A\u062D\u0645\u064A\u0644 \u0627\u0644\u0642\u0648\u0627\u0644\u0628\u2026",
86496
86490
  "homeTemplates.noneInThisGroup": "\u0644\u0627 \u062A\u0648\u062C\u062F \u0642\u0648\u0627\u0644\u0628 \u0641\u064A \u0647\u0630\u0647 \u0627\u0644\u0645\u062C\u0645\u0648\u0639\u0629 \u0628\u0639\u062F.",
@@ -91266,7 +91260,6 @@ var require_hi = __commonJS({
91266
91260
  "homeTeam.viewListing": "\u0907\u0938\u0915\u0940 \u092E\u093E\u0930\u094D\u0915\u0947\u091F\u092A\u094D\u0932\u0947\u0938 \u0932\u093F\u0938\u094D\u091F\u093F\u0902\u0917 \u0926\u0947\u0916\u0947\u0902",
91267
91261
  "homeTemplates.browseAll": "\u0938\u092D\u0940 \u091F\u0947\u092E\u094D\u092A\u094D\u0932\u0947\u091F \u092C\u094D\u0930\u093E\u0909\u091C\u093C \u0915\u0930\u0947\u0902",
91268
91262
  "homeTemplates.communityBody": "\u0932\u094B\u0917\u094B\u0902 \u0926\u094D\u0935\u093E\u0930\u093E \u092C\u0928\u093E\u090F \u0914\u0930 \u0938\u093E\u091D\u093E \u0915\u093F\u090F \u0917\u090F \u091F\u0947\u092E\u094D\u092A\u0932\u0947\u091F\u0964 \u0915\u0949\u092A\u0940 \u0938\u0947 \u0936\u0941\u0930\u0942 \u0915\u0930\u0928\u0947 \u0915\u0947 \u0932\u093F\u090F \u0915\u093F\u0938\u0940 \u090F\u0915 \u092A\u0930 \u091F\u0948\u092A \u0915\u0930\u0947\u0902\u0964",
91269
- "homeTemplates.couldNotLoad": "\u091F\u0947\u092E\u094D\u092A\u094D\u0932\u0947\u091F \u0932\u094B\u0921 \u0928\u0939\u0940\u0902 \u0939\u094B \u0938\u0915\u0947\u0964 \u092B\u093F\u0930 \u0938\u0947 \u092A\u094D\u0930\u092F\u093E\u0938 \u0915\u0930\u0928\u0947 \u0915\u0947 \u0932\u093F\u090F \u0938\u092D\u0940 \u091F\u0947\u092E\u094D\u092A\u094D\u0932\u0947\u091F \u092C\u094D\u0930\u093E\u0909\u091C\u093C \u0915\u0930\u0947\u0902\u0964",
91270
91263
  "homeTemplates.fromTheCommunity": "\u0938\u092E\u0941\u0926\u093E\u092F \u0938\u0947",
91271
91264
  "homeTemplates.loading": "\u091F\u0947\u092E\u094D\u092A\u094D\u0932\u0947\u091F \u0932\u094B\u0921 \u0939\u094B \u0930\u0939\u0947 \u0939\u0948\u0902\u2026",
91272
91265
  "homeTemplates.noneInThisGroup": "\u0907\u0938 \u0938\u092E\u0942\u0939 \u092E\u0947\u0902 \u0905\u092D\u0940 \u0915\u094B\u0908 \u091F\u0947\u092E\u094D\u092A\u094D\u0932\u0947\u091F \u0928\u0939\u0940\u0902 \u0939\u0948\u0964",
@@ -247973,7 +247966,6 @@ function repairCompositions(comps, nodes) {
247973
247966
  var isObj5, finite6, optFinite, isVec2, TIMELINE_COLOR_IDS, TIMELINE_COLORS, UNITS, ORDERS, PROP_KEYS, ANIMATOR_ID, MOTION_TYPES, TRANSITIONS, isFraction, MEDIA_HASH;
247974
247967
  var init_invariants = __esm({
247975
247968
  "lib/motion/invariants.ts"() {
247976
- "use strict";
247977
247969
  init_easing();
247978
247970
  init_properties();
247979
247971
  init_markers();
@@ -249096,6 +249088,7 @@ function beforeWrite() {
249096
249088
  var leave;
249097
249089
  var init_read_only = __esm({
249098
249090
  "lib/editor/modes/read-only.ts"() {
249091
+ "use strict";
249099
249092
  leave = null;
249100
249093
  }
249101
249094
  });
@@ -252537,6 +252530,7 @@ function resizeWindow(doc2, target2, rect) {
252537
252530
  }
252538
252531
  var init_crop = __esm({
252539
252532
  "lib/editor/crop.ts"() {
252533
+ "use strict";
252540
252534
  init_dist_node();
252541
252535
  init_scene_graph();
252542
252536
  init_photo_frames();
@@ -257033,6 +257027,7 @@ function followPeers(peers) {
257033
257027
  var PALETTE, usePresence, awareness, CURSOR_SEND_MS, VIEWPORT_SEND_MS, cursorTimer, pendingCursor, sentCursor, EMOTE_MS, lastFollowCamera;
257034
257028
  var init_presence = __esm({
257035
257029
  "lib/collab/presence.ts"() {
257030
+ "use strict";
257036
257031
  init_esm();
257037
257032
  init_editor_store();
257038
257033
  init_status_announcements();
@@ -262495,6 +262490,30 @@ var init_plugin_store = __esm({
262495
262490
  }
262496
262491
  });
262497
262492
 
262493
+ // lib/client/network.ts
262494
+ function isOnline() {
262495
+ return typeof navigator === "undefined" || navigator.onLine !== false;
262496
+ }
262497
+ function networkSignal(signal, timeoutMs = NETWORK_TIMEOUT_MS) {
262498
+ if (!isOnline()) throw new OfflineError();
262499
+ const deadline = AbortSignal.timeout(timeoutMs);
262500
+ return signal ? AbortSignal.any([signal, deadline]) : deadline;
262501
+ }
262502
+ var import_react3, NETWORK_TIMEOUT_MS, OfflineError;
262503
+ var init_network = __esm({
262504
+ "lib/client/network.ts"() {
262505
+ "use strict";
262506
+ import_react3 = __toESM(require_react());
262507
+ NETWORK_TIMEOUT_MS = 8e3;
262508
+ OfflineError = class extends Error {
262509
+ constructor() {
262510
+ super("You are offline");
262511
+ this.name = "OfflineError";
262512
+ }
262513
+ };
262514
+ }
262515
+ });
262516
+
262498
262517
  // lib/client/cloud/plan-limit.ts
262499
262518
  var plan_limit_exports = {};
262500
262519
  __export(plan_limit_exports, {
@@ -262579,7 +262598,6 @@ function formatLimit(key5, max3) {
262579
262598
  var formatBytes;
262580
262599
  var init_limits2 = __esm({
262581
262600
  "lib/billing/limits.ts"() {
262582
- "use strict";
262583
262601
  init_format();
262584
262602
  init_plans();
262585
262603
  formatBytes = formatFileSize;
@@ -262814,7 +262832,8 @@ function api(path, init = {}) {
262814
262832
  inFlight.set(path, value3);
262815
262833
  return value3;
262816
262834
  }
262817
- async function request(path, init) {
262835
+ async function request(path, { timeoutMs, ...init }) {
262836
+ if (timeoutMs !== void 0) init = { ...init, signal: networkSignal(init.signal, timeoutMs) };
262818
262837
  const headers = new Headers(init.headers);
262819
262838
  const token = await accessToken();
262820
262839
  if (token) headers.set("authorization", `Bearer ${token}`);
@@ -262842,6 +262861,7 @@ var ApiError, inFlight, fileUrl, meInFlight, provisioned, ME_TTL_MS, cloudApi;
262842
262861
  var init_api4 = __esm({
262843
262862
  "lib/client/cloud/api.ts"() {
262844
262863
  "use strict";
262864
+ init_network();
262845
262865
  init_session();
262846
262866
  init_plan_limit();
262847
262867
  init_purchases();
@@ -273335,10 +273355,10 @@ function loadEntitlements(workspaceId, opts = {}) {
273335
273355
  });
273336
273356
  return value3;
273337
273357
  }
273338
- var import_react3, TTL_MS, cache6, lastResolved, cachedLimits;
273358
+ var import_react4, TTL_MS, cache6, lastResolved, cachedLimits;
273339
273359
  var init_entitlements = __esm({
273340
273360
  "lib/client/cloud/entitlements.ts"() {
273341
- import_react3 = __toESM(require_react());
273361
+ import_react4 = __toESM(require_react());
273342
273362
  init_api4();
273343
273363
  init_config2();
273344
273364
  init_limits2();
@@ -306793,6 +306813,7 @@ function decodeSource(key5, label3) {
306793
306813
  var DECODE_CACHE_BYTES, cache7, pending4, held, sizeOf, lengths, decodedLengths, DECODE_TIMEOUT_MS, decodedAudio, decodedSource, pcmOf;
306794
306814
  var init_audio_decode = __esm({
306795
306815
  "lib/motion/audio-decode.ts"() {
306816
+ "use strict";
306796
306817
  init_media_store();
306797
306818
  init_audio_plan();
306798
306819
  init_time_stretch();
@@ -310179,6 +310200,7 @@ function importSVGFile(file2, document2, parentId) {
310179
310200
  var ENTITIES, decode3, I, mul2, apply2, scaleOf, NUM2, nums, near, NAMED, INHERITED, PRESENTATION, len2, CAP, JOIN, SKIPPED, refId;
310180
310201
  var init_svg_import = __esm({
310181
310202
  "lib/io/svg-import.ts"() {
310203
+ "use strict";
310182
310204
  init_dist_node();
310183
310205
  init_types();
310184
310206
  ENTITIES = { amp: "&", lt: "<", gt: ">", quot: '"', apos: "'", nbsp: "\xA0" };
@@ -310730,8 +310752,8 @@ async function render(frame3, doc2) {
310730
310752
  }
310731
310753
  function usePageThumbnail(frame3, doc2) {
310732
310754
  const cached3 = cache8.get(frame3);
310733
- const [url4, setUrl] = (0, import_react4.useState)(cached3?.url ?? null);
310734
- (0, import_react4.useEffect)(() => {
310755
+ const [url4, setUrl] = (0, import_react5.useState)(cached3?.url ?? null);
310756
+ (0, import_react5.useEffect)(() => {
310735
310757
  let cancelled = false;
310736
310758
  const hit = cache8.get(frame3);
310737
310759
  if (hit && hit.doc === doc2) {
@@ -310761,11 +310783,11 @@ function usePageThumbnail(frame3, doc2) {
310761
310783
  }, [frame3, doc2]);
310762
310784
  return url4;
310763
310785
  }
310764
- var import_react4, THUMB_PX, SETTLE_MS, cache8;
310786
+ var import_react5, THUMB_PX, SETTLE_MS, cache8;
310765
310787
  var init_page_thumbnails = __esm({
310766
310788
  "lib/client/page-thumbnails.ts"() {
310767
310789
  "use strict";
310768
- import_react4 = __toESM(require_react());
310790
+ import_react5 = __toESM(require_react());
310769
310791
  init_renderer_registry();
310770
310792
  init_jpeg();
310771
310793
  init_thumbnail();
@@ -310863,7 +310885,7 @@ async function deleteCloudTemplate(id3) {
310863
310885
  useCloudTemplates.setState((s) => ({ available: s.available.filter((x2) => x2.id !== id3) }));
310864
310886
  }
310865
310887
  async function fetchCloudTemplate(id3) {
310866
- const { template: template2, payload } = await api(`/api/templates/${encodeURIComponent(id3)}`, { cache: "no-store", signal: AbortSignal.timeout(3e4) });
310888
+ const { template: template2, payload } = await api(`/api/templates/${encodeURIComponent(id3)}`, { cache: "no-store", timeoutMs: 3e4 });
310867
310889
  return { meta: template2, payload };
310868
310890
  }
310869
310891
  async function searchTemplates(o = {}) {
@@ -310877,7 +310899,7 @@ async function searchTemplates(o = {}) {
310877
310899
  if (o.sort) sp.set("sort", o.sort);
310878
310900
  if (o.cursor) sp.set("cursor", o.cursor);
310879
310901
  if (o.limit) sp.set("limit", String(o.limit));
310880
- return api(`/api/templates?${sp}`);
310902
+ return api(`/api/templates?${sp}`, { timeoutMs: NETWORK_TIMEOUT_MS });
310881
310903
  }
310882
310904
  async function setTemplateOfficial(id3, official) {
310883
310905
  const { template: template2 } = await api(`/api/templates/${encodeURIComponent(id3)}/official`, { method: official ? "POST" : "DELETE" });
@@ -310891,6 +310913,7 @@ var init_templates = __esm({
310891
310913
  init_esm();
310892
310914
  init_idb();
310893
310915
  init_api4();
310916
+ init_network();
310894
310917
  init_session();
310895
310918
  init_upload();
310896
310919
  init_card();
@@ -311571,7 +311594,6 @@ function startCloudSync() {
311571
311594
  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;
311572
311595
  var init_sync2 = __esm({
311573
311596
  "lib/client/cloud/sync.ts"() {
311574
- "use strict";
311575
311597
  init_paint_repair();
311576
311598
  init_migrate();
311577
311599
  init_view();
@@ -317398,7 +317420,6 @@ async function selectionReferenceImages(doc2, selection, opts = {}) {
317398
317420
  var FIT_QUALITIES, FIT_SCALES, blobToDataUrl;
317399
317421
  var init_reference_images = __esm({
317400
317422
  "lib/ai/reference-images.ts"() {
317401
- "use strict";
317402
317423
  init_export();
317403
317424
  init_selection_bounds();
317404
317425
  init_renderer_registry();
@@ -321299,6 +321320,7 @@ function outerSizeFor(want, inner, outer) {
321299
321320
  var AUDIENCE_PRESETS, DEFAULT_AUDIENCE_RESOLUTION, MIN_SIDE, MAX_SIDE, FIT_OPEN_SIZE, clampSide, formatResolution, sameResolution, captureSize;
321300
321321
  var init_resolution = __esm({
321301
321322
  "lib/slides/audience/resolution.ts"() {
321323
+ "use strict";
321302
321324
  init_stage_view();
321303
321325
  AUDIENCE_PRESETS = [
321304
321326
  { id: "720p", label: "1280 \xD7 720 (720p)", resolution: { kind: "fixed", width: 1280, height: 720 } },
@@ -328128,7 +328150,7 @@ var init_package = __esm({
328128
328150
  "packages/runtime/package.json"() {
328129
328151
  package_default = {
328130
328152
  name: "@popcraft/runtime",
328131
- version: "0.48.0",
328153
+ version: "0.48.2",
328132
328154
  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.",
328133
328155
  license: "MIT",
328134
328156
  homepage: "https://popcraft.app/docs/exporting/nextjs",
@@ -361352,6 +361374,7 @@ function publishSite(key5, files, opts = {}) {
361352
361374
  var siteStatus, setSiteVersion, workspaceSites, deleteSite, renameSite;
361353
361375
  var init_sites = __esm({
361354
361376
  "lib/client/cloud/sites.ts"() {
361377
+ "use strict";
361355
361378
  init_files();
361356
361379
  init_upload2();
361357
361380
  init_api4();
@@ -362863,15 +362886,15 @@ function usePickableThemes() {
362863
362886
  const userThemes = useThemeStore((s) => s.userThemes);
362864
362887
  const pluginThemes = useThemeStore((s) => s.pluginThemes);
362865
362888
  const localThemes = useThemeStore((s) => s.localThemes);
362866
- return (0, import_react9.useMemo)(() => pickableThemes({ userThemes, pluginThemes, localThemes }), [userThemes, pluginThemes, localThemes]);
362889
+ return (0, import_react10.useMemo)(() => pickableThemes({ userThemes, pluginThemes, localThemes }), [userThemes, pluginThemes, localThemes]);
362867
362890
  }
362868
- var import_react9, IDB_KEY, useThemeStore, cssString2, defaultAccent, effectiveAccent;
362891
+ var import_react10, IDB_KEY, useThemeStore, cssString2, defaultAccent, effectiveAccent;
362869
362892
  var init_theme_store = __esm({
362870
362893
  "lib/theme/theme-store.ts"() {
362871
362894
  init_contrast();
362872
362895
  init_idb();
362873
362896
  init_esm();
362874
- import_react9 = __toESM(require_react());
362897
+ import_react10 = __toESM(require_react());
362875
362898
  init_boot2();
362876
362899
  init_builtin();
362877
362900
  init_resolve();
@@ -400654,6 +400677,7 @@ function record(source, namespaces, globals, limits) {
400654
400677
  var HELPER_NAMES;
400655
400678
  var init_helper_names = __esm({
400656
400679
  "lib/agent/design-script/helper-names.ts"() {
400680
+ "use strict";
400657
400681
  HELPER_NAMES = ["draw", "marks", "fit", "motion", "captions", "overlays", "texture", "pointer", "windows", "devices", "type", "beat", "web", "social", "video", "site", "effects"];
400658
400682
  }
400659
400683
  });
@@ -400756,6 +400780,7 @@ async function replay(rec, namespaces2) {
400756
400780
  var BLOCKED, isRef2, isFn;
400757
400781
  var init_replay = __esm({
400758
400782
  "lib/agent/design-script/replay.ts"() {
400783
+ "use strict";
400759
400784
  BLOCKED = /* @__PURE__ */ new Set(["constructor", "prototype", "__proto__", "caller", "callee", "arguments", "call", "apply", "bind"]);
400760
400785
  isRef2 = (v) => !!v && typeof v === "object" && "$ref" in v && Array.isArray(v.path);
400761
400786
  isFn = (v) => !!v && typeof v === "object" && "$fn" in v && Array.isArray(v.ops);
@@ -413709,7 +413734,7 @@ init_resources();
413709
413734
  init_desktop();
413710
413735
  init_hypery();
413711
413736
  import { createInterface } from "node:readline";
413712
- var VERSION2 = "0.48.0";
413737
+ var VERSION2 = "0.48.2";
413713
413738
  var HELP = `popcraft ${VERSION2} \u2014 the PopCraft command line
413714
413739
 
413715
413740
  Files (headless, on .popcraft files):
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@popcraft/cli",
3
- "version": "0.48.0",
3
+ "version": "0.48.2",
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.48.0"
37
+ "@popcraft/kit": "0.48.2"
38
38
  },
39
39
  "scripts": {
40
40
  "build": "node build.mjs",