@trops/dash-core 0.1.883 → 0.1.884
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/index.esm.js +168 -89
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +168 -89
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -79169,6 +79169,78 @@ var PAGES = {
|
|
|
79169
79169
|
themes: "the Themes page"
|
|
79170
79170
|
};
|
|
79171
79171
|
|
|
79172
|
+
/**
|
|
79173
|
+
* What the Dash team can make, for a new Dash Lead conversation (Create —
|
|
79174
|
+
* one place to start, frame 1): a card each, with a hint and an example
|
|
79175
|
+
* that goes in the box.
|
|
79176
|
+
*/
|
|
79177
|
+
var MAKE_KINDS = [{
|
|
79178
|
+
kind: "dashboard",
|
|
79179
|
+
title: "A dashboard",
|
|
79180
|
+
hint: "Widgets and bots together on one screen",
|
|
79181
|
+
example: "A dashboard for my smart home",
|
|
79182
|
+
icon: "table-cells-large"
|
|
79183
|
+
}, {
|
|
79184
|
+
kind: "widget",
|
|
79185
|
+
title: "A widget",
|
|
79186
|
+
hint: "One tile that shows or does one thing",
|
|
79187
|
+
example: "A widget that shows my calendar",
|
|
79188
|
+
icon: "puzzle-piece"
|
|
79189
|
+
}, {
|
|
79190
|
+
kind: "bot",
|
|
79191
|
+
title: "A bot",
|
|
79192
|
+
hint: "Works on its own — on a schedule, an event or a click",
|
|
79193
|
+
example: "A bot that sums up my email each morning",
|
|
79194
|
+
icon: "robot"
|
|
79195
|
+
}, {
|
|
79196
|
+
kind: "theme",
|
|
79197
|
+
title: "A theme",
|
|
79198
|
+
hint: "Colors for the app or one dashboard",
|
|
79199
|
+
example: "A Halloween theme",
|
|
79200
|
+
icon: "palette"
|
|
79201
|
+
}, {
|
|
79202
|
+
kind: "change",
|
|
79203
|
+
title: "A change",
|
|
79204
|
+
hint: "To a dashboard, widget, bot or theme you have",
|
|
79205
|
+
example: "Change one of my dashboards",
|
|
79206
|
+
icon: "pen"
|
|
79207
|
+
}];
|
|
79208
|
+
|
|
79209
|
+
/**
|
|
79210
|
+
* Other ways to start a Dash Lead conversation (frame 13; in the middle
|
|
79211
|
+
* since "one place to start"). `kind` is what LeadWorkspace's startFrom
|
|
79212
|
+
* does: "registry" | "copy" | "blank" | "import" | "widget". Describing it
|
|
79213
|
+
* is the box itself.
|
|
79214
|
+
*/
|
|
79215
|
+
var START_FROM = [{
|
|
79216
|
+
kind: "registry",
|
|
79217
|
+
title: "A dashboard from the registry",
|
|
79218
|
+
sub: "Install a ready-made one and its bots, then adjust it",
|
|
79219
|
+
icon: "cloud-arrow-down"
|
|
79220
|
+
}, {
|
|
79221
|
+
kind: "copy",
|
|
79222
|
+
title: "Copy one of your dashboards",
|
|
79223
|
+
sub: "Start from what you have and change it",
|
|
79224
|
+
icon: "copy"
|
|
79225
|
+
},
|
|
79226
|
+
// The Create window's no-AI starts (release 6c).
|
|
79227
|
+
{
|
|
79228
|
+
kind: "blank",
|
|
79229
|
+
title: "A blank dashboard",
|
|
79230
|
+
sub: "Start empty and add widgets yourself",
|
|
79231
|
+
icon: "square-plus"
|
|
79232
|
+
}, {
|
|
79233
|
+
kind: "import",
|
|
79234
|
+
title: "A dashboard file",
|
|
79235
|
+
sub: "Import one someone shared with you",
|
|
79236
|
+
icon: "file-import"
|
|
79237
|
+
}, {
|
|
79238
|
+
kind: "widget",
|
|
79239
|
+
title: "Edit a widget you have",
|
|
79240
|
+
sub: "Open it in the Widget Builder",
|
|
79241
|
+
icon: "code"
|
|
79242
|
+
}];
|
|
79243
|
+
|
|
79172
79244
|
/**
|
|
79173
79245
|
* A page's New: { kind: "widget" | "bot" | "dashboard", from?: page } →
|
|
79174
79246
|
* the conversation's start — its "Making:" line, greeting and starters,
|
|
@@ -84576,39 +84648,6 @@ var BUILD_ROLES = {
|
|
|
84576
84648
|
}
|
|
84577
84649
|
};
|
|
84578
84650
|
|
|
84579
|
-
/**
|
|
84580
|
-
* Where you can start a new Dash Lead conversation from (frame 13).
|
|
84581
|
-
* `onStartFrom(kind)`: "describe" | "registry" | "copy" | "blank" |
|
|
84582
|
-
* "import" | "widget".
|
|
84583
|
-
*/
|
|
84584
|
-
var START_FROM = [{
|
|
84585
|
-
kind: "describe",
|
|
84586
|
-
title: "Describe it",
|
|
84587
|
-
sub: "Say what you want in the box — the usual way"
|
|
84588
|
-
}, {
|
|
84589
|
-
kind: "registry",
|
|
84590
|
-
title: "A dashboard from the registry",
|
|
84591
|
-
sub: "Install a ready-made one and its bots, then adjust it"
|
|
84592
|
-
}, {
|
|
84593
|
-
kind: "copy",
|
|
84594
|
-
title: "Copy one of your dashboards",
|
|
84595
|
-
sub: "Start from what you have and change it"
|
|
84596
|
-
},
|
|
84597
|
-
// The Create window's no-AI starts (release 6c).
|
|
84598
|
-
{
|
|
84599
|
-
kind: "blank",
|
|
84600
|
-
title: "A blank dashboard",
|
|
84601
|
-
sub: "Start empty and add widgets yourself"
|
|
84602
|
-
}, {
|
|
84603
|
-
kind: "import",
|
|
84604
|
-
title: "A dashboard file",
|
|
84605
|
-
sub: "Import one someone shared with you"
|
|
84606
|
-
}, {
|
|
84607
|
-
kind: "widget",
|
|
84608
|
-
title: "Edit a widget you have",
|
|
84609
|
-
sub: "Open it in the Widget Builder"
|
|
84610
|
-
}];
|
|
84611
|
-
|
|
84612
84651
|
/**
|
|
84613
84652
|
* What each bot is doing right now — one line, from its stream: the tool
|
|
84614
84653
|
* it's calling, or that it's writing. Cleared when its run ends.
|
|
@@ -84789,8 +84828,6 @@ function memberState(m, last, status, _ref2) {
|
|
|
84789
84828
|
* earlier plan), a step's id, or null
|
|
84790
84829
|
* @param {(what) => void} onOpen
|
|
84791
84830
|
* @param {boolean} wide, onToggleWide the column's size
|
|
84792
|
-
* @param {boolean} isNew a new conversation, nothing asked yet
|
|
84793
|
-
* @param {(kind) => void} onStartFrom a Start from choice
|
|
84794
84831
|
* @param {object|null} build the plan's build (release 3b: { buildId, kind,
|
|
84795
84832
|
* leftOff }); its outputs open as "buildlog", "check" and "preview"
|
|
84796
84833
|
* @param {object|null} pb the build, live (usePlanBuild)
|
|
@@ -84827,10 +84864,6 @@ var WorkspaceSide = function WorkspaceSide(_ref3) {
|
|
|
84827
84864
|
wide = _ref3$wide === void 0 ? false : _ref3$wide,
|
|
84828
84865
|
_ref3$onToggleWide = _ref3.onToggleWide,
|
|
84829
84866
|
onToggleWide = _ref3$onToggleWide === void 0 ? null : _ref3$onToggleWide,
|
|
84830
|
-
_ref3$isNew = _ref3.isNew,
|
|
84831
|
-
isNew = _ref3$isNew === void 0 ? false : _ref3$isNew,
|
|
84832
|
-
_ref3$onStartFrom = _ref3.onStartFrom,
|
|
84833
|
-
onStartFrom = _ref3$onStartFrom === void 0 ? null : _ref3$onStartFrom,
|
|
84834
84867
|
_ref3$build = _ref3.build,
|
|
84835
84868
|
build = _ref3$build === void 0 ? null : _ref3$build,
|
|
84836
84869
|
_ref3$pb = _ref3.pb,
|
|
@@ -84841,8 +84874,6 @@ var WorkspaceSide = function WorkspaceSide(_ref3) {
|
|
|
84841
84874
|
onSummary = _ref3$onSummary === void 0 ? null : _ref3$onSummary,
|
|
84842
84875
|
_ref3$onUseRegistry = _ref3.onUseRegistry,
|
|
84843
84876
|
onUseRegistry = _ref3$onUseRegistry === void 0 ? null : _ref3$onUseRegistry,
|
|
84844
|
-
_ref3$startFromSkip = _ref3.startFromSkip,
|
|
84845
|
-
startFromSkip = _ref3$startFromSkip === void 0 ? null : _ref3$startFromSkip,
|
|
84846
84877
|
_ref3$onWidgetMode = _ref3.onWidgetMode,
|
|
84847
84878
|
onWidgetMode = _ref3$onWidgetMode === void 0 ? null : _ref3$onWidgetMode,
|
|
84848
84879
|
_ref3$onSignIn = _ref3.onSignIn,
|
|
@@ -84916,7 +84947,6 @@ var WorkspaceSide = function WorkspaceSide(_ref3) {
|
|
|
84916
84947
|
id: contact.botId,
|
|
84917
84948
|
name: contact.name
|
|
84918
84949
|
}].concat(_toConsumableArray(members)) : [];
|
|
84919
|
-
var startFrom = isNew && contact && contact.kind === "dashlead" && onStartFrom;
|
|
84920
84950
|
// Connected for real — a connect skipped before building isn't.
|
|
84921
84951
|
var connected = function connected(it) {
|
|
84922
84952
|
return !!(wp && wp.have && wp.have.has(normalizeType(it.providerType)));
|
|
@@ -85107,7 +85137,7 @@ var WorkspaceSide = function WorkspaceSide(_ref3) {
|
|
|
85107
85137
|
children: [" \xB7 ", state]
|
|
85108
85138
|
})]
|
|
85109
85139
|
}), line ? /*#__PURE__*/jsxRuntime.jsx("span", {
|
|
85110
|
-
className: "text-xs font-mono
|
|
85140
|
+
className: "text-xs truncate ".concat(tone === "working" ? "font-mono" : "", " ").concat(muted),
|
|
85111
85141
|
children: line
|
|
85112
85142
|
}) : null]
|
|
85113
85143
|
}), out ? /*#__PURE__*/jsxRuntime.jsxs("button", {
|
|
@@ -85126,31 +85156,7 @@ var WorkspaceSide = function WorkspaceSide(_ref3) {
|
|
|
85126
85156
|
children: [/*#__PURE__*/jsxRuntime.jsx("span", {
|
|
85127
85157
|
className: "text-sm font-semibold ".concat(strong),
|
|
85128
85158
|
children: "Outputs"
|
|
85129
|
-
}),
|
|
85130
|
-
className: "flex flex-col gap-2",
|
|
85131
|
-
"data-testid": "workspace-start-from",
|
|
85132
|
-
children: [/*#__PURE__*/jsxRuntime.jsx("span", {
|
|
85133
|
-
className: "text-xs ".concat(muted),
|
|
85134
|
-
children: "Start from"
|
|
85135
|
-
}), START_FROM.filter(function (s) {
|
|
85136
|
-
return !(startFromSkip || []).includes(s.kind);
|
|
85137
|
-
}).map(function (s) {
|
|
85138
|
-
return /*#__PURE__*/jsxRuntime.jsxs("button", {
|
|
85139
|
-
type: "button",
|
|
85140
|
-
onClick: function onClick() {
|
|
85141
|
-
return onStartFrom(s.kind);
|
|
85142
|
-
},
|
|
85143
|
-
className: "flex flex-col gap-0.5 rounded-lg border px-3 py-2.5 text-left ".concat(hairline),
|
|
85144
|
-
children: [/*#__PURE__*/jsxRuntime.jsx("span", {
|
|
85145
|
-
className: "text-sm font-semibold ".concat(strong),
|
|
85146
|
-
children: s.title
|
|
85147
|
-
}), /*#__PURE__*/jsxRuntime.jsx("span", {
|
|
85148
|
-
className: "text-xs ".concat(muted),
|
|
85149
|
-
children: s.sub
|
|
85150
|
-
})]
|
|
85151
|
-
}, s.kind);
|
|
85152
|
-
})]
|
|
85153
|
-
}) : null, wp && !build ? /*#__PURE__*/jsxRuntime.jsx(BeforeItBuilds, {
|
|
85159
|
+
}), wp && !build ? /*#__PURE__*/jsxRuntime.jsx(BeforeItBuilds, {
|
|
85154
85160
|
wp: wp,
|
|
85155
85161
|
readOnly: planReadOnly
|
|
85156
85162
|
}) : null, /*#__PURE__*/jsxRuntime.jsx(BuildNeedsYou, {
|
|
@@ -85217,7 +85223,7 @@ var WorkspaceSide = function WorkspaceSide(_ref3) {
|
|
|
85217
85223
|
return onOpen(s.id);
|
|
85218
85224
|
}
|
|
85219
85225
|
}, s.id);
|
|
85220
|
-
}), !answered.length && !plan && !
|
|
85226
|
+
}), !answered.length && !plan && !(planActions && next) ? /*#__PURE__*/jsxRuntime.jsx("span", {
|
|
85221
85227
|
className: "rounded-xl border border-dashed p-6 text-center text-sm ".concat(hairline, " ").concat(muted),
|
|
85222
85228
|
children: isBot ? "Its answers and results show here." : "What the team makes shows here."
|
|
85223
85229
|
}) : null, /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
@@ -85938,11 +85944,13 @@ function startText(contact) {
|
|
|
85938
85944
|
text: "",
|
|
85939
85945
|
starters: []
|
|
85940
85946
|
};
|
|
85947
|
+
// What the team can make, a card each (Create — one place to start).
|
|
85941
85948
|
if (contact.kind === "dashlead") {
|
|
85942
85949
|
return {
|
|
85943
85950
|
title: "What should we make?",
|
|
85944
|
-
text: "Describe it in your own words
|
|
85945
|
-
starters: [
|
|
85951
|
+
text: "Describe it in your own words. The team plans it with you, and nothing is made until you say yes.",
|
|
85952
|
+
starters: [],
|
|
85953
|
+
kinds: MAKE_KINDS
|
|
85946
85954
|
};
|
|
85947
85955
|
}
|
|
85948
85956
|
var first = contact.members[0];
|
|
@@ -86003,6 +86011,8 @@ var LeadWorkspace = function LeadWorkspace(_ref) {
|
|
|
86003
86011
|
rawThemes = _ref2.rawThemes,
|
|
86004
86012
|
changeCurrentTheme = _ref2.changeCurrentTheme,
|
|
86005
86013
|
themeKey = _ref2.themeKey;
|
|
86014
|
+
// An example's colour: the accent role (as the side's links).
|
|
86015
|
+
var link = "".concat(currentTheme && currentTheme["text-primary-medium"] || "", " dr-role-accent");
|
|
86006
86016
|
var username = useRegistryUsername();
|
|
86007
86017
|
var panel = DashReact.getStylesForItem(DashReact.themeObjects.PANEL, currentTheme, {
|
|
86008
86018
|
grow: false
|
|
@@ -86011,7 +86021,8 @@ var LeadWorkspace = function LeadWorkspace(_ref) {
|
|
|
86011
86021
|
muted = _useConfigTokens.muted,
|
|
86012
86022
|
strong = _useConfigTokens.strong,
|
|
86013
86023
|
hairline = _useConfigTokens.hairline,
|
|
86014
|
-
selectedBg = _useConfigTokens.selectedBg
|
|
86024
|
+
selectedBg = _useConfigTokens.selectedBg,
|
|
86025
|
+
fieldBg = _useConfigTokens.fieldBg;
|
|
86015
86026
|
var statusTokens = DashReact.useStatusTokens();
|
|
86016
86027
|
var composer = React.useRef(null);
|
|
86017
86028
|
// The conversation's handle (AskStep's askPlanner): the plan's card sends
|
|
@@ -86892,16 +86903,17 @@ var LeadWorkspace = function LeadWorkspace(_ref) {
|
|
|
86892
86903
|
// The lead is still answering: the plan isn't changed meanwhile.
|
|
86893
86904
|
var answering = stillAnswering(messages) || askBusy;
|
|
86894
86905
|
|
|
86906
|
+
// Or start from shows in a new Dash Lead conversation (and a page's New
|
|
86907
|
+
// Dashboard), in the middle.
|
|
86908
|
+
var startsHere = !open && !!contact && contact.kind === "dashlead" && (!makingShown || makingDashboard);
|
|
86895
86909
|
// Start from (frame 13). Describing it is the box; the registry's
|
|
86896
86910
|
// dashboards open on the right (frame 42); copying a dashboard and editing
|
|
86897
86911
|
// a widget are on their pages.
|
|
86898
86912
|
var startFrom = function startFrom(kind) {
|
|
86899
|
-
if (kind === "describe") {
|
|
86900
|
-
if (composer.current) composer.current.focus();
|
|
86901
|
-
return;
|
|
86902
|
-
}
|
|
86903
86913
|
if (kind === "registry") {
|
|
86904
86914
|
setSideOpen("registry");
|
|
86915
|
+
// A small window: the right column is a panel — opened with it.
|
|
86916
|
+
if (narrow) setOutsOpen(true);
|
|
86905
86917
|
return;
|
|
86906
86918
|
}
|
|
86907
86919
|
if (kind === "blank" || kind === "import") {
|
|
@@ -87424,9 +87436,9 @@ var LeadWorkspace = function LeadWorkspace(_ref) {
|
|
|
87424
87436
|
}).length) : null
|
|
87425
87437
|
}, "".concat(contact.key, ":").concat(open.key)) : /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
87426
87438
|
children: [/*#__PURE__*/jsxRuntime.jsx("div", {
|
|
87427
|
-
className: "flex-1 min-h-0 overflow-y-auto flex flex-col
|
|
87439
|
+
className: "flex-1 min-h-0 overflow-y-auto flex flex-col px-6 py-6",
|
|
87428
87440
|
children: /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
87429
|
-
className: "flex flex-col gap-4 max-w-
|
|
87441
|
+
className: "flex flex-col gap-4 max-w-5xl my-auto",
|
|
87430
87442
|
"data-testid": "workspace-start",
|
|
87431
87443
|
children: [/*#__PURE__*/jsxRuntime.jsx("span", {
|
|
87432
87444
|
className: "text-2xl font-semibold ".concat(strong),
|
|
@@ -87439,7 +87451,7 @@ var LeadWorkspace = function LeadWorkspace(_ref) {
|
|
|
87439
87451
|
role: "status",
|
|
87440
87452
|
"data-testid": "workspace-seed-error",
|
|
87441
87453
|
children: seedError
|
|
87442
|
-
}) : null, /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
87454
|
+
}) : null, start.starters.length ? /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
87443
87455
|
className: "flex flex-row flex-wrap gap-2",
|
|
87444
87456
|
children: start.starters.map(function (s) {
|
|
87445
87457
|
return /*#__PURE__*/jsxRuntime.jsx(DashReact.Button2, {
|
|
@@ -87450,7 +87462,82 @@ var LeadWorkspace = function LeadWorkspace(_ref) {
|
|
|
87450
87462
|
}
|
|
87451
87463
|
}, s);
|
|
87452
87464
|
})
|
|
87453
|
-
})
|
|
87465
|
+
}) : null, start.kinds ? /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
87466
|
+
className: "flex flex-col gap-2",
|
|
87467
|
+
children: [/*#__PURE__*/jsxRuntime.jsx("div", {
|
|
87468
|
+
className: "flex flex-row flex-wrap gap-3",
|
|
87469
|
+
"data-testid": "workspace-make-kinds",
|
|
87470
|
+
children: start.kinds.map(function (k) {
|
|
87471
|
+
return /*#__PURE__*/jsxRuntime.jsxs("button", {
|
|
87472
|
+
type: "button",
|
|
87473
|
+
"aria-label": "".concat(k.title, ". ").concat(k.hint, ". Example: ").concat(k.example),
|
|
87474
|
+
onClick: function onClick() {
|
|
87475
|
+
setDraft(k.example);
|
|
87476
|
+
if (composer.current) composer.current.focus();
|
|
87477
|
+
},
|
|
87478
|
+
className: "w-44 flex flex-col items-start gap-1.5 rounded-xl border p-3 text-left ".concat(hairline),
|
|
87479
|
+
children: [/*#__PURE__*/jsxRuntime.jsx("span", {
|
|
87480
|
+
className: "flex items-center justify-center h-8 w-8 rounded-lg ".concat(fieldBg, " dr-role-well ").concat(strong),
|
|
87481
|
+
"aria-hidden": "true",
|
|
87482
|
+
children: /*#__PURE__*/jsxRuntime.jsx(DashReact.FontAwesomeIcon, {
|
|
87483
|
+
icon: k.icon,
|
|
87484
|
+
className: "h-4 w-4"
|
|
87485
|
+
})
|
|
87486
|
+
}), /*#__PURE__*/jsxRuntime.jsx("span", {
|
|
87487
|
+
className: "text-sm font-semibold ".concat(strong),
|
|
87488
|
+
children: k.title
|
|
87489
|
+
}), /*#__PURE__*/jsxRuntime.jsx("span", {
|
|
87490
|
+
className: "text-xs ".concat(muted),
|
|
87491
|
+
children: k.hint
|
|
87492
|
+
}), /*#__PURE__*/jsxRuntime.jsxs("span", {
|
|
87493
|
+
className: "text-xs ".concat(link),
|
|
87494
|
+
children: ["\u201C", k.example, "\u201D"]
|
|
87495
|
+
})]
|
|
87496
|
+
}, k.kind);
|
|
87497
|
+
})
|
|
87498
|
+
}), /*#__PURE__*/jsxRuntime.jsx("span", {
|
|
87499
|
+
className: "text-xs ".concat(muted),
|
|
87500
|
+
children: "Click one to put its example in the box \u2014 then change it to what you want."
|
|
87501
|
+
})]
|
|
87502
|
+
}) : null, startsHere ? /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
87503
|
+
className: "flex flex-col gap-2 pt-2",
|
|
87504
|
+
"data-testid": "workspace-start-from",
|
|
87505
|
+
children: [/*#__PURE__*/jsxRuntime.jsx("span", {
|
|
87506
|
+
className: "text-xs ".concat(muted),
|
|
87507
|
+
children: "Or start from"
|
|
87508
|
+
}), /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
87509
|
+
className: "flex flex-row flex-wrap gap-3",
|
|
87510
|
+
children: START_FROM.filter(function (s) {
|
|
87511
|
+
return !(makingDashboard && s.kind === "widget");
|
|
87512
|
+
}).map(function (s) {
|
|
87513
|
+
return /*#__PURE__*/jsxRuntime.jsxs("button", {
|
|
87514
|
+
type: "button",
|
|
87515
|
+
"aria-label": "".concat(s.title, ". ").concat(s.sub),
|
|
87516
|
+
onClick: function onClick() {
|
|
87517
|
+
return startFrom(s.kind);
|
|
87518
|
+
},
|
|
87519
|
+
className: "w-60 flex flex-row items-start gap-3 rounded-xl border p-3 text-left ".concat(hairline, " ").concat(selectedBg),
|
|
87520
|
+
children: [/*#__PURE__*/jsxRuntime.jsx("span", {
|
|
87521
|
+
className: "flex-shrink-0 flex items-center justify-center h-8 w-8 rounded-lg ".concat(fieldBg, " dr-role-well ").concat(strong),
|
|
87522
|
+
"aria-hidden": "true",
|
|
87523
|
+
children: /*#__PURE__*/jsxRuntime.jsx(DashReact.FontAwesomeIcon, {
|
|
87524
|
+
icon: s.icon,
|
|
87525
|
+
className: "h-4 w-4"
|
|
87526
|
+
})
|
|
87527
|
+
}), /*#__PURE__*/jsxRuntime.jsxs("span", {
|
|
87528
|
+
className: "flex-1 min-w-0 flex flex-col gap-0.5",
|
|
87529
|
+
children: [/*#__PURE__*/jsxRuntime.jsx("span", {
|
|
87530
|
+
className: "text-sm font-semibold ".concat(strong),
|
|
87531
|
+
children: s.title
|
|
87532
|
+
}), /*#__PURE__*/jsxRuntime.jsx("span", {
|
|
87533
|
+
className: "text-xs ".concat(muted),
|
|
87534
|
+
children: s.sub
|
|
87535
|
+
})]
|
|
87536
|
+
})]
|
|
87537
|
+
}, s.kind);
|
|
87538
|
+
})
|
|
87539
|
+
})]
|
|
87540
|
+
}) : null, makingShown && making.widget ? /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
87454
87541
|
children: /*#__PURE__*/jsxRuntime.jsx(DashReact.Button3, {
|
|
87455
87542
|
size: "sm",
|
|
87456
87543
|
title: "Edit the code yourself",
|
|
@@ -87549,15 +87636,7 @@ var LeadWorkspace = function LeadWorkspace(_ref) {
|
|
|
87549
87636
|
return !v;
|
|
87550
87637
|
});
|
|
87551
87638
|
},
|
|
87552
|
-
onSummary: setSideSummary
|
|
87553
|
-
// A page's New already says what's made: no Start from —
|
|
87554
|
-
// but New Dashboard has its starts (release 6c).
|
|
87555
|
-
,
|
|
87556
|
-
isNew: !open && !isBot && (!makingShown || makingDashboard)
|
|
87557
|
-
// New Dashboard's starts are about dashboards.
|
|
87558
|
-
,
|
|
87559
|
-
startFromSkip: makingDashboard ? ["widget"] : null,
|
|
87560
|
-
onStartFrom: startFrom,
|
|
87639
|
+
onSummary: setSideSummary,
|
|
87561
87640
|
onUseRegistry: pickRegistryDashboard
|
|
87562
87641
|
}) : null]
|
|
87563
87642
|
})]
|