@arbidocs/blocks 0.4.140 → 0.4.142
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/agents/index.cjs +264 -263
- package/dist/agents/index.js +7 -6
- package/dist/calls/index.cjs +3 -3
- package/dist/calls/index.js +2 -2
- package/dist/{chunk-5Y3SAJUK.cjs → chunk-7NDW4KF4.cjs} +4 -4
- package/dist/{chunk-5Y3SAJUK.cjs.map → chunk-7NDW4KF4.cjs.map} +1 -1
- package/dist/chunk-AHDJXIUB.cjs +25 -0
- package/dist/chunk-AHDJXIUB.cjs.map +1 -0
- package/dist/{chunk-DAIHYDK6.cjs → chunk-DPGFEMVT.cjs} +11 -26
- package/dist/chunk-DPGFEMVT.cjs.map +1 -0
- package/dist/{chunk-ZAVEMQ37.cjs → chunk-DWZXSPMB.cjs} +3 -3
- package/dist/{chunk-ZAVEMQ37.cjs.map → chunk-DWZXSPMB.cjs.map} +1 -1
- package/dist/{chunk-ZNTHEXNJ.js → chunk-ETXYVO6E.js} +4 -4
- package/dist/{chunk-ZNTHEXNJ.js.map → chunk-ETXYVO6E.js.map} +1 -1
- package/dist/{chunk-5HFPRI3W.js → chunk-FUTMU4FR.js} +3 -3
- package/dist/{chunk-5HFPRI3W.js.map → chunk-FUTMU4FR.js.map} +1 -1
- package/dist/{chunk-BPUZEYSP.js → chunk-FXG7TFAG.js} +3 -3
- package/dist/{chunk-BPUZEYSP.js.map → chunk-FXG7TFAG.js.map} +1 -1
- package/dist/{chunk-YLUEQSMK.cjs → chunk-GBS6QVGS.cjs} +5 -5
- package/dist/{chunk-YLUEQSMK.cjs.map → chunk-GBS6QVGS.cjs.map} +1 -1
- package/dist/{chunk-SU7QY7U2.cjs → chunk-HIJUXAWS.cjs} +34 -33
- package/dist/chunk-HIJUXAWS.cjs.map +1 -0
- package/dist/{chunk-O6W6RW3B.js → chunk-I7WG3JRD.js} +206 -53
- package/dist/chunk-I7WG3JRD.js.map +1 -0
- package/dist/{chunk-RYEJ6AA5.js → chunk-N5X37J3D.js} +8 -7
- package/dist/chunk-N5X37J3D.js.map +1 -0
- package/dist/{chunk-OCDDWDH2.js → chunk-ON3TKY5Y.js} +3 -3
- package/dist/{chunk-OCDDWDH2.js.map → chunk-ON3TKY5Y.js.map} +1 -1
- package/dist/{chunk-DJM7DLCT.cjs → chunk-OPTBQSCV.cjs} +3 -3
- package/dist/{chunk-DJM7DLCT.cjs.map → chunk-OPTBQSCV.cjs.map} +1 -1
- package/dist/{chunk-IBIUPT23.js → chunk-PROK33G6.js} +8 -22
- package/dist/chunk-PROK33G6.js.map +1 -0
- package/dist/{chunk-UMG5S6H5.cjs → chunk-QIMVTGKS.cjs} +3 -3
- package/dist/{chunk-UMG5S6H5.cjs.map → chunk-QIMVTGKS.cjs.map} +1 -1
- package/dist/chunk-RLWIUUQ5.js +23 -0
- package/dist/chunk-RLWIUUQ5.js.map +1 -0
- package/dist/{chunk-ECERC6TI.js → chunk-VHJHY7TT.js} +3 -3
- package/dist/{chunk-ECERC6TI.js.map → chunk-VHJHY7TT.js.map} +1 -1
- package/dist/{chunk-GFRQG36Y.cjs → chunk-YFY3TQ6Q.cjs} +208 -52
- package/dist/chunk-YFY3TQ6Q.cjs.map +1 -0
- package/dist/collaboration/index.cjs +42 -42
- package/dist/collaboration/index.js +2 -2
- package/dist/connect/docx.cjs +6 -6
- package/dist/connect/docx.js +5 -5
- package/dist/connect/index.cjs +92 -91
- package/dist/connect/index.cjs.map +1 -1
- package/dist/connect/index.js +15 -14
- package/dist/connect/index.js.map +1 -1
- package/dist/facts/index.cjs +2 -2
- package/dist/facts/index.js +2 -2
- package/dist/files/index.cjs +3 -3
- package/dist/files/index.js +3 -3
- package/dist/home/index.cjs +2 -2
- package/dist/home/index.js +2 -2
- package/dist/index.cjs +585 -572
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +19 -18
- package/dist/index.js.map +1 -1
- package/dist/lib/sidebar-mode.d.ts +1 -3
- package/dist/lib/use-close-on-escape.d.ts +6 -0
- package/dist/retrieval/index.cjs +1 -1
- package/dist/retrieval/index.js +1 -1
- package/dist/settings/index.cjs +40 -40
- package/dist/settings/index.js +5 -5
- package/dist/shell/ShellSidebar.d.ts +37 -0
- package/dist/shell/Sidebar.d.ts +6 -6
- package/dist/shell/index.cjs +55 -42
- package/dist/shell/index.d.ts +4 -1
- package/dist/shell/index.js +5 -4
- package/dist/shell/types.d.ts +18 -0
- package/dist/shell/use-sidebar-controller.d.ts +59 -0
- package/dist/site/index.cjs +5 -5
- package/dist/site/index.js +1 -1
- package/dist/studio/index.cjs +3 -3
- package/dist/studio/index.js +3 -3
- package/dist/workflow-canvas/index.cjs +20 -19
- package/dist/workflow-canvas/index.cjs.map +1 -1
- package/dist/workflow-canvas/index.js +7 -6
- package/dist/workflow-canvas/index.js.map +1 -1
- package/node_modules/@arbidocs/coedit/package.json +1 -1
- package/package.json +4 -4
- package/dist/chunk-DAIHYDK6.cjs.map +0 -1
- package/dist/chunk-GFRQG36Y.cjs.map +0 -1
- package/dist/chunk-IBIUPT23.js.map +0 -1
- package/dist/chunk-O6W6RW3B.js.map +0 -1
- package/dist/chunk-RYEJ6AA5.js.map +0 -1
- package/dist/chunk-SU7QY7U2.cjs.map +0 -1
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { type SidebarLayout } from '../lib/sidebar-mode';
|
|
2
|
+
import type { SidebarRootProps } from './Sidebar';
|
|
3
|
+
export interface UseSidebarControllerOptions {
|
|
4
|
+
/** Pinned open (desktop). Controlled when set; otherwise kept here, seeded by `defaultPinned`. */
|
|
5
|
+
isPinned?: boolean;
|
|
6
|
+
/** Default `true`. */
|
|
7
|
+
defaultPinned?: boolean;
|
|
8
|
+
onPinnedChange?: (isPinned: boolean) => void;
|
|
9
|
+
/** The rail is floated open (hover, or its toggle at a narrow width). Controlled when set. */
|
|
10
|
+
isHovering?: boolean;
|
|
11
|
+
onHoveringChange?: (isHovering: boolean) => void;
|
|
12
|
+
/** The phone drawer is open. Controlled when set (the app bar's menu button opens it). */
|
|
13
|
+
isDrawerOpen?: boolean;
|
|
14
|
+
onDrawerOpenChange?: (isDrawerOpen: boolean) => void;
|
|
15
|
+
/**
|
|
16
|
+
* Keep the sidebar a rail even when pinned, on top of the tablet width (for example while a
|
|
17
|
+
* docked panel squeezes the content). The stored pin is left untouched.
|
|
18
|
+
*/
|
|
19
|
+
forceRail?: boolean;
|
|
20
|
+
}
|
|
21
|
+
/** The `Sidebar.Root` props the controller resolves. */
|
|
22
|
+
export type SidebarControllerRootProps = Pick<SidebarRootProps, 'mode' | 'expanded' | 'isHovering' | 'onBackdropClick' | 'hasRailBackdrop' | 'onMouseEnter' | 'onMouseLeave'>;
|
|
23
|
+
export interface SidebarController {
|
|
24
|
+
layout: SidebarLayout;
|
|
25
|
+
/** Labels shown (settled: they stay on until the closing transition ends). */
|
|
26
|
+
expanded: boolean;
|
|
27
|
+
/** Width-bound content (tips, notices) may show: on once fully open, off as closing starts. */
|
|
28
|
+
tipsVisible: boolean;
|
|
29
|
+
/** The phone drawer is showing. */
|
|
30
|
+
isDrawer: boolean;
|
|
31
|
+
isSmallScreen: boolean;
|
|
32
|
+
/** Tablet width (or `forceRail`): pinning is ignored and the sidebar stays a rail. */
|
|
33
|
+
isNarrow: boolean;
|
|
34
|
+
/** The pin as it applies (always off while narrow). */
|
|
35
|
+
isPinned: boolean;
|
|
36
|
+
/** Spread onto `Sidebar.Root` (or pass the controller to `ShellSidebar`). */
|
|
37
|
+
rootProps: SidebarControllerRootProps;
|
|
38
|
+
openDrawer: () => void;
|
|
39
|
+
closeDrawer: () => void;
|
|
40
|
+
/** The pin toggle: pins/unpins, or floats the rail open/closed while narrow. */
|
|
41
|
+
togglePin: () => void;
|
|
42
|
+
/** Open from the rail (its ask button): pins, or floats the rail open while narrow. */
|
|
43
|
+
expand: () => void;
|
|
44
|
+
/** After a nav row is chosen: closes the drawer, and a floated rail the pointer has left. */
|
|
45
|
+
afterNavigate: () => void;
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Sidebar behaviour as one hook, shared by every shell: resolves the layout (drawer / pinned /
|
|
49
|
+
* rail) for the viewport, settles labels and tips around the width transition, and owns the hover,
|
|
50
|
+
* pin and drawer rules:
|
|
51
|
+
* - touch: the rail opens only through its toggle, never by the emulated mouseenter of a tap;
|
|
52
|
+
* - narrow: a pointer drifting over the rail does not float the labels over the content;
|
|
53
|
+
* - Escape closes a floated rail; the drawer closes itself when the viewport grows past a phone;
|
|
54
|
+
* - choosing a row closes the drawer, and a floated rail unless the pointer is still over it.
|
|
55
|
+
*
|
|
56
|
+
* State is controlled per field (`isPinned`, `isHovering`, `isDrawerOpen`) so an app can keep it
|
|
57
|
+
* in its own store, or uncontrolled for a shell that does not care.
|
|
58
|
+
*/
|
|
59
|
+
export declare function useSidebarController(options?: UseSidebarControllerOptions): SidebarController;
|
package/dist/site/index.cjs
CHANGED
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
|
|
4
4
|
var chunk65THHQVB_cjs = require('../chunk-65THHQVB.cjs');
|
|
5
5
|
var chunkMJCCBMM5_cjs = require('../chunk-MJCCBMM5.cjs');
|
|
6
|
+
var chunkPCB2BPN3_cjs = require('../chunk-PCB2BPN3.cjs');
|
|
6
7
|
var chunkELR74ME6_cjs = require('../chunk-ELR74ME6.cjs');
|
|
7
8
|
var chunkVPPX5XUF_cjs = require('../chunk-VPPX5XUF.cjs');
|
|
8
|
-
var chunkPCB2BPN3_cjs = require('../chunk-PCB2BPN3.cjs');
|
|
9
9
|
var chunkDVUZTGVL_cjs = require('../chunk-DVUZTGVL.cjs');
|
|
10
10
|
require('../chunk-32HW2Q33.cjs');
|
|
11
11
|
var chunkKDG6FER6_cjs = require('../chunk-KDG6FER6.cjs');
|
|
@@ -253,6 +253,10 @@ Object.defineProperty(exports, "toHslTriplet", {
|
|
|
253
253
|
enumerable: true,
|
|
254
254
|
get: function () { return chunkMJCCBMM5_cjs.toHslTriplet; }
|
|
255
255
|
});
|
|
256
|
+
Object.defineProperty(exports, "Callout", {
|
|
257
|
+
enumerable: true,
|
|
258
|
+
get: function () { return chunkPCB2BPN3_cjs.Callout; }
|
|
259
|
+
});
|
|
256
260
|
Object.defineProperty(exports, "Timeline", {
|
|
257
261
|
enumerable: true,
|
|
258
262
|
get: function () { return chunkELR74ME6_cjs.Timeline; }
|
|
@@ -285,10 +289,6 @@ Object.defineProperty(exports, "utcDay", {
|
|
|
285
289
|
enumerable: true,
|
|
286
290
|
get: function () { return chunkVPPX5XUF_cjs.utcDay; }
|
|
287
291
|
});
|
|
288
|
-
Object.defineProperty(exports, "Callout", {
|
|
289
|
-
enumerable: true,
|
|
290
|
-
get: function () { return chunkPCB2BPN3_cjs.Callout; }
|
|
291
|
-
});
|
|
292
292
|
Object.defineProperty(exports, "Dot", {
|
|
293
293
|
enumerable: true,
|
|
294
294
|
get: function () { return chunkDVUZTGVL_cjs.Dot; }
|
package/dist/site/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
export { ArticleList, Chart, CheckList, CollectionDetail, CtaBand, DefinitionList, EditorialHeading, EditorialHero, EditorialProse, EditorialSection, Eyebrow, PanelGrid, ProofStrip, PullQuote, Reveal, TagList } from '../chunk-LYUO3E6V.js';
|
|
3
3
|
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-DLBUFHLY.js';
|
|
4
|
+
export { Callout } from '../chunk-UJE32SST.js';
|
|
4
5
|
export { Timeline } from '../chunk-OVEQERPO.js';
|
|
5
6
|
export { TimelineCalendar, TimelineGantt, dayKey, formatSpan, monthLabel, parseIso, utcDay } from '../chunk-4EZVCGRL.js';
|
|
6
|
-
export { Callout } from '../chunk-UJE32SST.js';
|
|
7
7
|
export { Dot, ToneBadge } from '../chunk-5LXQPP2K.js';
|
|
8
8
|
import '../chunk-AUS3KBHJ.js';
|
|
9
9
|
export { daysUntil, fmtDate, fmtDateTime, formatCurrency, fromNow, hrs, initials, pct } from '../chunk-OXF2IFXG.js';
|
package/dist/studio/index.cjs
CHANGED
|
@@ -5,13 +5,11 @@ var chunk3BFGL2JL_cjs = require('../chunk-3BFGL2JL.cjs');
|
|
|
5
5
|
var chunkGFNELPDP_cjs = require('../chunk-GFNELPDP.cjs');
|
|
6
6
|
var chunkTP6PLDNM_cjs = require('../chunk-TP6PLDNM.cjs');
|
|
7
7
|
var chunkMJCCBMM5_cjs = require('../chunk-MJCCBMM5.cjs');
|
|
8
|
+
var chunkPCB2BPN3_cjs = require('../chunk-PCB2BPN3.cjs');
|
|
8
9
|
var chunkELR74ME6_cjs = require('../chunk-ELR74ME6.cjs');
|
|
9
10
|
require('../chunk-VPPX5XUF.cjs');
|
|
10
|
-
var chunkPCB2BPN3_cjs = require('../chunk-PCB2BPN3.cjs');
|
|
11
11
|
var chunkZW6FPIFC_cjs = require('../chunk-ZW6FPIFC.cjs');
|
|
12
12
|
require('../chunk-R26BK7YL.cjs');
|
|
13
|
-
var chunkC4WSHRR6_cjs = require('../chunk-C4WSHRR6.cjs');
|
|
14
|
-
require('../chunk-ULWRNGGE.cjs');
|
|
15
13
|
require('../chunk-7YLJHTDC.cjs');
|
|
16
14
|
require('../chunk-B6MVQCXW.cjs');
|
|
17
15
|
require('../chunk-JKB7WT7L.cjs');
|
|
@@ -20,6 +18,8 @@ require('../chunk-7UTB4PHM.cjs');
|
|
|
20
18
|
require('../chunk-32HW2Q33.cjs');
|
|
21
19
|
require('../chunk-PPCATBOY.cjs');
|
|
22
20
|
require('../chunk-MHVNT4J3.cjs');
|
|
21
|
+
var chunkC4WSHRR6_cjs = require('../chunk-C4WSHRR6.cjs');
|
|
22
|
+
require('../chunk-ULWRNGGE.cjs');
|
|
23
23
|
var chunkKDG6FER6_cjs = require('../chunk-KDG6FER6.cjs');
|
|
24
24
|
require('../chunk-DES3K4SD.cjs');
|
|
25
25
|
var lucideReact = require('lucide-react');
|
package/dist/studio/index.js
CHANGED
|
@@ -4,13 +4,11 @@ import { useConnection } from '../chunk-US3S4DCB.js';
|
|
|
4
4
|
import { PageHeader, MetricCard, DataTableBlock, StatGroup } from '../chunk-Y3KA6X7B.js';
|
|
5
5
|
import { assetRefId, applyStoredTheme, AssetResolverProvider, ThemeEditor, applyThemeVars, tid, SectionHeading, PricingTable, Tabs as Tabs$1, Accordion, Gallery, VideoEmbed, ContactForm, Banner, MediaText, TeamGrid, Steps, TestimonialGrid, Columns, Spacer, Container, Hero, FeatureGrid, Testimonial, CTABanner, LogoCloud, FAQ, RichTextBlock, BlockImage, AvatarBlock, Navbar, Footer, ListBlock, isAssetRef, asAssetRef } from '../chunk-DLBUFHLY.js';
|
|
6
6
|
export { ASSET_REF_PREFIX, AssetResolverProvider, asAssetRef, assetRefId, isAssetRef, useAssetRenderer, useAssetResolverActive } from '../chunk-DLBUFHLY.js';
|
|
7
|
+
import { Callout } from '../chunk-UJE32SST.js';
|
|
7
8
|
import { Timeline } from '../chunk-OVEQERPO.js';
|
|
8
9
|
import '../chunk-4EZVCGRL.js';
|
|
9
|
-
import { Callout } from '../chunk-UJE32SST.js';
|
|
10
10
|
import { EmptyState } from '../chunk-P6GHJSLR.js';
|
|
11
11
|
import '../chunk-444XKG46.js';
|
|
12
|
-
import { useBlocksEnvironment } from '../chunk-YNIBUKV5.js';
|
|
13
|
-
import '../chunk-TX2ZICS7.js';
|
|
14
12
|
import '../chunk-JO3EMZ4X.js';
|
|
15
13
|
import '../chunk-7XF5SFJ2.js';
|
|
16
14
|
import '../chunk-YBLIKTJK.js';
|
|
@@ -19,6 +17,8 @@ import '../chunk-AA3PT6KR.js';
|
|
|
19
17
|
import '../chunk-AUS3KBHJ.js';
|
|
20
18
|
import '../chunk-NPLYHR2E.js';
|
|
21
19
|
import '../chunk-7F6CBP3Z.js';
|
|
20
|
+
import { useBlocksEnvironment } from '../chunk-YNIBUKV5.js';
|
|
21
|
+
import '../chunk-TX2ZICS7.js';
|
|
22
22
|
import { formatCount } from '../chunk-OXF2IFXG.js';
|
|
23
23
|
import '../chunk-VUNV25KB.js';
|
|
24
24
|
import { MessageSquare, Cpu, Code, Cloud, Layers, Target, Award, MapPin, Phone, Mail, Lock, Globe, Heart, Star, Rocket, Shield, Zap, Sparkles, Gavel, Scale, Bell, Activity, BarChart3, DollarSign, TrendingUp, Info, AlertCircle, CheckCircle, Clock, Calendar, Briefcase, Users, Folder, FileText, ArrowLeft, Palette, Loader2, RotateCcw, ChevronUp, ChevronDown, BrainCircuit, Bot, LayoutGrid, FileJson, Download, Crop, ImagePlus, Upload, Link2, Check, MessagesSquare } from 'lucide-react';
|
|
@@ -3,27 +3,28 @@
|
|
|
3
3
|
|
|
4
4
|
var chunkJZNXRMLH_cjs = require('../chunk-JZNXRMLH.cjs');
|
|
5
5
|
var chunkGFNELPDP_cjs = require('../chunk-GFNELPDP.cjs');
|
|
6
|
-
var
|
|
7
|
-
var
|
|
6
|
+
var chunkHIJUXAWS_cjs = require('../chunk-HIJUXAWS.cjs');
|
|
7
|
+
var chunkDPGFEMVT_cjs = require('../chunk-DPGFEMVT.cjs');
|
|
8
|
+
require('../chunk-WS5EX7DN.cjs');
|
|
9
|
+
require('../chunk-AHDJXIUB.cjs');
|
|
8
10
|
require('../chunk-MIDXCYZB.cjs');
|
|
9
11
|
require('../chunk-ZW6FPIFC.cjs');
|
|
10
|
-
require('../chunk-WS5EX7DN.cjs');
|
|
11
12
|
require('../chunk-3AFWGEDJ.cjs');
|
|
12
13
|
require('../chunk-DVUZTGVL.cjs');
|
|
13
14
|
require('../chunk-DETZZBG2.cjs');
|
|
15
|
+
require('../chunk-R26BK7YL.cjs');
|
|
14
16
|
require('../chunk-V4ISCZJ7.cjs');
|
|
15
17
|
require('../chunk-2EI7NCUA.cjs');
|
|
16
18
|
require('../chunk-C2CWWEHO.cjs');
|
|
17
|
-
require('../chunk-R26BK7YL.cjs');
|
|
18
19
|
require('../chunk-7RGLTF76.cjs');
|
|
19
|
-
var chunkC4WSHRR6_cjs = require('../chunk-C4WSHRR6.cjs');
|
|
20
|
-
require('../chunk-ULWRNGGE.cjs');
|
|
21
20
|
var chunkOWCEQKAR_cjs = require('../chunk-OWCEQKAR.cjs');
|
|
22
21
|
require('../chunk-7UTB4PHM.cjs');
|
|
23
22
|
var chunk32HW2Q33_cjs = require('../chunk-32HW2Q33.cjs');
|
|
24
23
|
require('../chunk-FX3K6LNZ.cjs');
|
|
25
24
|
require('../chunk-PPCATBOY.cjs');
|
|
26
25
|
require('../chunk-MHVNT4J3.cjs');
|
|
26
|
+
var chunkC4WSHRR6_cjs = require('../chunk-C4WSHRR6.cjs');
|
|
27
|
+
require('../chunk-ULWRNGGE.cjs');
|
|
27
28
|
require('../chunk-KDG6FER6.cjs');
|
|
28
29
|
require('../chunk-DES3K4SD.cjs');
|
|
29
30
|
var react = require('react');
|
|
@@ -316,9 +317,9 @@ function SignalsEditor({
|
|
|
316
317
|
{
|
|
317
318
|
className: ui.cn(
|
|
318
319
|
"space-y-1.5 rounded-md border p-2",
|
|
319
|
-
|
|
320
|
+
chunkDPGFEMVT_cjs.isIncompleteSignal(signal) ? "border-destructive/50" : "border-border"
|
|
320
321
|
),
|
|
321
|
-
"data-incomplete":
|
|
322
|
+
"data-incomplete": chunkDPGFEMVT_cjs.isIncompleteSignal(signal) || void 0,
|
|
322
323
|
"data-testid": `${testId}-${i}`,
|
|
323
324
|
children: [
|
|
324
325
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
@@ -1604,7 +1605,7 @@ function triggerFields(trigger, clearOthers) {
|
|
|
1604
1605
|
return {
|
|
1605
1606
|
timezone: trigger.timezone,
|
|
1606
1607
|
rrule: trigger.start === "repeat" ? trigger.rrule.trim() : none,
|
|
1607
|
-
run_at: trigger.start === "once" ?
|
|
1608
|
+
run_at: trigger.start === "once" ? chunkHIJUXAWS_cjs.localInputToIso(trigger.runAt) : none,
|
|
1608
1609
|
event_kind: trigger.start === "event" ? trigger.eventKind.trim() : none,
|
|
1609
1610
|
// A step signal is `workflow_signal` narrowed to one signal name.
|
|
1610
1611
|
event_filter: filter ?? none,
|
|
@@ -1620,7 +1621,7 @@ function plan(value, options) {
|
|
|
1620
1621
|
criteria: [],
|
|
1621
1622
|
max_passes: 3,
|
|
1622
1623
|
documents: [],
|
|
1623
|
-
steps:
|
|
1624
|
+
steps: chunkDPGFEMVT_cjs.toPlanSteps(value.workflow, options)
|
|
1624
1625
|
};
|
|
1625
1626
|
}
|
|
1626
1627
|
function builderToWorkflowRequest(value, workspaceId, options = {}) {
|
|
@@ -1655,7 +1656,7 @@ function builderToWorkflowUpdate(value, options = {}) {
|
|
|
1655
1656
|
}
|
|
1656
1657
|
function workflowRecordToBuilder(record) {
|
|
1657
1658
|
const planned = record.plan?.steps ?? [];
|
|
1658
|
-
const steps = planned.length ?
|
|
1659
|
+
const steps = planned.length ? chunkDPGFEMVT_cjs.fromPlanSteps(planned) : record.prompt || record.skill_ref ? [
|
|
1659
1660
|
{
|
|
1660
1661
|
id: "work",
|
|
1661
1662
|
kind: "agent",
|
|
@@ -1663,7 +1664,7 @@ function workflowRecordToBuilder(record) {
|
|
|
1663
1664
|
...record.skill_ref ? { workflow: record.skill_ref } : { run: { kind: "prompt", promptTemplate: record.prompt } }
|
|
1664
1665
|
}
|
|
1665
1666
|
] : [];
|
|
1666
|
-
const when =
|
|
1667
|
+
const when = chunkHIJUXAWS_cjs.workflowWhen(record);
|
|
1667
1668
|
return {
|
|
1668
1669
|
workflow: {
|
|
1669
1670
|
id: record.external_id,
|
|
@@ -1672,12 +1673,12 @@ function workflowRecordToBuilder(record) {
|
|
|
1672
1673
|
inputs: [],
|
|
1673
1674
|
landing: "chat",
|
|
1674
1675
|
schedulable: false,
|
|
1675
|
-
run: { kind: "steps", steps, layout:
|
|
1676
|
+
run: { kind: "steps", steps, layout: chunkDPGFEMVT_cjs.layoutFromPlanSteps(planned ?? []) }
|
|
1676
1677
|
},
|
|
1677
1678
|
trigger: {
|
|
1678
1679
|
...DEFAULT_WORKFLOW_TRIGGER,
|
|
1679
1680
|
start: when === "now" ? "manual" : when,
|
|
1680
|
-
runAt:
|
|
1681
|
+
runAt: chunkHIJUXAWS_cjs.isoToLocalInput(record.run_at),
|
|
1681
1682
|
rrule: record.rrule ?? "",
|
|
1682
1683
|
timezone: record.timezone || DEFAULT_WORKFLOW_TRIGGER.timezone,
|
|
1683
1684
|
eventKind: record.event_kind ?? "",
|
|
@@ -1733,7 +1734,7 @@ function triggerSummary(trigger, options = {}) {
|
|
|
1733
1734
|
case "once":
|
|
1734
1735
|
return trigger.runAt ? new Date(trigger.runAt).toLocaleString() : l.starts.once;
|
|
1735
1736
|
case "repeat":
|
|
1736
|
-
return trigger.rrule ?
|
|
1737
|
+
return trigger.rrule ? chunkHIJUXAWS_cjs.describeRRule(trigger.rrule) : l.starts.repeat;
|
|
1737
1738
|
case "event":
|
|
1738
1739
|
if (isSignalTrigger(trigger))
|
|
1739
1740
|
return trigger.signal ? l.signalSummary.replace("{signal}", trigger.signal) : l.stepSignals;
|
|
@@ -1792,7 +1793,7 @@ function TriggerInspector({
|
|
|
1792
1793
|
}
|
|
1793
1794
|
)
|
|
1794
1795
|
] }),
|
|
1795
|
-
trigger.start === "repeat" && /* @__PURE__ */ jsxRuntime.jsx(
|
|
1796
|
+
trigger.start === "repeat" && /* @__PURE__ */ jsxRuntime.jsx(chunkHIJUXAWS_cjs.RecurrenceBuilder, { rrule: trigger.rrule, onChange: (rrule) => set({ rrule }) }),
|
|
1796
1797
|
trigger.start === "event" && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-1.5", children: [
|
|
1797
1798
|
/* @__PURE__ */ jsxRuntime.jsx(ui.Label, { className: "text-xs", children: l.event }),
|
|
1798
1799
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
@@ -1844,7 +1845,7 @@ function TriggerInspector({
|
|
|
1844
1845
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-1.5", children: [
|
|
1845
1846
|
/* @__PURE__ */ jsxRuntime.jsx(ui.Label, { className: "text-xs", children: l.agent }),
|
|
1846
1847
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1847
|
-
|
|
1848
|
+
chunkDPGFEMVT_cjs.AgentSelect,
|
|
1848
1849
|
{
|
|
1849
1850
|
agents,
|
|
1850
1851
|
value: trigger.agentId,
|
|
@@ -2681,13 +2682,13 @@ function WorkflowPreview({
|
|
|
2681
2682
|
renderIcon,
|
|
2682
2683
|
testId
|
|
2683
2684
|
}) {
|
|
2684
|
-
const run =
|
|
2685
|
+
const run = chunkHIJUXAWS_cjs.useWorkflowPreview(workflow, {
|
|
2685
2686
|
resolveWorkflow: (id) => workflows.find((w) => w.id === id),
|
|
2686
2687
|
compose,
|
|
2687
2688
|
answer
|
|
2688
2689
|
});
|
|
2689
2690
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2690
|
-
|
|
2691
|
+
chunkDPGFEMVT_cjs.WorkflowRunner,
|
|
2691
2692
|
{
|
|
2692
2693
|
workflow,
|
|
2693
2694
|
run,
|