@popcraft/kit 1.2.1 → 1.3.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.
- package/dist/chunks/{agent-5ZVVUKVL.js → agent-FBOFA4L2.js} +1 -1
- package/dist/chunks/{builtin-ZWF5I77H.js → builtin-UNS7IRTZ.js} +4 -4
- package/dist/chunks/{buy-credits-T7C577LV.js → buy-credits-37KIF2FX.js} +2 -2
- package/dist/chunks/{check-template-MWOIYAGA.js → check-template-NTW22VNY.js} +6 -6
- package/dist/chunks/{chunk-HOWSSUN7.js → chunk-2CMHDBFD.js} +49 -49
- package/dist/chunks/{chunk-URH563AK.js → chunk-2ISMXQZH.js} +1 -1
- package/dist/chunks/{chunk-IKGV64X7.js → chunk-4WOODRGC.js} +4 -4
- package/dist/chunks/{chunk-4CGNSTLN.js → chunk-5OKROQS5.js} +2 -2
- package/dist/chunks/{chunk-JZM5HWEX.js → chunk-6QIOHC6D.js} +1 -1
- package/dist/chunks/{chunk-HW6KW3X3.js → chunk-7ETSVZDD.js} +5 -5
- package/dist/chunks/{chunk-6RIRRH4P.js → chunk-7KJGH5DA.js} +3 -3
- package/dist/chunks/{chunk-JY7KJGXS.js → chunk-AIF72RXH.js} +8 -10
- package/dist/chunks/{chunk-JCV2E7HJ.js → chunk-BOJUI3OG.js} +20 -17
- package/dist/chunks/{chunk-BBBKLNSW.js → chunk-EA7WPVPB.js} +11 -11
- package/dist/chunks/{chunk-AMCNGXZF.js → chunk-EOER2JCK.js} +9 -9
- package/dist/chunks/{chunk-CVZA6HPL.js → chunk-FSM6RE22.js} +139 -4
- package/dist/chunks/{chunk-7CEUBEEL.js → chunk-GJXUDC7M.js} +40 -24
- package/dist/chunks/{chunk-MJVFENH4.js → chunk-HCFZGHJQ.js} +3 -3
- package/dist/chunks/{chunk-EUKKWV3G.js → chunk-IO6ER43U.js} +1 -1
- package/dist/chunks/{chunk-A72CYF2R.js → chunk-J3BR4XR7.js} +1 -1
- package/dist/chunks/{chunk-TEDUOEHA.js → chunk-JKYYRNHA.js} +6 -6
- package/dist/chunks/{chunk-DVJ3JIXV.js → chunk-KVPGK3AI.js} +1 -1
- package/dist/chunks/{chunk-7PINHPNT.js → chunk-LEUINJWK.js} +1 -1
- package/dist/chunks/{chunk-6LCVEEGJ.js → chunk-LP7KEPZV.js} +3 -3
- package/dist/chunks/{chunk-SGBWEISH.js → chunk-MBNDFL52.js} +2 -2
- package/dist/chunks/{chunk-GZJHMFPW.js → chunk-MRYCR76X.js} +7 -7
- package/dist/chunks/{chunk-FRDEKTX2.js → chunk-O2IDQSID.js} +1 -1
- package/dist/chunks/{chunk-MEHR2GJ4.js → chunk-OACNFDDE.js} +5 -0
- package/dist/chunks/{chunk-NAZQXDXX.js → chunk-ORSEXNAN.js} +2 -2
- package/dist/chunks/{chunk-LZJRXAUA.js → chunk-OZDD4X2Z.js} +2 -2
- package/dist/chunks/{chunk-Z53B7NL7.js → chunk-QLMN2B6V.js} +2 -2
- package/dist/chunks/{chunk-NLXZIY6X.js → chunk-RUTPUYED.js} +7 -5
- package/dist/chunks/{chunk-D266WUDD.js → chunk-SYM2BMBO.js} +5 -5
- package/dist/chunks/{chunk-QTBLWSUJ.js → chunk-TEJDLWJQ.js} +1 -1
- package/dist/chunks/{chunk-NRPLKJWD.js → chunk-TJGTNEYL.js} +2 -2
- package/dist/chunks/{chunk-WP272KYV.js → chunk-TMSCTWTK.js} +1 -1
- package/dist/chunks/{chunk-HSBUM7AM.js → chunk-TR73N5K3.js} +2 -2
- package/dist/chunks/{chunk-GZN3CWWE.js → chunk-UVHQ6OC6.js} +5 -5
- package/dist/chunks/{chunk-FW3EG2VB.js → chunk-VH7BAQHO.js} +1 -1
- package/dist/chunks/{chunk-RPKBOARY.js → chunk-VUNR4TA5.js} +2 -2
- package/dist/chunks/{chunk-TXEKFUEK.js → chunk-WLNCMP4R.js} +4 -4
- package/dist/chunks/{chunk-47BCHVLO.js → chunk-XPXDYITB.js} +1 -1
- package/dist/chunks/{client-N5HTFSII.js → client-3O4IP7IV.js} +2 -2
- package/dist/chunks/{client-72ZFWAFV.js → client-MGVU6BYH.js} +1 -1
- package/dist/chunks/{client-QV5XYYCT.js → client-NN7D5KOY.js} +3 -3
- package/dist/chunks/{client-actions-3X7PCEC6.js → client-actions-EGFPGDRF.js} +5 -5
- package/dist/chunks/{components-XPBO2ZM5.js → components-JJJ6NOV7.js} +3 -3
- package/dist/chunks/{dangerous-LD5YGW2I.js → dangerous-KA4XBNPQ.js} +4 -4
- package/dist/chunks/{delete-current-file-DBXJ3X5W.js → delete-current-file-JWRQEJD7.js} +5 -5
- package/dist/chunks/{editor-seams-TOAYXI2M.js → editor-seams-SVNNJYML.js} +13 -13
- package/dist/chunks/{editor-store-LZFNEHYB.js → editor-store-F55ZEWJH.js} +1 -1
- package/dist/chunks/{export-watermark-M3URLKD7.js → export-watermark-2JR3IBVA.js} +5 -5
- package/dist/chunks/{eyedropper-4DFRX5AG.js → eyedropper-6GKVVVEE.js} +1 -1
- package/dist/chunks/{generate-media-APYNWFHP.js → generate-media-XPID2HER.js} +3 -3
- package/dist/chunks/{host-KJT6LWVX.js → host-I6KIHIVJ.js} +6 -6
- package/dist/chunks/{host-HE3UQKE3.js → host-JSYAWYNV.js} +4 -4
- package/dist/chunks/{integrations-SGZBIQUU.js → integrations-QLSOUP5Z.js} +1 -1
- package/dist/chunks/{libraries-7AF3R3GJ.js → libraries-AS5KS6VS.js} +5 -5
- package/dist/chunks/{live-K2YZRNKK.js → live-ZQRP46FK.js} +1 -1
- package/dist/chunks/{media-tool-VBUUZZIH.js → media-tool-M33SALHX.js} +1 -1
- package/dist/chunks/{new-file-QSMLBVRU.js → new-file-J7EH3YKS.js} +3 -3
- package/dist/chunks/{next-commerce-V2QELI45.js → next-commerce-7KAFFBWA.js} +5 -5
- package/dist/chunks/{plugin-WKKOD3IW.js → plugin-IQEMDPM3.js} +3 -3
- package/dist/chunks/{plugin-import-GALNL6SB.js → plugin-import-EILLZJLX.js} +17 -17
- package/dist/chunks/{presence-MSRD4SIK.js → presence-IJN6TO2U.js} +2 -2
- package/dist/chunks/{project-JTHWH3VF.js → project-GOALAIWW.js} +5 -5
- package/dist/chunks/{publish-site-25MGB4QH.js → publish-site-I5BQK7VR.js} +6 -6
- package/dist/chunks/{publish-store-2JZEJLSB.js → publish-store-WDLIOS5E.js} +7 -7
- package/dist/chunks/{raster-actions-2LTYHHOZ.js → raster-actions-7CCO2RS5.js} +1 -1
- package/dist/chunks/{runner-6GHGTHVR.js → runner-535UPLGO.js} +19 -19
- package/dist/chunks/{store-BEDJRBIQ.js → store-J33GD3OK.js} +6 -6
- package/dist/chunks/{storefront-QQTNLF3Q.js → storefront-VZ5JGP6Q.js} +6 -6
- package/dist/chunks/{storefront-prepare-QARBKWYY.js → storefront-prepare-DN64DLCR.js} +2 -2
- package/dist/chunks/{sync-A2YT72KR.js → sync-LN254R24.js} +5 -5
- package/dist/chunks/{tabs-JICBGZ27.js → tabs-SRMAPWDX.js} +8 -8
- package/dist/chunks/{team-6ZMFTJZK.js → team-P7EP6HAH.js} +1 -1
- package/dist/chunks/{team-client-TFMDDV25.js → team-client-ATTL4BUG.js} +1 -1
- package/dist/chunks/{tools-5AQKFJ2D.js → tools-F566WZLK.js} +2 -2
- package/dist/chunks/{tree-5DKDQLDR.js → tree-3MXMJZ2P.js} +1 -1
- package/dist/chunks/{ui-commands-YL4Q5VWA.js → ui-commands-2E6YO3G7.js} +13 -13
- package/dist/chunks/{versions-WFHFBJP2.js → versions-ZSGH7ZJN.js} +5 -5
- package/dist/chunks/{web-BQWY6BIF.js → web-22TCUPNQ.js} +4 -4
- package/dist/index.js +1 -1
- package/dist/templates/count.js +1 -1
- package/dist/templates/index.js +12 -12
- package/dist/templates/motion/landing-hero/index.js +4 -4
- package/dist/templates/motion/launch-trailer/document.js +12 -12
- package/dist/templates/motion/launch-trailer/index.js +4 -4
- package/dist/templates/motion/launch-trailer/scenes.js +3 -3
- package/dist/templates/motion/template-wall.js +2 -2
- package/dist/templates/print/knit-christmas-tree-sweater.js +2 -2
- package/dist/templates/print/knit-nordic-snowflake-sweater.js +2 -2
- package/dist/templates/print/knit-shared.js +3 -1
- package/dist/templates/print/knit-snowflake-beanie.js +2 -2
- package/dist/templates/themes/holidays.js +5 -5
- package/dist/templates/themes/index.js +6 -6
- package/package.json +1 -1
- package/src/templates/print/knit-christmas-tree-sweater.ts +21 -17
- package/src/templates/print/knit-nordic-snowflake-sweater.ts +45 -26
- package/src/templates/print/knit-shared.ts +118 -7
- package/src/templates/print/knit-snowflake-beanie.ts +9 -9
- package/types/templates/src/print/knit-shared.d.ts +49 -3
|
@@ -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-
|
|
60
|
+
const { requestAudio } = await import("./client-NN7D5KOY.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-
|
|
66
|
+
const { generateVideoFile } = await import("./generate-media-XPID2HER.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-
|
|
72
|
+
import("./client-NN7D5KOY.js"),
|
|
73
73
|
import("./client-store-URE3KRXT.js")
|
|
74
74
|
]);
|
|
75
75
|
const modelId = effectiveImageModel(useAiStore.getState());
|
|
@@ -7,10 +7,10 @@ const __dirname = __popcraftDirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
builtinCommands,
|
|
9
9
|
registerBuiltinCommands
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-2CMHDBFD.js";
|
|
11
11
|
import {
|
|
12
12
|
toolView
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-LP7KEPZV.js";
|
|
14
14
|
import {
|
|
15
15
|
init_define_POPCRAFT_COMPONENT_IDS
|
|
16
16
|
} from "./chunk-6JXNKUNX.js";
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
hostEnv,
|
|
13
13
|
plain,
|
|
14
14
|
registerBuiltinCommands
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-2CMHDBFD.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-
|
|
629
|
+
const [{ componentScreens }, { storefrontDesign }] = await Promise.all([import("./components-JJJ6NOV7.js"), import("./storefront-VZ5JGP6Q.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 };
|
|
@@ -644,11 +644,11 @@ var commands = [
|
|
|
644
644
|
// saves (the Ecommerce plugin's Shopify theme), so a target is written once, here, and never again in a plugin.
|
|
645
645
|
run: async (p, ctx) => {
|
|
646
646
|
const [{ storefrontInputs }, { STOREFRONT_TARGETS }, { bytesOf }, { zipFiles }, { EXPORT_NODE_CAP }] = await Promise.all([
|
|
647
|
-
import("./storefront-prepare-
|
|
648
|
-
import("./storefront-
|
|
649
|
-
import("./project-
|
|
647
|
+
import("./storefront-prepare-DN64DLCR.js"),
|
|
648
|
+
import("./storefront-VZ5JGP6Q.js"),
|
|
649
|
+
import("./project-GOALAIWW.js"),
|
|
650
650
|
import("./zip-export-TZA7FPVI.js"),
|
|
651
|
-
import("./tree-
|
|
651
|
+
import("./tree-3MXMJZ2P.js")
|
|
652
652
|
]);
|
|
653
653
|
const doc = ctx.doc();
|
|
654
654
|
const { screens, media } = await storefrontInputs(doc, ctx.pageId(), EXPORT_NODE_CAP);
|
|
@@ -843,7 +843,7 @@ var pluginRun = defineCommand({
|
|
|
843
843
|
}
|
|
844
844
|
},
|
|
845
845
|
run: async (p, ctx) => {
|
|
846
|
-
const { runPlugin } = await import("./host-
|
|
846
|
+
const { runPlugin } = await import("./host-I6KIHIVJ.js");
|
|
847
847
|
await runPlugin(p.pluginId, p.commandId);
|
|
848
848
|
ctx.notice(`Started ${p.pluginId}.`);
|
|
849
849
|
return {
|
|
@@ -150,7 +150,7 @@ function startHyperyTeams() {
|
|
|
150
150
|
maybePromptForTeam();
|
|
151
151
|
void followFileTeam(linkedKey);
|
|
152
152
|
});
|
|
153
|
-
void import("./sync-
|
|
153
|
+
void import("./sync-LN254R24.js").then(({ onSyncStatus, syncStatus }) => {
|
|
154
154
|
linkedKey = syncStatus().link?.key ?? null;
|
|
155
155
|
void followFileTeam(linkedKey);
|
|
156
156
|
onSyncStatus((_s, link) => {
|
|
@@ -791,6 +791,7 @@ var SCALED_PAGE = {
|
|
|
791
791
|
"max-width": null
|
|
792
792
|
};
|
|
793
793
|
var SCALED_BOX = { "container-type": "size", overflow: "hidden" };
|
|
794
|
+
var SCALED_ROOT = { width: "100%", height: "100%", position: "relative", ...SCALED_BOX };
|
|
794
795
|
var LAYS_OUT = ["display", "flex-direction", "flex-wrap", "gap", "row-gap", "column-gap", "justify-content", "align-items", "align-content", "justify-items", "grid-template-columns", "grid-template-rows", "grid-auto-flow", "grid-auto-rows", "grid-auto-columns", "padding", "padding-top", "padding-right", "padding-bottom", "padding-left"];
|
|
795
796
|
function wrapScaledContent(web, sc) {
|
|
796
797
|
const style = { width: px(sc.width), height: px(sc.height), "transform-origin": "center" };
|
|
@@ -1850,6 +1851,10 @@ function buildPlainTree(doc, nodeId, opts = {}, start, hooks = {}) {
|
|
|
1850
1851
|
for (const c of web.children) if (c.positioning === "flow") c.layered = true;
|
|
1851
1852
|
}
|
|
1852
1853
|
if (scaling && opts.target === "site") wrapScaledContent(web, scaling);
|
|
1854
|
+
else if (scaling && opts.scaleRoot && !parent) {
|
|
1855
|
+
Object.assign(web.style, SCALED_ROOT);
|
|
1856
|
+
wrapScaledContent(web, scaling);
|
|
1857
|
+
}
|
|
1853
1858
|
hooks.built?.(web, node, { parent, in3D, fold });
|
|
1854
1859
|
return web;
|
|
1855
1860
|
};
|
|
@@ -91,9 +91,9 @@ async function placeStockPhoto(photo, opts = {}) {
|
|
|
91
91
|
}
|
|
92
92
|
async function placePicture(imported, opts = {}) {
|
|
93
93
|
const [{ useEditorStore }, { photoFrameOf }, { placeImage }] = await Promise.all([
|
|
94
|
-
import("./editor-store-
|
|
94
|
+
import("./editor-store-F55ZEWJH.js"),
|
|
95
95
|
import("../lib/document/photo-frames.js"),
|
|
96
|
-
import("./media-tool-
|
|
96
|
+
import("./media-tool-M33SALHX.js")
|
|
97
97
|
]);
|
|
98
98
|
const st = useEditorStore.getState();
|
|
99
99
|
const frame = photoFrameOf(st.document.nodes, opts.targetId !== void 0 ? opts.targetId : st.selection[0] ?? null);
|
|
@@ -7,11 +7,11 @@ const __dirname = __popcraftDirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
componentFiles,
|
|
9
9
|
componentPlan
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-VUNR4TA5.js";
|
|
11
11
|
import {
|
|
12
12
|
RUNTIME_PACKAGE,
|
|
13
13
|
runtimeRange
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-XPXDYITB.js";
|
|
15
15
|
import {
|
|
16
16
|
routesOf,
|
|
17
17
|
screensOf
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
} from "./chunk-QH6PUSXO.js";
|
|
10
10
|
import {
|
|
11
11
|
activeTeamWorkspaceId
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-O2IDQSID.js";
|
|
13
13
|
import {
|
|
14
14
|
ApiError,
|
|
15
15
|
cloudApi
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
} from "./chunk-YU7BEN7M.js";
|
|
23
23
|
import {
|
|
24
24
|
markLibraryDocument
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-SYM2BMBO.js";
|
|
26
26
|
import {
|
|
27
27
|
GUEST_FILE_LIMIT
|
|
28
28
|
} from "./chunk-H3B6PDES.js";
|
|
@@ -11,11 +11,11 @@ import {
|
|
|
11
11
|
import {
|
|
12
12
|
serializeCSS,
|
|
13
13
|
serializeHTML
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-TJGTNEYL.js";
|
|
15
15
|
import {
|
|
16
16
|
serializeReact,
|
|
17
17
|
serializeTailwind
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-KVPGK3AI.js";
|
|
19
19
|
import {
|
|
20
20
|
altFor,
|
|
21
21
|
behaviorsDropped,
|
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
pictureOf,
|
|
29
29
|
styleMapToInline,
|
|
30
30
|
swiftColor
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-OACNFDDE.js";
|
|
32
32
|
import {
|
|
33
33
|
init_define_POPCRAFT_COMPONENT_IDS
|
|
34
34
|
} from "./chunk-6JXNKUNX.js";
|
|
@@ -600,8 +600,9 @@ function externalAssets(tree, base, dir = "images") {
|
|
|
600
600
|
var WEB_LANGUAGES = layerFormats().map(([value, f]) => ({ value, label: f.label, extension: f.extension }));
|
|
601
601
|
var assetKindFor = (lang) => CODE_FORMATS[lang].pictures;
|
|
602
602
|
var playsMotion = (lang) => CODE_FORMATS[lang].plays;
|
|
603
|
+
var SCALES_IN_CSS = /* @__PURE__ */ new Set(["css", "html", "html-inline", "react", "react-tailwind", "tailwind"]);
|
|
603
604
|
function webTreeFor(doc, nodeId, lang, opts = {}) {
|
|
604
|
-
const tree = buildWebTree(doc, nodeId, { assetKind: assetKindFor(lang), static: !playsMotion(lang), ...opts });
|
|
605
|
+
const tree = buildWebTree(doc, nodeId, { assetKind: assetKindFor(lang), static: !playsMotion(lang), scaleRoot: SCALES_IN_CSS.has(lang), ...opts });
|
|
605
606
|
return lang === "email" ? markEmailPictures(tree) : tree;
|
|
606
607
|
}
|
|
607
608
|
var WRITERS = {
|
|
@@ -622,7 +623,8 @@ function serializeWithReport(lang, tree, opts = {}) {
|
|
|
622
623
|
return { code: serializeSwiftUI(tree, { report: dropped }), dropped: mergeDropped(dropped) };
|
|
623
624
|
}
|
|
624
625
|
const code = WRITERS[lang](tree, opts);
|
|
625
|
-
|
|
626
|
+
const unscaled = tree.root.scaling && !SCALES_IN_CSS.has(lang) ? [{ feature: "page scaling", reason: `${CODE_FORMATS[lang].label} has no way to scale a layer to the space it is given: it is written at its drawn size`, nodeId: tree.root.id }] : [];
|
|
627
|
+
return { code, dropped: mergeDropped(tree.dropped, behaviorsDropped(tree, CODE_FORMATS[lang].label, { timeline: playsMotion(lang) }), unscaled) };
|
|
626
628
|
}
|
|
627
629
|
var extensionFor = (lang) => CODE_FORMATS[lang].extension;
|
|
628
630
|
|
|
@@ -4862,7 +4862,7 @@ function createPopcornSlice(set2, get2) {
|
|
|
4862
4862
|
privateMode: false,
|
|
4863
4863
|
setPrivateMode: (on) => {
|
|
4864
4864
|
set2({ privateMode: on });
|
|
4865
|
-
void import("./presence-
|
|
4865
|
+
void import("./presence-IJN6TO2U.js").then((m) => m.setPresencePrivate(on)).catch(() => {
|
|
4866
4866
|
});
|
|
4867
4867
|
},
|
|
4868
4868
|
/** Reveal every private item THIS user created (they sync to collaborators). Others' stay theirs. */
|
|
@@ -6924,7 +6924,7 @@ var useEditorStore = create()(
|
|
|
6924
6924
|
// A copy is a new file, so it is cloud-backed like any other (see lib/client/cloud/new-file.ts).
|
|
6925
6925
|
// Returns '' when it was refused (offline, signed out, plan full) or failed; nothing is left behind.
|
|
6926
6926
|
duplicateDocument: async (id) => {
|
|
6927
|
-
const { duplicateDocumentToCloud } = await import("./sync-
|
|
6927
|
+
const { duplicateDocumentToCloud } = await import("./sync-LN254R24.js");
|
|
6928
6928
|
return duplicateDocumentToCloud(id);
|
|
6929
6929
|
},
|
|
6930
6930
|
deleteDocument: async (id) => {
|
|
@@ -10432,9 +10432,9 @@ if (typeof window !== "undefined") {
|
|
|
10432
10432
|
if (typeof window !== "undefined" && navigator.webdriver) {
|
|
10433
10433
|
window.__vpDesign = async (script, o = {}) => {
|
|
10434
10434
|
const [{ registerBuiltinTools, runTool }, { editorToolContext }, { createDesignPreview }] = await Promise.all([
|
|
10435
|
-
import("./tools-
|
|
10436
|
-
import("./editor-seams-
|
|
10437
|
-
import("./live-
|
|
10435
|
+
import("./tools-F566WZLK.js").then(async (m) => ({ ...m, registerBuiltinTools: (await import("./builtin-UNS7IRTZ.js")).registerBuiltinTools })),
|
|
10436
|
+
import("./editor-seams-SVNNJYML.js"),
|
|
10437
|
+
import("./live-ZQRP46FK.js")
|
|
10438
10438
|
]);
|
|
10439
10439
|
registerBuiltinTools();
|
|
10440
10440
|
const args = JSON.stringify({ ...o.name ? { name: o.name } : {}, ...o.size ? { size: o.size } : {}, ...o.frame ? { frame: o.frame } : {}, script });
|
|
@@ -7,7 +7,7 @@ const __dirname = __popcraftDirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
classNameFor,
|
|
9
9
|
interactiveSpec
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-KVPGK3AI.js";
|
|
11
11
|
import {
|
|
12
12
|
fontFaceRules,
|
|
13
13
|
fontsHref
|
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
styleMapToCSSText,
|
|
29
29
|
styleMapToInline,
|
|
30
30
|
tokensCSS
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-OACNFDDE.js";
|
|
32
32
|
import {
|
|
33
33
|
init_define_POPCRAFT_COMPONENT_IDS
|
|
34
34
|
} from "./chunk-6JXNKUNX.js";
|
|
@@ -13,11 +13,11 @@ import {
|
|
|
13
13
|
popIn,
|
|
14
14
|
shadow,
|
|
15
15
|
travel
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-IO6ER43U.js";
|
|
17
17
|
import {
|
|
18
18
|
DURATION,
|
|
19
19
|
buildTemplateWall
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-6QIOHC6D.js";
|
|
21
21
|
import {
|
|
22
22
|
trailerType
|
|
23
23
|
} from "./chunk-Y2QHMGV2.js";
|
|
@@ -78,7 +78,7 @@ import {
|
|
|
78
78
|
} from "./chunk-A5PORIEQ.js";
|
|
79
79
|
import {
|
|
80
80
|
THEME_PACKS
|
|
81
|
-
} from "./chunk-
|
|
81
|
+
} from "./chunk-TEJDLWJQ.js";
|
|
82
82
|
import {
|
|
83
83
|
word_quote_default
|
|
84
84
|
} from "./chunk-7XLVGIJH.js";
|
|
@@ -288,7 +288,7 @@ import {
|
|
|
288
288
|
} from "./chunk-UHLD5UG6.js";
|
|
289
289
|
import {
|
|
290
290
|
launch_trailer_default
|
|
291
|
-
} from "./chunk-
|
|
291
|
+
} from "./chunk-J3BR4XR7.js";
|
|
292
292
|
import {
|
|
293
293
|
logo_reveal_default
|
|
294
294
|
} from "./chunk-HRIM64O2.js";
|
|
@@ -303,10 +303,10 @@ import {
|
|
|
303
303
|
} from "./chunk-P3QVB36X.js";
|
|
304
304
|
import {
|
|
305
305
|
landing_hero_default
|
|
306
|
-
} from "./chunk-
|
|
306
|
+
} from "./chunk-TR73N5K3.js";
|
|
307
307
|
import {
|
|
308
308
|
template_wall_default
|
|
309
|
-
} from "./chunk-
|
|
309
|
+
} from "./chunk-6QIOHC6D.js";
|
|
310
310
|
import {
|
|
311
311
|
countdown_default
|
|
312
312
|
} from "./chunk-G6D42IMC.js";
|
|
@@ -408,7 +408,7 @@ import {
|
|
|
408
408
|
} from "./chunk-QU5EVLG2.js";
|
|
409
409
|
import {
|
|
410
410
|
registerTemplateSources
|
|
411
|
-
} from "./chunk-
|
|
411
|
+
} from "./chunk-HCFZGHJQ.js";
|
|
412
412
|
import {
|
|
413
413
|
bars_default
|
|
414
414
|
} from "./chunk-ORQKFX45.js";
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
componentName,
|
|
13
13
|
mediaRules,
|
|
14
14
|
serializeReact
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-KVPGK3AI.js";
|
|
16
16
|
import {
|
|
17
17
|
routesOf,
|
|
18
18
|
screensOf
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
import {
|
|
21
21
|
buildPlainTree,
|
|
22
22
|
tokensCSS
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-OACNFDDE.js";
|
|
24
24
|
import {
|
|
25
25
|
COMMERCE_ACTION_PROP,
|
|
26
26
|
COMMERCE_PROP
|
|
@@ -17,14 +17,14 @@ import {
|
|
|
17
17
|
reportOpenStage,
|
|
18
18
|
setCloudLink,
|
|
19
19
|
trackOpen
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-QLMN2B6V.js";
|
|
21
21
|
import {
|
|
22
22
|
parseDeepLink,
|
|
23
23
|
withDeepLink
|
|
24
24
|
} from "./chunk-MAIOW77V.js";
|
|
25
25
|
import {
|
|
26
26
|
activeTeamWorkspaceId
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-O2IDQSID.js";
|
|
28
28
|
import {
|
|
29
29
|
ApiError,
|
|
30
30
|
api,
|
|
@@ -32,7 +32,7 @@ import {
|
|
|
32
32
|
} from "./chunk-CMPXWCFB.js";
|
|
33
33
|
import {
|
|
34
34
|
attachPresence
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-2ISMXQZH.js";
|
|
36
36
|
import {
|
|
37
37
|
fileOpeningMode,
|
|
38
38
|
isAppleMobile,
|
|
@@ -45,7 +45,7 @@ import {
|
|
|
45
45
|
setCollabHistory,
|
|
46
46
|
storedDocument,
|
|
47
47
|
useEditorStore
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-SYM2BMBO.js";
|
|
49
49
|
import {
|
|
50
50
|
currentHistoryGroup
|
|
51
51
|
} from "./chunk-F36HILOC.js";
|
|
@@ -14,7 +14,7 @@ init_define_POPCRAFT_COMPONENT_IDS();
|
|
|
14
14
|
// packages/runtime/package.json
|
|
15
15
|
var package_default = {
|
|
16
16
|
name: "@popcraft/runtime",
|
|
17
|
-
version: "1.
|
|
17
|
+
version: "1.3.0",
|
|
18
18
|
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.",
|
|
19
19
|
license: "MIT",
|
|
20
20
|
homepage: "https://popcraft.app/docs/exporting/nextjs",
|
|
@@ -7,7 +7,7 @@ const __dirname = __popcraftDirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
defaultMeasure,
|
|
9
9
|
placePicture
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-ORSEXNAN.js";
|
|
11
11
|
import "./chunk-V66O2FNK.js";
|
|
12
12
|
import {
|
|
13
13
|
api
|
|
@@ -122,7 +122,7 @@ async function placeLibraryItem(item, opts = {}) {
|
|
|
122
122
|
}
|
|
123
123
|
if (item.contentType.startsWith("video/")) {
|
|
124
124
|
const file = await libraryFile(item, opts);
|
|
125
|
-
const [{ useEditorStore }, { placeMediaFile }] = await Promise.all([import("./editor-store-
|
|
125
|
+
const [{ useEditorStore }, { placeMediaFile }] = await Promise.all([import("./editor-store-F55ZEWJH.js"), import("./media-tool-M33SALHX.js")]);
|
|
126
126
|
const cam = useEditorStore.getState().camera;
|
|
127
127
|
await placeMediaFile(file, { kind: "point", ...opts.at ?? { x: cam.x, y: cam.y } });
|
|
128
128
|
return useEditorStore.getState().selection[0] ?? null;
|
|
@@ -16,11 +16,11 @@ import {
|
|
|
16
16
|
requestEmbeddings,
|
|
17
17
|
requestImage,
|
|
18
18
|
requestImageAction
|
|
19
|
-
} from "./chunk-
|
|
20
|
-
import "./chunk-
|
|
19
|
+
} from "./chunk-VH7BAQHO.js";
|
|
20
|
+
import "./chunk-LEUINJWK.js";
|
|
21
21
|
import "./chunk-MKWU7K63.js";
|
|
22
22
|
import "./chunk-QH6PUSXO.js";
|
|
23
|
-
import "./chunk-
|
|
23
|
+
import "./chunk-O2IDQSID.js";
|
|
24
24
|
import "./chunk-CMPXWCFB.js";
|
|
25
25
|
import "./chunk-YU7BEN7M.js";
|
|
26
26
|
import "./chunk-H3B6PDES.js";
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
selectedVectorTarget,
|
|
17
17
|
startImageAction,
|
|
18
18
|
startImageGeneration
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-5OKROQS5.js";
|
|
20
20
|
import "./chunk-NNXEZKK3.js";
|
|
21
21
|
import "./chunk-R5K2B3R3.js";
|
|
22
22
|
import "./chunk-WMPT76QX.js";
|
|
@@ -29,18 +29,18 @@ import "./chunk-V7VBVZKR.js";
|
|
|
29
29
|
import "./chunk-E5NEL7R5.js";
|
|
30
30
|
import "./chunk-PYF2YBOX.js";
|
|
31
31
|
import "./chunk-KHJE2MFL.js";
|
|
32
|
-
import "./chunk-
|
|
33
|
-
import "./chunk-
|
|
32
|
+
import "./chunk-VH7BAQHO.js";
|
|
33
|
+
import "./chunk-LEUINJWK.js";
|
|
34
34
|
import "./chunk-MKWU7K63.js";
|
|
35
35
|
import "./chunk-HIOKDYKH.js";
|
|
36
36
|
import "./chunk-DCQIJ5K6.js";
|
|
37
37
|
import "./chunk-XJFP22CM.js";
|
|
38
38
|
import "./chunk-QH6PUSXO.js";
|
|
39
39
|
import "./chunk-B4PQIUPZ.js";
|
|
40
|
-
import "./chunk-
|
|
40
|
+
import "./chunk-O2IDQSID.js";
|
|
41
41
|
import "./chunk-CMPXWCFB.js";
|
|
42
42
|
import "./chunk-YU7BEN7M.js";
|
|
43
|
-
import "./chunk-
|
|
43
|
+
import "./chunk-SYM2BMBO.js";
|
|
44
44
|
import "./chunk-GQV6RKZJ.js";
|
|
45
45
|
import "./chunk-F36HILOC.js";
|
|
46
46
|
import "./chunk-XWWV53NR.js";
|
|
@@ -9,12 +9,12 @@ import {
|
|
|
9
9
|
componentMedia,
|
|
10
10
|
componentPlan,
|
|
11
11
|
componentScreens
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-VUNR4TA5.js";
|
|
13
13
|
import "./chunk-4LGIB334.js";
|
|
14
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-KVPGK3AI.js";
|
|
15
15
|
import "./chunk-JEIJJB4H.js";
|
|
16
16
|
import "./chunk-77HTR7QU.js";
|
|
17
|
-
import "./chunk-
|
|
17
|
+
import "./chunk-OACNFDDE.js";
|
|
18
18
|
import "./chunk-OZFBHGKA.js";
|
|
19
19
|
import "./chunk-E5NEL7R5.js";
|
|
20
20
|
import "./chunk-SVKLOGS5.js";
|
|
@@ -8,10 +8,10 @@ import {
|
|
|
8
8
|
confirmTierCommands,
|
|
9
9
|
dangerousCommands,
|
|
10
10
|
registerDangerousCommands
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import "./chunk-
|
|
11
|
+
} from "./chunk-EA7WPVPB.js";
|
|
12
|
+
import "./chunk-MRYCR76X.js";
|
|
13
13
|
import "./chunk-2NFTX3PP.js";
|
|
14
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-2CMHDBFD.js";
|
|
15
15
|
import "./chunk-YQA5IWOG.js";
|
|
16
16
|
import "./chunk-VT2A3WIM.js";
|
|
17
17
|
import "./chunk-L6RMNPUS.js";
|
|
@@ -22,7 +22,7 @@ import "./chunk-JEIJJB4H.js";
|
|
|
22
22
|
import "./chunk-ZEJGI7M6.js";
|
|
23
23
|
import "./chunk-R5K2B3R3.js";
|
|
24
24
|
import "./chunk-CYD3CB7J.js";
|
|
25
|
-
import "./chunk-
|
|
25
|
+
import "./chunk-OACNFDDE.js";
|
|
26
26
|
import "./chunk-OZFBHGKA.js";
|
|
27
27
|
import "./chunk-V66O2FNK.js";
|
|
28
28
|
import "./chunk-V7VBVZKR.js";
|
|
@@ -6,21 +6,21 @@ const __filename = __popcraftPath(import.meta.url);
|
|
|
6
6
|
const __dirname = __popcraftDirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
syncStatus
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-WLNCMP4R.js";
|
|
10
10
|
import "./chunk-LDPWCKGV.js";
|
|
11
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-QLMN2B6V.js";
|
|
12
12
|
import "./chunk-QH6PUSXO.js";
|
|
13
13
|
import "./chunk-MAIOW77V.js";
|
|
14
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-O2IDQSID.js";
|
|
15
15
|
import {
|
|
16
16
|
cloudApi
|
|
17
17
|
} from "./chunk-CMPXWCFB.js";
|
|
18
18
|
import "./chunk-TAVQB3TU.js";
|
|
19
19
|
import "./chunk-YU7BEN7M.js";
|
|
20
|
-
import "./chunk-
|
|
20
|
+
import "./chunk-2ISMXQZH.js";
|
|
21
21
|
import {
|
|
22
22
|
useEditorStore
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-SYM2BMBO.js";
|
|
24
24
|
import "./chunk-GQV6RKZJ.js";
|
|
25
25
|
import "./chunk-F36HILOC.js";
|
|
26
26
|
import "./chunk-XWWV53NR.js";
|
|
@@ -7,24 +7,24 @@ const __dirname = __popcraftDirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
editBlockReason,
|
|
9
9
|
editorToolContext
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import "./chunk-
|
|
10
|
+
} from "./chunk-JKYYRNHA.js";
|
|
11
|
+
import "./chunk-EOER2JCK.js";
|
|
12
12
|
import "./chunk-2NFTX3PP.js";
|
|
13
|
-
import "./chunk-
|
|
13
|
+
import "./chunk-2CMHDBFD.js";
|
|
14
14
|
import "./chunk-YQA5IWOG.js";
|
|
15
15
|
import "./chunk-VT2A3WIM.js";
|
|
16
16
|
import "./chunk-L6RMNPUS.js";
|
|
17
|
-
import "./chunk-
|
|
17
|
+
import "./chunk-5OKROQS5.js";
|
|
18
18
|
import "./chunk-NNXEZKK3.js";
|
|
19
19
|
import "./chunk-4IUHCC33.js";
|
|
20
20
|
import "./chunk-3FUAWRIT.js";
|
|
21
21
|
import "./chunk-JEIJJB4H.js";
|
|
22
22
|
import "./chunk-ZEJGI7M6.js";
|
|
23
23
|
import "./chunk-R5K2B3R3.js";
|
|
24
|
-
import "./chunk-
|
|
24
|
+
import "./chunk-LP7KEPZV.js";
|
|
25
25
|
import "./chunk-CYD3CB7J.js";
|
|
26
26
|
import "./chunk-WMPT76QX.js";
|
|
27
|
-
import "./chunk-
|
|
27
|
+
import "./chunk-OACNFDDE.js";
|
|
28
28
|
import "./chunk-OZFBHGKA.js";
|
|
29
29
|
import "./chunk-BCHQ3N4S.js";
|
|
30
30
|
import "./chunk-42CJ7I2I.js";
|
|
@@ -35,28 +35,28 @@ import "./chunk-V7VBVZKR.js";
|
|
|
35
35
|
import "./chunk-E5NEL7R5.js";
|
|
36
36
|
import "./chunk-PYF2YBOX.js";
|
|
37
37
|
import "./chunk-KHJE2MFL.js";
|
|
38
|
-
import "./chunk-
|
|
39
|
-
import "./chunk-
|
|
38
|
+
import "./chunk-VH7BAQHO.js";
|
|
39
|
+
import "./chunk-LEUINJWK.js";
|
|
40
40
|
import "./chunk-MKWU7K63.js";
|
|
41
41
|
import "./chunk-CLUZDLJ5.js";
|
|
42
42
|
import "./chunk-HIOKDYKH.js";
|
|
43
43
|
import "./chunk-DCQIJ5K6.js";
|
|
44
44
|
import "./chunk-XJFP22CM.js";
|
|
45
|
-
import "./chunk-
|
|
45
|
+
import "./chunk-WLNCMP4R.js";
|
|
46
46
|
import "./chunk-LDPWCKGV.js";
|
|
47
|
-
import "./chunk-
|
|
47
|
+
import "./chunk-QLMN2B6V.js";
|
|
48
48
|
import "./chunk-QH6PUSXO.js";
|
|
49
49
|
import "./chunk-MAIOW77V.js";
|
|
50
50
|
import "./chunk-B4PQIUPZ.js";
|
|
51
|
-
import "./chunk-
|
|
51
|
+
import "./chunk-O2IDQSID.js";
|
|
52
52
|
import "./chunk-CMPXWCFB.js";
|
|
53
53
|
import "./chunk-TAVQB3TU.js";
|
|
54
54
|
import "./chunk-LDIM4MFL.js";
|
|
55
55
|
import "./chunk-CRLXNQEU.js";
|
|
56
56
|
import "./chunk-YU7BEN7M.js";
|
|
57
57
|
import "./chunk-NFKRHEFS.js";
|
|
58
|
-
import "./chunk-
|
|
59
|
-
import "./chunk-
|
|
58
|
+
import "./chunk-2ISMXQZH.js";
|
|
59
|
+
import "./chunk-SYM2BMBO.js";
|
|
60
60
|
import "./chunk-GQV6RKZJ.js";
|
|
61
61
|
import "./chunk-F36HILOC.js";
|
|
62
62
|
import "./chunk-XWWV53NR.js";
|