@arbidocs/blocks 0.4.2 → 0.4.3
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 +42 -0
- package/dist/agents/index.cjs +147 -146
- package/dist/agents/index.js +3 -2
- package/dist/chat/AssistantDock.d.ts +39 -0
- package/dist/chat/ChatDocuments.d.ts +17 -0
- package/dist/chat/ChatPage.d.ts +16 -0
- package/dist/chat/ChatThreads.d.ts +28 -0
- package/dist/chat/chat-page-types.d.ts +121 -0
- package/dist/chat/chat-surface.d.ts +9 -0
- package/dist/chat/index.cjs +247 -205
- package/dist/chat/index.d.ts +6 -0
- package/dist/chat/index.js +4 -2
- package/dist/{chunk-OBLSURHV.js → chunk-2NNTQLBY.js} +3 -3
- package/dist/{chunk-OBLSURHV.js.map → chunk-2NNTQLBY.js.map} +1 -1
- package/dist/chunk-2VBJ763Y.js +296 -0
- package/dist/chunk-2VBJ763Y.js.map +1 -0
- package/dist/{chunk-2ORA62OF.js → chunk-67MKU5U7.js} +3 -3
- package/dist/{chunk-2ORA62OF.js.map → chunk-67MKU5U7.js.map} +1 -1
- package/dist/{chunk-AE5FHFZ5.cjs → chunk-6CHMNKXC.cjs} +6 -6
- package/dist/{chunk-AE5FHFZ5.cjs.map → chunk-6CHMNKXC.cjs.map} +1 -1
- package/dist/{chunk-ITGHMJOM.js → chunk-AAY5ASZD.js} +5 -4
- package/dist/chunk-AAY5ASZD.js.map +1 -0
- package/dist/chunk-ATXPAD6S.cjs +1952 -0
- package/dist/chunk-ATXPAD6S.cjs.map +1 -0
- package/dist/{chunk-YBXCZEWS.js → chunk-B673CCW5.js} +29 -6
- package/dist/chunk-B673CCW5.js.map +1 -0
- package/dist/{chunk-2K33YGM6.cjs → chunk-DN3NFNIA.cjs} +63 -294
- package/dist/chunk-DN3NFNIA.cjs.map +1 -0
- package/dist/{chunk-XQ7PKKDY.cjs → chunk-G4YOH5DU.cjs} +3 -3
- package/dist/{chunk-XQ7PKKDY.cjs.map → chunk-G4YOH5DU.cjs.map} +1 -1
- package/dist/{chunk-AXIZ2MDV.js → chunk-HER7MTRR.js} +3 -3
- package/dist/{chunk-AXIZ2MDV.js.map → chunk-HER7MTRR.js.map} +1 -1
- package/dist/chunk-JPO3F4J7.js +1899 -0
- package/dist/chunk-JPO3F4J7.js.map +1 -0
- package/dist/{chunk-WJMEXTVD.cjs → chunk-KDG6FER6.cjs} +28 -2
- package/dist/chunk-KDG6FER6.cjs.map +1 -0
- package/dist/chunk-KHX2BX3S.cjs +307 -0
- package/dist/chunk-KHX2BX3S.cjs.map +1 -0
- package/dist/{chunk-WTNMWEBC.js → chunk-NJL4LIXX.js} +4 -3
- package/dist/chunk-NJL4LIXX.js.map +1 -0
- package/dist/{chunk-J2BGSWXM.cjs → chunk-O637DUKS.cjs} +27 -27
- package/dist/{chunk-J2BGSWXM.cjs.map → chunk-O637DUKS.cjs.map} +1 -1
- package/dist/{chunk-WW6EOVZA.js → chunk-OXF2IFXG.js} +26 -3
- package/dist/chunk-OXF2IFXG.js.map +1 -0
- package/dist/{chunk-6HIPFEID.cjs → chunk-PBS5MFIY.cjs} +4 -4
- package/dist/{chunk-6HIPFEID.cjs.map → chunk-PBS5MFIY.cjs.map} +1 -1
- package/dist/{chunk-AZQDNYH4.js → chunk-RCP6THBS.js} +9 -1249
- package/dist/chunk-RCP6THBS.js.map +1 -0
- package/dist/{chunk-GDFWJ73C.cjs → chunk-RIL7G7AS.cjs} +4 -1286
- package/dist/chunk-RIL7G7AS.cjs.map +1 -0
- package/dist/{chunk-DREI7EQ2.cjs → chunk-SS23F63U.cjs} +9 -9
- package/dist/{chunk-DREI7EQ2.cjs.map → chunk-SS23F63U.cjs.map} +1 -1
- package/dist/{chunk-7PEELPMA.js → chunk-TI4UTYRL.js} +62 -285
- package/dist/chunk-TI4UTYRL.js.map +1 -0
- package/dist/{chunk-XNBAXRY7.cjs → chunk-VXOGANFJ.cjs} +13 -12
- package/dist/chunk-VXOGANFJ.cjs.map +1 -0
- package/dist/{chunk-6P6AEQJB.js → chunk-WJZBJUPX.js} +4 -4
- package/dist/{chunk-6P6AEQJB.js.map → chunk-WJZBJUPX.js.map} +1 -1
- package/dist/{chunk-UFHMLHIR.cjs → chunk-XAJIKT6Y.cjs} +32 -11
- package/dist/chunk-XAJIKT6Y.cjs.map +1 -0
- package/dist/{chunk-G3G7LZPM.cjs → chunk-XKKGGUU2.cjs} +29 -3
- package/dist/chunk-XKKGGUU2.cjs.map +1 -0
- package/dist/{chunk-UWGIB3VQ.js → chunk-XNOASBGW.js} +33 -12
- package/dist/chunk-XNOASBGW.js.map +1 -0
- package/dist/{chunk-CTZ5745I.js → chunk-XQKGYGCJ.js} +3 -3
- package/dist/{chunk-CTZ5745I.js.map → chunk-XQKGYGCJ.js.map} +1 -1
- package/dist/{chunk-54Q3RNJU.cjs → chunk-ZVPTFTGV.cjs} +4 -3
- package/dist/chunk-ZVPTFTGV.cjs.map +1 -0
- package/dist/citations/index.cjs +11 -11
- package/dist/citations/index.js +2 -2
- package/dist/components/MemberAvatarStack.d.ts +7 -2
- package/dist/connect/index.cjs +41 -12
- package/dist/connect/index.cjs.map +1 -1
- package/dist/connect/index.d.ts +3 -2
- package/dist/connect/index.js +20 -4
- package/dist/connect/index.js.map +1 -1
- package/dist/connection/ConnectionProvider.d.ts +2 -0
- package/dist/connection/ai.d.ts +13 -1
- package/dist/connection/useConnectedShellWorkspaces.d.ts +15 -0
- package/dist/facts/index.cjs +3 -3
- package/dist/facts/index.cjs.map +1 -1
- package/dist/facts/index.js +2 -2
- package/dist/facts/index.js.map +1 -1
- package/dist/files/index.cjs +4 -3
- package/dist/files/index.cjs.map +1 -1
- package/dist/files/index.js +4 -3
- package/dist/files/index.js.map +1 -1
- package/dist/home/index.cjs +18 -17
- package/dist/home/index.cjs.map +1 -1
- package/dist/home/index.js +3 -2
- package/dist/home/index.js.map +1 -1
- package/dist/index.cjs +637 -580
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +13 -12
- package/dist/index.js.map +1 -1
- package/dist/lib/format.d.ts +31 -0
- package/dist/retrieval/index.cjs +36 -36
- package/dist/retrieval/index.js +1 -1
- package/dist/settings/index.cjs +12 -10
- package/dist/settings/index.cjs.map +1 -1
- package/dist/settings/index.js +12 -10
- package/dist/settings/index.js.map +1 -1
- package/dist/shell/SplitLayout.d.ts +32 -0
- package/dist/shell/index.cjs +72 -68
- package/dist/shell/index.d.ts +1 -0
- package/dist/shell/index.js +2 -2
- package/dist/site/index.cjs +71 -71
- package/dist/site/index.js +3 -3
- package/dist/studio/index.cjs +79 -76
- package/dist/studio/index.cjs.map +1 -1
- package/dist/studio/index.js +9 -6
- package/dist/studio/index.js.map +1 -1
- package/dist/workspaces/WorkspaceGallery.d.ts +42 -0
- package/dist/workspaces/index.cjs +74 -7
- package/dist/workspaces/index.cjs.map +1 -1
- package/dist/workspaces/index.d.ts +2 -0
- package/dist/workspaces/index.js +73 -7
- package/dist/workspaces/index.js.map +1 -1
- package/package.json +3 -3
- package/src/blocks.css +10 -13
- package/dist/chunk-2K33YGM6.cjs.map +0 -1
- package/dist/chunk-54Q3RNJU.cjs.map +0 -1
- package/dist/chunk-7PEELPMA.js.map +0 -1
- package/dist/chunk-AZQDNYH4.js.map +0 -1
- package/dist/chunk-G3G7LZPM.cjs.map +0 -1
- package/dist/chunk-GDFWJ73C.cjs.map +0 -1
- package/dist/chunk-ITGHMJOM.js.map +0 -1
- package/dist/chunk-SCFYPAG6.cjs +0 -18
- package/dist/chunk-SCFYPAG6.cjs.map +0 -1
- package/dist/chunk-UFHMLHIR.cjs.map +0 -1
- package/dist/chunk-UWGIB3VQ.js.map +0 -1
- package/dist/chunk-WJMEXTVD.cjs.map +0 -1
- package/dist/chunk-WTNMWEBC.js.map +0 -1
- package/dist/chunk-WW6EOVZA.js.map +0 -1
- package/dist/chunk-XNBAXRY7.cjs.map +0 -1
- package/dist/chunk-YBXCZEWS.js.map +0 -1
- package/dist/chunk-YDHO4AVL.js +0 -16
- package/dist/chunk-YDHO4AVL.js.map +0 -1
package/dist/site/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
export { ArticleList, Chart, CheckList, CollectionDetail, CtaBand, DefinitionList, EditorialHeading, EditorialHero, EditorialProse, EditorialSection, Eyebrow, PanelGrid, ProofStrip, PullQuote, Reveal, TagList } from '../chunk-
|
|
2
|
+
export { ArticleList, Chart, CheckList, CollectionDetail, CtaBand, DefinitionList, EditorialHeading, EditorialHero, EditorialProse, EditorialSection, Eyebrow, PanelGrid, ProofStrip, PullQuote, Reveal, TagList } from '../chunk-2NNTQLBY.js';
|
|
3
3
|
export { Dot, ToneBadge } from '../chunk-DPLRHEJZ.js';
|
|
4
|
-
export { Accordion, AvatarBlock, Banner, BlockImage, BlockLink, CTABanner, Columns, ContactForm, Container, FAQ, FONT_PAIRINGS, FeatureGrid, Footer, Gallery, Hero, ListBlock, LogoCloud, MediaText, Navbar, PricingTable, ProfileCard, RichTextBlock, SectionHeading, Spacer, Steps, THEME_STYLE_ID, Tabs, TeamGrid, Testimonial, TestimonialGrid, ThemeEditor, VideoEmbed, applyFontVars, applyStoredTheme, applyThemeVars, clearFontVars, clearThemeVars, createThemeStore, fontPackages, getFontPairing, matchFontPairing, tid, toEmbedUrl, toHslTriplet } from '../chunk-
|
|
4
|
+
export { Accordion, AvatarBlock, Banner, BlockImage, BlockLink, CTABanner, Columns, ContactForm, Container, FAQ, FONT_PAIRINGS, FeatureGrid, Footer, Gallery, Hero, ListBlock, LogoCloud, MediaText, Navbar, PricingTable, ProfileCard, RichTextBlock, SectionHeading, Spacer, Steps, THEME_STYLE_ID, Tabs, TeamGrid, Testimonial, TestimonialGrid, ThemeEditor, VideoEmbed, applyFontVars, applyStoredTheme, applyThemeVars, clearFontVars, clearThemeVars, createThemeStore, fontPackages, getFontPairing, matchFontPairing, tid, toEmbedUrl, toHslTriplet } from '../chunk-WJZBJUPX.js';
|
|
5
5
|
export { Callout } from '../chunk-UJE32SST.js';
|
|
6
6
|
export { Timeline } from '../chunk-OVEQERPO.js';
|
|
7
7
|
export { TimelineCalendar, TimelineGantt, dayKey, formatSpan, monthLabel, parseIso, utcDay } from '../chunk-4EZVCGRL.js';
|
|
8
|
-
export { daysUntil, fmtDate, fmtDateTime, formatCurrency, fromNow, hrs, initials, pct } from '../chunk-
|
|
8
|
+
export { daysUntil, fmtDate, fmtDateTime, formatCurrency, fromNow, hrs, initials, pct } from '../chunk-OXF2IFXG.js';
|
|
9
9
|
//# sourceMappingURL=index.js.map
|
|
10
10
|
//# sourceMappingURL=index.js.map
|
package/dist/studio/index.cjs
CHANGED
|
@@ -1,16 +1,19 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
-
var
|
|
5
|
-
var
|
|
4
|
+
var chunk6CHMNKXC_cjs = require('../chunk-6CHMNKXC.cjs');
|
|
5
|
+
var chunkSS23F63U_cjs = require('../chunk-SS23F63U.cjs');
|
|
6
6
|
var chunkPCB2BPN3_cjs = require('../chunk-PCB2BPN3.cjs');
|
|
7
7
|
var chunkELR74ME6_cjs = require('../chunk-ELR74ME6.cjs');
|
|
8
8
|
var chunkZW6FPIFC_cjs = require('../chunk-ZW6FPIFC.cjs');
|
|
9
9
|
require('../chunk-OB5F4577.cjs');
|
|
10
|
-
var
|
|
10
|
+
var chunkXKKGGUU2_cjs = require('../chunk-XKKGGUU2.cjs');
|
|
11
|
+
require('../chunk-ATXPAD6S.cjs');
|
|
12
|
+
require('../chunk-KHX2BX3S.cjs');
|
|
11
13
|
require('../chunk-VPPX5XUF.cjs');
|
|
12
|
-
require('../chunk-WJMEXTVD.cjs');
|
|
13
14
|
var chunkC54XEN5T_cjs = require('../chunk-C54XEN5T.cjs');
|
|
15
|
+
var chunkKDG6FER6_cjs = require('../chunk-KDG6FER6.cjs');
|
|
16
|
+
require('../chunk-MHVNT4J3.cjs');
|
|
14
17
|
var lucideReact = require('lucide-react');
|
|
15
18
|
var react$1 = require('@arbidocs/react');
|
|
16
19
|
var ui = require('@arbidocs/react/ui');
|
|
@@ -50,7 +53,7 @@ function WidgetPlaceholder({
|
|
|
50
53
|
);
|
|
51
54
|
}
|
|
52
55
|
function useActiveWorkspaceId() {
|
|
53
|
-
const { workspaceId, fallbackWorkspaceId } =
|
|
56
|
+
const { workspaceId, fallbackWorkspaceId } = chunkXKKGGUU2_cjs.useConnection();
|
|
54
57
|
return workspaceId ?? fallbackWorkspaceId ?? void 0;
|
|
55
58
|
}
|
|
56
59
|
function timeAgo(iso) {
|
|
@@ -112,7 +115,7 @@ function LiveMetricInner({
|
|
|
112
115
|
const query = source === "documents" ? docs : convos;
|
|
113
116
|
const count = Array.isArray(query.data) ? query.data.length : 0;
|
|
114
117
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
115
|
-
|
|
118
|
+
chunk6CHMNKXC_cjs.MetricCard,
|
|
116
119
|
{
|
|
117
120
|
label: label || METRIC_SOURCES[source].label,
|
|
118
121
|
value: query.isLoading ? "\u2014" : String(count),
|
|
@@ -236,7 +239,7 @@ function createArbiMaterializer(arbi, opts = {}) {
|
|
|
236
239
|
}
|
|
237
240
|
function collectAssetRefs(node, acc) {
|
|
238
241
|
if (typeof node === "string") {
|
|
239
|
-
if (
|
|
242
|
+
if (chunkSS23F63U_cjs.isAssetRef(node)) acc.add(node);
|
|
240
243
|
return;
|
|
241
244
|
}
|
|
242
245
|
if (Array.isArray(node)) {
|
|
@@ -270,7 +273,7 @@ async function materializePageData(data, materialize) {
|
|
|
270
273
|
const replacements = /* @__PURE__ */ new Map();
|
|
271
274
|
await Promise.all(
|
|
272
275
|
[...refs].map(async (ref) => {
|
|
273
|
-
const src = await materialize(
|
|
276
|
+
const src = await materialize(chunkSS23F63U_cjs.assetRefId(ref));
|
|
274
277
|
if (src) replacements.set(ref, src);
|
|
275
278
|
})
|
|
276
279
|
);
|
|
@@ -376,7 +379,7 @@ function StudioEditor({
|
|
|
376
379
|
radius: stored.radius ?? defaultTheme.radius,
|
|
377
380
|
activePresetId: null
|
|
378
381
|
});
|
|
379
|
-
|
|
382
|
+
chunkSS23F63U_cjs.applyStoredTheme(themeBundle);
|
|
380
383
|
})();
|
|
381
384
|
return () => {
|
|
382
385
|
cancelled = true;
|
|
@@ -482,7 +485,7 @@ function StudioEditor({
|
|
|
482
485
|
"\u201D\u2026"
|
|
483
486
|
]
|
|
484
487
|
}
|
|
485
|
-
) : /* @__PURE__ */ jsxRuntime.jsx(
|
|
488
|
+
) : /* @__PURE__ */ jsxRuntime.jsx(chunkSS23F63U_cjs.AssetResolverProvider, { render: AssetThumb, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
486
489
|
puck.Puck,
|
|
487
490
|
{
|
|
488
491
|
config,
|
|
@@ -500,7 +503,7 @@ function StudioEditor({
|
|
|
500
503
|
className: "w-80 shrink-0 border-l border-border",
|
|
501
504
|
"data-testid": `${testIdPrefix}-theme-drawer`,
|
|
502
505
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
503
|
-
|
|
506
|
+
chunkSS23F63U_cjs.ThemeEditor,
|
|
504
507
|
{
|
|
505
508
|
bundle: themeBundle,
|
|
506
509
|
variant: "drawer",
|
|
@@ -542,7 +545,7 @@ function PageRenderer({
|
|
|
542
545
|
const page = initialData ?? (await persistence.loadPublished(arbi, live, slug)).data ?? (await persistence.loadPage(arbi, live, slug)).data;
|
|
543
546
|
if (cancelled) return;
|
|
544
547
|
if (applyTheme) {
|
|
545
|
-
|
|
548
|
+
chunkSS23F63U_cjs.applyThemeVars(
|
|
546
549
|
theme ? { ...defaultTheme, ...theme, colors: { ...defaultTheme.colors, ...theme.colors } } : defaultTheme
|
|
547
550
|
);
|
|
548
551
|
}
|
|
@@ -786,7 +789,7 @@ function AiTextField({
|
|
|
786
789
|
setActive(true);
|
|
787
790
|
await task.run(buildPrompt({ kind, label, current: value ?? "" }), docIds);
|
|
788
791
|
};
|
|
789
|
-
const inputTid =
|
|
792
|
+
const inputTid = chunkSS23F63U_cjs.tid(`${testIdPrefix}-field`, name);
|
|
790
793
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "al-ai-field", children: [
|
|
791
794
|
multiline ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
792
795
|
"textarea",
|
|
@@ -815,7 +818,7 @@ function AiTextField({
|
|
|
815
818
|
className: "al-ai-field__btn",
|
|
816
819
|
onClick: () => void write(),
|
|
817
820
|
disabled: task.isRunning,
|
|
818
|
-
"data-testid":
|
|
821
|
+
"data-testid": chunkSS23F63U_cjs.tid(`${testIdPrefix}-ai-write`, name),
|
|
819
822
|
title: "Draft this field with AI, grounded in the marketing workspace",
|
|
820
823
|
children: [
|
|
821
824
|
task.isRunning ? /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Loader2, { className: "size-3 animate-spin" }) : /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Sparkles, { className: "size-3" }),
|
|
@@ -875,7 +878,7 @@ function latestImageDocId(artifacts) {
|
|
|
875
878
|
return null;
|
|
876
879
|
}
|
|
877
880
|
function useImageGen() {
|
|
878
|
-
const task =
|
|
881
|
+
const task = chunkXKKGGUU2_cjs.useConnectedAiTask();
|
|
879
882
|
const { run } = task;
|
|
880
883
|
const generate = react.useCallback(
|
|
881
884
|
async (prompt, referenceDocIds = []) => {
|
|
@@ -918,8 +921,8 @@ function ImageFieldControl({
|
|
|
918
921
|
const arbi = react$1.useArbi();
|
|
919
922
|
const gen = useImageGen();
|
|
920
923
|
const queryClient = reactQuery.useQueryClient();
|
|
921
|
-
const currentAssetImage = useAssetImage(
|
|
922
|
-
const tp = (...q) =>
|
|
924
|
+
const currentAssetImage = useAssetImage(chunkSS23F63U_cjs.isAssetRef(value) ? chunkSS23F63U_cjs.assetRefId(value) : "");
|
|
925
|
+
const tp = (...q) => chunkSS23F63U_cjs.tid(`${testIdPrefix}-image`, name, ...q);
|
|
923
926
|
const refreshAssets = () => queryClient.invalidateQueries({ queryKey: ["arbi", "documents", workspaceId] });
|
|
924
927
|
const { data: docs } = react$1.useDocuments(workspaceId);
|
|
925
928
|
const imageDocs = react.useMemo(
|
|
@@ -953,7 +956,7 @@ function ImageFieldControl({
|
|
|
953
956
|
const res = await arbi.documents.uploadFile(file, name2, { folder });
|
|
954
957
|
const id = res.doc_ext_ids?.[0];
|
|
955
958
|
if (id) {
|
|
956
|
-
onChange(
|
|
959
|
+
onChange(chunkSS23F63U_cjs.asAssetRef(id));
|
|
957
960
|
void refreshAssets();
|
|
958
961
|
}
|
|
959
962
|
} finally {
|
|
@@ -971,7 +974,7 @@ function ImageFieldControl({
|
|
|
971
974
|
if (!prompt.trim() || gen.isGenerating) return;
|
|
972
975
|
const id = await gen.generate(prompt, refIds);
|
|
973
976
|
if (id) {
|
|
974
|
-
onChange(
|
|
977
|
+
onChange(chunkSS23F63U_cjs.asAssetRef(id));
|
|
975
978
|
setRefIds([]);
|
|
976
979
|
void refreshAssets();
|
|
977
980
|
}
|
|
@@ -986,7 +989,7 @@ function ImageFieldControl({
|
|
|
986
989
|
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"}`;
|
|
987
990
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col gap-2", "data-testid": tp(), children: [
|
|
988
991
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "relative", children: [
|
|
989
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
992
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkSS23F63U_cjs.BlockImage, { src: value, aspect: "16:9", rounded: "md", testId: tp("preview") }),
|
|
990
993
|
currentAssetImage ? /* @__PURE__ */ jsxRuntime.jsxs(
|
|
991
994
|
"button",
|
|
992
995
|
{
|
|
@@ -1020,12 +1023,12 @@ function ImageFieldControl({
|
|
|
1020
1023
|
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." }),
|
|
1021
1024
|
imageDocs.map((d) => {
|
|
1022
1025
|
const thumb = thumbs?.[d.external_id];
|
|
1023
|
-
const selected = value ===
|
|
1026
|
+
const selected = value === chunkSS23F63U_cjs.asAssetRef(d.external_id);
|
|
1024
1027
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1025
1028
|
"button",
|
|
1026
1029
|
{
|
|
1027
1030
|
type: "button",
|
|
1028
|
-
onClick: () => onChange(
|
|
1031
|
+
onClick: () => onChange(chunkSS23F63U_cjs.asAssetRef(d.external_id)),
|
|
1029
1032
|
className: `overflow-hidden rounded border ${selected ? "border-primary ring-1 ring-primary" : "border-border"}`,
|
|
1030
1033
|
title: d.file_name ?? "",
|
|
1031
1034
|
"data-testid": tp("asset", d.external_id),
|
|
@@ -1087,14 +1090,14 @@ function ImageFieldControl({
|
|
|
1087
1090
|
"Reference images",
|
|
1088
1091
|
refIds.length > 0 ? ` (${refIds.length})` : " (optional)"
|
|
1089
1092
|
] }),
|
|
1090
|
-
|
|
1093
|
+
chunkSS23F63U_cjs.isAssetRef(value) && /* @__PURE__ */ jsxRuntime.jsx(
|
|
1091
1094
|
"button",
|
|
1092
1095
|
{
|
|
1093
1096
|
type: "button",
|
|
1094
1097
|
className: "text-xs font-medium text-primary hover:underline",
|
|
1095
|
-
onClick: () => toggleRef(
|
|
1098
|
+
onClick: () => toggleRef(chunkSS23F63U_cjs.assetRefId(value)),
|
|
1096
1099
|
"data-testid": tp("vary-current"),
|
|
1097
|
-
children: refIds.includes(
|
|
1100
|
+
children: refIds.includes(chunkSS23F63U_cjs.assetRefId(value)) ? "Varying current" : "Vary current image"
|
|
1098
1101
|
}
|
|
1099
1102
|
)
|
|
1100
1103
|
] }),
|
|
@@ -1147,7 +1150,7 @@ function ImageFieldControl({
|
|
|
1147
1150
|
"data-testid": tp("generate"),
|
|
1148
1151
|
children: [
|
|
1149
1152
|
gen.isGenerating ? /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Loader2, { className: "size-3.5 animate-spin" }) : /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Sparkles, { className: "size-3.5" }),
|
|
1150
|
-
gen.isGenerating ? "Generating\u2026" : refIds.length > 0 ? `Generate from ${refIds.length
|
|
1153
|
+
gen.isGenerating ? "Generating\u2026" : refIds.length > 0 ? `Generate from ${chunkKDG6FER6_cjs.formatCount(refIds.length, { one: "reference", other: "references" })}` : "Generate"
|
|
1151
1154
|
]
|
|
1152
1155
|
}
|
|
1153
1156
|
),
|
|
@@ -1308,7 +1311,7 @@ function createBlockKit(ai, image, eyebrowClassName) {
|
|
|
1308
1311
|
}),
|
|
1309
1312
|
iconField: (label = "Icon") => ({ type: "select", label, options: ICON_OPTIONS }),
|
|
1310
1313
|
resolveIcon: (name) => name ? iconMap[name] : void 0,
|
|
1311
|
-
blockTestId: (id) =>
|
|
1314
|
+
blockTestId: (id) => chunkSS23F63U_cjs.tid("arbi-block", id)
|
|
1312
1315
|
};
|
|
1313
1316
|
}
|
|
1314
1317
|
var emptySlot = [];
|
|
@@ -1373,7 +1376,7 @@ function createWebsiteBlocks(kit) {
|
|
|
1373
1376
|
render: ({ id, count, gap, col1, col2, col3, col4 }) => {
|
|
1374
1377
|
const n = Number(count) || 3;
|
|
1375
1378
|
const columns = [col1, col2, col3, col4].slice(0, n).map(renderSlot);
|
|
1376
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1379
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkSS23F63U_cjs.Columns, { count: n, gap, columns, testId: blockTestId(id) });
|
|
1377
1380
|
}
|
|
1378
1381
|
};
|
|
1379
1382
|
const SpacerBlock = {
|
|
@@ -1391,7 +1394,7 @@ function createWebsiteBlocks(kit) {
|
|
|
1391
1394
|
}
|
|
1392
1395
|
},
|
|
1393
1396
|
defaultProps: { size: "md" },
|
|
1394
|
-
render: ({ id, size }) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1397
|
+
render: ({ id, size }) => /* @__PURE__ */ jsxRuntime.jsx(chunkSS23F63U_cjs.Spacer, { size, testId: blockTestId(id) })
|
|
1395
1398
|
};
|
|
1396
1399
|
const ContainerBlock = {
|
|
1397
1400
|
label: "Container",
|
|
@@ -1419,7 +1422,7 @@ function createWebsiteBlocks(kit) {
|
|
|
1419
1422
|
children: { type: "slot" }
|
|
1420
1423
|
},
|
|
1421
1424
|
defaultProps: { width: "default", padding: "md", children: emptySlot },
|
|
1422
|
-
render: ({ id, width, padding, children }) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1425
|
+
render: ({ id, width, padding, children }) => /* @__PURE__ */ jsxRuntime.jsx(chunkSS23F63U_cjs.Container, { width, padding, testId: blockTestId(id), children: renderSlot(children) })
|
|
1423
1426
|
};
|
|
1424
1427
|
const HeroBlock = {
|
|
1425
1428
|
label: "Hero",
|
|
@@ -1470,7 +1473,7 @@ function createWebsiteBlocks(kit) {
|
|
|
1470
1473
|
backgroundImage,
|
|
1471
1474
|
overlay
|
|
1472
1475
|
}) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1473
|
-
|
|
1476
|
+
chunkSS23F63U_cjs.Hero,
|
|
1474
1477
|
{
|
|
1475
1478
|
eyebrow,
|
|
1476
1479
|
title,
|
|
@@ -1542,7 +1545,7 @@ function createWebsiteBlocks(kit) {
|
|
|
1542
1545
|
icon: resolveIcon(it.icon)
|
|
1543
1546
|
})
|
|
1544
1547
|
);
|
|
1545
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1548
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkSS23F63U_cjs.FeatureGrid, { columns, items: list, testId: blockTestId(id) });
|
|
1546
1549
|
}
|
|
1547
1550
|
};
|
|
1548
1551
|
const StatGroupBlock = {
|
|
@@ -1567,7 +1570,7 @@ function createWebsiteBlocks(kit) {
|
|
|
1567
1570
|
{ value: "24/7", label: "Support" }
|
|
1568
1571
|
]
|
|
1569
1572
|
},
|
|
1570
|
-
render: ({ id, items }) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1573
|
+
render: ({ id, items }) => /* @__PURE__ */ jsxRuntime.jsx(chunk6CHMNKXC_cjs.StatGroup, { items, testId: blockTestId(id) })
|
|
1571
1574
|
};
|
|
1572
1575
|
const TestimonialBlock = {
|
|
1573
1576
|
label: "Testimonial",
|
|
@@ -1584,7 +1587,7 @@ function createWebsiteBlocks(kit) {
|
|
|
1584
1587
|
avatarUrl: ""
|
|
1585
1588
|
},
|
|
1586
1589
|
render: ({ id, quote, author, role, avatarUrl }) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1587
|
-
|
|
1590
|
+
chunkSS23F63U_cjs.Testimonial,
|
|
1588
1591
|
{
|
|
1589
1592
|
quote,
|
|
1590
1593
|
author,
|
|
@@ -1613,7 +1616,7 @@ function createWebsiteBlocks(kit) {
|
|
|
1613
1616
|
overlay: true
|
|
1614
1617
|
},
|
|
1615
1618
|
render: ({ id, title, subtitle, cta, tone, backgroundImage, overlay }) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1616
|
-
|
|
1619
|
+
chunkSS23F63U_cjs.CTABanner,
|
|
1617
1620
|
{
|
|
1618
1621
|
title,
|
|
1619
1622
|
subtitle,
|
|
@@ -1645,7 +1648,7 @@ function createWebsiteBlocks(kit) {
|
|
|
1645
1648
|
{ label: "Umbrella" }
|
|
1646
1649
|
]
|
|
1647
1650
|
},
|
|
1648
|
-
render: ({ id, items }) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1651
|
+
render: ({ id, items }) => /* @__PURE__ */ jsxRuntime.jsx(chunkSS23F63U_cjs.LogoCloud, { items, testId: blockTestId(id) })
|
|
1649
1652
|
};
|
|
1650
1653
|
const FAQBlock = {
|
|
1651
1654
|
label: "FAQ",
|
|
@@ -1677,7 +1680,7 @@ function createWebsiteBlocks(kit) {
|
|
|
1677
1680
|
}
|
|
1678
1681
|
]
|
|
1679
1682
|
},
|
|
1680
|
-
render: ({ id, items }) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1683
|
+
render: ({ id, items }) => /* @__PURE__ */ jsxRuntime.jsx(chunkSS23F63U_cjs.FAQ, { items, testId: blockTestId(id) })
|
|
1681
1684
|
};
|
|
1682
1685
|
const TimelineBlockConfig = {
|
|
1683
1686
|
label: "Timeline",
|
|
@@ -1752,7 +1755,7 @@ function createWebsiteBlocks(kit) {
|
|
|
1752
1755
|
defaultProps: {
|
|
1753
1756
|
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"
|
|
1754
1757
|
},
|
|
1755
|
-
render: ({ id, content }) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1758
|
+
render: ({ id, content }) => /* @__PURE__ */ jsxRuntime.jsx(chunkSS23F63U_cjs.RichTextBlock, { content, testId: blockTestId(id) })
|
|
1756
1759
|
};
|
|
1757
1760
|
const CalloutBlock = {
|
|
1758
1761
|
label: "Callout",
|
|
@@ -1806,7 +1809,7 @@ function createWebsiteBlocks(kit) {
|
|
|
1806
1809
|
},
|
|
1807
1810
|
defaultProps: { src: "", alt: "Image", aspect: "16:9", rounded: "lg", framed: false },
|
|
1808
1811
|
render: ({ id, src, alt, aspect, rounded, framed }) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1809
|
-
|
|
1812
|
+
chunkSS23F63U_cjs.BlockImage,
|
|
1810
1813
|
{
|
|
1811
1814
|
src,
|
|
1812
1815
|
alt,
|
|
@@ -1834,7 +1837,7 @@ function createWebsiteBlocks(kit) {
|
|
|
1834
1837
|
}
|
|
1835
1838
|
},
|
|
1836
1839
|
defaultProps: { src: "", name: "Jane Doe", size: "md" },
|
|
1837
|
-
render: ({ id, src, name, size }) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1840
|
+
render: ({ id, src, name, size }) => /* @__PURE__ */ jsxRuntime.jsx(chunkSS23F63U_cjs.AvatarBlock, { src, name, size, testId: blockTestId(id) })
|
|
1838
1841
|
};
|
|
1839
1842
|
const NavbarBlock = {
|
|
1840
1843
|
label: "Navbar",
|
|
@@ -1862,7 +1865,7 @@ function createWebsiteBlocks(kit) {
|
|
|
1862
1865
|
],
|
|
1863
1866
|
cta: { label: "Sign up", href: "#" }
|
|
1864
1867
|
},
|
|
1865
|
-
render: ({ id, brand, links, cta }) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1868
|
+
render: ({ id, brand, links, cta }) => /* @__PURE__ */ jsxRuntime.jsx(chunkSS23F63U_cjs.Navbar, { brand, links, cta, testId: blockTestId(id) })
|
|
1866
1869
|
};
|
|
1867
1870
|
const FooterBlock = {
|
|
1868
1871
|
label: "Footer",
|
|
@@ -1921,7 +1924,7 @@ function createWebsiteBlocks(kit) {
|
|
|
1921
1924
|
],
|
|
1922
1925
|
copyright: "\xA9 2026 Acme, Inc. All rights reserved."
|
|
1923
1926
|
},
|
|
1924
|
-
render: ({ id, columns, copyright }) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1927
|
+
render: ({ id, columns, copyright }) => /* @__PURE__ */ jsxRuntime.jsx(chunkSS23F63U_cjs.Footer, { columns, copyright, testId: blockTestId(id) })
|
|
1925
1928
|
};
|
|
1926
1929
|
const ListBlockConfig = {
|
|
1927
1930
|
label: "List",
|
|
@@ -1939,7 +1942,7 @@ function createWebsiteBlocks(kit) {
|
|
|
1939
1942
|
ordered: false,
|
|
1940
1943
|
items: [{ text: "First item" }, { text: "Second item" }, { text: "Third item" }]
|
|
1941
1944
|
},
|
|
1942
|
-
render: ({ id, ordered, items }) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1945
|
+
render: ({ id, ordered, items }) => /* @__PURE__ */ jsxRuntime.jsx(chunkSS23F63U_cjs.ListBlock, { ordered, items, testId: blockTestId(id) })
|
|
1943
1946
|
};
|
|
1944
1947
|
return {
|
|
1945
1948
|
Columns: ColumnsBlock,
|
|
@@ -2042,7 +2045,7 @@ function createSiteBlocks(kit) {
|
|
|
2042
2045
|
]
|
|
2043
2046
|
},
|
|
2044
2047
|
render: ({ id, plans }) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2045
|
-
|
|
2048
|
+
chunkSS23F63U_cjs.PricingTable,
|
|
2046
2049
|
{
|
|
2047
2050
|
plans: (plans ?? []).map(
|
|
2048
2051
|
(p) => ({
|
|
@@ -2080,7 +2083,7 @@ function createSiteBlocks(kit) {
|
|
|
2080
2083
|
{ label: "FAQ", content: "Answers to common questions." }
|
|
2081
2084
|
]
|
|
2082
2085
|
},
|
|
2083
|
-
render: ({ id, items }) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2086
|
+
render: ({ id, items }) => /* @__PURE__ */ jsxRuntime.jsx(chunkSS23F63U_cjs.Tabs, { items, testId: blockTestId(id) })
|
|
2084
2087
|
};
|
|
2085
2088
|
const AccordionBlock = {
|
|
2086
2089
|
label: "Accordion",
|
|
@@ -2104,7 +2107,7 @@ function createSiteBlocks(kit) {
|
|
|
2104
2107
|
{ title: "How does billing work?", content: "Monthly or annually, cancel anytime." }
|
|
2105
2108
|
]
|
|
2106
2109
|
},
|
|
2107
|
-
render: ({ id, allowMultiple, items }) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2110
|
+
render: ({ id, allowMultiple, items }) => /* @__PURE__ */ jsxRuntime.jsx(chunkSS23F63U_cjs.Accordion, { allowMultiple, items, testId: blockTestId(id) })
|
|
2108
2111
|
};
|
|
2109
2112
|
const GalleryBlock = {
|
|
2110
2113
|
label: "Gallery",
|
|
@@ -2140,7 +2143,7 @@ function createSiteBlocks(kit) {
|
|
|
2140
2143
|
{ src: "", alt: "Image three", caption: "" }
|
|
2141
2144
|
]
|
|
2142
2145
|
},
|
|
2143
|
-
render: ({ id, columns, aspect, images }) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2146
|
+
render: ({ id, columns, aspect, images }) => /* @__PURE__ */ jsxRuntime.jsx(chunkSS23F63U_cjs.Gallery, { columns, aspect, images, testId: blockTestId(id) })
|
|
2144
2147
|
};
|
|
2145
2148
|
const VideoBlock = {
|
|
2146
2149
|
label: "Video",
|
|
@@ -2160,7 +2163,7 @@ function createSiteBlocks(kit) {
|
|
|
2160
2163
|
},
|
|
2161
2164
|
defaultProps: { url: "", title: "", aspect: "16:9", rounded: true },
|
|
2162
2165
|
render: ({ id, url, title, aspect, rounded }) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2163
|
-
|
|
2166
|
+
chunkSS23F63U_cjs.VideoEmbed,
|
|
2164
2167
|
{
|
|
2165
2168
|
url,
|
|
2166
2169
|
title,
|
|
@@ -2209,7 +2212,7 @@ function createSiteBlocks(kit) {
|
|
|
2209
2212
|
]
|
|
2210
2213
|
},
|
|
2211
2214
|
render: ({ id, submitLabel, action, successMessage, fields }) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2212
|
-
|
|
2215
|
+
chunkSS23F63U_cjs.ContactForm,
|
|
2213
2216
|
{
|
|
2214
2217
|
submitLabel,
|
|
2215
2218
|
action: action || void 0,
|
|
@@ -2239,7 +2242,7 @@ function createSiteBlocks(kit) {
|
|
|
2239
2242
|
cta: { label: "Read more", href: "#" },
|
|
2240
2243
|
tone: "primary"
|
|
2241
2244
|
},
|
|
2242
|
-
render: ({ id, text, cta, tone }) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2245
|
+
render: ({ id, text, cta, tone }) => /* @__PURE__ */ jsxRuntime.jsx(chunkSS23F63U_cjs.Banner, { text, cta, tone, testId: blockTestId(id) })
|
|
2243
2246
|
};
|
|
2244
2247
|
const MediaTextBlock = {
|
|
2245
2248
|
label: "Media & text",
|
|
@@ -2267,7 +2270,7 @@ function createSiteBlocks(kit) {
|
|
|
2267
2270
|
cta: { label: "Learn more", href: "#" }
|
|
2268
2271
|
},
|
|
2269
2272
|
render: ({ id, eyebrow, title, body, imageUrl, mediaSide, cta }) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2270
|
-
|
|
2273
|
+
chunkSS23F63U_cjs.MediaText,
|
|
2271
2274
|
{
|
|
2272
2275
|
eyebrow,
|
|
2273
2276
|
title,
|
|
@@ -2304,7 +2307,7 @@ function createSiteBlocks(kit) {
|
|
|
2304
2307
|
{ name: "Jordan Lee", role: "Lead Engineer", bio: "", avatarUrl: "" }
|
|
2305
2308
|
]
|
|
2306
2309
|
},
|
|
2307
|
-
render: ({ id, columns, members }) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2310
|
+
render: ({ id, columns, members }) => /* @__PURE__ */ jsxRuntime.jsx(chunkSS23F63U_cjs.TeamGrid, { columns, members, testId: blockTestId(id) })
|
|
2308
2311
|
};
|
|
2309
2312
|
const StepsBlock = {
|
|
2310
2313
|
label: "Steps",
|
|
@@ -2336,7 +2339,7 @@ function createSiteBlocks(kit) {
|
|
|
2336
2339
|
{ title: "Launch", description: "Go live and start seeing results." }
|
|
2337
2340
|
]
|
|
2338
2341
|
},
|
|
2339
|
-
render: ({ id, variant, steps }) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2342
|
+
render: ({ id, variant, steps }) => /* @__PURE__ */ jsxRuntime.jsx(chunkSS23F63U_cjs.Steps, { variant, steps, testId: blockTestId(id) })
|
|
2340
2343
|
};
|
|
2341
2344
|
const TestimonialGridBlock = {
|
|
2342
2345
|
label: "Testimonial grid",
|
|
@@ -2378,7 +2381,7 @@ function createSiteBlocks(kit) {
|
|
|
2378
2381
|
}
|
|
2379
2382
|
]
|
|
2380
2383
|
},
|
|
2381
|
-
render: ({ id, columns, items }) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2384
|
+
render: ({ id, columns, items }) => /* @__PURE__ */ jsxRuntime.jsx(chunkSS23F63U_cjs.TestimonialGrid, { columns, items, testId: blockTestId(id) })
|
|
2382
2385
|
};
|
|
2383
2386
|
return {
|
|
2384
2387
|
Pricing: PricingBlock,
|
|
@@ -2422,7 +2425,7 @@ function createArbiBlocksConfig(opts = {}) {
|
|
|
2422
2425
|
},
|
|
2423
2426
|
defaultProps: { title: "Section title", align: "left", invert: false },
|
|
2424
2427
|
render: ({ id, title, eyebrow, lead, align, invert }) => /* @__PURE__ */ jsxRuntime.jsx("div", { "data-testid": blockTestId(id), children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2425
|
-
|
|
2428
|
+
chunkSS23F63U_cjs.SectionHeading,
|
|
2426
2429
|
{
|
|
2427
2430
|
title,
|
|
2428
2431
|
eyebrow,
|
|
@@ -2445,7 +2448,7 @@ function createArbiBlocksConfig(opts = {}) {
|
|
|
2445
2448
|
},
|
|
2446
2449
|
defaultProps: { title: "Page title", actions: emptySlot2 },
|
|
2447
2450
|
render: ({ id, title, eyebrow, description, actions: Actions }) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2448
|
-
|
|
2451
|
+
chunk6CHMNKXC_cjs.PageHeader,
|
|
2449
2452
|
{
|
|
2450
2453
|
title,
|
|
2451
2454
|
eyebrow,
|
|
@@ -2512,7 +2515,7 @@ function createArbiBlocksConfig(opts = {}) {
|
|
|
2512
2515
|
},
|
|
2513
2516
|
defaultProps: { label: "Metric", value: "0", accent: "default" },
|
|
2514
2517
|
render: ({ id, label, value, hint, accent, delta, icon }) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2515
|
-
|
|
2518
|
+
chunk6CHMNKXC_cjs.MetricCard,
|
|
2516
2519
|
{
|
|
2517
2520
|
label,
|
|
2518
2521
|
value,
|
|
@@ -2628,7 +2631,7 @@ function createArbiBlocksConfig(opts = {}) {
|
|
|
2628
2631
|
field: col.field || `col-${index}`
|
|
2629
2632
|
}));
|
|
2630
2633
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2631
|
-
|
|
2634
|
+
chunk6CHMNKXC_cjs.DataTableBlock,
|
|
2632
2635
|
{
|
|
2633
2636
|
columns: normalisedCols,
|
|
2634
2637
|
rows: recordRows,
|
|
@@ -3016,7 +3019,7 @@ function ModuleManager({ store, testIdPrefix = "builder" }) {
|
|
|
3016
3019
|
{
|
|
3017
3020
|
variant: "elevated",
|
|
3018
3021
|
className: "rounded-lg",
|
|
3019
|
-
"data-testid":
|
|
3022
|
+
"data-testid": chunkSS23F63U_cjs.tid(`${testIdPrefix}-modules-section`, group.section),
|
|
3020
3023
|
children: [
|
|
3021
3024
|
/* @__PURE__ */ jsxRuntime.jsx(ui.CardHeader, { children: /* @__PURE__ */ jsxRuntime.jsx(ui.CardTitle, { className: "text-base", children: group.section }) }),
|
|
3022
3025
|
/* @__PURE__ */ jsxRuntime.jsx(ui.CardContent, { className: "space-y-1.5", children: group.modules.map((m, idx) => {
|
|
@@ -3025,7 +3028,7 @@ function ModuleManager({ store, testIdPrefix = "builder" }) {
|
|
|
3025
3028
|
"div",
|
|
3026
3029
|
{
|
|
3027
3030
|
className: "flex items-center gap-3 rounded-md border border-border/60 bg-card px-3 py-2",
|
|
3028
|
-
"data-testid":
|
|
3031
|
+
"data-testid": chunkSS23F63U_cjs.tid(`${testIdPrefix}-module`, m.id),
|
|
3029
3032
|
children: [
|
|
3030
3033
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col", children: [
|
|
3031
3034
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -3037,7 +3040,7 @@ function ModuleManager({ store, testIdPrefix = "builder" }) {
|
|
|
3037
3040
|
disabled: idx === 0,
|
|
3038
3041
|
onClick: () => move(m.id, "up"),
|
|
3039
3042
|
"aria-label": `Move ${m.label} up`,
|
|
3040
|
-
"data-testid":
|
|
3043
|
+
"data-testid": chunkSS23F63U_cjs.tid(`${testIdPrefix}-module-up`, m.id),
|
|
3041
3044
|
children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronUp, { className: "size-3.5" })
|
|
3042
3045
|
}
|
|
3043
3046
|
),
|
|
@@ -3050,7 +3053,7 @@ function ModuleManager({ store, testIdPrefix = "builder" }) {
|
|
|
3050
3053
|
disabled: idx === group.modules.length - 1,
|
|
3051
3054
|
onClick: () => move(m.id, "down"),
|
|
3052
3055
|
"aria-label": `Move ${m.label} down`,
|
|
3053
|
-
"data-testid":
|
|
3056
|
+
"data-testid": chunkSS23F63U_cjs.tid(`${testIdPrefix}-module-down`, m.id),
|
|
3054
3057
|
children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronDown, { className: "size-3.5" })
|
|
3055
3058
|
}
|
|
3056
3059
|
)
|
|
@@ -3070,7 +3073,7 @@ function ModuleManager({ store, testIdPrefix = "builder" }) {
|
|
|
3070
3073
|
checked: m.enabled,
|
|
3071
3074
|
onCheckedChange: () => toggle2(m.id),
|
|
3072
3075
|
"aria-label": `Enable ${m.label}`,
|
|
3073
|
-
"data-testid":
|
|
3076
|
+
"data-testid": chunkSS23F63U_cjs.tid(`${testIdPrefix}-module-toggle`, m.id)
|
|
3074
3077
|
}
|
|
3075
3078
|
)
|
|
3076
3079
|
]
|
|
@@ -3102,7 +3105,7 @@ function ConfigModelBadge({ configId, testIdPrefix }) {
|
|
|
3102
3105
|
ui.Badge,
|
|
3103
3106
|
{
|
|
3104
3107
|
variant: TIER_VARIANT[tier] ?? "secondary",
|
|
3105
|
-
"data-testid":
|
|
3108
|
+
"data-testid": chunkSS23F63U_cjs.tid(`${testIdPrefix}-agents-config-tier`, configId),
|
|
3106
3109
|
children: [
|
|
3107
3110
|
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.Cpu, { className: "size-3" }),
|
|
3108
3111
|
" ",
|
|
@@ -3139,14 +3142,14 @@ function AgentsPanel({ store, testIdPrefix = "builder" }) {
|
|
|
3139
3142
|
"label",
|
|
3140
3143
|
{
|
|
3141
3144
|
className: "flex cursor-pointer items-center gap-3 rounded-md border border-border/60 bg-card px-3 py-2",
|
|
3142
|
-
"data-testid":
|
|
3145
|
+
"data-testid": chunkSS23F63U_cjs.tid(`${testIdPrefix}-agents-config`, v.external_id),
|
|
3143
3146
|
children: [
|
|
3144
3147
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3145
3148
|
ui.Checkbox,
|
|
3146
3149
|
{
|
|
3147
3150
|
checked: configIds.includes(v.external_id),
|
|
3148
3151
|
onCheckedChange: () => toggleConfig(v.external_id),
|
|
3149
|
-
"data-testid":
|
|
3152
|
+
"data-testid": chunkSS23F63U_cjs.tid(`${testIdPrefix}-agents-config-toggle`, v.external_id)
|
|
3150
3153
|
}
|
|
3151
3154
|
),
|
|
3152
3155
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "min-w-0 flex-1", children: [
|
|
@@ -3175,14 +3178,14 @@ function AgentsPanel({ store, testIdPrefix = "builder" }) {
|
|
|
3175
3178
|
"label",
|
|
3176
3179
|
{
|
|
3177
3180
|
className: "flex cursor-pointer items-center gap-3 rounded-md border border-border/60 bg-card px-3 py-2",
|
|
3178
|
-
"data-testid":
|
|
3181
|
+
"data-testid": chunkSS23F63U_cjs.tid(`${testIdPrefix}-agents-agent`, a.external_id),
|
|
3179
3182
|
children: [
|
|
3180
3183
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3181
3184
|
ui.Checkbox,
|
|
3182
3185
|
{
|
|
3183
3186
|
checked: agentIds.includes(a.external_id),
|
|
3184
3187
|
onCheckedChange: () => toggleAgent(a.external_id),
|
|
3185
|
-
"data-testid":
|
|
3188
|
+
"data-testid": chunkSS23F63U_cjs.tid(`${testIdPrefix}-agents-agent-toggle`, a.external_id)
|
|
3186
3189
|
}
|
|
3187
3190
|
),
|
|
3188
3191
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "min-w-0 flex-1", children: [
|
|
@@ -3269,7 +3272,7 @@ function VerticalBuilder({
|
|
|
3269
3272
|
] })
|
|
3270
3273
|
] }),
|
|
3271
3274
|
/* @__PURE__ */ jsxRuntime.jsx(ui.TabsContent, { value: "theme", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
3272
|
-
|
|
3275
|
+
chunkSS23F63U_cjs.ThemeEditor,
|
|
3273
3276
|
{
|
|
3274
3277
|
bundle: themeBundle,
|
|
3275
3278
|
variant: "panel",
|
|
@@ -3295,31 +3298,31 @@ function VerticalBuilder({
|
|
|
3295
3298
|
|
|
3296
3299
|
Object.defineProperty(exports, "ASSET_REF_PREFIX", {
|
|
3297
3300
|
enumerable: true,
|
|
3298
|
-
get: function () { return
|
|
3301
|
+
get: function () { return chunkSS23F63U_cjs.ASSET_REF_PREFIX; }
|
|
3299
3302
|
});
|
|
3300
3303
|
Object.defineProperty(exports, "AssetResolverProvider", {
|
|
3301
3304
|
enumerable: true,
|
|
3302
|
-
get: function () { return
|
|
3305
|
+
get: function () { return chunkSS23F63U_cjs.AssetResolverProvider; }
|
|
3303
3306
|
});
|
|
3304
3307
|
Object.defineProperty(exports, "asAssetRef", {
|
|
3305
3308
|
enumerable: true,
|
|
3306
|
-
get: function () { return
|
|
3309
|
+
get: function () { return chunkSS23F63U_cjs.asAssetRef; }
|
|
3307
3310
|
});
|
|
3308
3311
|
Object.defineProperty(exports, "assetRefId", {
|
|
3309
3312
|
enumerable: true,
|
|
3310
|
-
get: function () { return
|
|
3313
|
+
get: function () { return chunkSS23F63U_cjs.assetRefId; }
|
|
3311
3314
|
});
|
|
3312
3315
|
Object.defineProperty(exports, "isAssetRef", {
|
|
3313
3316
|
enumerable: true,
|
|
3314
|
-
get: function () { return
|
|
3317
|
+
get: function () { return chunkSS23F63U_cjs.isAssetRef; }
|
|
3315
3318
|
});
|
|
3316
3319
|
Object.defineProperty(exports, "useAssetRenderer", {
|
|
3317
3320
|
enumerable: true,
|
|
3318
|
-
get: function () { return
|
|
3321
|
+
get: function () { return chunkSS23F63U_cjs.useAssetRenderer; }
|
|
3319
3322
|
});
|
|
3320
3323
|
Object.defineProperty(exports, "useAssetResolverActive", {
|
|
3321
3324
|
enumerable: true,
|
|
3322
|
-
get: function () { return
|
|
3325
|
+
get: function () { return chunkSS23F63U_cjs.useAssetResolverActive; }
|
|
3323
3326
|
});
|
|
3324
3327
|
exports.AgentsPanel = AgentsPanel;
|
|
3325
3328
|
exports.AssetThumb = AssetThumb;
|