@popcraft/kit 1.1.0 → 1.2.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.
Files changed (92) hide show
  1. package/dist/chunks/{agent-UXEVU3PP.js → agent-ORS5BEZC.js} +1 -1
  2. package/dist/chunks/{builtin-Z3JB7AQR.js → builtin-2KL2EXTB.js} +3 -3
  3. package/dist/chunks/{buy-credits-G7NUE6ZB.js → buy-credits-NARMZ33F.js} +2 -2
  4. package/dist/chunks/{check-template-SOF7SCBW.js → check-template-6D3CE5JN.js} +2 -2
  5. package/dist/chunks/{chunk-XXR2TY7O.js → chunk-5DIPBJ54.js} +5 -5
  6. package/dist/chunks/{chunk-KSOUY2WC.js → chunk-7JRE5KFW.js} +17 -5
  7. package/dist/chunks/{chunk-TTHTG4AT.js → chunk-7K4DVIS7.js} +1 -1
  8. package/dist/chunks/{chunk-ODX6NC4Y.js → chunk-A433G4Q3.js} +1 -1
  9. package/dist/chunks/{chunk-YAIPIG2T.js → chunk-AQ7VIL3I.js} +5 -5
  10. package/dist/chunks/{chunk-FQAXGCTR.js → chunk-AX7B2WCS.js} +3 -3
  11. package/dist/chunks/{chunk-HJ2OTGEV.js → chunk-BO35G3Z6.js} +1 -1
  12. package/dist/chunks/{chunk-7HZDPAV4.js → chunk-BPU5YIDG.js} +11 -11
  13. package/dist/chunks/{chunk-JDKR2URT.js → chunk-C7L2KQY5.js} +2 -2
  14. package/dist/chunks/{chunk-EPXMVWU6.js → chunk-E56VSHG3.js} +9 -9
  15. package/dist/chunks/{chunk-KBH3DY37.js → chunk-FF2OZPHF.js} +3 -3
  16. package/dist/chunks/{chunk-ICG7LWCM.js → chunk-G73CQMMJ.js} +2 -2
  17. package/dist/chunks/{chunk-YBXHSJZG.js → chunk-H3F5EWSJ.js} +1 -1
  18. package/dist/chunks/{chunk-TU3AYIIJ.js → chunk-I5NXE524.js} +43 -43
  19. package/dist/chunks/{chunk-QU4HXR5E.js → chunk-IXK5DQVP.js} +5 -5
  20. package/dist/chunks/{chunk-TNQNH3V3.js → chunk-JGC6PIT5.js} +88 -13
  21. package/dist/chunks/{chunk-OI74BAIT.js → chunk-MBS22UU3.js} +1 -1
  22. package/dist/chunks/{chunk-TC7IHZZL.js → chunk-MJVFENH4.js} +3 -3
  23. package/dist/chunks/{chunk-253XHQUI.js → chunk-MO6VTJRB.js} +2 -2
  24. package/dist/chunks/{chunk-VULPLVRT.js → chunk-MWHXK5L3.js} +4 -4
  25. package/dist/chunks/{chunk-3LA7EL7G.js → chunk-OBCV7RHJ.js} +1 -1
  26. package/dist/chunks/{chunk-TWG5JTA7.js → chunk-PNLVMTDJ.js} +1 -1
  27. package/dist/chunks/{chunk-R2SDI262.js → chunk-Q2ZB3FHK.js} +12 -5
  28. package/dist/chunks/{chunk-KDLFP3DC.js → chunk-RAKVPFZV.js} +1 -1
  29. package/dist/chunks/{chunk-HRYJ5YQT.js → chunk-RUD5NE4E.js} +1 -1
  30. package/dist/chunks/{chunk-ZODSUXQL.js → chunk-U63R2IUJ.js} +2 -2
  31. package/dist/chunks/{chunk-QQL3GGJD.js → chunk-UGUFREHV.js} +4 -4
  32. package/dist/chunks/{chunk-3KNQR6CL.js → chunk-ULSPD424.js} +2 -2
  33. package/dist/chunks/{chunk-XLLXOVVZ.js → chunk-UMPR42SA.js} +5 -5
  34. package/dist/chunks/{chunk-YRGHWQT5.js → chunk-WEM3QUB5.js} +53 -20
  35. package/dist/chunks/{chunk-WFOR35TQ.js → chunk-XATKFHIC.js} +6 -6
  36. package/dist/chunks/{chunk-NCKYRWBR.js → chunk-XDEOO7Q3.js} +1 -1
  37. package/dist/chunks/{chunk-HFBXTTUQ.js → chunk-XLMMVQTY.js} +1 -1
  38. package/dist/chunks/{client-IKQMNK4P.js → client-3XVU7EZN.js} +2 -2
  39. package/dist/chunks/{client-J5DLHQY5.js → client-NKXABBB2.js} +1 -1
  40. package/dist/chunks/{client-CFUYJ27O.js → client-UEBKLRWH.js} +3 -3
  41. package/dist/chunks/{client-actions-MGRTGVLB.js → client-actions-HSU6LXB3.js} +5 -5
  42. package/dist/chunks/{dangerous-ZXVEEDTX.js → dangerous-IUSV6JMX.js} +3 -3
  43. package/dist/chunks/{delete-current-file-ATFSV5HE.js → delete-current-file-B7GF6WKT.js} +5 -5
  44. package/dist/chunks/{editor-seams-MNACNSMF.js → editor-seams-7V7DY52W.js} +12 -12
  45. package/dist/chunks/{editor-store-FGXPU3UO.js → editor-store-JFHEOFHY.js} +1 -1
  46. package/dist/chunks/{export-watermark-MYN7T5KL.js → export-watermark-22LJTK5X.js} +5 -5
  47. package/dist/chunks/{eyedropper-6T3GH5QA.js → eyedropper-BGMQDPTB.js} +1 -1
  48. package/dist/chunks/{generate-media-PUC27DFY.js → generate-media-7RV2ZT4X.js} +3 -3
  49. package/dist/chunks/{host-YBEAX4RZ.js → host-PPWYGYTN.js} +6 -6
  50. package/dist/chunks/{integrations-YFBT6VMA.js → integrations-TMJB7SEY.js} +1 -1
  51. package/dist/chunks/{libraries-XPQT4ICF.js → libraries-7AUYSQU4.js} +5 -5
  52. package/dist/chunks/{live-RWTT4BGD.js → live-JRCK5ROW.js} +1 -1
  53. package/dist/chunks/{media-tool-PRVEIKYF.js → media-tool-BGIARYN2.js} +1 -1
  54. package/dist/chunks/{new-file-7WMZVHYL.js → new-file-XB2B4U6V.js} +3 -3
  55. package/dist/chunks/{next-commerce-LNSNGX4Z.js → next-commerce-A7ZHR63R.js} +2 -2
  56. package/dist/chunks/{plugin-4JOUMU3A.js → plugin-J6JF3PXI.js} +2 -2
  57. package/dist/chunks/{plugin-import-3VAIIKAX.js → plugin-import-YRTFZW5S.js} +16 -16
  58. package/dist/chunks/{presence-WCPLK37W.js → presence-MW5DBXWS.js} +2 -2
  59. package/dist/chunks/{project-OXKZCAUE.js → project-37JVFD6K.js} +1 -1
  60. package/dist/chunks/{publish-site-W74H7AYH.js → publish-site-4BKVML3W.js} +6 -6
  61. package/dist/chunks/{publish-store-756CUU4F.js → publish-store-QXVBQRV7.js} +5 -5
  62. package/dist/chunks/{raster-actions-U5WAAU7C.js → raster-actions-FSIUMW5Y.js} +1 -1
  63. package/dist/chunks/{runner-KWTHN3U5.js → runner-Q53FUQ4P.js} +18 -18
  64. package/dist/chunks/{store-FFLZCMSB.js → store-QGNPU45L.js} +6 -6
  65. package/dist/chunks/{storefront-N3Q5WUPF.js → storefront-YZAY7XSO.js} +2 -2
  66. package/dist/chunks/{sync-ZMDBWZV7.js → sync-XVXFWCTT.js} +5 -5
  67. package/dist/chunks/{tabs-SSQFEWTW.js → tabs-GRBJ3KDT.js} +8 -8
  68. package/dist/chunks/{team-ZWNOX4CP.js → team-GWLLCLUM.js} +1 -1
  69. package/dist/chunks/{team-client-24UFEZIK.js → team-client-JTGXOWAU.js} +1 -1
  70. package/dist/chunks/{tools-P67S2SXN.js → tools-RMNATBMU.js} +2 -2
  71. package/dist/chunks/{ui-commands-OGE7WUKH.js → ui-commands-C4R3GX3N.js} +12 -12
  72. package/dist/chunks/{versions-77MNOGSJ.js → versions-33OVXBDN.js} +5 -5
  73. package/dist/index.js +1 -1
  74. package/dist/templates/count.js +1 -1
  75. package/dist/templates/index.js +12 -12
  76. package/dist/templates/motion/landing-hero/index.js +4 -4
  77. package/dist/templates/motion/launch-trailer/document.js +12 -12
  78. package/dist/templates/motion/launch-trailer/index.js +4 -4
  79. package/dist/templates/motion/launch-trailer/scenes.js +3 -3
  80. package/dist/templates/motion/template-wall.js +2 -2
  81. package/dist/templates/print/knit-christmas-tree-sweater.js +2 -2
  82. package/dist/templates/print/knit-nordic-snowflake-sweater.js +2 -2
  83. package/dist/templates/print/knit-shared.js +74 -1
  84. package/dist/templates/print/knit-snowflake-beanie.js +2 -2
  85. package/dist/templates/themes/holidays.js +5 -5
  86. package/dist/templates/themes/index.js +6 -6
  87. package/package.json +1 -1
  88. package/src/templates/print/knit-christmas-tree-sweater.ts +57 -20
  89. package/src/templates/print/knit-nordic-snowflake-sweater.ts +19 -6
  90. package/src/templates/print/knit-shared.ts +98 -11
  91. package/src/templates/print/knit-snowflake-beanie.ts +12 -4
  92. package/types/templates/src/print/knit-shared.d.ts +49 -1
