@flamingo-stack/openframe-frontend-core 0.0.800 → 0.0.802
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/build/export-map.json +1 -1
- package/dist/{chunk-5LTKE6D3.cjs → chunk-2BUSXRZ7.cjs} +10 -10
- package/dist/{chunk-CDLOQCJC.cjs → chunk-3W2PBWD5.cjs} +4 -4
- package/dist/{chunk-WWWCFNKI.cjs → chunk-52NI57KM.cjs} +52 -52
- package/dist/{chunk-3C6JR5Z5.cjs → chunk-75BFVMNA.cjs} +39 -39
- package/dist/{chunk-OEEFUB25.cjs → chunk-7E4BC3AF.cjs} +15 -13
- package/dist/{chunk-OGUBSDU5.cjs → chunk-A7IT7MZO.cjs} +6 -6
- package/dist/{chunk-CM2UGR4I.cjs → chunk-A7NRENMU.cjs} +19 -19
- package/dist/{chunk-FCT7VKWG.cjs → chunk-CRVXQYUZ.cjs} +18 -18
- package/dist/{chunk-LTOSJI6B.cjs → chunk-D3IQHAGL.cjs} +13 -13
- package/dist/{chunk-S7CBD6KF.cjs → chunk-DSIIRR3G.cjs} +57 -57
- package/dist/{chunk-XAJPXPQ6.cjs → chunk-DYDS2P5G.cjs} +2 -2
- package/dist/{chunk-KH5DRO4V.cjs → chunk-EJVJDLYC.cjs} +3 -3
- package/dist/{chunk-OUKKLSME.cjs → chunk-HRMLGU6A.cjs} +3 -3
- package/dist/{chunk-DUSCG2EO.cjs → chunk-M7E7ILE5.cjs} +4 -4
- package/dist/{chunk-PQNRSUQ6.cjs → chunk-NCQJIYDN.cjs} +13 -13
- package/dist/{chunk-BWR5ACK3.cjs → chunk-OG4XH6C5.cjs} +3 -1
- package/dist/{chunk-PZVBTLLQ.cjs → chunk-VMQAJIQC.cjs} +131 -131
- package/dist/{chunk-5PDOKPBF.cjs → chunk-YD344MMX.cjs} +9 -9
- package/dist/{chunk-IX2D26OR.cjs → chunk-YMPCACQX.cjs} +39 -39
- package/dist/{cloud-tenants-S3BDIJHM.cjs → cloud-tenants-3SWYRUXB.cjs} +5 -5
- package/dist/components/case-studies/index.cjs +17 -17
- package/dist/components/chat/chat-context-picker.d.ts.map +1 -1
- package/dist/components/chat/chat-context-picker.js +16 -14
- package/dist/components/chat/index.cjs +3 -3
- package/dist/components/contact/index.cjs +6 -6
- package/dist/components/docs/index.cjs +9 -9
- package/dist/components/embeds/index.cjs +6 -6
- package/dist/components/faq/index.cjs +7 -7
- package/dist/components/features/index.cjs +5 -5
- package/dist/components/help-center-pages/download-apps-page.d.ts +9 -2
- package/dist/components/help-center-pages/download-apps-page.d.ts.map +1 -1
- package/dist/components/help-center-pages/download-apps-page.js +39 -15
- package/dist/components/help-center-pages/index.cjs +113 -88
- package/dist/components/index.cjs +40 -40
- package/dist/components/meeting-scheduler/index.cjs +35 -35
- package/dist/components/navigation/index.cjs +8 -8
- package/dist/components/onboarding-guides/index.cjs +7 -7
- package/dist/components/product-demo/index.cjs +14 -14
- package/dist/components/tickets/index.cjs +10 -10
- package/dist/components/ui/index.cjs +5 -5
- package/dist/{devices-C6OOVBJK.cjs → devices-MQILRW53.cjs} +6 -6
- package/dist/{embeddable-chat-2EBDLEVA.cjs → embeddable-chat-XZDZOHFY.cjs} +59 -59
- package/dist/hooks/index.cjs +2 -2
- package/dist/index.cjs +11 -9
- package/dist/{knowledge-YA5SFLQP.cjs → knowledge-WQ3ABXZC.cjs} +6 -6
- package/dist/loading-standard/engine.d.mts +1 -0
- package/dist/loading-standard/engine.d.mts.map +1 -1
- package/dist/loading-standard/rule-examples.d.mts.map +1 -1
- package/dist/{logs-LQX2CNVB.cjs → logs-XRSJGB3I.cjs} +13 -13
- package/dist/{policies-LWAUO6NR.cjs → policies-Q67ZXAGY.cjs} +9 -9
- package/dist/{scripts-W46RQ64X.cjs → scripts-YX324R4S.cjs} +10 -10
- package/dist/{software-update-OVR26DUF.cjs → software-update-PHMXJVAC.cjs} +8 -8
- package/dist/types/downloads.d.ts +5 -0
- package/dist/types/downloads.d.ts.map +1 -1
- package/dist/types/downloads.js +3 -1
- package/dist/types/index.cjs +2 -0
- package/package.json +1 -1
- package/src/components/chat/chat-context-picker.tsx +30 -16
- package/src/components/help-center-pages/download-apps-page.tsx +42 -13
- package/src/loading-standard/engine.mjs +49 -2
- package/src/loading-standard/rule-examples.mjs +35 -3
- package/src/types/downloads.ts +6 -0
|
@@ -8,22 +8,22 @@ var _chunkLHV2R6QUcjs = require('./chunk-LHV2R6QU.cjs');
|
|
|
8
8
|
var _chunkFDZOE5TLcjs = require('./chunk-FDZOE5TL.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunkVMQAJIQCcjs = require('./chunk-VMQAJIQC.cjs');
|
|
12
12
|
require('./chunk-DTBIIFZG.cjs');
|
|
13
13
|
require('./chunk-NG3RKTQU.cjs');
|
|
14
14
|
require('./chunk-E56LN23H.cjs');
|
|
15
15
|
require('./chunk-HQQE74RO.cjs');
|
|
16
16
|
require('./chunk-DEY6XXGO.cjs');
|
|
17
|
-
require('./chunk-
|
|
17
|
+
require('./chunk-OG4XH6C5.cjs');
|
|
18
18
|
require('./chunk-VXAKQRV7.cjs');
|
|
19
19
|
require('./chunk-24I6RFVU.cjs');
|
|
20
20
|
require('./chunk-A6P6DHEZ.cjs');
|
|
21
21
|
require('./chunk-MZ4KBSH7.cjs');
|
|
22
22
|
require('./chunk-YR74H7Z3.cjs');
|
|
23
|
-
require('./chunk-
|
|
23
|
+
require('./chunk-CRVXQYUZ.cjs');
|
|
24
24
|
|
|
25
25
|
|
|
26
|
-
var
|
|
26
|
+
var _chunk7E4BC3AFcjs = require('./chunk-7E4BC3AF.cjs');
|
|
27
27
|
require('./chunk-7MV23NNT.cjs');
|
|
28
28
|
require('./chunk-ZD6SZLO2.cjs');
|
|
29
29
|
require('./chunk-3NGJ7NPT.cjs');
|
|
@@ -1905,10 +1905,10 @@ function KnowledgeScreen(_props) {
|
|
|
1905
1905
|
const cast = _chunkLHV2R6QUcjs.useProductDemoCast.call(void 0, );
|
|
1906
1906
|
const fixture = _react.useMemo.call(void 0, () => buildKnowledgeFixture(cast), [cast]);
|
|
1907
1907
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-full bg-ods-bg", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1908
|
-
|
|
1908
|
+
_chunkVMQAJIQCcjs.KnowledgeBaseArticleView,
|
|
1909
1909
|
{
|
|
1910
1910
|
...fixture.article,
|
|
1911
|
-
content: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1911
|
+
content: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7E4BC3AFcjs.SimpleMarkdownRenderer, { content: fixture.content, textSize: "compact" })
|
|
1912
1912
|
}
|
|
1913
1913
|
) });
|
|
1914
1914
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"engine.d.mts","sourceRoot":"","sources":["../../src/loading-standard/engine.mjs"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"engine.d.mts","sourceRoot":"","sources":["../../src/loading-standard/engine.mjs"],"names":[],"mappings":"AAwKA;;;GAGG;AACH,qDAYC;AAwiDD;;;;;;;GAOG;AACH,wCAHW,OAAO,0DACP;IAAE,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;IAAC,QAAQ,CAAC,WAAW;IAAC,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAAC,MAAM,CAAC,EAAE,KAAK,CAAC;QAAE,GAAG,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,EAAE,CAAA;KAAE,CAAC,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,EAAE,CAAA;CAAE;;;;;;IAoB9L;AAmgDD,4DAA4D;AAC5D;;aAIC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAthGG;;;;WAIG;QACH;;iBAUC;;;;;;;;;;;;;;;;;;;;;;;AAwiBL;;;;GAIG;AACH;IACE,kGAAkG;IAClG,4BAwCC;IAvCC,WAA4D;IAC5D,oBAAqB;IACrB,sBAAuB;IAWvB,sBAAuB;IACvB,0BAA2B;IAO3B,wBAA8B;IAI9B,2BAA4B;IAC5B,0BAA2B;IAC3B,gBAA8F;IAC9F,eAIC;IACD,qBAIC;IACD,qBAA6C;IAG/C,qHAAqH;IACrH,2BAIC;IAED,sBAcC;IAwCD,yFAAyF;IACzF,6BAEC;IAgBD,yGAAyG;IACzG,uDAeC;IAED,wGAAwG;IACxG;;;;;;;;aAYC;IAED,mHAAmH;IACnH,kDAYC;IA6CD;;;;OAIG;IACH,0EAyBC;IAqBD,sHAAsH;IACtH,mDA0BC;IAeD,sBAQC;IAPmB,kCAAuB;;CAQ5C;AA34BD,kCAAqC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rule-examples.d.mts","sourceRoot":"","sources":["../../src/loading-standard/rule-examples.mjs"],"names":[],"mappings":"AAqBA;;;;;GAKG;AACH,4BAFU,KAAK,CAAC;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;CAAE,CAAC,
|
|
1
|
+
{"version":3,"file":"rule-examples.d.mts","sourceRoot":"","sources":["../../src/loading-standard/rule-examples.mjs"],"names":[],"mappings":"AAqBA;;;;;GAKG;AACH,4BAFU,KAAK,CAAC;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;CAAE,CAAC,CA4nB1G"}
|
|
@@ -16,13 +16,13 @@ var _chunkFDZOE5TLcjs = require('./chunk-FDZOE5TL.cjs');
|
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
|
|
19
|
-
var
|
|
19
|
+
var _chunkVMQAJIQCcjs = require('./chunk-VMQAJIQC.cjs');
|
|
20
20
|
require('./chunk-DTBIIFZG.cjs');
|
|
21
21
|
require('./chunk-NG3RKTQU.cjs');
|
|
22
22
|
require('./chunk-E56LN23H.cjs');
|
|
23
23
|
require('./chunk-HQQE74RO.cjs');
|
|
24
24
|
require('./chunk-DEY6XXGO.cjs');
|
|
25
|
-
require('./chunk-
|
|
25
|
+
require('./chunk-OG4XH6C5.cjs');
|
|
26
26
|
require('./chunk-VXAKQRV7.cjs');
|
|
27
27
|
require('./chunk-24I6RFVU.cjs');
|
|
28
28
|
require('./chunk-A6P6DHEZ.cjs');
|
|
@@ -30,8 +30,8 @@ require('./chunk-MZ4KBSH7.cjs');
|
|
|
30
30
|
require('./chunk-YR74H7Z3.cjs');
|
|
31
31
|
|
|
32
32
|
|
|
33
|
-
var
|
|
34
|
-
require('./chunk-
|
|
33
|
+
var _chunkCRVXQYUZcjs = require('./chunk-CRVXQYUZ.cjs');
|
|
34
|
+
require('./chunk-7E4BC3AF.cjs');
|
|
35
35
|
require('./chunk-7MV23NNT.cjs');
|
|
36
36
|
require('./chunk-ZD6SZLO2.cjs');
|
|
37
37
|
require('./chunk-3NGJ7NPT.cjs');
|
|
@@ -1886,7 +1886,7 @@ function entry(logId, minutesAgo, severity, toolType, device2, summary) {
|
|
|
1886
1886
|
id: logId,
|
|
1887
1887
|
logId,
|
|
1888
1888
|
timestamp: displayTime(_chunkFDZOE5TLcjs.demoMinutesAgo.call(void 0, minutesAgo)),
|
|
1889
|
-
status: { label: severity, variant:
|
|
1889
|
+
status: { label: severity, variant: _chunkVMQAJIQCcjs.logSeverityVariant.call(void 0, severity) },
|
|
1890
1890
|
source: { name: toolType, toolType },
|
|
1891
1891
|
device: device2,
|
|
1892
1892
|
description: { title: summary }
|
|
@@ -1958,13 +1958,13 @@ var NO_FILTERS = {};
|
|
|
1958
1958
|
var ACTION_COLUMNS = ["copy", "quickView", "open"];
|
|
1959
1959
|
var BESIDE_DRAWER_HIDDEN = [...ACTION_COLUMNS, "tool", "source"];
|
|
1960
1960
|
var logHref = () => "#";
|
|
1961
|
-
var copyAction = () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1961
|
+
var copyAction = () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVMQAJIQCcjs.LogCopyIconButton, {});
|
|
1962
1962
|
function LogsScreen({ compact = false }) {
|
|
1963
1963
|
const [dock, setDock] = _react.useState.call(void 0, null);
|
|
1964
1964
|
const selected = LOGS_FIXTURE_SELECTED;
|
|
1965
1965
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex h-full bg-ods-bg", children: [
|
|
1966
1966
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0 flex-1 overflow-clip", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1967
|
-
|
|
1967
|
+
_chunkVMQAJIQCcjs.LogsPageView,
|
|
1968
1968
|
{
|
|
1969
1969
|
showHeader: false,
|
|
1970
1970
|
className: "p-[var(--spacing-system-l)]",
|
|
@@ -1972,7 +1972,7 @@ function LogsScreen({ compact = false }) {
|
|
|
1972
1972
|
onSearchChange: noop,
|
|
1973
1973
|
onOpenFilters: noop,
|
|
1974
1974
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1975
|
-
|
|
1975
|
+
_chunkVMQAJIQCcjs.LogsTableView,
|
|
1976
1976
|
{
|
|
1977
1977
|
logs: LOGS_FIXTURE_ENTRIES,
|
|
1978
1978
|
facets: LOGS_FIXTURE_FACETS,
|
|
@@ -1986,8 +1986,8 @@ function LogsScreen({ compact = false }) {
|
|
|
1986
1986
|
)
|
|
1987
1987
|
}
|
|
1988
1988
|
) }),
|
|
1989
|
-
!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,
|
|
1990
|
-
|
|
1989
|
+
!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, _chunkVMQAJIQCcjs.AppLayoutDrawerContainerContext.Provider, { value: dock, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1990
|
+
_chunkVMQAJIQCcjs.LogDrawer,
|
|
1991
1991
|
{
|
|
1992
1992
|
docked: true,
|
|
1993
1993
|
isOpen: true,
|
|
@@ -1999,12 +1999,12 @@ function LogsScreen({ compact = false }) {
|
|
|
1999
1999
|
{ label: "Log ID", value: selected.logId },
|
|
2000
2000
|
{
|
|
2001
2001
|
label: "Source",
|
|
2002
|
-
value: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2002
|
+
value: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVMQAJIQCcjs.ToolBadge, { toolType: _chunkCRVXQYUZcjs.normalizeToolTypeWithFallback.call(void 0, selected.source.toolType) })
|
|
2003
2003
|
},
|
|
2004
|
-
{ label: "Device", value:
|
|
2004
|
+
{ label: "Device", value: _chunkVMQAJIQCcjs.logSourceLabels.call(void 0, selected.device).deviceName }
|
|
2005
2005
|
],
|
|
2006
2006
|
deviceCard: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2007
|
-
|
|
2007
|
+
_chunkVMQAJIQCcjs.DeviceCard,
|
|
2008
2008
|
{
|
|
2009
2009
|
...LOGS_FIXTURE_DEVICE,
|
|
2010
2010
|
actions: {
|
|
@@ -10,20 +10,20 @@ var _chunkFDZOE5TLcjs = require('./chunk-FDZOE5TL.cjs');
|
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _chunkVMQAJIQCcjs = require('./chunk-VMQAJIQC.cjs');
|
|
14
14
|
require('./chunk-DTBIIFZG.cjs');
|
|
15
15
|
require('./chunk-NG3RKTQU.cjs');
|
|
16
16
|
require('./chunk-E56LN23H.cjs');
|
|
17
17
|
require('./chunk-HQQE74RO.cjs');
|
|
18
18
|
require('./chunk-DEY6XXGO.cjs');
|
|
19
|
-
require('./chunk-
|
|
19
|
+
require('./chunk-OG4XH6C5.cjs');
|
|
20
20
|
require('./chunk-VXAKQRV7.cjs');
|
|
21
21
|
require('./chunk-24I6RFVU.cjs');
|
|
22
22
|
require('./chunk-A6P6DHEZ.cjs');
|
|
23
23
|
require('./chunk-MZ4KBSH7.cjs');
|
|
24
24
|
require('./chunk-YR74H7Z3.cjs');
|
|
25
|
-
require('./chunk-
|
|
26
|
-
require('./chunk-
|
|
25
|
+
require('./chunk-CRVXQYUZ.cjs');
|
|
26
|
+
require('./chunk-7E4BC3AF.cjs');
|
|
27
27
|
require('./chunk-7MV23NNT.cjs');
|
|
28
28
|
require('./chunk-ZD6SZLO2.cjs');
|
|
29
29
|
require('./chunk-3NGJ7NPT.cjs');
|
|
@@ -1891,14 +1891,14 @@ var POLICIES = [
|
|
|
1891
1891
|
policy("policy-local-admins", "No local admins", "No everyday account is a local administrator.", false, 0)
|
|
1892
1892
|
];
|
|
1893
1893
|
var POLICIES_FIXTURE = {
|
|
1894
|
-
summary:
|
|
1894
|
+
summary: _chunkVMQAJIQCcjs.computePolicySummary.call(void 0, POLICIES),
|
|
1895
1895
|
rows: POLICIES.map((item) => ({
|
|
1896
1896
|
id: item.id,
|
|
1897
1897
|
name: item.name,
|
|
1898
1898
|
description: item.description,
|
|
1899
1899
|
critical: item.critical,
|
|
1900
1900
|
severityLabel: item.critical ? "Critical" : "Low",
|
|
1901
|
-
status:
|
|
1901
|
+
status: _chunkVMQAJIQCcjs.getPolicyTableStatus.call(void 0, item),
|
|
1902
1902
|
actions: [
|
|
1903
1903
|
{ label: "Policy Details", onClick: noop },
|
|
1904
1904
|
{ label: "Delete Policy", onClick: noop }
|
|
@@ -1912,16 +1912,16 @@ var POLICIES_FIXTURE = {
|
|
|
1912
1912
|
var _jsxruntime = require('react/jsx-runtime');
|
|
1913
1913
|
function PoliciesScreen({ compact = false }) {
|
|
1914
1914
|
const table = /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1915
|
-
|
|
1915
|
+
_chunkVMQAJIQCcjs.PoliciesTable,
|
|
1916
1916
|
{
|
|
1917
1917
|
rows: POLICIES_FIXTURE.rows,
|
|
1918
1918
|
rowAsLink: true,
|
|
1919
|
-
rightSlot: compact ? void 0 : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1919
|
+
rightSlot: compact ? void 0 : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVMQAJIQCcjs.DataTable.RowCount, {}),
|
|
1920
1920
|
emptyMessage: "No policies found."
|
|
1921
1921
|
}
|
|
1922
1922
|
);
|
|
1923
1923
|
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: [
|
|
1924
|
-
!compact && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1924
|
+
!compact && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVMQAJIQCcjs.PolicySummaryCards, { summary: POLICIES_FIXTURE.summary, now: POLICIES_FIXTURE.now }),
|
|
1925
1925
|
table
|
|
1926
1926
|
] });
|
|
1927
1927
|
}
|
|
@@ -13,7 +13,7 @@ var _chunkFDZOE5TLcjs = require('./chunk-FDZOE5TL.cjs');
|
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunkVMQAJIQCcjs = require('./chunk-VMQAJIQC.cjs');
|
|
17
17
|
require('./chunk-DTBIIFZG.cjs');
|
|
18
18
|
require('./chunk-NG3RKTQU.cjs');
|
|
19
19
|
|
|
@@ -21,14 +21,14 @@ require('./chunk-NG3RKTQU.cjs');
|
|
|
21
21
|
var _chunkE56LN23Hcjs = require('./chunk-E56LN23H.cjs');
|
|
22
22
|
require('./chunk-HQQE74RO.cjs');
|
|
23
23
|
require('./chunk-DEY6XXGO.cjs');
|
|
24
|
-
require('./chunk-
|
|
24
|
+
require('./chunk-OG4XH6C5.cjs');
|
|
25
25
|
require('./chunk-VXAKQRV7.cjs');
|
|
26
26
|
require('./chunk-24I6RFVU.cjs');
|
|
27
27
|
require('./chunk-A6P6DHEZ.cjs');
|
|
28
28
|
require('./chunk-MZ4KBSH7.cjs');
|
|
29
29
|
require('./chunk-YR74H7Z3.cjs');
|
|
30
|
-
require('./chunk-
|
|
31
|
-
require('./chunk-
|
|
30
|
+
require('./chunk-CRVXQYUZ.cjs');
|
|
31
|
+
require('./chunk-7E4BC3AF.cjs');
|
|
32
32
|
require('./chunk-7MV23NNT.cjs');
|
|
33
33
|
require('./chunk-ZD6SZLO2.cjs');
|
|
34
34
|
require('./chunk-3NGJ7NPT.cjs');
|
|
@@ -1995,8 +1995,8 @@ function buildScriptsFixture(cast) {
|
|
|
1995
1995
|
var _jsxruntime = require('react/jsx-runtime');
|
|
1996
1996
|
var WIDE_HIDDEN_COLUMNS = ["result", "open"];
|
|
1997
1997
|
var COMPACT_COLUMNS = [
|
|
1998
|
-
{ ...
|
|
1999
|
-
|
|
1998
|
+
{ ..._chunkVMQAJIQCcjs.EXECUTION_COLUMNS.machineId, width: "flex-1 min-w-0", hideAt: void 0 },
|
|
1999
|
+
_chunkVMQAJIQCcjs.EXECUTION_COLUMNS.status
|
|
2000
2000
|
];
|
|
2001
2001
|
var COMPACT_ROWS = 4;
|
|
2002
2002
|
var TOKEN_CLASS = {
|
|
@@ -2055,7 +2055,7 @@ function ScriptCodePicture({ script }) {
|
|
|
2055
2055
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 items-center justify-between gap-[var(--spacing-system-m)]", children: [
|
|
2056
2056
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkE56LN23Hcjs.TruncateText, { variant: "h6", tone: "secondary", children: `Written by ${provenance.author} \xB7 approved by ${provenance.approver}` }),
|
|
2057
2057
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2058
|
-
|
|
2058
|
+
_chunkVMQAJIQCcjs.ScriptShellBadge,
|
|
2059
2059
|
{
|
|
2060
2060
|
value: script.shellType,
|
|
2061
2061
|
className: "shrink-0 text-ods-text-secondary text-h6",
|
|
@@ -2079,7 +2079,7 @@ function ScriptsScreen({ compact = false }) {
|
|
|
2079
2079
|
return (
|
|
2080
2080
|
// Four runs of the card's row height fill the frame; the padding is what is left round them.
|
|
2081
2081
|
/* @__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,
|
|
2082
|
-
|
|
2082
|
+
_chunkVMQAJIQCcjs.ScriptExecutionsTable,
|
|
2083
2083
|
{
|
|
2084
2084
|
rows: fixture.executions.slice(0, COMPACT_ROWS),
|
|
2085
2085
|
columns: COMPACT_COLUMNS,
|
|
@@ -2089,13 +2089,13 @@ function ScriptsScreen({ compact = false }) {
|
|
|
2089
2089
|
) })
|
|
2090
2090
|
);
|
|
2091
2091
|
}
|
|
2092
|
-
const renderOutput = (row) => row.id === fixture.openExecutionId ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2092
|
+
const renderOutput = (row) => row.id === fixture.openExecutionId ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVMQAJIQCcjs.ScriptExecutionResult, { result: row.result, empty: "\u2014" }) : null;
|
|
2093
2093
|
return (
|
|
2094
2094
|
// The frame's tighter padding and no header row: the output opened under a run needs the height.
|
|
2095
2095
|
/* @__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: [
|
|
2096
2096
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "w-[39%] shrink-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ScriptCodePicture, { script: fixture.script }) }),
|
|
2097
2097
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0 flex-1 overflow-hidden", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2098
|
-
|
|
2098
|
+
_chunkVMQAJIQCcjs.ScriptExecutionsTable,
|
|
2099
2099
|
{
|
|
2100
2100
|
rows: fixture.executions,
|
|
2101
2101
|
hideColumns: WIDE_HIDDEN_COLUMNS,
|
|
@@ -15,7 +15,7 @@ var _chunkFDZOE5TLcjs = require('./chunk-FDZOE5TL.cjs');
|
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _chunkVMQAJIQCcjs = require('./chunk-VMQAJIQC.cjs');
|
|
19
19
|
require('./chunk-DTBIIFZG.cjs');
|
|
20
20
|
require('./chunk-NG3RKTQU.cjs');
|
|
21
21
|
|
|
@@ -23,14 +23,14 @@ require('./chunk-NG3RKTQU.cjs');
|
|
|
23
23
|
var _chunkE56LN23Hcjs = require('./chunk-E56LN23H.cjs');
|
|
24
24
|
require('./chunk-HQQE74RO.cjs');
|
|
25
25
|
require('./chunk-DEY6XXGO.cjs');
|
|
26
|
-
require('./chunk-
|
|
26
|
+
require('./chunk-OG4XH6C5.cjs');
|
|
27
27
|
require('./chunk-VXAKQRV7.cjs');
|
|
28
28
|
require('./chunk-24I6RFVU.cjs');
|
|
29
29
|
require('./chunk-A6P6DHEZ.cjs');
|
|
30
30
|
require('./chunk-MZ4KBSH7.cjs');
|
|
31
31
|
require('./chunk-YR74H7Z3.cjs');
|
|
32
|
-
require('./chunk-
|
|
33
|
-
require('./chunk-
|
|
32
|
+
require('./chunk-CRVXQYUZ.cjs');
|
|
33
|
+
require('./chunk-7E4BC3AF.cjs');
|
|
34
34
|
require('./chunk-7MV23NNT.cjs');
|
|
35
35
|
require('./chunk-ZD6SZLO2.cjs');
|
|
36
36
|
require('./chunk-3NGJ7NPT.cjs');
|
|
@@ -1922,12 +1922,12 @@ function StaticPackageField({ value }) {
|
|
|
1922
1922
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1923
1923
|
_chunkE56LN23Hcjs.Autocomplete,
|
|
1924
1924
|
{
|
|
1925
|
-
label:
|
|
1925
|
+
label: _chunkVMQAJIQCcjs.PACKAGE_SEARCH_LABEL,
|
|
1926
1926
|
labelVariant: "large",
|
|
1927
1927
|
options: value ? [{ value: value.id, label: value.name, description: _nullishCoalesce(value.description, () => ( void 0)) }] : [],
|
|
1928
1928
|
value: _nullishCoalesce(_optionalChain([value, 'optionalAccess', _ => _.id]), () => ( null)),
|
|
1929
1929
|
onChange: noop,
|
|
1930
|
-
placeholder:
|
|
1930
|
+
placeholder: _chunkVMQAJIQCcjs.PACKAGE_SEARCH_PLACEHOLDER
|
|
1931
1931
|
}
|
|
1932
1932
|
);
|
|
1933
1933
|
}
|
|
@@ -1941,7 +1941,7 @@ function SoftwareUpdateScreen({ compact = false }) {
|
|
|
1941
1941
|
[fixture.devices, fixture.selectedIds]
|
|
1942
1942
|
);
|
|
1943
1943
|
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,
|
|
1944
|
-
|
|
1944
|
+
_chunkVMQAJIQCcjs.SoftwareActionForm,
|
|
1945
1945
|
{
|
|
1946
1946
|
action: fixture.action,
|
|
1947
1947
|
showHeader: false,
|
|
@@ -1953,7 +1953,7 @@ function SoftwareUpdateScreen({ compact = false }) {
|
|
|
1953
1953
|
initialValues: fixture.initialValues,
|
|
1954
1954
|
renderPackageSearch,
|
|
1955
1955
|
renderDevicePicker: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1956
|
-
|
|
1956
|
+
_chunkVMQAJIQCcjs.DeviceSelector,
|
|
1957
1957
|
{
|
|
1958
1958
|
devices: selected,
|
|
1959
1959
|
loading: false,
|
|
@@ -71,6 +71,11 @@ export interface DownloadsPublic {
|
|
|
71
71
|
export declare const DESKTOP_OS_LABELS: Record<DesktopOs, string>;
|
|
72
72
|
/** An architecture's name beside a button, when a system has more than one installer. */
|
|
73
73
|
export declare const DOWNLOAD_ARCHITECTURE_LABELS: Record<string, string>;
|
|
74
|
+
/**
|
|
75
|
+
* The label of the button that replaces a download once the installer is on its way: it opens the
|
|
76
|
+
* app the visitor is installing. One wording for every place a host draws it.
|
|
77
|
+
*/
|
|
78
|
+
export declare const OPEN_APP_LABEL = "Open the app";
|
|
74
79
|
/** What a host learns when a visitor takes an install action on the page. */
|
|
75
80
|
export interface DownloadActionEvent {
|
|
76
81
|
/** `installer`: a download button. `command`: a copied install command. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"downloads.d.ts","sourceRoot":"","sources":["../../src/types/downloads.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAErD,uGAAuG;AACvG,eAAO,MAAM,kBAAkB,mBAAmB,CAAC;AAEnD,iGAAiG;AACjG,eAAO,MAAM,uBAAuB,MAAM,CAAC;AAE3C,eAAO,MAAM,eAAe,uBAAuB,CAAC;AACpD,eAAO,MAAM,iBAAiB,8FAC+D,CAAC;AAC9F,qEAAqE;AACrE,eAAO,MAAM,sBAAsB,0BAA0B,CAAC;AAC9D,eAAO,MAAM,wBAAwB,mFAC6C,CAAC;AAEnF;;;GAGG;AACH,eAAO,MAAM,kBAAkB,gCAAiC,CAAC;AACjE,MAAM,MAAM,eAAe,GAAG,CAAC,OAAO,kBAAkB,CAAC,CAAC,MAAM,CAAC,CAAC;AAElE,wDAAwD;AACxD,MAAM,WAAW,WAAW;IAC1B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,eAAe,CAAC;IACtB,EAAE,EAAE,SAAS,CAAC;IACd,uDAAuD;IACvD,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,0CAA0C;IAC1C,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;IACnB,8CAA8C;IAC9C,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,mBAAmB;IACnB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,oFAAoF;IACpF,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;CACtB;AAED;;;;;GAKG;AACH,MAAM,WAAW,oBAAoB;IACnC,6CAA6C;IAC7C,GAAG,EAAE,MAAM,CAAC;IACZ,qEAAqE;IACrE,aAAa,EAAE,MAAM,CAAC;IACtB,iFAAiF;IACjF,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,mHAAmH;AACnH,MAAM,WAAW,cAAc;IAC7B,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,0EAA0E;IAC1E,OAAO,CAAC,EAAE,oBAAoB,GAAG,IAAI,CAAC;CACvC;AAED;;;GAGG;AACH,MAAM,WAAW,eAAe;IAC9B,kIAAkI;IAClI,OAAO,EAAE,WAAW,EAAE,CAAC;IACvB,uCAAuC;IACvC,MAAM,EAAE,cAAc,CAAC;CACxB;AAED,8CAA8C;AAC9C,eAAO,MAAM,iBAAiB,EAAE,MAAM,CAAC,SAAS,EAAE,MAAM,CAAsD,CAAC;AAE/G,yFAAyF;AACzF,eAAO,MAAM,4BAA4B,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAI/D,CAAC;AAEF,6EAA6E;AAC7E,MAAM,WAAW,mBAAmB;IAClC,2EAA2E;IAC3E,MAAM,EAAE,WAAW,GAAG,SAAS,CAAC;IAChC,yDAAyD;IACzD,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,SAAS,CAAC;IACd,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;CAC7B"}
|
|
1
|
+
{"version":3,"file":"downloads.d.ts","sourceRoot":"","sources":["../../src/types/downloads.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAErD,uGAAuG;AACvG,eAAO,MAAM,kBAAkB,mBAAmB,CAAC;AAEnD,iGAAiG;AACjG,eAAO,MAAM,uBAAuB,MAAM,CAAC;AAE3C,eAAO,MAAM,eAAe,uBAAuB,CAAC;AACpD,eAAO,MAAM,iBAAiB,8FAC+D,CAAC;AAC9F,qEAAqE;AACrE,eAAO,MAAM,sBAAsB,0BAA0B,CAAC;AAC9D,eAAO,MAAM,wBAAwB,mFAC6C,CAAC;AAEnF;;;GAGG;AACH,eAAO,MAAM,kBAAkB,gCAAiC,CAAC;AACjE,MAAM,MAAM,eAAe,GAAG,CAAC,OAAO,kBAAkB,CAAC,CAAC,MAAM,CAAC,CAAC;AAElE,wDAAwD;AACxD,MAAM,WAAW,WAAW;IAC1B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,eAAe,CAAC;IACtB,EAAE,EAAE,SAAS,CAAC;IACd,uDAAuD;IACvD,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,0CAA0C;IAC1C,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;IACnB,8CAA8C;IAC9C,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,mBAAmB;IACnB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,oFAAoF;IACpF,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;CACtB;AAED;;;;;GAKG;AACH,MAAM,WAAW,oBAAoB;IACnC,6CAA6C;IAC7C,GAAG,EAAE,MAAM,CAAC;IACZ,qEAAqE;IACrE,aAAa,EAAE,MAAM,CAAC;IACtB,iFAAiF;IACjF,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,mHAAmH;AACnH,MAAM,WAAW,cAAc;IAC7B,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,0EAA0E;IAC1E,OAAO,CAAC,EAAE,oBAAoB,GAAG,IAAI,CAAC;CACvC;AAED;;;GAGG;AACH,MAAM,WAAW,eAAe;IAC9B,kIAAkI;IAClI,OAAO,EAAE,WAAW,EAAE,CAAC;IACvB,uCAAuC;IACvC,MAAM,EAAE,cAAc,CAAC;CACxB;AAED,8CAA8C;AAC9C,eAAO,MAAM,iBAAiB,EAAE,MAAM,CAAC,SAAS,EAAE,MAAM,CAAsD,CAAC;AAE/G,yFAAyF;AACzF,eAAO,MAAM,4BAA4B,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAI/D,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,cAAc,iBAAiB,CAAC;AAE7C,6EAA6E;AAC7E,MAAM,WAAW,mBAAmB;IAClC,2EAA2E;IAC3E,MAAM,EAAE,WAAW,GAAG,SAAS,CAAC;IAChC,yDAAyD;IACzD,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,SAAS,CAAC;IACd,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;CAC7B"}
|
package/dist/types/downloads.js
CHANGED
|
@@ -11,6 +11,7 @@ const DOWNLOAD_ARCHITECTURE_LABELS = {
|
|
|
11
11
|
x64: "x64",
|
|
12
12
|
arm64: "ARM"
|
|
13
13
|
};
|
|
14
|
+
const OPEN_APP_LABEL = "Open the app";
|
|
14
15
|
export {
|
|
15
16
|
APP_DOWNLOAD_KINDS,
|
|
16
17
|
DESKTOP_OS_LABELS,
|
|
@@ -20,5 +21,6 @@ export {
|
|
|
20
21
|
DOWNLOADS_MOBILE_TITLE,
|
|
21
22
|
DOWNLOADS_TAGLINE,
|
|
22
23
|
DOWNLOADS_TITLE,
|
|
23
|
-
DOWNLOAD_ARCHITECTURE_LABELS
|
|
24
|
+
DOWNLOAD_ARCHITECTURE_LABELS,
|
|
25
|
+
OPEN_APP_LABEL
|
|
24
26
|
};
|
package/dist/types/index.cjs
CHANGED
|
@@ -187,6 +187,7 @@ var DOWNLOAD_ARCHITECTURE_LABELS = {
|
|
|
187
187
|
x64: "x64",
|
|
188
188
|
arm64: "ARM"
|
|
189
189
|
};
|
|
190
|
+
var OPEN_APP_LABEL = "Open the app";
|
|
190
191
|
|
|
191
192
|
// src/types/tool.types.ts
|
|
192
193
|
var ToolTypeValues = {
|
|
@@ -625,6 +626,7 @@ exports.DOWNLOADS_TITLE = DOWNLOADS_TITLE;
|
|
|
625
626
|
exports.DOWNLOAD_ARCHITECTURE_LABELS = DOWNLOAD_ARCHITECTURE_LABELS;
|
|
626
627
|
exports.ENTITY_QUOTES_TITLE = ENTITY_QUOTES_TITLE;
|
|
627
628
|
exports.FAQ_KINDS = FAQ_KINDS;
|
|
629
|
+
exports.OPEN_APP_LABEL = OPEN_APP_LABEL;
|
|
628
630
|
exports.OSTypeValues = OSTypeValues;
|
|
629
631
|
exports.OS_TYPES = OS_TYPES;
|
|
630
632
|
exports.SEMVER_REGEX = SEMVER_REGEX;
|
package/package.json
CHANGED
|
@@ -31,7 +31,7 @@ import { PlusIcon } from '../icons-v2-generated/signs-and-symbols/plus-icon';
|
|
|
31
31
|
import { XmarkCircleIcon } from '../icons-v2-generated/signs-and-symbols/xmark-circle-icon';
|
|
32
32
|
import { LoadingSuspense } from '../loading/loading-fallback';
|
|
33
33
|
import { Button } from '../ui/button';
|
|
34
|
-
import { LOADING_NOOP } from '../ui/loading-scope';
|
|
34
|
+
import { LOADING_NOOP, useLoadingScope } from '../ui/loading-scope';
|
|
35
35
|
import {
|
|
36
36
|
CONTEXT_BACK_BAR_CLASS,
|
|
37
37
|
CONTEXT_STATE_CLASS,
|
|
@@ -388,26 +388,16 @@ export function ChatContextPicker({
|
|
|
388
388
|
</div>
|
|
389
389
|
)}
|
|
390
390
|
>
|
|
391
|
-
<
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
fallback={
|
|
395
|
-
<ContextItemsList
|
|
396
|
-
items={[]}
|
|
397
|
-
selectedKeys={NO_SELECTED_KEYS}
|
|
398
|
-
onToggle={LOADING_NOOP}
|
|
399
|
-
atLimit={false}
|
|
400
|
-
/>
|
|
401
|
-
}
|
|
402
|
-
>
|
|
403
|
-
{config.renderItems({
|
|
391
|
+
<ContextItems
|
|
392
|
+
renderItems={config.renderItems}
|
|
393
|
+
args={{
|
|
404
394
|
type: activeType.type,
|
|
405
395
|
query: debouncedQuery,
|
|
406
396
|
selectedKeys,
|
|
407
397
|
onToggle: onToggleItem,
|
|
408
398
|
atLimit,
|
|
409
|
-
}
|
|
410
|
-
|
|
399
|
+
}}
|
|
400
|
+
/>
|
|
411
401
|
</ContextErrorBoundary>
|
|
412
402
|
)}
|
|
413
403
|
</QueryErrorResetBoundary>
|
|
@@ -417,6 +407,30 @@ export function ChatContextPicker({
|
|
|
417
407
|
);
|
|
418
408
|
}
|
|
419
409
|
|
|
410
|
+
type ContextItemsArgs = Parameters<ChatContextPickerConfig['renderItems']>[0];
|
|
411
|
+
|
|
412
|
+
/** The host-rendered items of a type, with their own boundary: in its scope the reader draws the list's skeleton rows. */
|
|
413
|
+
function ContextItems(props: { renderItems: ChatContextPickerConfig['renderItems']; args: ContextItemsArgs }) {
|
|
414
|
+
return (
|
|
415
|
+
<LoadingSuspense label="Loading items">
|
|
416
|
+
<ContextItemsReader {...props} />
|
|
417
|
+
</LoadingSuspense>
|
|
418
|
+
);
|
|
419
|
+
}
|
|
420
|
+
|
|
421
|
+
/** In a loading scope, the SAME list the host renders with no items (one page of its own skeleton rows); else the host's. */
|
|
422
|
+
function ContextItemsReader({
|
|
423
|
+
renderItems,
|
|
424
|
+
args,
|
|
425
|
+
}: {
|
|
426
|
+
renderItems: ChatContextPickerConfig['renderItems'];
|
|
427
|
+
args: ContextItemsArgs;
|
|
428
|
+
}) {
|
|
429
|
+
if (useLoadingScope())
|
|
430
|
+
return <ContextItemsList items={[]} selectedKeys={NO_SELECTED_KEYS} onToggle={LOADING_NOOP} atLimit={false} />;
|
|
431
|
+
return <>{renderItems(args)}</>;
|
|
432
|
+
}
|
|
433
|
+
|
|
420
434
|
// ===========================================================================
|
|
421
435
|
// CHIP STRIP — selected items above the input (Figma node 1:5699)
|
|
422
436
|
// ===========================================================================
|
|
@@ -45,6 +45,7 @@ import {
|
|
|
45
45
|
DOWNLOADS_MOBILE_TITLE,
|
|
46
46
|
DOWNLOADS_TAGLINE,
|
|
47
47
|
DOWNLOADS_TITLE,
|
|
48
|
+
OPEN_APP_LABEL,
|
|
48
49
|
type AppDownload,
|
|
49
50
|
type DownloadActionEvent,
|
|
50
51
|
type DownloadsPublic,
|
|
@@ -58,6 +59,7 @@ import { CommandBox } from '../features/command-box';
|
|
|
58
59
|
import { AppleLogoIcon } from '../icons-v2-generated/brand-logos/apple-logo-icon';
|
|
59
60
|
import { WindowsLogoGreyIcon } from '../icons-v2-generated/brand-logos/windows-logo-grey-icon';
|
|
60
61
|
import { Download01Icon } from '../icons-v2-generated/interface/download-01-icon';
|
|
62
|
+
import { ExternalLinkIcon } from '../icons-v2-generated/interface/external-link-icon';
|
|
61
63
|
import { PageShell } from '../layout/article-detail-layout';
|
|
62
64
|
import { PageLayout } from '../layout/page-layout';
|
|
63
65
|
import { LoadingRegion } from '../loading/loading-region';
|
|
@@ -88,6 +90,13 @@ export interface DownloadAppsPageProps {
|
|
|
88
90
|
openStoresInNewTab?: boolean;
|
|
89
91
|
/** Called when a visitor downloads an installer or copies an install command (the host's analytics). */
|
|
90
92
|
onDownloadAction?: (event: DownloadActionEvent) => void;
|
|
93
|
+
/**
|
|
94
|
+
* Once an installer is downloaded, the link that opens the app it installs, which then stands in
|
|
95
|
+
* for that row's download button ("Open the app"); nothing keeps the download. The host decides
|
|
96
|
+
* both, as it is the one that knows a download happened (the website tags each click with the
|
|
97
|
+
* id the link carries). Absent: every installer stays a download.
|
|
98
|
+
*/
|
|
99
|
+
openAppHref?: (download: AppDownload) => string | null | undefined;
|
|
91
100
|
/** The closing card, under the mobile app: using OpenFrame without installing anything. Default: none. */
|
|
92
101
|
web?: DownloadAppsWebOption;
|
|
93
102
|
/**
|
|
@@ -184,9 +193,11 @@ function installerLabel(download: AppDownload, siblings: number): string {
|
|
|
184
193
|
function SystemCard({
|
|
185
194
|
system,
|
|
186
195
|
onDownloadAction,
|
|
196
|
+
openAppHref,
|
|
187
197
|
}: {
|
|
188
198
|
system: SystemRows;
|
|
189
199
|
onDownloadAction?: DownloadAppsPageProps['onDownloadAction'];
|
|
200
|
+
openAppHref?: DownloadAppsPageProps['openAppHref'];
|
|
190
201
|
}) {
|
|
191
202
|
const { copy } = useCopyToClipboard({
|
|
192
203
|
successTitle: 'Copied',
|
|
@@ -204,18 +215,30 @@ function SystemCard({
|
|
|
204
215
|
/>
|
|
205
216
|
{system.installers.length > 0 && (
|
|
206
217
|
<div className={BUTTONS_CLASS}>
|
|
207
|
-
{system.installers.map((download, index) =>
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
218
|
+
{system.installers.map((download, index) => {
|
|
219
|
+
const openApp = openAppHref?.(download);
|
|
220
|
+
return openApp ? (
|
|
221
|
+
<Button
|
|
222
|
+
key={download.id}
|
|
223
|
+
variant={index === 0 ? 'accent' : 'outline'}
|
|
224
|
+
href={openApp}
|
|
225
|
+
leftIcon={<ExternalLinkIcon className="h-5 w-5" />}
|
|
226
|
+
>
|
|
227
|
+
{OPEN_APP_LABEL}
|
|
228
|
+
</Button>
|
|
229
|
+
) : (
|
|
230
|
+
<Button
|
|
231
|
+
key={download.id}
|
|
232
|
+
variant={index === 0 ? 'accent' : 'outline'}
|
|
233
|
+
href={download.url ?? undefined}
|
|
234
|
+
download
|
|
235
|
+
leftIcon={<Download01Icon className="h-5 w-5" />}
|
|
236
|
+
onClick={() => report('installer', download)}
|
|
237
|
+
>
|
|
238
|
+
{installerLabel(download, system.installers.length)}
|
|
239
|
+
</Button>
|
|
240
|
+
);
|
|
241
|
+
})}
|
|
219
242
|
</div>
|
|
220
243
|
)}
|
|
221
244
|
{system.commands.length > 0 && (
|
|
@@ -348,6 +371,7 @@ export function DownloadAppsPage({
|
|
|
348
371
|
showDesktop = true,
|
|
349
372
|
openStoresInNewTab = true,
|
|
350
373
|
onDownloadAction,
|
|
374
|
+
openAppHref,
|
|
351
375
|
web,
|
|
352
376
|
faq,
|
|
353
377
|
}: DownloadAppsPageProps) {
|
|
@@ -386,7 +410,12 @@ export function DownloadAppsPage({
|
|
|
386
410
|
<Section id="download-desktop" title="Desktop app">
|
|
387
411
|
<div className={cardsGridClass(systems.length)}>
|
|
388
412
|
{systems.map(system => (
|
|
389
|
-
<SystemCard
|
|
413
|
+
<SystemCard
|
|
414
|
+
key={system.os}
|
|
415
|
+
system={system}
|
|
416
|
+
onDownloadAction={onDownloadAction}
|
|
417
|
+
openAppHref={openAppHref}
|
|
418
|
+
/>
|
|
390
419
|
))}
|
|
391
420
|
</div>
|
|
392
421
|
</Section>
|