@arbidocs/blocks 0.4.4 → 0.4.6
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/README.md +71 -6
- package/dist/agents/index.cjs +163 -162
- package/dist/agents/index.js +6 -5
- package/dist/artifacts/ArtifactCompareBar.d.ts +33 -0
- package/dist/artifacts/ArtifactEditor.d.ts +64 -0
- package/dist/artifacts/ArtifactEditorBody.d.ts +34 -0
- package/dist/artifacts/ArtifactRedlineView.d.ts +57 -0
- package/dist/artifacts/ArtifactToolbar.d.ts +53 -0
- package/dist/artifacts/ArtifactVersionBar.d.ts +42 -0
- package/dist/{files → artifacts}/RedlineParts.d.ts +4 -0
- package/dist/artifacts/editor/ArtifactMarkdownEditor.d.ts +39 -0
- package/dist/artifacts/editor/index.cjs +89 -0
- package/dist/artifacts/editor/index.cjs.map +1 -0
- package/dist/artifacts/editor/index.d.ts +1 -0
- package/dist/artifacts/editor/index.js +86 -0
- package/dist/artifacts/editor/index.js.map +1 -0
- package/dist/artifacts/index.cjs +807 -0
- package/dist/artifacts/index.cjs.map +1 -0
- package/dist/artifacts/index.d.ts +8 -0
- package/dist/artifacts/index.js +787 -0
- package/dist/artifacts/index.js.map +1 -0
- package/dist/chat/ChatMessageContent.d.ts +16 -0
- package/dist/chat/ChatPage.d.ts +11 -8
- package/dist/chat/ChatThreads.d.ts +3 -1
- package/dist/chat/CitationMark.d.ts +18 -0
- package/dist/chat/chat-page-types.d.ts +75 -1
- package/dist/chat/index.cjs +125 -116
- package/dist/chat/index.d.ts +3 -1
- package/dist/chat/index.js +4 -3
- package/dist/{chunk-XKKGGUU2.cjs → chunk-23XL6SVZ.cjs} +39 -19
- package/dist/chunk-23XL6SVZ.cjs.map +1 -0
- package/dist/{chunk-ULWRNGGE.cjs → chunk-2ZTONLT5.cjs} +4 -25
- package/dist/chunk-2ZTONLT5.cjs.map +1 -0
- package/dist/{chunk-O637DUKS.cjs → chunk-56BUD74K.cjs} +28 -28
- package/dist/{chunk-O637DUKS.cjs.map → chunk-56BUD74K.cjs.map} +1 -1
- package/dist/{chunk-ATXPAD6S.cjs → chunk-5SLLMK5K.cjs} +420 -114
- package/dist/chunk-5SLLMK5K.cjs.map +1 -0
- package/dist/{chunk-SS23F63U.cjs → chunk-5ZBP7TCD.cjs} +55 -3
- package/dist/chunk-5ZBP7TCD.cjs.map +1 -0
- package/dist/{chunk-DGVKBOY5.cjs → chunk-67HGXV4I.cjs} +6 -6
- package/dist/{chunk-DGVKBOY5.cjs.map → chunk-67HGXV4I.cjs.map} +1 -1
- package/dist/{chunk-RCP6THBS.js → chunk-7OCFHEE6.js} +3 -3
- package/dist/{chunk-RCP6THBS.js.map → chunk-7OCFHEE6.js.map} +1 -1
- package/dist/{chunk-TX2ZICS7.js → chunk-CPMNAJLF.js} +4 -24
- package/dist/chunk-CPMNAJLF.js.map +1 -0
- package/dist/{chunk-BBEMPS6C.js → chunk-CVFBSUXL.js} +5 -5
- package/dist/{chunk-BBEMPS6C.js.map → chunk-CVFBSUXL.js.map} +1 -1
- package/dist/chunk-DCDVWPMB.cjs +29 -0
- package/dist/chunk-DCDVWPMB.cjs.map +1 -0
- package/dist/{chunk-TI4UTYRL.js → chunk-EY2RJW27.js} +258 -10
- package/dist/chunk-EY2RJW27.js.map +1 -0
- package/dist/{chunk-7YADKWZT.js → chunk-G2E3O3HI.js} +3 -3
- package/dist/{chunk-7YADKWZT.js.map → chunk-G2E3O3HI.js.map} +1 -1
- package/dist/{chunk-JPO3F4J7.js → chunk-G2T3KTZ3.js} +418 -114
- package/dist/chunk-G2T3KTZ3.js.map +1 -0
- package/dist/{chunk-2NNTQLBY.js → chunk-IAKUTBPX.js} +4 -4
- package/dist/{chunk-2NNTQLBY.js.map → chunk-IAKUTBPX.js.map} +1 -1
- package/dist/{chunk-IZHWP6WQ.cjs → chunk-JG4TFS3Z.cjs} +6 -6
- package/dist/{chunk-IZHWP6WQ.cjs.map → chunk-JG4TFS3Z.cjs.map} +1 -1
- package/dist/chunk-JLOYWXRB.js +1156 -0
- package/dist/chunk-JLOYWXRB.js.map +1 -0
- package/dist/{chunk-WJZBJUPX.js → chunk-KXMDOTGW.js} +56 -4
- package/dist/chunk-KXMDOTGW.js.map +1 -0
- package/dist/{chunk-2VBJ763Y.js → chunk-KZJAG7T3.js} +37 -7
- package/dist/chunk-KZJAG7T3.js.map +1 -0
- package/dist/{chunk-RIL7G7AS.cjs → chunk-MGUHR3JI.cjs} +4 -4
- package/dist/{chunk-RIL7G7AS.cjs.map → chunk-MGUHR3JI.cjs.map} +1 -1
- package/dist/{chunk-DN3NFNIA.cjs → chunk-QMDLPO3M.cjs} +266 -10
- package/dist/chunk-QMDLPO3M.cjs.map +1 -0
- package/dist/chunk-TJMKFY5P.js +27 -0
- package/dist/chunk-TJMKFY5P.js.map +1 -0
- package/dist/{chunk-B673CCW5.js → chunk-UHVNYKV2.js} +38 -18
- package/dist/chunk-UHVNYKV2.js.map +1 -0
- package/dist/{chunk-6CHMNKXC.cjs → chunk-UTYQPVIW.cjs} +11 -11
- package/dist/chunk-UTYQPVIW.cjs.map +1 -0
- package/dist/{chunk-KHX2BX3S.cjs → chunk-VGOFFCMT.cjs} +37 -5
- package/dist/chunk-VGOFFCMT.cjs.map +1 -0
- package/dist/{chunk-67MKU5U7.js → chunk-YMHGF6R5.js} +8 -8
- package/dist/chunk-YMHGF6R5.js.map +1 -0
- package/dist/chunk-YVIOCITQ.cjs +1186 -0
- package/dist/chunk-YVIOCITQ.cjs.map +1 -0
- package/dist/collaboration/index.cjs +38 -37
- package/dist/collaboration/index.js +3 -2
- package/dist/connect/index.cjs +358 -19
- package/dist/connect/index.cjs.map +1 -1
- package/dist/connect/index.d.ts +1 -0
- package/dist/connect/index.js +341 -9
- package/dist/connect/index.js.map +1 -1
- package/dist/connection/ConnectedSettings.d.ts +64 -0
- package/dist/facts/index.cjs +1 -1
- package/dist/facts/index.js +1 -1
- package/dist/files/ViewerChrome.d.ts +0 -45
- package/dist/files/ViewerParts.d.ts +0 -19
- package/dist/files/index.cjs +15 -446
- package/dist/files/index.cjs.map +1 -1
- package/dist/files/index.d.ts +2 -4
- package/dist/files/index.js +9 -428
- package/dist/files/index.js.map +1 -1
- package/dist/home/index.cjs +1 -1
- package/dist/home/index.js +1 -1
- package/dist/index.cjs +634 -585
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +19 -18
- package/dist/index.js.map +1 -1
- package/dist/lib/bottom-inset.d.ts +16 -0
- package/dist/lib/useElementSize.d.ts +13 -0
- package/dist/lib/useFillHeight.d.ts +10 -0
- package/dist/settings/account-views.d.ts +55 -0
- package/dist/settings/index.cjs +178 -1147
- package/dist/settings/index.cjs.map +1 -1
- package/dist/settings/index.d.ts +1 -0
- package/dist/settings/index.js +9 -1072
- package/dist/settings/index.js.map +1 -1
- package/dist/shell/InstallPrompt.d.ts +28 -0
- package/dist/shell/MobileBars.d.ts +1 -1
- package/dist/shell/index.cjs +92 -52
- package/dist/shell/index.d.ts +4 -0
- package/dist/shell/index.js +4 -4
- package/dist/shell/install-instructions.d.ts +19 -0
- package/dist/shell/types.d.ts +6 -0
- package/dist/shell/use-install-prompt.d.ts +49 -0
- package/dist/site/index.cjs +67 -67
- package/dist/site/index.js +3 -3
- package/dist/studio/index.cjs +79 -78
- package/dist/studio/index.cjs.map +1 -1
- package/dist/studio/index.js +9 -8
- package/dist/studio/index.js.map +1 -1
- package/dist/theme/ThemeEditor.d.ts +4 -2
- package/dist/workspaces/index.cjs +4 -3
- package/dist/workspaces/index.cjs.map +1 -1
- package/dist/workspaces/index.js +3 -2
- package/dist/workspaces/index.js.map +1 -1
- package/package.json +30 -5
- package/src/blocks.css +30 -0
- package/dist/chunk-2VBJ763Y.js.map +0 -1
- package/dist/chunk-67MKU5U7.js.map +0 -1
- package/dist/chunk-6CHMNKXC.cjs.map +0 -1
- package/dist/chunk-ATXPAD6S.cjs.map +0 -1
- package/dist/chunk-B673CCW5.js.map +0 -1
- package/dist/chunk-DN3NFNIA.cjs.map +0 -1
- package/dist/chunk-JPO3F4J7.js.map +0 -1
- package/dist/chunk-KHX2BX3S.cjs.map +0 -1
- package/dist/chunk-SS23F63U.cjs.map +0 -1
- package/dist/chunk-TI4UTYRL.js.map +0 -1
- package/dist/chunk-TX2ZICS7.js.map +0 -1
- package/dist/chunk-ULWRNGGE.cjs.map +0 -1
- package/dist/chunk-WJZBJUPX.js.map +0 -1
- package/dist/chunk-XKKGGUU2.cjs.map +0 -1
- /package/dist/{files → artifacts}/VersionTimeline.d.ts +0 -0
package/dist/studio/index.cjs
CHANGED
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
var chunkPCB2BPN3_cjs = require('../chunk-PCB2BPN3.cjs');
|
|
4
|
+
var chunkUTYQPVIW_cjs = require('../chunk-UTYQPVIW.cjs');
|
|
5
|
+
var chunk5ZBP7TCD_cjs = require('../chunk-5ZBP7TCD.cjs');
|
|
7
6
|
var chunkELR74ME6_cjs = require('../chunk-ELR74ME6.cjs');
|
|
7
|
+
require('../chunk-VPPX5XUF.cjs');
|
|
8
|
+
var chunkPCB2BPN3_cjs = require('../chunk-PCB2BPN3.cjs');
|
|
8
9
|
var chunkZW6FPIFC_cjs = require('../chunk-ZW6FPIFC.cjs');
|
|
9
10
|
require('../chunk-OB5F4577.cjs');
|
|
10
|
-
var chunkXKKGGUU2_cjs = require('../chunk-XKKGGUU2.cjs');
|
|
11
|
-
require('../chunk-ATXPAD6S.cjs');
|
|
12
|
-
require('../chunk-KHX2BX3S.cjs');
|
|
13
|
-
require('../chunk-VPPX5XUF.cjs');
|
|
14
11
|
var chunkC54XEN5T_cjs = require('../chunk-C54XEN5T.cjs');
|
|
12
|
+
var chunk23XL6SVZ_cjs = require('../chunk-23XL6SVZ.cjs');
|
|
13
|
+
require('../chunk-5SLLMK5K.cjs');
|
|
14
|
+
require('../chunk-VGOFFCMT.cjs');
|
|
15
|
+
require('../chunk-PPCATBOY.cjs');
|
|
15
16
|
var chunkKDG6FER6_cjs = require('../chunk-KDG6FER6.cjs');
|
|
16
17
|
require('../chunk-MHVNT4J3.cjs');
|
|
17
18
|
var lucideReact = require('lucide-react');
|
|
@@ -53,7 +54,7 @@ function WidgetPlaceholder({
|
|
|
53
54
|
);
|
|
54
55
|
}
|
|
55
56
|
function useActiveWorkspaceId() {
|
|
56
|
-
const { workspaceId, fallbackWorkspaceId } =
|
|
57
|
+
const { workspaceId, fallbackWorkspaceId } = chunk23XL6SVZ_cjs.useConnection();
|
|
57
58
|
return workspaceId ?? fallbackWorkspaceId ?? void 0;
|
|
58
59
|
}
|
|
59
60
|
function timeAgo(iso) {
|
|
@@ -115,7 +116,7 @@ function LiveMetricInner({
|
|
|
115
116
|
const query = source === "documents" ? docs : convos;
|
|
116
117
|
const count = Array.isArray(query.data) ? query.data.length : 0;
|
|
117
118
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
118
|
-
|
|
119
|
+
chunkUTYQPVIW_cjs.MetricCard,
|
|
119
120
|
{
|
|
120
121
|
label: label || METRIC_SOURCES[source].label,
|
|
121
122
|
value: query.isLoading ? "\u2014" : String(count),
|
|
@@ -239,7 +240,7 @@ function createArbiMaterializer(arbi, opts = {}) {
|
|
|
239
240
|
}
|
|
240
241
|
function collectAssetRefs(node, acc) {
|
|
241
242
|
if (typeof node === "string") {
|
|
242
|
-
if (
|
|
243
|
+
if (chunk5ZBP7TCD_cjs.isAssetRef(node)) acc.add(node);
|
|
243
244
|
return;
|
|
244
245
|
}
|
|
245
246
|
if (Array.isArray(node)) {
|
|
@@ -273,7 +274,7 @@ async function materializePageData(data, materialize) {
|
|
|
273
274
|
const replacements = /* @__PURE__ */ new Map();
|
|
274
275
|
await Promise.all(
|
|
275
276
|
[...refs].map(async (ref) => {
|
|
276
|
-
const src = await materialize(
|
|
277
|
+
const src = await materialize(chunk5ZBP7TCD_cjs.assetRefId(ref));
|
|
277
278
|
if (src) replacements.set(ref, src);
|
|
278
279
|
})
|
|
279
280
|
);
|
|
@@ -379,7 +380,7 @@ function StudioEditor({
|
|
|
379
380
|
radius: stored.radius ?? defaultTheme.radius,
|
|
380
381
|
activePresetId: null
|
|
381
382
|
});
|
|
382
|
-
|
|
383
|
+
chunk5ZBP7TCD_cjs.applyStoredTheme(themeBundle);
|
|
383
384
|
})();
|
|
384
385
|
return () => {
|
|
385
386
|
cancelled = true;
|
|
@@ -485,7 +486,7 @@ function StudioEditor({
|
|
|
485
486
|
"\u201D\u2026"
|
|
486
487
|
]
|
|
487
488
|
}
|
|
488
|
-
) : /* @__PURE__ */ jsxRuntime.jsx(
|
|
489
|
+
) : /* @__PURE__ */ jsxRuntime.jsx(chunk5ZBP7TCD_cjs.AssetResolverProvider, { render: AssetThumb, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
489
490
|
puck.Puck,
|
|
490
491
|
{
|
|
491
492
|
config,
|
|
@@ -503,7 +504,7 @@ function StudioEditor({
|
|
|
503
504
|
className: "w-80 shrink-0 border-l border-border",
|
|
504
505
|
"data-testid": `${testIdPrefix}-theme-drawer`,
|
|
505
506
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
506
|
-
|
|
507
|
+
chunk5ZBP7TCD_cjs.ThemeEditor,
|
|
507
508
|
{
|
|
508
509
|
bundle: themeBundle,
|
|
509
510
|
variant: "drawer",
|
|
@@ -545,7 +546,7 @@ function PageRenderer({
|
|
|
545
546
|
const page = initialData ?? (await persistence.loadPublished(arbi, live, slug)).data ?? (await persistence.loadPage(arbi, live, slug)).data;
|
|
546
547
|
if (cancelled) return;
|
|
547
548
|
if (applyTheme) {
|
|
548
|
-
|
|
549
|
+
chunk5ZBP7TCD_cjs.applyThemeVars(
|
|
549
550
|
theme ? { ...defaultTheme, ...theme, colors: { ...defaultTheme.colors, ...theme.colors } } : defaultTheme
|
|
550
551
|
);
|
|
551
552
|
}
|
|
@@ -789,7 +790,7 @@ function AiTextField({
|
|
|
789
790
|
setActive(true);
|
|
790
791
|
await task.run(buildPrompt({ kind, label, current: value ?? "" }), docIds);
|
|
791
792
|
};
|
|
792
|
-
const inputTid =
|
|
793
|
+
const inputTid = chunk5ZBP7TCD_cjs.tid(`${testIdPrefix}-field`, name);
|
|
793
794
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "al-ai-field", children: [
|
|
794
795
|
multiline ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
795
796
|
"textarea",
|
|
@@ -818,7 +819,7 @@ function AiTextField({
|
|
|
818
819
|
className: "al-ai-field__btn",
|
|
819
820
|
onClick: () => void write(),
|
|
820
821
|
disabled: task.isRunning,
|
|
821
|
-
"data-testid":
|
|
822
|
+
"data-testid": chunk5ZBP7TCD_cjs.tid(`${testIdPrefix}-ai-write`, name),
|
|
822
823
|
title: "Draft this field with AI, grounded in the marketing workspace",
|
|
823
824
|
children: [
|
|
824
825
|
task.isRunning ? /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Loader2, { className: "size-3 animate-spin" }) : /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Sparkles, { className: "size-3" }),
|
|
@@ -878,7 +879,7 @@ function latestImageDocId(artifacts) {
|
|
|
878
879
|
return null;
|
|
879
880
|
}
|
|
880
881
|
function useImageGen() {
|
|
881
|
-
const task =
|
|
882
|
+
const task = chunk23XL6SVZ_cjs.useConnectedAiTask();
|
|
882
883
|
const { run } = task;
|
|
883
884
|
const generate = react.useCallback(
|
|
884
885
|
async (prompt, referenceDocIds = []) => {
|
|
@@ -921,8 +922,8 @@ function ImageFieldControl({
|
|
|
921
922
|
const arbi = react$1.useArbi();
|
|
922
923
|
const gen = useImageGen();
|
|
923
924
|
const queryClient = reactQuery.useQueryClient();
|
|
924
|
-
const currentAssetImage = useAssetImage(
|
|
925
|
-
const tp = (...q) =>
|
|
925
|
+
const currentAssetImage = useAssetImage(chunk5ZBP7TCD_cjs.isAssetRef(value) ? chunk5ZBP7TCD_cjs.assetRefId(value) : "");
|
|
926
|
+
const tp = (...q) => chunk5ZBP7TCD_cjs.tid(`${testIdPrefix}-image`, name, ...q);
|
|
926
927
|
const refreshAssets = () => queryClient.invalidateQueries({ queryKey: ["arbi", "documents", workspaceId] });
|
|
927
928
|
const { data: docs } = react$1.useDocuments(workspaceId);
|
|
928
929
|
const imageDocs = react.useMemo(
|
|
@@ -956,7 +957,7 @@ function ImageFieldControl({
|
|
|
956
957
|
const res = await arbi.documents.uploadFile(file, name2, { folder });
|
|
957
958
|
const id = res.doc_ext_ids?.[0];
|
|
958
959
|
if (id) {
|
|
959
|
-
onChange(
|
|
960
|
+
onChange(chunk5ZBP7TCD_cjs.asAssetRef(id));
|
|
960
961
|
void refreshAssets();
|
|
961
962
|
}
|
|
962
963
|
} finally {
|
|
@@ -974,7 +975,7 @@ function ImageFieldControl({
|
|
|
974
975
|
if (!prompt.trim() || gen.isGenerating) return;
|
|
975
976
|
const id = await gen.generate(prompt, refIds);
|
|
976
977
|
if (id) {
|
|
977
|
-
onChange(
|
|
978
|
+
onChange(chunk5ZBP7TCD_cjs.asAssetRef(id));
|
|
978
979
|
setRefIds([]);
|
|
979
980
|
void refreshAssets();
|
|
980
981
|
}
|
|
@@ -989,7 +990,7 @@ function ImageFieldControl({
|
|
|
989
990
|
const tabClass = (on) => `inline-flex items-center gap-1 rounded-md px-2 py-1 text-xs font-medium ${on ? "bg-primary text-primary-foreground" : "text-muted-foreground hover:text-foreground"}`;
|
|
990
991
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col gap-2", "data-testid": tp(), children: [
|
|
991
992
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "relative", children: [
|
|
992
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
993
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunk5ZBP7TCD_cjs.BlockImage, { src: value, aspect: "16:9", rounded: "md", testId: tp("preview") }),
|
|
993
994
|
currentAssetImage ? /* @__PURE__ */ jsxRuntime.jsxs(
|
|
994
995
|
"button",
|
|
995
996
|
{
|
|
@@ -1023,12 +1024,12 @@ function ImageFieldControl({
|
|
|
1023
1024
|
imageDocs.length === 0 && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "col-span-3 py-3 text-center text-xs text-muted-foreground", children: "No image assets yet \u2014 upload or generate one." }),
|
|
1024
1025
|
imageDocs.map((d) => {
|
|
1025
1026
|
const thumb = thumbs?.[d.external_id];
|
|
1026
|
-
const selected = value ===
|
|
1027
|
+
const selected = value === chunk5ZBP7TCD_cjs.asAssetRef(d.external_id);
|
|
1027
1028
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1028
1029
|
"button",
|
|
1029
1030
|
{
|
|
1030
1031
|
type: "button",
|
|
1031
|
-
onClick: () => onChange(
|
|
1032
|
+
onClick: () => onChange(chunk5ZBP7TCD_cjs.asAssetRef(d.external_id)),
|
|
1032
1033
|
className: `overflow-hidden rounded border ${selected ? "border-primary ring-1 ring-primary" : "border-border"}`,
|
|
1033
1034
|
title: d.file_name ?? "",
|
|
1034
1035
|
"data-testid": tp("asset", d.external_id),
|
|
@@ -1090,14 +1091,14 @@ function ImageFieldControl({
|
|
|
1090
1091
|
"Reference images",
|
|
1091
1092
|
refIds.length > 0 ? ` (${refIds.length})` : " (optional)"
|
|
1092
1093
|
] }),
|
|
1093
|
-
|
|
1094
|
+
chunk5ZBP7TCD_cjs.isAssetRef(value) && /* @__PURE__ */ jsxRuntime.jsx(
|
|
1094
1095
|
"button",
|
|
1095
1096
|
{
|
|
1096
1097
|
type: "button",
|
|
1097
1098
|
className: "text-xs font-medium text-primary hover:underline",
|
|
1098
|
-
onClick: () => toggleRef(
|
|
1099
|
+
onClick: () => toggleRef(chunk5ZBP7TCD_cjs.assetRefId(value)),
|
|
1099
1100
|
"data-testid": tp("vary-current"),
|
|
1100
|
-
children: refIds.includes(
|
|
1101
|
+
children: refIds.includes(chunk5ZBP7TCD_cjs.assetRefId(value)) ? "Varying current" : "Vary current image"
|
|
1101
1102
|
}
|
|
1102
1103
|
)
|
|
1103
1104
|
] }),
|
|
@@ -1311,7 +1312,7 @@ function createBlockKit(ai, image, eyebrowClassName) {
|
|
|
1311
1312
|
}),
|
|
1312
1313
|
iconField: (label = "Icon") => ({ type: "select", label, options: ICON_OPTIONS }),
|
|
1313
1314
|
resolveIcon: (name) => name ? iconMap[name] : void 0,
|
|
1314
|
-
blockTestId: (id) =>
|
|
1315
|
+
blockTestId: (id) => chunk5ZBP7TCD_cjs.tid("arbi-block", id)
|
|
1315
1316
|
};
|
|
1316
1317
|
}
|
|
1317
1318
|
var emptySlot = [];
|
|
@@ -1376,7 +1377,7 @@ function createWebsiteBlocks(kit) {
|
|
|
1376
1377
|
render: ({ id, count, gap, col1, col2, col3, col4 }) => {
|
|
1377
1378
|
const n = Number(count) || 3;
|
|
1378
1379
|
const columns = [col1, col2, col3, col4].slice(0, n).map(renderSlot);
|
|
1379
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1380
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunk5ZBP7TCD_cjs.Columns, { count: n, gap, columns, testId: blockTestId(id) });
|
|
1380
1381
|
}
|
|
1381
1382
|
};
|
|
1382
1383
|
const SpacerBlock = {
|
|
@@ -1394,7 +1395,7 @@ function createWebsiteBlocks(kit) {
|
|
|
1394
1395
|
}
|
|
1395
1396
|
},
|
|
1396
1397
|
defaultProps: { size: "md" },
|
|
1397
|
-
render: ({ id, size }) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1398
|
+
render: ({ id, size }) => /* @__PURE__ */ jsxRuntime.jsx(chunk5ZBP7TCD_cjs.Spacer, { size, testId: blockTestId(id) })
|
|
1398
1399
|
};
|
|
1399
1400
|
const ContainerBlock = {
|
|
1400
1401
|
label: "Container",
|
|
@@ -1422,7 +1423,7 @@ function createWebsiteBlocks(kit) {
|
|
|
1422
1423
|
children: { type: "slot" }
|
|
1423
1424
|
},
|
|
1424
1425
|
defaultProps: { width: "default", padding: "md", children: emptySlot },
|
|
1425
|
-
render: ({ id, width, padding, children }) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1426
|
+
render: ({ id, width, padding, children }) => /* @__PURE__ */ jsxRuntime.jsx(chunk5ZBP7TCD_cjs.Container, { width, padding, testId: blockTestId(id), children: renderSlot(children) })
|
|
1426
1427
|
};
|
|
1427
1428
|
const HeroBlock = {
|
|
1428
1429
|
label: "Hero",
|
|
@@ -1473,7 +1474,7 @@ function createWebsiteBlocks(kit) {
|
|
|
1473
1474
|
backgroundImage,
|
|
1474
1475
|
overlay
|
|
1475
1476
|
}) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1476
|
-
|
|
1477
|
+
chunk5ZBP7TCD_cjs.Hero,
|
|
1477
1478
|
{
|
|
1478
1479
|
eyebrow,
|
|
1479
1480
|
title,
|
|
@@ -1545,7 +1546,7 @@ function createWebsiteBlocks(kit) {
|
|
|
1545
1546
|
icon: resolveIcon(it.icon)
|
|
1546
1547
|
})
|
|
1547
1548
|
);
|
|
1548
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1549
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunk5ZBP7TCD_cjs.FeatureGrid, { columns, items: list, testId: blockTestId(id) });
|
|
1549
1550
|
}
|
|
1550
1551
|
};
|
|
1551
1552
|
const StatGroupBlock = {
|
|
@@ -1570,7 +1571,7 @@ function createWebsiteBlocks(kit) {
|
|
|
1570
1571
|
{ value: "24/7", label: "Support" }
|
|
1571
1572
|
]
|
|
1572
1573
|
},
|
|
1573
|
-
render: ({ id, items }) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1574
|
+
render: ({ id, items }) => /* @__PURE__ */ jsxRuntime.jsx(chunkUTYQPVIW_cjs.StatGroup, { items, testId: blockTestId(id) })
|
|
1574
1575
|
};
|
|
1575
1576
|
const TestimonialBlock = {
|
|
1576
1577
|
label: "Testimonial",
|
|
@@ -1587,7 +1588,7 @@ function createWebsiteBlocks(kit) {
|
|
|
1587
1588
|
avatarUrl: ""
|
|
1588
1589
|
},
|
|
1589
1590
|
render: ({ id, quote, author, role, avatarUrl }) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1590
|
-
|
|
1591
|
+
chunk5ZBP7TCD_cjs.Testimonial,
|
|
1591
1592
|
{
|
|
1592
1593
|
quote,
|
|
1593
1594
|
author,
|
|
@@ -1616,7 +1617,7 @@ function createWebsiteBlocks(kit) {
|
|
|
1616
1617
|
overlay: true
|
|
1617
1618
|
},
|
|
1618
1619
|
render: ({ id, title, subtitle, cta, tone, backgroundImage, overlay }) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1619
|
-
|
|
1620
|
+
chunk5ZBP7TCD_cjs.CTABanner,
|
|
1620
1621
|
{
|
|
1621
1622
|
title,
|
|
1622
1623
|
subtitle,
|
|
@@ -1648,7 +1649,7 @@ function createWebsiteBlocks(kit) {
|
|
|
1648
1649
|
{ label: "Umbrella" }
|
|
1649
1650
|
]
|
|
1650
1651
|
},
|
|
1651
|
-
render: ({ id, items }) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1652
|
+
render: ({ id, items }) => /* @__PURE__ */ jsxRuntime.jsx(chunk5ZBP7TCD_cjs.LogoCloud, { items, testId: blockTestId(id) })
|
|
1652
1653
|
};
|
|
1653
1654
|
const FAQBlock = {
|
|
1654
1655
|
label: "FAQ",
|
|
@@ -1680,7 +1681,7 @@ function createWebsiteBlocks(kit) {
|
|
|
1680
1681
|
}
|
|
1681
1682
|
]
|
|
1682
1683
|
},
|
|
1683
|
-
render: ({ id, items }) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1684
|
+
render: ({ id, items }) => /* @__PURE__ */ jsxRuntime.jsx(chunk5ZBP7TCD_cjs.FAQ, { items, testId: blockTestId(id) })
|
|
1684
1685
|
};
|
|
1685
1686
|
const TimelineBlockConfig = {
|
|
1686
1687
|
label: "Timeline",
|
|
@@ -1755,7 +1756,7 @@ function createWebsiteBlocks(kit) {
|
|
|
1755
1756
|
defaultProps: {
|
|
1756
1757
|
content: "## About us\n\nWe build tools that help teams do their best work. Our platform combines **power** and _simplicity_ so you can focus on what matters.\n\n- Fast to learn\n- Easy to scale\n- Loved by teams"
|
|
1757
1758
|
},
|
|
1758
|
-
render: ({ id, content }) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1759
|
+
render: ({ id, content }) => /* @__PURE__ */ jsxRuntime.jsx(chunk5ZBP7TCD_cjs.RichTextBlock, { content, testId: blockTestId(id) })
|
|
1759
1760
|
};
|
|
1760
1761
|
const CalloutBlock = {
|
|
1761
1762
|
label: "Callout",
|
|
@@ -1809,7 +1810,7 @@ function createWebsiteBlocks(kit) {
|
|
|
1809
1810
|
},
|
|
1810
1811
|
defaultProps: { src: "", alt: "Image", aspect: "16:9", rounded: "lg", framed: false },
|
|
1811
1812
|
render: ({ id, src, alt, aspect, rounded, framed }) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1812
|
-
|
|
1813
|
+
chunk5ZBP7TCD_cjs.BlockImage,
|
|
1813
1814
|
{
|
|
1814
1815
|
src,
|
|
1815
1816
|
alt,
|
|
@@ -1837,7 +1838,7 @@ function createWebsiteBlocks(kit) {
|
|
|
1837
1838
|
}
|
|
1838
1839
|
},
|
|
1839
1840
|
defaultProps: { src: "", name: "Jane Doe", size: "md" },
|
|
1840
|
-
render: ({ id, src, name, size }) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1841
|
+
render: ({ id, src, name, size }) => /* @__PURE__ */ jsxRuntime.jsx(chunk5ZBP7TCD_cjs.AvatarBlock, { src, name, size, testId: blockTestId(id) })
|
|
1841
1842
|
};
|
|
1842
1843
|
const NavbarBlock = {
|
|
1843
1844
|
label: "Navbar",
|
|
@@ -1865,7 +1866,7 @@ function createWebsiteBlocks(kit) {
|
|
|
1865
1866
|
],
|
|
1866
1867
|
cta: { label: "Sign up", href: "#" }
|
|
1867
1868
|
},
|
|
1868
|
-
render: ({ id, brand, links, cta }) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1869
|
+
render: ({ id, brand, links, cta }) => /* @__PURE__ */ jsxRuntime.jsx(chunk5ZBP7TCD_cjs.Navbar, { brand, links, cta, testId: blockTestId(id) })
|
|
1869
1870
|
};
|
|
1870
1871
|
const FooterBlock = {
|
|
1871
1872
|
label: "Footer",
|
|
@@ -1924,7 +1925,7 @@ function createWebsiteBlocks(kit) {
|
|
|
1924
1925
|
],
|
|
1925
1926
|
copyright: "\xA9 2026 Acme, Inc. All rights reserved."
|
|
1926
1927
|
},
|
|
1927
|
-
render: ({ id, columns, copyright }) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1928
|
+
render: ({ id, columns, copyright }) => /* @__PURE__ */ jsxRuntime.jsx(chunk5ZBP7TCD_cjs.Footer, { columns, copyright, testId: blockTestId(id) })
|
|
1928
1929
|
};
|
|
1929
1930
|
const ListBlockConfig = {
|
|
1930
1931
|
label: "List",
|
|
@@ -1942,7 +1943,7 @@ function createWebsiteBlocks(kit) {
|
|
|
1942
1943
|
ordered: false,
|
|
1943
1944
|
items: [{ text: "First item" }, { text: "Second item" }, { text: "Third item" }]
|
|
1944
1945
|
},
|
|
1945
|
-
render: ({ id, ordered, items }) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1946
|
+
render: ({ id, ordered, items }) => /* @__PURE__ */ jsxRuntime.jsx(chunk5ZBP7TCD_cjs.ListBlock, { ordered, items, testId: blockTestId(id) })
|
|
1946
1947
|
};
|
|
1947
1948
|
return {
|
|
1948
1949
|
Columns: ColumnsBlock,
|
|
@@ -2045,7 +2046,7 @@ function createSiteBlocks(kit) {
|
|
|
2045
2046
|
]
|
|
2046
2047
|
},
|
|
2047
2048
|
render: ({ id, plans }) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2048
|
-
|
|
2049
|
+
chunk5ZBP7TCD_cjs.PricingTable,
|
|
2049
2050
|
{
|
|
2050
2051
|
plans: (plans ?? []).map(
|
|
2051
2052
|
(p) => ({
|
|
@@ -2083,7 +2084,7 @@ function createSiteBlocks(kit) {
|
|
|
2083
2084
|
{ label: "FAQ", content: "Answers to common questions." }
|
|
2084
2085
|
]
|
|
2085
2086
|
},
|
|
2086
|
-
render: ({ id, items }) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2087
|
+
render: ({ id, items }) => /* @__PURE__ */ jsxRuntime.jsx(chunk5ZBP7TCD_cjs.Tabs, { items, testId: blockTestId(id) })
|
|
2087
2088
|
};
|
|
2088
2089
|
const AccordionBlock = {
|
|
2089
2090
|
label: "Accordion",
|
|
@@ -2107,7 +2108,7 @@ function createSiteBlocks(kit) {
|
|
|
2107
2108
|
{ title: "How does billing work?", content: "Monthly or annually, cancel anytime." }
|
|
2108
2109
|
]
|
|
2109
2110
|
},
|
|
2110
|
-
render: ({ id, allowMultiple, items }) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2111
|
+
render: ({ id, allowMultiple, items }) => /* @__PURE__ */ jsxRuntime.jsx(chunk5ZBP7TCD_cjs.Accordion, { allowMultiple, items, testId: blockTestId(id) })
|
|
2111
2112
|
};
|
|
2112
2113
|
const GalleryBlock = {
|
|
2113
2114
|
label: "Gallery",
|
|
@@ -2143,7 +2144,7 @@ function createSiteBlocks(kit) {
|
|
|
2143
2144
|
{ src: "", alt: "Image three", caption: "" }
|
|
2144
2145
|
]
|
|
2145
2146
|
},
|
|
2146
|
-
render: ({ id, columns, aspect, images }) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2147
|
+
render: ({ id, columns, aspect, images }) => /* @__PURE__ */ jsxRuntime.jsx(chunk5ZBP7TCD_cjs.Gallery, { columns, aspect, images, testId: blockTestId(id) })
|
|
2147
2148
|
};
|
|
2148
2149
|
const VideoBlock = {
|
|
2149
2150
|
label: "Video",
|
|
@@ -2163,7 +2164,7 @@ function createSiteBlocks(kit) {
|
|
|
2163
2164
|
},
|
|
2164
2165
|
defaultProps: { url: "", title: "", aspect: "16:9", rounded: true },
|
|
2165
2166
|
render: ({ id, url, title, aspect, rounded }) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2166
|
-
|
|
2167
|
+
chunk5ZBP7TCD_cjs.VideoEmbed,
|
|
2167
2168
|
{
|
|
2168
2169
|
url,
|
|
2169
2170
|
title,
|
|
@@ -2212,7 +2213,7 @@ function createSiteBlocks(kit) {
|
|
|
2212
2213
|
]
|
|
2213
2214
|
},
|
|
2214
2215
|
render: ({ id, submitLabel, action, successMessage, fields }) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2215
|
-
|
|
2216
|
+
chunk5ZBP7TCD_cjs.ContactForm,
|
|
2216
2217
|
{
|
|
2217
2218
|
submitLabel,
|
|
2218
2219
|
action: action || void 0,
|
|
@@ -2242,7 +2243,7 @@ function createSiteBlocks(kit) {
|
|
|
2242
2243
|
cta: { label: "Read more", href: "#" },
|
|
2243
2244
|
tone: "primary"
|
|
2244
2245
|
},
|
|
2245
|
-
render: ({ id, text, cta, tone }) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2246
|
+
render: ({ id, text, cta, tone }) => /* @__PURE__ */ jsxRuntime.jsx(chunk5ZBP7TCD_cjs.Banner, { text, cta, tone, testId: blockTestId(id) })
|
|
2246
2247
|
};
|
|
2247
2248
|
const MediaTextBlock = {
|
|
2248
2249
|
label: "Media & text",
|
|
@@ -2270,7 +2271,7 @@ function createSiteBlocks(kit) {
|
|
|
2270
2271
|
cta: { label: "Learn more", href: "#" }
|
|
2271
2272
|
},
|
|
2272
2273
|
render: ({ id, eyebrow, title, body, imageUrl, mediaSide, cta }) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2273
|
-
|
|
2274
|
+
chunk5ZBP7TCD_cjs.MediaText,
|
|
2274
2275
|
{
|
|
2275
2276
|
eyebrow,
|
|
2276
2277
|
title,
|
|
@@ -2307,7 +2308,7 @@ function createSiteBlocks(kit) {
|
|
|
2307
2308
|
{ name: "Jordan Lee", role: "Lead Engineer", bio: "", avatarUrl: "" }
|
|
2308
2309
|
]
|
|
2309
2310
|
},
|
|
2310
|
-
render: ({ id, columns, members }) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2311
|
+
render: ({ id, columns, members }) => /* @__PURE__ */ jsxRuntime.jsx(chunk5ZBP7TCD_cjs.TeamGrid, { columns, members, testId: blockTestId(id) })
|
|
2311
2312
|
};
|
|
2312
2313
|
const StepsBlock = {
|
|
2313
2314
|
label: "Steps",
|
|
@@ -2339,7 +2340,7 @@ function createSiteBlocks(kit) {
|
|
|
2339
2340
|
{ title: "Launch", description: "Go live and start seeing results." }
|
|
2340
2341
|
]
|
|
2341
2342
|
},
|
|
2342
|
-
render: ({ id, variant, steps }) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2343
|
+
render: ({ id, variant, steps }) => /* @__PURE__ */ jsxRuntime.jsx(chunk5ZBP7TCD_cjs.Steps, { variant, steps, testId: blockTestId(id) })
|
|
2343
2344
|
};
|
|
2344
2345
|
const TestimonialGridBlock = {
|
|
2345
2346
|
label: "Testimonial grid",
|
|
@@ -2381,7 +2382,7 @@ function createSiteBlocks(kit) {
|
|
|
2381
2382
|
}
|
|
2382
2383
|
]
|
|
2383
2384
|
},
|
|
2384
|
-
render: ({ id, columns, items }) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2385
|
+
render: ({ id, columns, items }) => /* @__PURE__ */ jsxRuntime.jsx(chunk5ZBP7TCD_cjs.TestimonialGrid, { columns, items, testId: blockTestId(id) })
|
|
2385
2386
|
};
|
|
2386
2387
|
return {
|
|
2387
2388
|
Pricing: PricingBlock,
|
|
@@ -2425,7 +2426,7 @@ function createArbiBlocksConfig(opts = {}) {
|
|
|
2425
2426
|
},
|
|
2426
2427
|
defaultProps: { title: "Section title", align: "left", invert: false },
|
|
2427
2428
|
render: ({ id, title, eyebrow, lead, align, invert }) => /* @__PURE__ */ jsxRuntime.jsx("div", { "data-testid": blockTestId(id), children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2428
|
-
|
|
2429
|
+
chunk5ZBP7TCD_cjs.SectionHeading,
|
|
2429
2430
|
{
|
|
2430
2431
|
title,
|
|
2431
2432
|
eyebrow,
|
|
@@ -2448,7 +2449,7 @@ function createArbiBlocksConfig(opts = {}) {
|
|
|
2448
2449
|
},
|
|
2449
2450
|
defaultProps: { title: "Page title", actions: emptySlot2 },
|
|
2450
2451
|
render: ({ id, title, eyebrow, description, actions: Actions }) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2451
|
-
|
|
2452
|
+
chunkUTYQPVIW_cjs.PageHeader,
|
|
2452
2453
|
{
|
|
2453
2454
|
title,
|
|
2454
2455
|
eyebrow,
|
|
@@ -2515,7 +2516,7 @@ function createArbiBlocksConfig(opts = {}) {
|
|
|
2515
2516
|
},
|
|
2516
2517
|
defaultProps: { label: "Metric", value: "0", accent: "default" },
|
|
2517
2518
|
render: ({ id, label, value, hint, accent, delta, icon }) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2518
|
-
|
|
2519
|
+
chunkUTYQPVIW_cjs.MetricCard,
|
|
2519
2520
|
{
|
|
2520
2521
|
label,
|
|
2521
2522
|
value,
|
|
@@ -2631,7 +2632,7 @@ function createArbiBlocksConfig(opts = {}) {
|
|
|
2631
2632
|
field: col.field || `col-${index}`
|
|
2632
2633
|
}));
|
|
2633
2634
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2634
|
-
|
|
2635
|
+
chunkUTYQPVIW_cjs.DataTableBlock,
|
|
2635
2636
|
{
|
|
2636
2637
|
columns: normalisedCols,
|
|
2637
2638
|
rows: recordRows,
|
|
@@ -3019,7 +3020,7 @@ function ModuleManager({ store, testIdPrefix = "builder" }) {
|
|
|
3019
3020
|
{
|
|
3020
3021
|
variant: "elevated",
|
|
3021
3022
|
className: "rounded-lg",
|
|
3022
|
-
"data-testid":
|
|
3023
|
+
"data-testid": chunk5ZBP7TCD_cjs.tid(`${testIdPrefix}-modules-section`, group.section),
|
|
3023
3024
|
children: [
|
|
3024
3025
|
/* @__PURE__ */ jsxRuntime.jsx(ui.CardHeader, { children: /* @__PURE__ */ jsxRuntime.jsx(ui.CardTitle, { className: "text-base", children: group.section }) }),
|
|
3025
3026
|
/* @__PURE__ */ jsxRuntime.jsx(ui.CardContent, { className: "space-y-1.5", children: group.modules.map((m, idx) => {
|
|
@@ -3028,7 +3029,7 @@ function ModuleManager({ store, testIdPrefix = "builder" }) {
|
|
|
3028
3029
|
"div",
|
|
3029
3030
|
{
|
|
3030
3031
|
className: "flex items-center gap-3 rounded-md border border-border/60 bg-card px-3 py-2",
|
|
3031
|
-
"data-testid":
|
|
3032
|
+
"data-testid": chunk5ZBP7TCD_cjs.tid(`${testIdPrefix}-module`, m.id),
|
|
3032
3033
|
children: [
|
|
3033
3034
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col", children: [
|
|
3034
3035
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -3040,7 +3041,7 @@ function ModuleManager({ store, testIdPrefix = "builder" }) {
|
|
|
3040
3041
|
disabled: idx === 0,
|
|
3041
3042
|
onClick: () => move(m.id, "up"),
|
|
3042
3043
|
"aria-label": `Move ${m.label} up`,
|
|
3043
|
-
"data-testid":
|
|
3044
|
+
"data-testid": chunk5ZBP7TCD_cjs.tid(`${testIdPrefix}-module-up`, m.id),
|
|
3044
3045
|
children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronUp, { className: "size-3.5" })
|
|
3045
3046
|
}
|
|
3046
3047
|
),
|
|
@@ -3053,7 +3054,7 @@ function ModuleManager({ store, testIdPrefix = "builder" }) {
|
|
|
3053
3054
|
disabled: idx === group.modules.length - 1,
|
|
3054
3055
|
onClick: () => move(m.id, "down"),
|
|
3055
3056
|
"aria-label": `Move ${m.label} down`,
|
|
3056
|
-
"data-testid":
|
|
3057
|
+
"data-testid": chunk5ZBP7TCD_cjs.tid(`${testIdPrefix}-module-down`, m.id),
|
|
3057
3058
|
children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronDown, { className: "size-3.5" })
|
|
3058
3059
|
}
|
|
3059
3060
|
)
|
|
@@ -3073,7 +3074,7 @@ function ModuleManager({ store, testIdPrefix = "builder" }) {
|
|
|
3073
3074
|
checked: m.enabled,
|
|
3074
3075
|
onCheckedChange: () => toggle2(m.id),
|
|
3075
3076
|
"aria-label": `Enable ${m.label}`,
|
|
3076
|
-
"data-testid":
|
|
3077
|
+
"data-testid": chunk5ZBP7TCD_cjs.tid(`${testIdPrefix}-module-toggle`, m.id)
|
|
3077
3078
|
}
|
|
3078
3079
|
)
|
|
3079
3080
|
]
|
|
@@ -3105,7 +3106,7 @@ function ConfigModelBadge({ configId, testIdPrefix }) {
|
|
|
3105
3106
|
ui.Badge,
|
|
3106
3107
|
{
|
|
3107
3108
|
variant: TIER_VARIANT[tier] ?? "secondary",
|
|
3108
|
-
"data-testid":
|
|
3109
|
+
"data-testid": chunk5ZBP7TCD_cjs.tid(`${testIdPrefix}-agents-config-tier`, configId),
|
|
3109
3110
|
children: [
|
|
3110
3111
|
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.Cpu, { className: "size-3" }),
|
|
3111
3112
|
" ",
|
|
@@ -3142,14 +3143,14 @@ function AgentsPanel({ store, testIdPrefix = "builder" }) {
|
|
|
3142
3143
|
"label",
|
|
3143
3144
|
{
|
|
3144
3145
|
className: "flex cursor-pointer items-center gap-3 rounded-md border border-border/60 bg-card px-3 py-2",
|
|
3145
|
-
"data-testid":
|
|
3146
|
+
"data-testid": chunk5ZBP7TCD_cjs.tid(`${testIdPrefix}-agents-config`, v.external_id),
|
|
3146
3147
|
children: [
|
|
3147
3148
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3148
3149
|
ui.Checkbox,
|
|
3149
3150
|
{
|
|
3150
3151
|
checked: configIds.includes(v.external_id),
|
|
3151
3152
|
onCheckedChange: () => toggleConfig(v.external_id),
|
|
3152
|
-
"data-testid":
|
|
3153
|
+
"data-testid": chunk5ZBP7TCD_cjs.tid(`${testIdPrefix}-agents-config-toggle`, v.external_id)
|
|
3153
3154
|
}
|
|
3154
3155
|
),
|
|
3155
3156
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "min-w-0 flex-1", children: [
|
|
@@ -3178,14 +3179,14 @@ function AgentsPanel({ store, testIdPrefix = "builder" }) {
|
|
|
3178
3179
|
"label",
|
|
3179
3180
|
{
|
|
3180
3181
|
className: "flex cursor-pointer items-center gap-3 rounded-md border border-border/60 bg-card px-3 py-2",
|
|
3181
|
-
"data-testid":
|
|
3182
|
+
"data-testid": chunk5ZBP7TCD_cjs.tid(`${testIdPrefix}-agents-agent`, a.external_id),
|
|
3182
3183
|
children: [
|
|
3183
3184
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3184
3185
|
ui.Checkbox,
|
|
3185
3186
|
{
|
|
3186
3187
|
checked: agentIds.includes(a.external_id),
|
|
3187
3188
|
onCheckedChange: () => toggleAgent(a.external_id),
|
|
3188
|
-
"data-testid":
|
|
3189
|
+
"data-testid": chunk5ZBP7TCD_cjs.tid(`${testIdPrefix}-agents-agent-toggle`, a.external_id)
|
|
3189
3190
|
}
|
|
3190
3191
|
),
|
|
3191
3192
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "min-w-0 flex-1", children: [
|
|
@@ -3272,7 +3273,7 @@ function VerticalBuilder({
|
|
|
3272
3273
|
] })
|
|
3273
3274
|
] }),
|
|
3274
3275
|
/* @__PURE__ */ jsxRuntime.jsx(ui.TabsContent, { value: "theme", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
3275
|
-
|
|
3276
|
+
chunk5ZBP7TCD_cjs.ThemeEditor,
|
|
3276
3277
|
{
|
|
3277
3278
|
bundle: themeBundle,
|
|
3278
3279
|
variant: "panel",
|
|
@@ -3298,31 +3299,31 @@ function VerticalBuilder({
|
|
|
3298
3299
|
|
|
3299
3300
|
Object.defineProperty(exports, "ASSET_REF_PREFIX", {
|
|
3300
3301
|
enumerable: true,
|
|
3301
|
-
get: function () { return
|
|
3302
|
+
get: function () { return chunk5ZBP7TCD_cjs.ASSET_REF_PREFIX; }
|
|
3302
3303
|
});
|
|
3303
3304
|
Object.defineProperty(exports, "AssetResolverProvider", {
|
|
3304
3305
|
enumerable: true,
|
|
3305
|
-
get: function () { return
|
|
3306
|
+
get: function () { return chunk5ZBP7TCD_cjs.AssetResolverProvider; }
|
|
3306
3307
|
});
|
|
3307
3308
|
Object.defineProperty(exports, "asAssetRef", {
|
|
3308
3309
|
enumerable: true,
|
|
3309
|
-
get: function () { return
|
|
3310
|
+
get: function () { return chunk5ZBP7TCD_cjs.asAssetRef; }
|
|
3310
3311
|
});
|
|
3311
3312
|
Object.defineProperty(exports, "assetRefId", {
|
|
3312
3313
|
enumerable: true,
|
|
3313
|
-
get: function () { return
|
|
3314
|
+
get: function () { return chunk5ZBP7TCD_cjs.assetRefId; }
|
|
3314
3315
|
});
|
|
3315
3316
|
Object.defineProperty(exports, "isAssetRef", {
|
|
3316
3317
|
enumerable: true,
|
|
3317
|
-
get: function () { return
|
|
3318
|
+
get: function () { return chunk5ZBP7TCD_cjs.isAssetRef; }
|
|
3318
3319
|
});
|
|
3319
3320
|
Object.defineProperty(exports, "useAssetRenderer", {
|
|
3320
3321
|
enumerable: true,
|
|
3321
|
-
get: function () { return
|
|
3322
|
+
get: function () { return chunk5ZBP7TCD_cjs.useAssetRenderer; }
|
|
3322
3323
|
});
|
|
3323
3324
|
Object.defineProperty(exports, "useAssetResolverActive", {
|
|
3324
3325
|
enumerable: true,
|
|
3325
|
-
get: function () { return
|
|
3326
|
+
get: function () { return chunk5ZBP7TCD_cjs.useAssetResolverActive; }
|
|
3326
3327
|
});
|
|
3327
3328
|
exports.AgentsPanel = AgentsPanel;
|
|
3328
3329
|
exports.AssetThumb = AssetThumb;
|