@@ -18,7 +18,7 @@ import {
18
18
  renderDocument,
19
19
  toolView,
20
20
  underReviewKit
21
- } from "./chunk-FQAXGCTR.js";
21
+ } from "./chunk-AX7B2WCS.js";
22
22
  import "./chunk-CYD3CB7J.js";
23
23
  import "./chunk-NFKRHEFS.js";
24
24
  import "./chunk-QQQD6VX7.js";
@@ -7,8 +7,8 @@ const __dirname = __popcraftDirname(__filename);
7
7
  import {
8
8
  builtinTools,
9
9
  registerBuiltinTools
10
- } from "./chunk-JDKR2URT.js";
11
- import "./chunk-TU3AYIIJ.js";
10
+ } from "./chunk-C7L2KQY5.js";
11
+ import "./chunk-I5NXE524.js";
12
12
  import "./chunk-YQA5IWOG.js";
13
13
  import "./chunk-VT2A3WIM.js";
14
14
  import "./chunk-L6RMNPUS.js";
@@ -18,7 +18,7 @@ import "./chunk-3FUAWRIT.js";
18
18
  import "./chunk-JEIJJB4H.js";
19
19
  import "./chunk-ZEJGI7M6.js";
20
20
  import "./chunk-R5K2B3R3.js";
