@flamingo-stack/openframe-frontend-core 0.0.800 → 0.0.801
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-WWWCFNKI.cjs → chunk-237MLBT7.cjs} +48 -48
- package/dist/{chunk-CDLOQCJC.cjs → chunk-3W2PBWD5.cjs} +4 -4
- package/dist/{chunk-IX2D26OR.cjs → chunk-3YPEXJVQ.cjs} +39 -39
- package/dist/{chunk-OEEFUB25.cjs → chunk-7E4BC3AF.cjs} +15 -13
- package/dist/{chunk-CM2UGR4I.cjs → chunk-CJSUMYTH.cjs} +19 -19
- package/dist/{chunk-FCT7VKWG.cjs → chunk-CRVXQYUZ.cjs} +18 -18
- package/dist/{chunk-XAJPXPQ6.cjs → chunk-DYDS2P5G.cjs} +2 -2
- package/dist/{chunk-3C6JR5Z5.cjs → chunk-LEEBFBI4.cjs} +32 -32
- package/dist/{chunk-5LTKE6D3.cjs → chunk-LOCJD7TD.cjs} +10 -10
- package/dist/{chunk-OGUBSDU5.cjs → chunk-PJMLRXAG.cjs} +6 -6
- package/dist/{chunk-KH5DRO4V.cjs → chunk-PY6SPYUR.cjs} +3 -3
- package/dist/{chunk-DUSCG2EO.cjs → chunk-QAUQYQWT.cjs} +4 -4
- package/dist/{chunk-5PDOKPBF.cjs → chunk-QNIUDJAK.cjs} +7 -7
- package/dist/{chunk-LTOSJI6B.cjs → chunk-SHOE6ATQ.cjs} +11 -11
- package/dist/{chunk-PQNRSUQ6.cjs → chunk-THQKEA2T.cjs} +9 -9
- package/dist/{chunk-OUKKLSME.cjs → chunk-XYPNYTCV.cjs} +3 -3
- package/dist/{chunk-S7CBD6KF.cjs → chunk-YUGX72P4.cjs} +53 -53
- package/dist/{chunk-PZVBTLLQ.cjs → chunk-Z66FOMSA.cjs} +105 -105
- package/dist/{cloud-tenants-S3BDIJHM.cjs → cloud-tenants-X7QHAIX2.cjs} +4 -4
- package/dist/components/case-studies/index.cjs +16 -16
- 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 +5 -5
- package/dist/components/docs/index.cjs +8 -8
- package/dist/components/embeds/index.cjs +5 -5
- package/dist/components/faq/index.cjs +6 -6
- package/dist/components/features/index.cjs +4 -4
- package/dist/components/help-center-pages/index.cjs +61 -61
- package/dist/components/index.cjs +38 -38
- package/dist/components/meeting-scheduler/index.cjs +29 -29
- package/dist/components/navigation/index.cjs +7 -7
- package/dist/components/onboarding-guides/index.cjs +6 -6
- package/dist/components/product-demo/index.cjs +13 -13
- package/dist/components/tickets/index.cjs +9 -9
- package/dist/components/ui/index.cjs +4 -4
- package/dist/{devices-C6OOVBJK.cjs → devices-VBFYZVVG.cjs} +5 -5
- package/dist/{embeddable-chat-2EBDLEVA.cjs → embeddable-chat-XZDZOHFY.cjs} +59 -59
- package/dist/index.cjs +8 -8
- package/dist/{knowledge-YA5SFLQP.cjs → knowledge-RJZJFD2Y.cjs} +5 -5
- 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-3WZ4GROE.cjs} +12 -12
- package/dist/{policies-LWAUO6NR.cjs → policies-E6WQEXDF.cjs} +8 -8
- package/dist/{scripts-W46RQ64X.cjs → scripts-JLCM42F4.cjs} +9 -9
- package/dist/{software-update-OVR26DUF.cjs → software-update-BVBHAROC.cjs} +7 -7
- package/package.json +1 -1
- package/src/components/chat/chat-context-picker.tsx +30 -16
- package/src/loading-standard/engine.mjs +49 -2
- package/src/loading-standard/rule-examples.mjs +35 -3
|
@@ -8,7 +8,7 @@ var _chunkLHV2R6QUcjs = require('./chunk-LHV2R6QU.cjs');
|
|
|
8
8
|
var _chunkFDZOE5TLcjs = require('./chunk-FDZOE5TL.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunkZ66FOMSAcjs = require('./chunk-Z66FOMSA.cjs');
|
|
12
12
|
require('./chunk-DTBIIFZG.cjs');
|
|
13
13
|
require('./chunk-NG3RKTQU.cjs');
|
|
14
14
|
require('./chunk-E56LN23H.cjs');
|
|
@@ -20,10 +20,10 @@ 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
|
+
_chunkZ66FOMSAcjs.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,7 +16,7 @@ var _chunkFDZOE5TLcjs = require('./chunk-FDZOE5TL.cjs');
|
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
|
|
19
|
-
var
|
|
19
|
+
var _chunkZ66FOMSAcjs = require('./chunk-Z66FOMSA.cjs');
|
|
20
20
|
require('./chunk-DTBIIFZG.cjs');
|
|
21
21
|
require('./chunk-NG3RKTQU.cjs');
|
|
22
22
|
require('./chunk-E56LN23H.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: _chunkZ66FOMSAcjs.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, _chunkZ66FOMSAcjs.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
|
+
_chunkZ66FOMSAcjs.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
|
+
_chunkZ66FOMSAcjs.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, _chunkZ66FOMSAcjs.AppLayoutDrawerContainerContext.Provider, { value: dock, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1990
|
+
_chunkZ66FOMSAcjs.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, _chunkZ66FOMSAcjs.ToolBadge, { toolType: _chunkCRVXQYUZcjs.normalizeToolTypeWithFallback.call(void 0, selected.source.toolType) })
|
|
2003
2003
|
},
|
|
2004
|
-
{ label: "Device", value:
|
|
2004
|
+
{ label: "Device", value: _chunkZ66FOMSAcjs.logSourceLabels.call(void 0, selected.device).deviceName }
|
|
2005
2005
|
],
|
|
2006
2006
|
deviceCard: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2007
|
-
|
|
2007
|
+
_chunkZ66FOMSAcjs.DeviceCard,
|
|
2008
2008
|
{
|
|
2009
2009
|
...LOGS_FIXTURE_DEVICE,
|
|
2010
2010
|
actions: {
|
|
@@ -10,7 +10,7 @@ var _chunkFDZOE5TLcjs = require('./chunk-FDZOE5TL.cjs');
|
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _chunkZ66FOMSAcjs = require('./chunk-Z66FOMSA.cjs');
|
|
14
14
|
require('./chunk-DTBIIFZG.cjs');
|
|
15
15
|
require('./chunk-NG3RKTQU.cjs');
|
|
16
16
|
require('./chunk-E56LN23H.cjs');
|
|
@@ -22,8 +22,8 @@ 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: _chunkZ66FOMSAcjs.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: _chunkZ66FOMSAcjs.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
|
+
_chunkZ66FOMSAcjs.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, _chunkZ66FOMSAcjs.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, _chunkZ66FOMSAcjs.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 _chunkZ66FOMSAcjs = require('./chunk-Z66FOMSA.cjs');
|
|
17
17
|
require('./chunk-DTBIIFZG.cjs');
|
|
18
18
|
require('./chunk-NG3RKTQU.cjs');
|
|
19
19
|
|
|
@@ -27,8 +27,8 @@ 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
|
+
{ ..._chunkZ66FOMSAcjs.EXECUTION_COLUMNS.machineId, width: "flex-1 min-w-0", hideAt: void 0 },
|
|
1999
|
+
_chunkZ66FOMSAcjs.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
|
+
_chunkZ66FOMSAcjs.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
|
+
_chunkZ66FOMSAcjs.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, _chunkZ66FOMSAcjs.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
|
+
_chunkZ66FOMSAcjs.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 _chunkZ66FOMSAcjs = require('./chunk-Z66FOMSA.cjs');
|
|
19
19
|
require('./chunk-DTBIIFZG.cjs');
|
|
20
20
|
require('./chunk-NG3RKTQU.cjs');
|
|
21
21
|
|
|
@@ -29,8 +29,8 @@ 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: _chunkZ66FOMSAcjs.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: _chunkZ66FOMSAcjs.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
|
+
_chunkZ66FOMSAcjs.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
|
+
_chunkZ66FOMSAcjs.DeviceSelector,
|
|
1957
1957
|
{
|
|
1958
1958
|
devices: selected,
|
|
1959
1959
|
loading: false,
|
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
|
// ===========================================================================
|
|
@@ -69,6 +69,14 @@
|
|
|
69
69
|
* by one, share one boundary; the page's static frame (heading, copy, back link, cached content)
|
|
70
70
|
* renders at once, outside every boundary. A component that reads in the browser keeps its own
|
|
71
71
|
* loading state (`LoadingWhen`, `useLoadingScope`) and needs no boundary.
|
|
72
|
+
* BOUNDARY_OWNER A `LoadingSuspense` placed AROUND a component instead of BY it. The boundary is the whole output
|
|
73
|
+
* of the component that waits (the root element it returns), wrapping exactly one component
|
|
74
|
+
* declared in the same file (its reader), with no `fallback`: the reader draws its own loading form
|
|
75
|
+
* in the scope the boundary opens (`useLoadingScope()`, the skeletons inside the component). A
|
|
76
|
+
* parent renders the component and never wraps it; a fallback built beside the reader, a boundary
|
|
77
|
+
* around an imported component, around markup or an expression, or in the middle of a layout,
|
|
78
|
+
* each puts a component's loading state outside the component. A host's own boundary built on it
|
|
79
|
+
* (`config.boundaries`) opts out where it is defined.
|
|
72
80
|
* WHOLE_VIEW_SKELETON A component declared or rendered as `*PageSkeleton`, `*ScreenSkeleton`, `*DetailSkeleton`,
|
|
73
81
|
* `*ArticleSkeleton`, `*ViewSkeleton`, `*HomeSkeleton`, `*DeckSkeleton`, `*EditorSkeleton`,
|
|
74
82
|
* `*CenterSkeleton`, `*CatalogSkeleton`, `*FormSkeleton`, `*LayoutSkeleton`,
|
|
@@ -192,6 +200,8 @@ export const RULES = {
|
|
|
192
200
|
RAW_SUSPENSE: 'a raw Suspense (use LoadingSuspense: its fallback is the component it waits on, in a loading scope)',
|
|
193
201
|
PAGE_BOUNDARY:
|
|
194
202
|
'a boundary around a whole page (wrap only the component that waits on a read; the static frame renders at once)',
|
|
203
|
+
BOUNDARY_OWNER:
|
|
204
|
+
'a boundary placed around a component (the component that waits returns <LoadingSuspense><Reader /></LoadingSuspense>, the reader draws its own loading form)',
|
|
195
205
|
WHOLE_VIEW_SKELETON: 'a whole-view skeleton (the view itself in a loading scope is its loading state)',
|
|
196
206
|
FOLD_PROP: 'a `fold` prop (a skeleton draws its full count: skeletonCount)',
|
|
197
207
|
DEPRECATED_SKELETON: 'deprecated in the lib (render the component in a loading scope)',
|
|
@@ -248,7 +258,7 @@ export const CONFIGS = {
|
|
|
248
258
|
* a loading scope until it answers), which renders directly when told `cached`.
|
|
249
259
|
*/
|
|
250
260
|
hub: {
|
|
251
|
-
rules: ['SUSPENSE_FALLBACK', 'HAND_PAIR', 'RAW_SUSPENSE', 'PAGE_BOUNDARY'],
|
|
261
|
+
rules: ['SUSPENSE_FALLBACK', 'HAND_PAIR', 'RAW_SUSPENSE', 'PAGE_BOUNDARY', 'BOUNDARY_OWNER'],
|
|
252
262
|
trees: ['app', 'components', 'lib'],
|
|
253
263
|
boundaries: { StreamedSection: 'cached' },
|
|
254
264
|
exempt: [],
|
|
@@ -260,7 +270,14 @@ export const CONFIGS = {
|
|
|
260
270
|
why: "the lib's own loading primitives: the one pulse, the scope, the fallback and the Suspense wrapper are built here",
|
|
261
271
|
files:
|
|
262
272
|
/(?:^|\/)components\/(?:loading\/(?:loading-fallback|loading-region|unified-skeleton)|ui\/(?:loading-scope|skeleton[\w-]*|text-line-skeleton))\.tsx?$/,
|
|
263
|
-
rules: [
|
|
273
|
+
rules: [
|
|
274
|
+
'OWN_PULSE',
|
|
275
|
+
'HAND_PAIR',
|
|
276
|
+
'SUSPENSE_FALLBACK',
|
|
277
|
+
'RAW_SUSPENSE',
|
|
278
|
+
'NOTHING_WHILE_LOADING',
|
|
279
|
+
'BOUNDARY_OWNER',
|
|
280
|
+
],
|
|
264
281
|
},
|
|
265
282
|
{
|
|
266
283
|
why: "the loaders themselves (declared, never a screen state in the lib), the Button's own action progress, and the chat registry's card loader (a card read by id, drawn by the card's own skeleton)",
|
|
@@ -2303,6 +2320,7 @@ function analyzeFile(project, path, active, rel, page, boundaries = {}) {
|
|
|
2303
2320
|
}
|
|
2304
2321
|
}
|
|
2305
2322
|
if (leaf === 'Suspense' || leaf === 'LoadingSuspense') checkFallback(opening, leaf);
|
|
2323
|
+
if (leaf === 'LoadingSuspense') checkBoundaryOwner(opening);
|
|
2306
2324
|
if (leaf === 'LoadingFallback' && ts.isJsxOpeningElement(opening)) {
|
|
2307
2325
|
const children = opening.parent.children.filter(c => !(ts.isJsxText(c) && !c.text.trim()));
|
|
2308
2326
|
if (children.every(c => (ts.isJsxExpression(c) ? !c.expression || isBlank(c.expression) : isBlank(c))))
|
|
@@ -2349,6 +2367,35 @@ function analyzeFile(project, path, active, rel, page, boundaries = {}) {
|
|
|
2349
2367
|
}
|
|
2350
2368
|
}
|
|
2351
2369
|
|
|
2370
|
+
/**
|
|
2371
|
+
* BOUNDARY_OWNER: the boundary is the root element its component returns, around one component declared in this file,
|
|
2372
|
+
* with no fallback of its own.
|
|
2373
|
+
*/
|
|
2374
|
+
function checkBoundaryOwner(opening) {
|
|
2375
|
+
const problems = [];
|
|
2376
|
+
if (attribute(opening, 'fallback'))
|
|
2377
|
+
problems.push('it takes a fallback (the component it wraps draws its own loading form in the scope)');
|
|
2378
|
+
const el = ts.isJsxOpeningElement(opening) ? opening.parent : opening;
|
|
2379
|
+
const kids = ts.isJsxElement(el) ? el.children.filter(c => !(ts.isJsxText(c) && !c.text.trim())) : [];
|
|
2380
|
+
const only = kids.length === 1 && !ts.isJsxExpression(kids[0]) ? openingOf(kids[0]) : null;
|
|
2381
|
+
const name = only ? dottedName(only.tagName) : '';
|
|
2382
|
+
const decl = name && isComponentName(name) && !name.includes('.') ? model.lookup(name, el) : null;
|
|
2383
|
+
if (!decl || decl.kind === 'import' || decl.kind === 'namespace' || decl.kind === 'param')
|
|
2384
|
+
problems.push(
|
|
2385
|
+
name && isComponentName(name)
|
|
2386
|
+
? `it wraps ${name}, which is not declared in this file (move the boundary into ${name})`
|
|
2387
|
+
: 'it does not wrap exactly one component declared in this file',
|
|
2388
|
+
);
|
|
2389
|
+
let at = el.parent;
|
|
2390
|
+
while (at && ts.isParenthesizedExpression(at)) at = at.parent;
|
|
2391
|
+
const fn = nearestFunction(el);
|
|
2392
|
+
const isRoot = !!fn && (ts.isReturnStatement(at) ? nearestFunction(at) === fn : at === fn && fn.body === el);
|
|
2393
|
+
if (!isRoot || !isComponentName(functionName(fn)))
|
|
2394
|
+
problems.push("it is not the whole output of the component it is written in (make it that component's root)");
|
|
2395
|
+
if (problems.length)
|
|
2396
|
+
report('BOUNDARY_OWNER', opening, `a boundary placed around a component, not by it: ${problems.join('; ')}`);
|
|
2397
|
+
}
|
|
2398
|
+
|
|
2352
2399
|
/** A `Suspense` / `LoadingSuspense` fallback that draws nothing (LoadingSuspense's own default is its children). */
|
|
2353
2400
|
function checkFallback(opening, leaf) {
|
|
2354
2401
|
const fallback = attribute(opening, 'fallback');
|
|
@@ -231,7 +231,7 @@ export function L({ loading }: { loading: boolean }) { return loading ? <Wait />
|
|
|
231
231
|
},
|
|
232
232
|
pass: {
|
|
233
233
|
'components/su.tsx':
|
|
234
|
-
'
|
|
234
|
+
'function XReader() { return <X />; }\nexport function Su() { return <LoadingSuspense label="Loading X"><XReader /></LoadingSuspense>; }\n',
|
|
235
235
|
},
|
|
236
236
|
},
|
|
237
237
|
{
|
|
@@ -244,7 +244,7 @@ export function L({ loading }: { loading: boolean }) { return loading ? <Wait />
|
|
|
244
244
|
'components/raw.tsx': `export function Raw() {
|
|
245
245
|
return (
|
|
246
246
|
<>
|
|
247
|
-
<
|
|
247
|
+
<X />
|
|
248
248
|
{/* loading-standard-ok(SUSPENSE_FALLBACK): structured data for crawlers, nothing is drawn */}
|
|
249
249
|
<Suspense fallback={null}><StructuredData /></Suspense>
|
|
250
250
|
</>
|
|
@@ -274,13 +274,45 @@ export function L({ loading }: { loading: boolean }) { return loading ? <Wait />
|
|
|
274
274
|
'app/devices/page.tsx': `export default function Page() {
|
|
275
275
|
return (
|
|
276
276
|
<>
|
|
277
|
+
<DevicesHeading />
|
|
278
|
+
<DevicesTable />
|
|
279
|
+
</>
|
|
280
|
+
);
|
|
281
|
+
}
|
|
282
|
+
`,
|
|
283
|
+
},
|
|
284
|
+
},
|
|
285
|
+
{
|
|
286
|
+
rule: 'BOUNDARY_OWNER',
|
|
287
|
+
fail: {
|
|
288
|
+
'components/devices-view.tsx': `import { DevicesTable } from './devices-table';
|
|
289
|
+
export function DevicesView() {
|
|
290
|
+
return (
|
|
291
|
+
<div>
|
|
277
292
|
<DevicesHeading />
|
|
278
293
|
<LoadingSuspense label="Loading the devices">
|
|
279
294
|
<DevicesTable />
|
|
280
295
|
</LoadingSuspense>
|
|
281
|
-
|
|
296
|
+
</div>
|
|
297
|
+
);
|
|
298
|
+
}
|
|
299
|
+
`,
|
|
300
|
+
'components/run-view.tsx':
|
|
301
|
+
'function RunReader() { return <Run />; }\nexport function RunView() { return <LoadingSuspense label="Loading the run" fallback={<RunSkeleton />}><RunReader /></LoadingSuspense>; }\n',
|
|
302
|
+
},
|
|
303
|
+
pass: {
|
|
304
|
+
'components/devices-table.tsx': `/** The table, with its own boundary: in the scope the reader draws its own rows. */
|
|
305
|
+
export function DevicesTable(props: { search: string }) {
|
|
306
|
+
return (
|
|
307
|
+
<LoadingSuspense label="Loading the devices">
|
|
308
|
+
<DevicesTableReader {...props} />
|
|
309
|
+
</LoadingSuspense>
|
|
282
310
|
);
|
|
283
311
|
}
|
|
312
|
+
function DevicesTableReader({ search }: { search: string }) {
|
|
313
|
+
const loading = useLoadingScope();
|
|
314
|
+
return <Table rows={loading ? [] : useDevices(search)} loading={loading} />;
|
|
315
|
+
}
|
|
284
316
|
`,
|
|
285
317
|
},
|
|
286
318
|
},
|