@flamingo-stack/openframe-frontend-core 0.0.771 → 0.0.772
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/{chunk-UG263H4A.cjs → chunk-2MAENZL3.cjs} +16 -16
- package/dist/{chunk-NQ4WRB3Y.cjs → chunk-7FYOVKQD.cjs} +2 -2
- package/dist/{chunk-4AF5E6E5.cjs → chunk-E25TJPWV.cjs} +3 -3
- package/dist/{chunk-SETDVBMW.cjs → chunk-IHCHU355.cjs} +15 -15
- package/dist/{chunk-4DMYDHCD.cjs → chunk-J5ZNEAGY.cjs} +16 -16
- package/dist/{chunk-L5QJZBZK.cjs → chunk-QOEOY7BJ.cjs} +12 -12
- package/dist/{chunk-WT5XF66W.cjs → chunk-QPK2433W.cjs} +7 -7
- package/dist/{chunk-JPOIEEFO.cjs → chunk-S3NEBAKD.cjs} +4 -4
- package/dist/{chunk-GX3JUXYX.cjs → chunk-UR3I3J5K.cjs} +35 -35
- package/dist/{chunk-2LTJ4457.cjs → chunk-V3W56L2D.cjs} +13 -5
- package/dist/{chunk-62P4Q4Q3.cjs → chunk-VZAOLKKF.cjs} +26 -26
- package/dist/{chunk-TGPHB7PC.cjs → chunk-W5LX7DFB.cjs} +3 -3
- package/dist/{chunk-ALNP25TX.cjs → chunk-ZVKJKWAB.cjs} +179 -179
- package/dist/{cloud-tenants-XRXWTUGP.cjs → cloud-tenants-CUNC5KBD.cjs} +3 -3
- package/dist/components/case-studies/index.cjs +13 -13
- package/dist/components/contact/index.cjs +4 -4
- package/dist/components/docs/index.cjs +6 -6
- package/dist/components/embeds/index.cjs +4 -4
- package/dist/components/faq/index.cjs +4 -4
- package/dist/components/features/index.cjs +3 -3
- package/dist/components/help-center-pages/index.cjs +55 -55
- package/dist/components/index.cjs +20 -20
- package/dist/components/meeting-scheduler/index.cjs +28 -28
- package/dist/components/navigation/index.cjs +4 -4
- package/dist/components/onboarding-guides/index.cjs +5 -5
- package/dist/components/product-demo/index.cjs +13 -13
- package/dist/components/tickets/index.cjs +6 -6
- package/dist/components/ui/index.cjs +3 -3
- package/dist/components/ui/select.d.ts +11 -1
- package/dist/components/ui/select.d.ts.map +1 -1
- package/dist/components/ui/select.js +13 -5
- package/dist/{devices-L4ER34X7.cjs → devices-TO4VUO7F.cjs} +4 -4
- package/dist/index.cjs +4 -4
- package/dist/{knowledge-PZYA65GL.cjs → knowledge-CYJP4XYY.cjs} +3 -3
- package/dist/{logs-GYTZWHDP.cjs → logs-NL3ZBQKC.cjs} +11 -11
- package/dist/{policies-OIK7NWJ7.cjs → policies-WTUV4EIT.cjs} +7 -7
- package/dist/{remote-session-3HFVODOT.cjs → remote-session-TC3BZDBZ.cjs} +4 -4
- package/dist/{scripts-K4L3STNZ.cjs → scripts-EE6MLBQP.cjs} +10 -10
- package/dist/{software-update-RWV2RI5C.cjs → software-update-HX6PN4SB.cjs} +7 -7
- package/package.json +1 -1
- package/src/components/ui/select.tsx +28 -7
|
@@ -8,10 +8,10 @@ var _chunkSTEJZPIOcjs = require('./chunk-STEJZPIO.cjs');
|
|
|
8
8
|
var _chunkDKOLQPE7cjs = require('./chunk-DKOLQPE7.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunkZVKJKWABcjs = require('./chunk-ZVKJKWAB.cjs');
|
|
12
12
|
require('./chunk-LJT2KRE2.cjs');
|
|
13
13
|
require('./chunk-RB7VLVMD.cjs');
|
|
14
|
-
require('./chunk-
|
|
14
|
+
require('./chunk-V3W56L2D.cjs');
|
|
15
15
|
require('./chunk-HQQE74RO.cjs');
|
|
16
16
|
require('./chunk-DEY6XXGO.cjs');
|
|
17
17
|
require('./chunk-XVFM6SJA.cjs');
|
|
@@ -1903,7 +1903,7 @@ function KnowledgeScreen(_props) {
|
|
|
1903
1903
|
const cast = _chunkSTEJZPIOcjs.useProductDemoCast.call(void 0, );
|
|
1904
1904
|
const fixture = _react.useMemo.call(void 0, () => buildKnowledgeFixture(cast), [cast]);
|
|
1905
1905
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-full bg-ods-bg", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1906
|
-
|
|
1906
|
+
_chunkZVKJKWABcjs.KnowledgeBaseArticleView,
|
|
1907
1907
|
{
|
|
1908
1908
|
...fixture.article,
|
|
1909
1909
|
content: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkILZEXCJHcjs.SimpleMarkdownRenderer, { content: fixture.content, textSize: "compact" })
|
|
@@ -16,10 +16,10 @@ var _chunkDKOLQPE7cjs = require('./chunk-DKOLQPE7.cjs');
|
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
|
|
19
|
-
var
|
|
19
|
+
var _chunkZVKJKWABcjs = require('./chunk-ZVKJKWAB.cjs');
|
|
20
20
|
require('./chunk-LJT2KRE2.cjs');
|
|
21
21
|
require('./chunk-RB7VLVMD.cjs');
|
|
22
|
-
require('./chunk-
|
|
22
|
+
require('./chunk-V3W56L2D.cjs');
|
|
23
23
|
require('./chunk-HQQE74RO.cjs');
|
|
24
24
|
require('./chunk-DEY6XXGO.cjs');
|
|
25
25
|
require('./chunk-XVFM6SJA.cjs');
|
|
@@ -1884,7 +1884,7 @@ function entry(logId, minutesAgo, severity, toolType, device2, summary) {
|
|
|
1884
1884
|
id: logId,
|
|
1885
1885
|
logId,
|
|
1886
1886
|
timestamp: displayTime(_chunkDKOLQPE7cjs.demoMinutesAgo.call(void 0, minutesAgo)),
|
|
1887
|
-
status: { label: severity, variant:
|
|
1887
|
+
status: { label: severity, variant: _chunkZVKJKWABcjs.logSeverityVariant.call(void 0, severity) },
|
|
1888
1888
|
source: { name: toolType, toolType },
|
|
1889
1889
|
device: device2,
|
|
1890
1890
|
description: { title: summary }
|
|
@@ -1956,13 +1956,13 @@ var NO_FILTERS = {};
|
|
|
1956
1956
|
var ACTION_COLUMNS = ["copy", "quickView", "open"];
|
|
1957
1957
|
var BESIDE_DRAWER_HIDDEN = [...ACTION_COLUMNS, "tool", "source"];
|
|
1958
1958
|
var logHref = () => "#";
|
|
1959
|
-
var copyAction = () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1959
|
+
var copyAction = () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZVKJKWABcjs.LogCopyIconButton, {});
|
|
1960
1960
|
function LogsScreen({ compact = false }) {
|
|
1961
1961
|
const [dock, setDock] = _react.useState.call(void 0, null);
|
|
1962
1962
|
const selected = LOGS_FIXTURE_SELECTED;
|
|
1963
1963
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex h-full bg-ods-bg", children: [
|
|
1964
1964
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0 flex-1 overflow-clip", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1965
|
-
|
|
1965
|
+
_chunkZVKJKWABcjs.LogsPageView,
|
|
1966
1966
|
{
|
|
1967
1967
|
showHeader: false,
|
|
1968
1968
|
className: "p-[var(--spacing-system-l)]",
|
|
@@ -1970,7 +1970,7 @@ function LogsScreen({ compact = false }) {
|
|
|
1970
1970
|
onSearchChange: noop,
|
|
1971
1971
|
onOpenFilters: noop,
|
|
1972
1972
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1973
|
-
|
|
1973
|
+
_chunkZVKJKWABcjs.LogsTableView,
|
|
1974
1974
|
{
|
|
1975
1975
|
logs: LOGS_FIXTURE_ENTRIES,
|
|
1976
1976
|
facets: LOGS_FIXTURE_FACETS,
|
|
@@ -1984,8 +1984,8 @@ function LogsScreen({ compact = false }) {
|
|
|
1984
1984
|
)
|
|
1985
1985
|
}
|
|
1986
1986
|
) }),
|
|
1987
|
-
!compact && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref: setDock, className: "relative w-[calc(400px+var(--spacing-system-m))] shrink-0", children: dock && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1988
|
-
|
|
1987
|
+
!compact && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref: setDock, className: "relative w-[calc(400px+var(--spacing-system-m))] shrink-0", children: dock && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZVKJKWABcjs.AppLayoutDrawerContainerContext.Provider, { value: dock, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1988
|
+
_chunkZVKJKWABcjs.LogDrawer,
|
|
1989
1989
|
{
|
|
1990
1990
|
docked: true,
|
|
1991
1991
|
isOpen: true,
|
|
@@ -1997,12 +1997,12 @@ function LogsScreen({ compact = false }) {
|
|
|
1997
1997
|
{ label: "Log ID", value: selected.logId },
|
|
1998
1998
|
{
|
|
1999
1999
|
label: "Source",
|
|
2000
|
-
value: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2000
|
+
value: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZVKJKWABcjs.ToolBadge, { toolType: _chunkYI3CDGKMcjs.normalizeToolTypeWithFallback.call(void 0, selected.source.toolType) })
|
|
2001
2001
|
},
|
|
2002
|
-
{ label: "Device", value:
|
|
2002
|
+
{ label: "Device", value: _chunkZVKJKWABcjs.logSourceLabels.call(void 0, selected.device).deviceName }
|
|
2003
2003
|
],
|
|
2004
2004
|
deviceCard: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2005
|
-
|
|
2005
|
+
_chunkZVKJKWABcjs.DeviceCard,
|
|
2006
2006
|
{
|
|
2007
2007
|
...LOGS_FIXTURE_DEVICE,
|
|
2008
2008
|
actions: {
|
|
@@ -10,10 +10,10 @@ var _chunkDKOLQPE7cjs = require('./chunk-DKOLQPE7.cjs');
|
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _chunkZVKJKWABcjs = require('./chunk-ZVKJKWAB.cjs');
|
|
14
14
|
require('./chunk-LJT2KRE2.cjs');
|
|
15
15
|
require('./chunk-RB7VLVMD.cjs');
|
|
16
|
-
require('./chunk-
|
|
16
|
+
require('./chunk-V3W56L2D.cjs');
|
|
17
17
|
require('./chunk-HQQE74RO.cjs');
|
|
18
18
|
require('./chunk-DEY6XXGO.cjs');
|
|
19
19
|
require('./chunk-XVFM6SJA.cjs');
|
|
@@ -1889,14 +1889,14 @@ var POLICIES = [
|
|
|
1889
1889
|
policy("policy-local-admins", "No local admins", "No everyday account is a local administrator.", false, 0)
|
|
1890
1890
|
];
|
|
1891
1891
|
var POLICIES_FIXTURE = {
|
|
1892
|
-
summary:
|
|
1892
|
+
summary: _chunkZVKJKWABcjs.computePolicySummary.call(void 0, POLICIES),
|
|
1893
1893
|
rows: POLICIES.map((item) => ({
|
|
1894
1894
|
id: item.id,
|
|
1895
1895
|
name: item.name,
|
|
1896
1896
|
description: item.description,
|
|
1897
1897
|
critical: item.critical,
|
|
1898
1898
|
severityLabel: item.critical ? "Critical" : "Low",
|
|
1899
|
-
status:
|
|
1899
|
+
status: _chunkZVKJKWABcjs.getPolicyTableStatus.call(void 0, item),
|
|
1900
1900
|
actions: [
|
|
1901
1901
|
{ label: "Policy Details", onClick: noop },
|
|
1902
1902
|
{ label: "Delete Policy", onClick: noop }
|
|
@@ -1910,16 +1910,16 @@ var POLICIES_FIXTURE = {
|
|
|
1910
1910
|
var _jsxruntime = require('react/jsx-runtime');
|
|
1911
1911
|
function PoliciesScreen({ compact = false }) {
|
|
1912
1912
|
const table = /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1913
|
-
|
|
1913
|
+
_chunkZVKJKWABcjs.PoliciesTable,
|
|
1914
1914
|
{
|
|
1915
1915
|
rows: POLICIES_FIXTURE.rows,
|
|
1916
1916
|
rowAsLink: true,
|
|
1917
|
-
rightSlot: compact ? void 0 : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1917
|
+
rightSlot: compact ? void 0 : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZVKJKWABcjs.DataTable.RowCount, {}),
|
|
1918
1918
|
emptyMessage: "No policies found."
|
|
1919
1919
|
}
|
|
1920
1920
|
);
|
|
1921
1921
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex h-full flex-col gap-[var(--spacing-system-l)] bg-ods-bg p-[var(--spacing-system-l)]", children: [
|
|
1922
|
-
!compact && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1922
|
+
!compact && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZVKJKWABcjs.PolicySummaryCards, { summary: POLICIES_FIXTURE.summary, now: POLICIES_FIXTURE.now }),
|
|
1923
1923
|
table
|
|
1924
1924
|
] });
|
|
1925
1925
|
}
|
|
@@ -11,7 +11,7 @@ var _chunkDKOLQPE7cjs = require('./chunk-DKOLQPE7.cjs');
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkV3W56L2Dcjs = require('./chunk-V3W56L2D.cjs');
|
|
15
15
|
require('./chunk-A6P6DHEZ.cjs');
|
|
16
16
|
require('./chunk-5QP3K2CE.cjs');
|
|
17
17
|
require('./chunk-LELS4XMX.cjs');
|
|
@@ -1918,7 +1918,7 @@ function TaskbarApp({ icon, active = false }) {
|
|
|
1918
1918
|
);
|
|
1919
1919
|
}
|
|
1920
1920
|
function RemoteDesktopPicture({ desktop }) {
|
|
1921
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: `absolute inset-0 flex flex-col overflow-hidden ${
|
|
1921
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: `absolute inset-0 flex flex-col overflow-hidden ${_chunkV3W56L2Dcjs.DEVICE_WALLPAPER_CLASS}`, children: [
|
|
1922
1922
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "relative min-h-0 flex-1", children: [
|
|
1923
1923
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "absolute left-[var(--spacing-system-sf)] top-[var(--spacing-system-sf)] hidden flex-col gap-[var(--spacing-system-sf)] content-md:flex", children: [
|
|
1924
1924
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, DesktopShortcut, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIYHH5EIOcjs.TrashIcon, { className: "h-5 w-5" }), label: "Recycle Bin" }),
|
|
@@ -1982,7 +1982,7 @@ function RemoteSessionScreen({ compact = false }) {
|
|
|
1982
1982
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex h-full flex-col bg-ods-bg", children: [
|
|
1983
1983
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-[var(--spacing-system-l)] flex-shrink-0" }),
|
|
1984
1984
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-h-0 flex-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1985
|
-
|
|
1985
|
+
_chunkV3W56L2Dcjs.RemoteDesktopView,
|
|
1986
1986
|
{
|
|
1987
1987
|
...fixture.view,
|
|
1988
1988
|
onEnterFullscreen: noop,
|
|
@@ -1993,7 +1993,7 @@ function RemoteSessionScreen({ compact = false }) {
|
|
|
1993
1993
|
screen: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, RemoteDesktopPicture, { desktop: fixture.desktop }),
|
|
1994
1994
|
chat: compact ? null : (
|
|
1995
1995
|
// The side column needs the room of the wide layout; a narrow frame keeps the screen alone.
|
|
1996
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "hidden min-h-0 content-md:flex", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1996
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "hidden min-h-0 content-md:flex", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV3W56L2Dcjs.RemoteDesktopChatPanel, { ...fixture.chat, sending: false, onSend: keepDraft, variant: "side" }) })
|
|
1997
1997
|
)
|
|
1998
1998
|
}
|
|
1999
1999
|
) })
|
|
@@ -13,12 +13,12 @@ var _chunkDKOLQPE7cjs = require('./chunk-DKOLQPE7.cjs');
|
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunkZVKJKWABcjs = require('./chunk-ZVKJKWAB.cjs');
|
|
17
17
|
require('./chunk-LJT2KRE2.cjs');
|
|
18
18
|
require('./chunk-RB7VLVMD.cjs');
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
var
|
|
21
|
+
var _chunkV3W56L2Dcjs = require('./chunk-V3W56L2D.cjs');
|
|
22
22
|
require('./chunk-HQQE74RO.cjs');
|
|
23
23
|
require('./chunk-DEY6XXGO.cjs');
|
|
24
24
|
require('./chunk-XVFM6SJA.cjs');
|
|
@@ -1993,8 +1993,8 @@ function buildScriptsFixture(cast) {
|
|
|
1993
1993
|
var _jsxruntime = require('react/jsx-runtime');
|
|
1994
1994
|
var WIDE_HIDDEN_COLUMNS = ["result", "open"];
|
|
1995
1995
|
var COMPACT_COLUMNS = [
|
|
1996
|
-
{ ...
|
|
1997
|
-
|
|
1996
|
+
{ ..._chunkZVKJKWABcjs.EXECUTION_COLUMNS.machineId, width: "flex-1 min-w-0", hideAt: void 0 },
|
|
1997
|
+
_chunkZVKJKWABcjs.EXECUTION_COLUMNS.status
|
|
1998
1998
|
];
|
|
1999
1999
|
var COMPACT_ROWS = 4;
|
|
2000
2000
|
var TOKEN_CLASS = {
|
|
@@ -2044,16 +2044,16 @@ function ScriptCodePicture({ script }) {
|
|
|
2044
2044
|
children: [
|
|
2045
2045
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-[var(--spacing-system-xxs)] border-b border-ods-border p-[var(--spacing-system-m)]", children: [
|
|
2046
2046
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 items-center justify-between gap-[var(--spacing-system-m)]", children: [
|
|
2047
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2047
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV3W56L2Dcjs.TruncateText, { variant: "h4", children: script.name }),
|
|
2048
2048
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex shrink-0 items-center gap-[var(--spacing-system-xxs)] text-ods-text-primary text-h6", children: [
|
|
2049
2049
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTPKKRHUMcjs.TimerIcon, { className: "size-4 text-ods-text-secondary" }),
|
|
2050
2050
|
`${schedule.repeat} ${schedule.time} \xB7 ${schedule.deviceCount} devices`
|
|
2051
2051
|
] })
|
|
2052
2052
|
] }),
|
|
2053
2053
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 items-center justify-between gap-[var(--spacing-system-m)]", children: [
|
|
2054
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2054
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV3W56L2Dcjs.TruncateText, { variant: "h6", tone: "secondary", children: `Written by ${provenance.author} \xB7 approved by ${provenance.approver}` }),
|
|
2055
2055
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2056
|
-
|
|
2056
|
+
_chunkZVKJKWABcjs.ScriptShellBadge,
|
|
2057
2057
|
{
|
|
2058
2058
|
value: script.shellType,
|
|
2059
2059
|
className: "shrink-0 text-ods-text-secondary text-h6",
|
|
@@ -2077,7 +2077,7 @@ function ScriptsScreen({ compact = false }) {
|
|
|
2077
2077
|
return (
|
|
2078
2078
|
// Four runs of the card's row height fill the frame; the padding is what is left round them.
|
|
2079
2079
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-full overflow-hidden bg-ods-bg p-[var(--spacing-system-xsf)]", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2080
|
-
|
|
2080
|
+
_chunkZVKJKWABcjs.ScriptExecutionsTable,
|
|
2081
2081
|
{
|
|
2082
2082
|
rows: fixture.executions.slice(0, COMPACT_ROWS),
|
|
2083
2083
|
columns: COMPACT_COLUMNS,
|
|
@@ -2087,13 +2087,13 @@ function ScriptsScreen({ compact = false }) {
|
|
|
2087
2087
|
) })
|
|
2088
2088
|
);
|
|
2089
2089
|
}
|
|
2090
|
-
const renderOutput = (row) => row.id === fixture.openExecutionId ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2090
|
+
const renderOutput = (row) => row.id === fixture.openExecutionId ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZVKJKWABcjs.ScriptExecutionResult, { result: row.result, empty: "\u2014" }) : null;
|
|
2091
2091
|
return (
|
|
2092
2092
|
// The frame's tighter padding and no header row: the output opened under a run needs the height.
|
|
2093
2093
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex h-full gap-[var(--spacing-system-m)] overflow-hidden bg-ods-bg p-[var(--spacing-system-m)]", children: [
|
|
2094
2094
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "w-[39%] shrink-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ScriptCodePicture, { script: fixture.script }) }),
|
|
2095
2095
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0 flex-1 overflow-hidden", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2096
|
-
|
|
2096
|
+
_chunkZVKJKWABcjs.ScriptExecutionsTable,
|
|
2097
2097
|
{
|
|
2098
2098
|
rows: fixture.executions,
|
|
2099
2099
|
hideColumns: WIDE_HIDDEN_COLUMNS,
|
|
@@ -15,12 +15,12 @@ var _chunkDKOLQPE7cjs = require('./chunk-DKOLQPE7.cjs');
|
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _chunkZVKJKWABcjs = require('./chunk-ZVKJKWAB.cjs');
|
|
19
19
|
require('./chunk-LJT2KRE2.cjs');
|
|
20
20
|
require('./chunk-RB7VLVMD.cjs');
|
|
21
21
|
|
|
22
22
|
|
|
23
|
-
var
|
|
23
|
+
var _chunkV3W56L2Dcjs = require('./chunk-V3W56L2D.cjs');
|
|
24
24
|
require('./chunk-HQQE74RO.cjs');
|
|
25
25
|
require('./chunk-DEY6XXGO.cjs');
|
|
26
26
|
require('./chunk-XVFM6SJA.cjs');
|
|
@@ -1918,14 +1918,14 @@ var noop = () => {
|
|
|
1918
1918
|
var HIDDEN_WHEN_COMPACT = ["organization"];
|
|
1919
1919
|
function StaticPackageField({ value }) {
|
|
1920
1920
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1921
|
-
|
|
1921
|
+
_chunkV3W56L2Dcjs.Autocomplete,
|
|
1922
1922
|
{
|
|
1923
|
-
label:
|
|
1923
|
+
label: _chunkZVKJKWABcjs.PACKAGE_SEARCH_LABEL,
|
|
1924
1924
|
labelVariant: "large",
|
|
1925
1925
|
options: value ? [{ value: value.id, label: value.name, description: _nullishCoalesce(value.description, () => ( void 0)) }] : [],
|
|
1926
1926
|
value: _nullishCoalesce(_optionalChain([value, 'optionalAccess', _ => _.id]), () => ( null)),
|
|
1927
1927
|
onChange: noop,
|
|
1928
|
-
placeholder:
|
|
1928
|
+
placeholder: _chunkZVKJKWABcjs.PACKAGE_SEARCH_PLACEHOLDER
|
|
1929
1929
|
}
|
|
1930
1930
|
);
|
|
1931
1931
|
}
|
|
@@ -1939,7 +1939,7 @@ function SoftwareUpdateScreen({ compact = false }) {
|
|
|
1939
1939
|
[fixture.devices, fixture.selectedIds]
|
|
1940
1940
|
);
|
|
1941
1941
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-full bg-ods-bg pt-[var(--spacing-system-l)]", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1942
|
-
|
|
1942
|
+
_chunkZVKJKWABcjs.SoftwareActionForm,
|
|
1943
1943
|
{
|
|
1944
1944
|
action: fixture.action,
|
|
1945
1945
|
showHeader: false,
|
|
@@ -1951,7 +1951,7 @@ function SoftwareUpdateScreen({ compact = false }) {
|
|
|
1951
1951
|
initialValues: fixture.initialValues,
|
|
1952
1952
|
renderPackageSearch,
|
|
1953
1953
|
renderDevicePicker: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1954
|
-
|
|
1954
|
+
_chunkZVKJKWABcjs.DeviceSelector,
|
|
1955
1955
|
{
|
|
1956
1956
|
devices: selected,
|
|
1957
1957
|
loading: false,
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import * as SelectPrimitive from '@radix-ui/react-select';
|
|
4
4
|
import { ChevronDown, ChevronUp } from 'lucide-react';
|
|
5
|
-
import { type ComponentPropsWithoutRef, type ComponentRef, type ElementRef, forwardRef } from 'react';
|
|
5
|
+
import { type ComponentPropsWithoutRef, type ComponentRef, type ElementRef, forwardRef, type ReactNode } from 'react';
|
|
6
6
|
import { cn } from '../../utils/cn';
|
|
7
7
|
import { Chevron02DownIcon } from '../icons-v2-generated/arrows/chevron-02-down-icon';
|
|
8
8
|
import { CheckIcon } from '../icons-v2-generated/signs-and-symbols/check-icon';
|
|
@@ -154,14 +154,26 @@ SelectLabel.displayName = SelectPrimitive.Label.displayName;
|
|
|
154
154
|
|
|
155
155
|
const SelectItem = forwardRef<
|
|
156
156
|
ComponentRef<typeof SelectPrimitive.Item>,
|
|
157
|
-
ComponentPropsWithoutRef<typeof SelectPrimitive.Item>
|
|
158
|
-
|
|
157
|
+
ComponentPropsWithoutRef<typeof SelectPrimitive.Item> & {
|
|
158
|
+
/**
|
|
159
|
+
* A second, secondary-coloured line under the label. The row grows to
|
|
160
|
+
* fit it and both lines wrap, so a sentence longer than the list is read
|
|
161
|
+
* in full instead of being clipped at the edge. It sits outside
|
|
162
|
+
* `ItemText`, so the closed trigger mirrors the label alone and typeahead
|
|
163
|
+
* matches the label alone.
|
|
164
|
+
*/
|
|
165
|
+
description?: ReactNode;
|
|
166
|
+
}
|
|
167
|
+
>(({ className, children, description, ...props }, ref) => (
|
|
159
168
|
<SelectPrimitive.Item
|
|
160
169
|
ref={ref}
|
|
161
170
|
className={cn(
|
|
162
|
-
'flex
|
|
171
|
+
'flex w-full cursor-pointer select-none items-center justify-between gap-2 border-b border-ods-border px-4 last:border-b-0',
|
|
163
172
|
// Typography - match trigger
|
|
164
|
-
'
|
|
173
|
+
'text-h4',
|
|
174
|
+
description == null
|
|
175
|
+
? 'h-11 whitespace-nowrap md:h-12'
|
|
176
|
+
: 'min-h-11 whitespace-normal py-[var(--spacing-system-xs)] md:min-h-12',
|
|
165
177
|
// Hover state with visible background change
|
|
166
178
|
'outline-none hover:bg-ods-bg-hover data-[highlighted]:bg-ods-bg-surface',
|
|
167
179
|
'data-[disabled]:pointer-events-none data-[disabled]:opacity-50',
|
|
@@ -170,8 +182,17 @@ const SelectItem = forwardRef<
|
|
|
170
182
|
)}
|
|
171
183
|
{...props}
|
|
172
184
|
>
|
|
173
|
-
|
|
174
|
-
|
|
185
|
+
{description == null ? (
|
|
186
|
+
<SelectPrimitive.ItemText>{children}</SelectPrimitive.ItemText>
|
|
187
|
+
) : (
|
|
188
|
+
// min-w-0 lets the column shrink below its longest line, which is what
|
|
189
|
+
// makes the lines wrap instead of pushing past the list's edge.
|
|
190
|
+
<span className="flex min-w-0 flex-col text-left">
|
|
191
|
+
<SelectPrimitive.ItemText>{children}</SelectPrimitive.ItemText>
|
|
192
|
+
<span className="text-ods-text-secondary text-h6">{description}</span>
|
|
193
|
+
</span>
|
|
194
|
+
)}
|
|
195
|
+
<SelectPrimitive.ItemIndicator className="shrink-0">
|
|
175
196
|
<CheckIcon className="text-ods-accent" size={20} />
|
|
176
197
|
</SelectPrimitive.ItemIndicator>
|
|
177
198
|
</SelectPrimitive.Item>
|