21
- import "./chunk-FQAXGCTR.js";
21
+ import "./chunk-AX7B2WCS.js";
22
22
  import "./chunk-CYD3CB7J.js";
23
23
  import "./chunk-LPV57UQN.js";
24
24
  import "./chunk-OZFBHGKA.js";
@@ -7,11 +7,11 @@ const __dirname = __popcraftDirname(__filename);
7
7
  import {
8
8
  HYPERY_TEAM_HEADER,
9
9
  hyperyRequestHeaders
10
- } from "./chunk-NCKYRWBR.js";
10
+ } from "./chunk-XDEOO7Q3.js";
11
11
  import "./chunk-QH6PUSXO.js";
12
12
  import {
13
13
  useHyperyTeam
14
- } from "./chunk-OI74BAIT.js";
14
+ } from "./chunk-MBS22UU3.js";
15
15
  import {
16
16
  ApiError
17
17
  } from "./chunk-CMPXWCFB.js";
@@ -6,10 +6,10 @@ const __filename = __popcraftPath(import.meta.url);
6
6
  const __dirname = __popcraftDirname(__filename);
7
7
  import {
8
8
  appCommands
9
- } from "./chunk-EPXMVWU6.js";
9
+ } from "./chunk-E56VSHG3.js";
10
10
  import {
11
11
  builtinCommands
12
- } from "./chunk-TU3AYIIJ.js";
12
+ } from "./chunk-I5NXE524.js";
13
13
  import "./chunk-YQA5IWOG.js";
14
14
  import "./chunk-VT2A3WIM.js";
15
15
  import "./chunk-L6RMNPUS.js";
@@ -21,14 +21,14 @@ import {
21
21
  } from "./chunk-V275U326.js";
22
22
  import {
23
23
  syncStatus
24
- } from "./chunk-QQL3GGJD.js";
24
+ } from "./chunk-UGUFREHV.js";
25
25
  import {
26
26
  usePluginStore
27
27
  } from "./chunk-KIIAD4SO.js";
28
28
  import {
29
29
  setPluginTabs,
30
30
  useEditorStore
31
- } from "./chunk-QU4HXR5E.js";
31
+ } from "./chunk-IXK5DQVP.js";
32
32
  import {
33
33
  openBeside
34
34
  } from "./chunk-GQV6RKZJ.js";
@@ -69,7 +69,7 @@ init_define_POPCRAFT_COMPONENT_IDS();
69
69
  // lib/plugins/api.ts
70
70
  init_define_POPCRAFT_COMPONENT_IDS();
71
71
  async function handlePluginCall(env, method, params = {}) {
72
- const { dispatchPluginCall } = await import("./plugin-4JOUMU3A.js");
72
+ const { dispatchPluginCall } = await import("./plugin-J6JF3PXI.js");
73
73
  return dispatchPluginCall(env, method, params);
74
74
  }
75
75
 
@@ -586,7 +586,7 @@ async function runPlugin(pluginId, commandId, opts = {}) {
586
586
  if (!openBeside(url)) throw new Error("The browser blocked the new tab");
587
587
  },
588
588
  createDocument: async (opts2) => {
589
- const { createFreshFileOrExplain } = await import("./new-file-7WMZVHYL.js");
589
+ const { createFreshFileOrExplain } = await import("./new-file-XB2B4U6V.js");
590
590
  const created = await createFreshFileOrExplain({}, { name: opts2?.name });
591
591
  if (!created.ok) throw new Error(created.reason === "plan" ? "Plan limit reached" : created.reason === "guest-limit" ? "Sign in to create another file" : `Could not create file (${created.reason})`);
592
592
  await useEditorStore.getState().openDocument(created.docId);
@@ -795,7 +795,7 @@ if (typeof window !== "undefined") {
795
795
  const name = d.name || "Imported";
796
796
  void (async () => {
797
797
  try {
798
- const { importViaPlugin, applyPluginLayoutIr } = await import("./plugin-import-3VAIIKAX.js");
798
+ const { importViaPlugin, applyPluginLayoutIr } = await import("./plugin-import-YRTFZW5S.js");
799
799
  if (d.ir && typeof d.ir === "object") {
800
800
  await applyPluginLayoutIr(d.ir, { mode, name });
801
801
  return;
@@ -8,16 +8,18 @@ import {
8
8
  SWEATER_3XL,
9
9
  Stitches,
10
10
  YARN,
11
+ between,
11
12
  clear,
12
13
  diamonds,
13
14
  knitPanel,
14
15
  knitPreset,
15
16
  lice,
17
+ linear,
16
18
  nordicStar,
17
19
  popcraftLogo,
18
20
  snowflake,
19
21
  zigzag
20
- } from "./chunk-TNQNH3V3.js";
22
+ } from "./chunk-JGC6PIT5.js";
21
23
  import {
22
24
  defineTemplate
23
25
  } from "./chunk-2ZE6IV3T.js";
@@ -68,24 +70,34 @@ var knit_nordic_snowflake_sweater_default = defineTemplate({
68
70
  snowflake(f, 255, 282, 100, BLEACH);
69
71
  snowflake(f, 84, 262, 44, BLEACH);
70
72
  snowflake(f, 426, 262, 44, BLEACH);
71
- popcraftLogo(f, 255, 466, 290, BLEACH);
72
73
  for (const x of [44, 467]) snowflake(f, x, 466, 24, CHILI);
73
74
  hemBand(f, 628);
74
75
  lice(f, 160, 540, 32, BLEACH, clear(f, 6));
75
- knitPanel(k, k.sheet, front, YARNS, f, BLEACH);
76
+ knitPanel(k, k.sheet, front, YARNS, f, BLEACH, { layers: (L) => {
77
+ L.halo(255, 290, 148, 148, YARN.bleach, 0.55, 0.8, "Frost glow");
78
+ L.rect(0, 500, f.width, 66, linear(90, [[0, YARN.bleach, 0], [1, YARN.bleach, 0.5]]), "Frost");
79
+ L.logo(258, 470, 290, linear(90, [[0, YARN.chili]]), "Logo shadow");
80
+ L.logo(255, 466, 290, linear(90, [[0, YARN.bleach], [0.5, YARN.bleach], [1, between(YARN.bleach, YARN.navy, 0.45)]]));
81
+ } });
76
82
  const b = new Stitches(back.width, back.height);
77
83
  yoke(b, 20);
78
84
  popcraftLogo(b, 255, 290, 410, CHILI, { c: BLEACH, ring: 4 });
79
85
  for (let x = 32; x < b.width; x += 64) snowflake(b, x, 470, 20, CHILI);
80
86
  hemBand(b, 628);
81
87
  lice(b, 130, 540, 32, BLEACH, clear(b, 6));
82
- knitPanel(k, k.addSheet(knitPreset(back)), back, YARNS, b, BLEACH);
88
+ knitPanel(k, k.addSheet(knitPreset(back)), back, YARNS, b, BLEACH, { layers: (L) => {
89
+ L.halo(255, 290, 280, 150, YARN.chili, 0.5, 0.9, "Aurora red");
90
+ L.halo(255, 290, 250, 125, YARN.bleach, 0.35, 0.92, "Aurora frost");
91
+ L.logo(255, 290, 410, linear(90, [[0, YARN.chili, 0], [0.45, YARN.chili, 0], [1, between(YARN.chili, YARN.navy, 0.55)]]), "Logo shade");
92
+ } });
83
93
  for (const sleeve of [right, left]) {
84
94
  const s = new Stitches(sleeve.width, sleeve.height);
85
95
  for (let y = 110; y < 520; y += 130) snowflake(s, 255, y, 44, BLEACH);
86
96
  hemBand(s, 628);
87
97
  lice(s, 40, 540, 32, BLEACH, clear(s, 6));
88
- knitPanel(k, k.addSheet(knitPreset(sleeve)), sleeve, YARNS, s, BLEACH);
98
+ knitPanel(k, k.addSheet(knitPreset(sleeve)), sleeve, YARNS, s, BLEACH, { layers: (L) => {
99
+ for (let y = 110; y < 520; y += 130) L.halo(255, y, 66, 66, YARN.bleach, 0.45, 0.8, "Frost glow");
100
+ } });
89
101
  }
90
102
  return k.doc;
91
103
  },
@@ -12,7 +12,7 @@ import {
12
12
  countLabel,
13
13
  loadFixture,
14
14
  officialTemplateCount
15
- } from "./chunk-TC7IHZZL.js";
15
+ } from "./chunk-MJVFENH4.js";
16
16
  import {
17
17
  defineTemplate
18
18
  } from "./chunk-2ZE6IV3T.js";
@@ -13,7 +13,7 @@ import {
13
13
  agentTool,
14
14
  agentToolList,
15
15
  registerCommands
16
- } from "./chunk-FQAXGCTR.js";
16
+ } from "./chunk-AX7B2WCS.js";
17
17
  import {
18
18
  dispatch
19
19
  } from "./chunk-NFKRHEFS.js";
@@ -12,7 +12,7 @@ import {
12
12
  hostEnv,
13
13
  plain,
14
14
  registerBuiltinCommands
15
- } from "./chunk-TU3AYIIJ.js";
15
+ } from "./chunk-I5NXE524.js";
16
16
  import {
17
17
  external_exports
18
18
  } from "./chunk-R5K2B3R3.js";
@@ -626,7 +626,7 @@ var commands = [
626
626
  // A storefront design in a neutral form (lib/io/web/project/storefront.ts `storefrontDesign`): what an exporter
627
627
  // plugin turns into its own store's templates, as PopCraft turns it into a Next.js Commerce store (the Ecommerce plugin makes a Shopify theme of it).
628
628
  run: async (_p, ctx) => {
629
- const [{ componentScreens }, { storefrontDesign }] = await Promise.all([import("./components-IKZYAYEA.js"), import("./storefront-N3Q5WUPF.js")]);
629
+ const [{ componentScreens }, { storefrontDesign }] = await Promise.all([import("./components-IKZYAYEA.js"), import("./storefront-YZAY7XSO.js")]);
630
630
  const doc = ctx.doc();
631
631
  const design = storefrontDesign(doc, componentScreens(doc, ctx.pageId()));
632
632
  return { summary: `Storefront: ${design.pages.length} pages`, data: design };
@@ -645,8 +645,8 @@ var commands = [
645
645
  run: async (p, ctx) => {
646
646
  const [{ storefrontInputs }, { STOREFRONT_TARGETS }, { bytesOf }, { zipFiles }, { EXPORT_NODE_CAP }] = await Promise.all([
647
647
  import("./storefront-prepare-4XRHUBPC.js"),
648
- import("./storefront-N3Q5WUPF.js"),
649
- import("./project-OXKZCAUE.js"),
648
+ import("./storefront-YZAY7XSO.js"),
649
+ import("./project-37JVFD6K.js"),
650
650
  import("./zip-export-TZA7FPVI.js"),
651
651
  import("./tree-CSYQAUTC.js")
652
652
  ]);
@@ -843,7 +843,7 @@ var pluginRun = defineCommand({
843
843
  }
844
844
  },
845
845
  run: async (p, ctx) => {
846
- const { runPlugin } = await import("./host-YBEAX4RZ.js");
846
+ const { runPlugin } = await import("./host-PPWYGYTN.js");
847
847
  await runPlugin(p.pluginId, p.commandId);
848
848
  ctx.notice(`Started ${p.pluginId}.`);
849
849
  return {
@@ -57,19 +57,19 @@ async function renderDocument(doc, nodeIds, options) {
57
57
  function generateCapability(ctx) {
58
58
  return async (prompt, options = {}) => {
59
59
  if (options.format === "audio") {
60
- const { requestAudio } = await import("./client-CFUYJ27O.js");
60
+ const { requestAudio } = await import("./client-UEBKLRWH.js");
61
61
  const { signal: signal2, format: _f, ...rest2 } = options;
62
62
  void _f;
63
63
  return requestAudio({ prompt, ...rest2 }, signal2 ?? ctx.signal);
64
64
  }
65
65
  if (options.format === "video") {
66
- const { generateVideoFile } = await import("./generate-media-PUC27DFY.js");
66
+ const { generateVideoFile } = await import("./generate-media-7RV2ZT4X.js");
67
67
  const { format: _f, signal: signal2, ...rest2 } = options;
68
68
  void _f;
69
69
  return generateVideoFile({ ...rest2, prompt, doc: ctx.doc() }, { signal: signal2 ?? ctx.signal });
70
70
  }
71
71
  const [{ requestImage }, { effectiveImageModel, useAiStore }] = await Promise.all([
72
- import("./client-CFUYJ27O.js"),
72
+ import("./client-UEBKLRWH.js"),
73
73
  import("./client-store-URE3KRXT.js")
74
74
  ]);
75
75
  const modelId = effectiveImageModel(useAiStore.getState());
@@ -6,7 +6,7 @@ const __filename = __popcraftPath(import.meta.url);
6
6
  const __dirname = __popcraftDirname(__filename);
7
7
  import {
8
8
  SCENE_BUILDERS
9
- } from "./chunk-HFBXTTUQ.js";
9
+ } from "./chunk-XLMMVQTY.js";
10
10
  import {
11
11
  trailerType
12
12
  } from "./chunk-Y2QHMGV2.js";
@@ -6,14 +6,14 @@ const __filename = __popcraftPath(import.meta.url);
6
6
  const __dirname = __popcraftDirname(__filename);
7
7
  import {
8
8
  pluginRun
9
- } from "./chunk-YAIPIG2T.js";
9
+ } from "./chunk-AQ7VIL3I.js";
10
10
  import {
11
11
  fileCommands,
12
12
  fontTeamRemove,
13
13
  integrationConfirmCommands,
14
14
  mediaDelete,
15
15
  publishCommands
16
- } from "./chunk-TU3AYIIJ.js";
16
+ } from "./chunk-I5NXE524.js";
17
17
  import {
18
18
  external_exports
19
19
  } from "./chunk-R5K2B3R3.js";
@@ -53,7 +53,7 @@ var collabSetSpotlight = defineCommand({
53
53
  }
54
54
  },
55
55
  run: async ({ on }, ctx) => {
56
- const { setSpotlight } = await import("./presence-WCPLK37W.js");
56
+ const { setSpotlight } = await import("./presence-MW5DBXWS.js");
57
57
  setSpotlight(on);
58
58
  ctx.notice(on ? "Spotlight on \u2014 everyone is following this view." : "Spotlight off.");
59
59
  return { summary: on ? "Spotlight on" : "Spotlight off", data: { spotlight: on } };
@@ -80,7 +80,7 @@ var collabRevealPrivate = defineCommand({
80
80
  }
81
81
  },
82
82
  run: async (_p, ctx) => {
83
- const { useEditorStore } = await import("./editor-store-FGXPU3UO.js");
83
+ const { useEditorStore } = await import("./editor-store-JFHEOFHY.js");
84
84
  const before = Object.values(useEditorStore.getState().document.nodes).filter((n) => n.privateTo).length;
85
85
  useEditorStore.getState().revealPrivate();
86
86
  ctx.notice(before ? `Revealed ${before} private item${before === 1 ? "" : "s"}.` : "Nothing was private.");
@@ -144,7 +144,7 @@ var documentDelete = defineCommand({
144
144
  }
145
145
  },
146
146
  run: async ({ id }, ctx) => {
147
- const { useEditorStore } = await import("./editor-store-FGXPU3UO.js");
147
+ const { useEditorStore } = await import("./editor-store-JFHEOFHY.js");
148
148
  const wasOpen = useEditorStore.getState().document.id === id;
149
149
  await useEditorStore.getState().deleteDocument(id);
150
150
  ctx.notice("Deleted the document.");
@@ -188,7 +188,7 @@ var libraryPublish = defineCommand({
188
188
  }
189
189
  },
190
190
  run: async (p, ctx) => {
191
- const { publishLibrary } = await import("./libraries-XPQT4ICF.js");
191
+ const { publishLibrary } = await import("./libraries-7AUYSQU4.js");
192
192
  const doc = ctx.doc();
193
193
  const pick = {
194
194
  componentIds: p.componentIds ?? Object.keys(doc.components ?? {}),
@@ -220,7 +220,7 @@ var libraryUnpublish = defineCommand({
220
220
  },
221
221
  run: async ({ libraryId }, ctx) => {
222
222
  if (!libraryId.trim()) throw new CommandError("Which library? Pass its `libraryId`.", "invalid_params");
223
- const { unpublishLibrary } = await import("./libraries-XPQT4ICF.js");
223
+ const { unpublishLibrary } = await import("./libraries-7AUYSQU4.js");
224
224
  await unpublishLibrary(libraryId);
225
225
  ctx.notice(`Unpublished library ${libraryId}.`);
226
226
  return { summary: `Unpublished library ${libraryId}`, data: { libraryId, unpublished: true } };
@@ -232,8 +232,8 @@ var libraryCommands = [libraryPublish, libraryUnpublish];
232
232
  init_define_POPCRAFT_COMPONENT_IDS();
233
233
  async function findVersion(id) {
234
234
  const [{ useEditorStore }, { versionLabel }] = await Promise.all([
235
- import("./editor-store-FGXPU3UO.js"),
236
- import("./versions-77MNOGSJ.js")
235
+ import("./editor-store-JFHEOFHY.js"),
236
+ import("./versions-33OVXBDN.js")
237
237
  ]);
238
238
  const meta = useEditorStore.getState().versions.find((v) => v.id === id);
239
239
  if (!meta) {
@@ -266,7 +266,7 @@ var versionRestore = defineCommand({
266
266
  },
267
267
  run: async ({ id }) => {
268
268
  const found = await findVersion(id);
269
- const { restoreVersion } = await import("./versions-77MNOGSJ.js");
269
+ const { restoreVersion } = await import("./versions-33OVXBDN.js");
270
270
  await restoreVersion(found.meta);
271
271
  return { summary: `Restored \u201C${found.label}\u201D`, data: { id, label: found.label, restored: true } };
272
272
  }
@@ -291,7 +291,7 @@ var versionDelete = defineCommand({
291
291
  },
292
292
  run: async ({ id }, ctx) => {
293
293
  const found = await findVersion(id);
294
- const { deleteVersion } = await import("./versions-77MNOGSJ.js");
294
+ const { deleteVersion } = await import("./versions-33OVXBDN.js");
295
295
  await deleteVersion(found.meta);
296
296
  ctx.notice(`Deleted the version \u201C${found.label}\u201D.`);
297
297
  return { summary: `Deleted the version \u201C${found.label}\u201D`, data: { id, label: found.label, deleted: true } };
@@ -7,10 +7,10 @@ const __dirname = __popcraftDirname(__filename);
7
7
  import {
8
8
  builtinCommands,
9
9
  registerBuiltinCommands
10
- } from "./chunk-TU3AYIIJ.js";
10
+ } from "./chunk-I5NXE524.js";
11
11
  import {
12
12
  toolView
13
- } from "./chunk-FQAXGCTR.js";
13
+ } from "./chunk-AX7B2WCS.js";
14
14
  import {
15
15
  init_define_POPCRAFT_COMPONENT_IDS
16
16
  } from "./chunk-6JXNKUNX.js";
@@ -8,7 +8,7 @@ import {
8
8
  needsSelection,
9
9
  pageGo,
10
10
  selectionIsPicture
11
- } from "./chunk-TU3AYIIJ.js";
11
+ } from "./chunk-I5NXE524.js";
12
12
  import {
13
13
  external_exports
14
14
  } from "./chunk-R5K2B3R3.js";
@@ -31,7 +31,7 @@ var none = external_exports.object({});
31
31
  var emit = (name, detail) => {
32
32
  if (typeof window !== "undefined") window.dispatchEvent(new CustomEvent(name, { detail }));
33
33
  };
34
- var store = () => import("./editor-store-FGXPU3UO.js").then((m) => m.useEditorStore.getState());
34
+ var store = () => import("./editor-store-JFHEOFHY.js").then((m) => m.useEditorStore.getState());
35
35
  var MODE_IDS = MODE_LIST.map((m) => m.id);
36
36
  var MODE_ALIASES = { JAM: "POPCORN", DEV: "VIEW" };
37
37
  var modeSet = defineCommand({
@@ -191,7 +191,7 @@ var dialogOpen = defineCommand({
191
191
  (await import("./plan-limit-VGQF2DZX.js")).openPlanDialog();
192
192
  break;
193
193
  case "credits":
194
- await (await import("./buy-credits-G7NUE6ZB.js")).buyAiCredits();
194
+ await (await import("./buy-credits-NARMZ33F.js")).buyAiCredits();
195
195
  break;
196
196
  case "tokens":
197
197
  emit("popcraft-open-tokens");
@@ -237,7 +237,7 @@ var aiOpen = defineCommand({
237
237
  ] } },
238
238
  run: async ({ dialog, skillId }) => {
239
239
  if (dialog) (await import("./client-store-URE3KRXT.js")).openAiDialog(dialog);
240
- else (await import("./store-FFLZCMSB.js")).openAgentPanel({ skillId: skillId ?? null });
240
+ else (await import("./store-QGNPU45L.js")).openAgentPanel({ skillId: skillId ?? null });
241
241
  return { summary: dialog ? `Opened AI ${dialog}` : "Opened the agent" };
242
242
  }
243
243
  });
@@ -250,7 +250,7 @@ var agentContinue = defineCommand({
250
250
  params: external_exports.object({}),
251
251
  expose: { ui: { label: "AI: Continue the agent\u2019s last turn", keywords: ["ai", "agent", "continue", "resume", "retry", "keep going"] } },
252
252
  run: async () => {
253
- const resumed = await (await import("./runner-KWTHN3U5.js")).continueTurn();
253
+ const resumed = await (await import("./runner-Q53FUQ4P.js")).continueTurn();
254
254
  return { summary: resumed ? "Continued the agent" : "Nothing to continue" };
255
255
  }
256
256
  });
@@ -329,11 +329,11 @@ var toolPlace = defineCommand({
329
329
  run: async ({ what }) => {
330
330
  if (what === "media") {
331
331
  const s = await store();
332
- const { placeMediaFromPicker } = await import("./media-tool-PRVEIKYF.js");
332
+ const { placeMediaFromPicker } = await import("./media-tool-BGIARYN2.js");
333
333
  await placeMediaFromPicker({ kind: "point", x: s.camera.x, y: s.camera.y });
334
334
  return { summary: "Placing media" };
335
335
  }
336
- const { beginEyedrop } = await import("./eyedropper-6T3GH5QA.js");
336
+ const { beginEyedrop } = await import("./eyedropper-BGMQDPTB.js");
337
337
  void beginEyedrop();
338
338
  return { summary: "Pick a color" };
339
339
  }
@@ -351,7 +351,7 @@ var nodeRasterize = defineCommand({
351
351
  keywords: ["rasterize", "raster", "flatten", "pixels", "paint layer", "erase", "bitmap"]
352
352
  } },
353
353
  run: async () => {
354
- const { flattenSelectionToPaintLayer } = await import("./raster-actions-U5WAAU7C.js");
354
+ const { flattenSelectionToPaintLayer } = await import("./raster-actions-FSIUMW5Y.js");
355
355
  await flattenSelectionToPaintLayer();
356
356
  return { summary: "Rasterized" };
357
357
  }
@@ -462,7 +462,7 @@ function pluginCommand(plugins) {
462
462
  params: external_exports.object({ pluginId: external_exports.string(), commandId: external_exports.string() }),
463
463
  expose: { ui: { label: "Run plugin", keywords: ["plugin", "extension", "run"], variants, palette: variants.length ? void 0 : false } },
464
464
  run: async ({ pluginId, commandId }) => {
465
- await (await import("./host-YBEAX4RZ.js")).runPlugin(pluginId, commandId);
465
+ await (await import("./host-PPWYGYTN.js")).runPlugin(pluginId, commandId);
466
466
  return { summary: "Plugin started" };
467
467
  }
468
468
  });
@@ -21,10 +21,10 @@ import {
21
21
  } from "./chunk-GTDUFAKH.js";
22
22
  import {
23
23
  knit_nordic_snowflake_sweater_default
24
- } from "./chunk-KSOUY2WC.js";
24
+ } from "./chunk-7JRE5KFW.js";
25
25
  import {
26
26
  knit_snowflake_beanie_default
27
- } from "./chunk-R2SDI262.js";
27
+ } from "./chunk-Q2ZB3FHK.js";
28
28
  import {
29
29
  holidays_hanukkah_activity_sheet_default
30
30
  } from "./chunk-TJDWHEOL.js";
@@ -48,7 +48,7 @@ import {
48
48
  } from "./chunk-6FSIJMP3.js";
49
49
  import {
50
50
  knit_christmas_tree_sweater_default
51
- } from "./chunk-YRGHWQT5.js";
51
+ } from "./chunk-WEM3QUB5.js";
52
52
  import {
53
53
  holidays_diwali_party_invitation_default
54
54
  } from "./chunk-P3RFMPVN.js";
@@ -28,10 +28,10 @@ import {
28
28
  requestImageAction,
29
29
  sizeForAspect,
30
30
  vectorSupport
31
- } from "./chunk-YBXHSJZG.js";
31
+ } from "./chunk-H3F5EWSJ.js";
32
32
  import {
33
33
  useEditorStore
34
- } from "./chunk-QU4HXR5E.js";
34
+ } from "./chunk-IXK5DQVP.js";
35
35
  import {
36
36
  withHistoryGroup
37
37
  } from "./chunk-F36HILOC.js";
@@ -6,7 +6,7 @@ const __filename = __popcraftPath(import.meta.url);
6
6
  const __dirname = __popcraftDirname(__filename);
7
7
  import {
8
8
  hyperyRequestHeaders
9
- } from "./chunk-NCKYRWBR.js";
9
+ } from "./chunk-XDEOO7Q3.js";
10
10
  import {
11
11
  aiAvailability,
12
12
  effectiveChatModel,