@flamingo-stack/openframe-frontend-core 0.0.735 → 0.0.737
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-F7STMHT7.cjs → chunk-4FJZ7RJD.cjs} +66 -66
- package/dist/{chunk-SZRZBCWC.cjs → chunk-4ISP3XP4.cjs} +75 -69
- package/dist/{chunk-EQ7OOK4B.cjs → chunk-4RMLAHU2.cjs} +24 -16
- package/dist/{chunk-XKB7YGQM.cjs → chunk-77SD7RXY.cjs} +18 -6
- package/dist/{chunk-NVCSVGNI.cjs → chunk-CM35DLKS.cjs} +33 -33
- package/dist/{chunk-T323E2Y6.cjs → chunk-DA4VS6TS.cjs} +4 -4
- package/dist/{chunk-36CCUJOE.cjs → chunk-E2JCZU36.cjs} +313 -313
- package/dist/{chunk-RH3AKULV.cjs → chunk-EJOXXJJB.cjs} +56 -4
- package/dist/{chunk-SHQZN5LF.cjs → chunk-EX2GYIGW.cjs} +6 -6
- package/dist/{chunk-EQH7BUNS.cjs → chunk-FA2LATDM.cjs} +4 -4
- package/dist/{chunk-3JP2OVH3.cjs → chunk-KVGBDWYV.cjs} +30 -30
- package/dist/{chunk-HBUUCLQM.cjs → chunk-L535OD7V.cjs} +2 -2
- package/dist/{chunk-3X4N3IT7.cjs → chunk-LW3QSP47.cjs} +16 -16
- package/dist/{chunk-OXJ57643.cjs → chunk-MGW5DO6P.cjs} +76 -17
- package/dist/{chunk-4F7V2MAC.cjs → chunk-N6YOOGCD.cjs} +14 -14
- package/dist/chunk-O4MG7FXW.cjs +57 -0
- package/dist/{chunk-TUMUT7CV.cjs → chunk-SGVQO5J6.cjs} +11 -11
- package/dist/{chunk-MRVZ56GT.cjs → chunk-TJQYX3QC.cjs} +81 -81
- package/dist/{chunk-7HT3VHLJ.cjs → chunk-URIJ6YUG.cjs} +43 -69
- package/dist/{chunk-JDXQ6T5P.cjs → chunk-VL4JKXU2.cjs} +253 -290
- package/dist/{chunk-HLBFTDUL.cjs → chunk-VRNNIV5Y.cjs} +2 -2
- package/dist/{chunk-W6E7XCBI.cjs → chunk-VYODTHMR.cjs} +31 -31
- package/dist/{chunk-3FZZPR76.cjs → chunk-XLSVQJBA.cjs} +44 -44
- package/dist/{chunk-6TTAILSV.cjs → chunk-XPP7VCNY.cjs} +3 -3
- package/dist/{cloud-tenants-H5D57P4U.cjs → cloud-tenants-IWQ5FFLY.cjs} +7 -7
- package/dist/components/case-studies/index.cjs +19 -19
- package/dist/components/chat/entity-cards/index.d.ts +1 -0
- package/dist/components/chat/entity-cards/index.d.ts.map +1 -1
- package/dist/components/chat/entity-cards/index.js +2 -0
- package/dist/components/chat/hooks/use-ask-prompts.d.ts +1 -1
- package/dist/components/chat/hooks/use-ask-prompts.js +1 -1
- package/dist/components/chat/index.cjs +10 -8
- package/dist/components/chat/mingo-info-card.d.ts +17 -1
- package/dist/components/chat/mingo-info-card.d.ts.map +1 -1
- package/dist/components/chat/mingo-info-card.js +15 -3
- package/dist/components/contact/index.cjs +8 -8
- package/dist/components/docs/index.cjs +11 -11
- package/dist/components/embeds/index.cjs +8 -8
- package/dist/components/faq/faq-ask-card.d.ts +5 -4
- package/dist/components/faq/faq-ask-card.d.ts.map +1 -1
- package/dist/components/faq/faq-document-page.d.ts +3 -1
- package/dist/components/faq/faq-document-page.d.ts.map +1 -1
- package/dist/components/faq/faq-document-page.js +2 -0
- package/dist/components/faq/faq-section.d.ts +37 -5
- package/dist/components/faq/faq-section.d.ts.map +1 -1
- package/dist/components/faq/faq-section.js +31 -9
- package/dist/components/faq/index.cjs +14 -8
- package/dist/components/faq/index.d.ts +1 -1
- package/dist/components/faq/index.d.ts.map +1 -1
- package/dist/components/faq/index.js +4 -2
- package/dist/components/features/index.cjs +7 -7
- package/dist/components/help-center-pages/delivery-page.d.ts +8 -1
- package/dist/components/help-center-pages/delivery-page.d.ts.map +1 -1
- package/dist/components/help-center-pages/delivery-page.js +16 -4
- package/dist/components/help-center-pages/download-apps-page.d.ts +8 -1
- package/dist/components/help-center-pages/download-apps-page.d.ts.map +1 -1
- package/dist/components/help-center-pages/download-apps-page.js +11 -6
- package/dist/components/help-center-pages/index.cjs +195 -140
- package/dist/components/help-center-pages/onboarding-guides-catalog-page.d.ts +8 -1
- package/dist/components/help-center-pages/onboarding-guides-catalog-page.d.ts.map +1 -1
- package/dist/components/help-center-pages/onboarding-guides-catalog-page.js +26 -14
- package/dist/components/help-center-pages/product-releases-list-page.d.ts +8 -1
- package/dist/components/help-center-pages/product-releases-list-page.d.ts.map +1 -1
- package/dist/components/help-center-pages/product-releases-list-page.js +24 -12
- package/dist/components/help-center-pages/roadmap-page.d.ts +8 -1
- package/dist/components/help-center-pages/roadmap-page.d.ts.map +1 -1
- package/dist/components/help-center-pages/roadmap-page.js +25 -13
- package/dist/components/index.cjs +67 -59
- package/dist/components/meeting-scheduler/index.cjs +29 -29
- package/dist/components/navigation/index.cjs +10 -10
- package/dist/components/onboarding-guides/index.cjs +10 -10
- package/dist/components/pagination.d.ts +9 -1
- package/dist/components/pagination.d.ts.map +1 -1
- package/dist/components/pagination.js +72 -17
- package/dist/components/product-demo/index.cjs +6 -6
- package/dist/components/related-content/index.cjs +5 -5
- package/dist/components/shared/dev-section/dev-section-page.d.ts +8 -1
- package/dist/components/shared/dev-section/dev-section-page.d.ts.map +1 -1
- package/dist/components/shared/dev-section/dev-section-page.js +8 -3
- package/dist/components/shared/legal-document/legal-document-page.d.ts +8 -1
- package/dist/components/shared/legal-document/legal-document-page.d.ts.map +1 -1
- package/dist/components/shared/legal-document/legal-document-page.js +4 -1
- package/dist/components/tickets/index.cjs +13 -12
- package/dist/components/ui/index.cjs +12 -10
- package/dist/components/unified-pagination.d.ts.map +1 -1
- package/dist/components/unified-pagination.js +16 -4
- package/dist/contexts/assistant-runtime-context.d.ts +5 -5
- package/dist/{devices-SQTEXY2H.cjs → devices-OUHGWA6Y.cjs} +8 -8
- package/dist/{embeddable-chat-S5ODWE3L.cjs → embeddable-chat-U3C4WWB7.cjs} +72 -72
- package/dist/index.cjs +20 -14
- package/dist/{knowledge-FO3TPLFO.cjs → knowledge-3ZASPWMF.cjs} +8 -8
- package/dist/{logs-Y4WQB2YR.cjs → logs-E6Y54P6K.cjs} +15 -15
- package/dist/{policies-D6VY2ODF.cjs → policies-LAV75B5B.cjs} +11 -11
- package/dist/{software-update-7XN6U7HC.cjs → software-update-2CAL3AMJ.cjs} +10 -10
- package/dist/types/faq.d.ts +17 -0
- package/dist/types/faq.d.ts.map +1 -1
- package/dist/types/faq.js +4 -0
- package/dist/types/index.cjs +4 -0
- package/package.json +1 -1
- package/src/components/chat/entity-cards/index.ts +1 -0
- package/src/components/chat/hooks/use-ask-prompts.ts +2 -2
- package/src/components/chat/mingo-info-card.tsx +39 -4
- package/src/components/faq/faq-ask-card.tsx +5 -4
- package/src/components/faq/faq-document-page.tsx +4 -0
- package/src/components/faq/faq-section.tsx +83 -14
- package/src/components/faq/index.ts +1 -1
- package/src/components/help-center-pages/delivery-page.tsx +16 -1
- package/src/components/help-center-pages/download-apps-page.tsx +9 -0
- package/src/components/help-center-pages/onboarding-guides-catalog-page.tsx +16 -1
- package/src/components/help-center-pages/product-releases-list-page.tsx +16 -1
- package/src/components/help-center-pages/roadmap-page.tsx +16 -1
- package/src/components/pagination.tsx +117 -21
- package/src/components/shared/dev-section/dev-section-page.tsx +9 -0
- package/src/components/shared/legal-document/legal-document-page.tsx +9 -0
- package/src/components/unified-pagination.tsx +23 -7
- package/src/contexts/assistant-runtime-context.tsx +5 -5
- package/src/types/faq.ts +18 -0
|
@@ -8,7 +8,7 @@ var _chunkII4QMH26cjs = require('./chunk-II4QMH26.cjs');
|
|
|
8
8
|
var _chunkKHXZFLINcjs = require('./chunk-KHXZFLIN.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunkE2JCZU36cjs = require('./chunk-E2JCZU36.cjs');
|
|
12
12
|
require('./chunk-ZJNYWNCB.cjs');
|
|
13
13
|
require('./chunk-3HPB4H4C.cjs');
|
|
14
14
|
require('./chunk-L4ZNR5V7.cjs');
|
|
@@ -19,12 +19,12 @@ require('./chunk-AAFW4STC.cjs');
|
|
|
19
19
|
require('./chunk-24I6RFVU.cjs');
|
|
20
20
|
require('./chunk-A6P6DHEZ.cjs');
|
|
21
21
|
require('./chunk-MZ4KBSH7.cjs');
|
|
22
|
-
require('./chunk-
|
|
22
|
+
require('./chunk-MGW5DO6P.cjs');
|
|
23
23
|
require('./chunk-YUMFVQIN.cjs');
|
|
24
|
-
require('./chunk-
|
|
24
|
+
require('./chunk-4FJZ7RJD.cjs');
|
|
25
25
|
|
|
26
26
|
|
|
27
|
-
var
|
|
27
|
+
var _chunkVL4JKXU2cjs = require('./chunk-VL4JKXU2.cjs');
|
|
28
28
|
require('./chunk-ZRYKDN2J.cjs');
|
|
29
29
|
require('./chunk-HZJRERJW.cjs');
|
|
30
30
|
require('./chunk-DUXLZPMJ.cjs');
|
|
@@ -1825,8 +1825,8 @@ require('./chunk-7DNL734S.cjs');
|
|
|
1825
1825
|
require('./chunk-WWUSFOJ7.cjs');
|
|
1826
1826
|
require('./chunk-SKI6NKOE.cjs');
|
|
1827
1827
|
require('./chunk-EWPR7662.cjs');
|
|
1828
|
-
require('./chunk-
|
|
1829
|
-
require('./chunk-
|
|
1828
|
+
require('./chunk-EX2GYIGW.cjs');
|
|
1829
|
+
require('./chunk-EJOXXJJB.cjs');
|
|
1830
1830
|
require('./chunk-FCGLSWKR.cjs');
|
|
1831
1831
|
require('./chunk-YADG5Q7C.cjs');
|
|
1832
1832
|
require('./chunk-MYBTNOS6.cjs');
|
|
@@ -1905,10 +1905,10 @@ function KnowledgeScreen(_props) {
|
|
|
1905
1905
|
const cast = _chunkII4QMH26cjs.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
|
+
_chunkE2JCZU36cjs.KnowledgeBaseArticleView,
|
|
1909
1909
|
{
|
|
1910
1910
|
...fixture.article,
|
|
1911
|
-
content: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1911
|
+
content: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVL4JKXU2cjs.SimpleMarkdownRenderer, { content: fixture.content, textSize: "compact" })
|
|
1912
1912
|
}
|
|
1913
1913
|
) });
|
|
1914
1914
|
}
|
|
@@ -16,7 +16,7 @@ var _chunkKHXZFLINcjs = require('./chunk-KHXZFLIN.cjs');
|
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
|
|
19
|
-
var
|
|
19
|
+
var _chunkE2JCZU36cjs = require('./chunk-E2JCZU36.cjs');
|
|
20
20
|
require('./chunk-ZJNYWNCB.cjs');
|
|
21
21
|
require('./chunk-3HPB4H4C.cjs');
|
|
22
22
|
require('./chunk-L4ZNR5V7.cjs');
|
|
@@ -27,12 +27,12 @@ require('./chunk-AAFW4STC.cjs');
|
|
|
27
27
|
require('./chunk-24I6RFVU.cjs');
|
|
28
28
|
require('./chunk-A6P6DHEZ.cjs');
|
|
29
29
|
require('./chunk-MZ4KBSH7.cjs');
|
|
30
|
-
require('./chunk-
|
|
30
|
+
require('./chunk-MGW5DO6P.cjs');
|
|
31
31
|
require('./chunk-YUMFVQIN.cjs');
|
|
32
32
|
|
|
33
33
|
|
|
34
|
-
var
|
|
35
|
-
require('./chunk-
|
|
34
|
+
var _chunk4FJZ7RJDcjs = require('./chunk-4FJZ7RJD.cjs');
|
|
35
|
+
require('./chunk-VL4JKXU2.cjs');
|
|
36
36
|
require('./chunk-ZRYKDN2J.cjs');
|
|
37
37
|
require('./chunk-HZJRERJW.cjs');
|
|
38
38
|
require('./chunk-DUXLZPMJ.cjs');
|
|
@@ -1833,8 +1833,8 @@ require('./chunk-7DNL734S.cjs');
|
|
|
1833
1833
|
require('./chunk-WWUSFOJ7.cjs');
|
|
1834
1834
|
require('./chunk-SKI6NKOE.cjs');
|
|
1835
1835
|
require('./chunk-EWPR7662.cjs');
|
|
1836
|
-
require('./chunk-
|
|
1837
|
-
require('./chunk-
|
|
1836
|
+
require('./chunk-EX2GYIGW.cjs');
|
|
1837
|
+
require('./chunk-EJOXXJJB.cjs');
|
|
1838
1838
|
require('./chunk-FCGLSWKR.cjs');
|
|
1839
1839
|
require('./chunk-YADG5Q7C.cjs');
|
|
1840
1840
|
require('./chunk-MYBTNOS6.cjs');
|
|
@@ -1886,7 +1886,7 @@ function entry(logId, minutesAgo, severity, toolType, device2, summary) {
|
|
|
1886
1886
|
id: logId,
|
|
1887
1887
|
logId,
|
|
1888
1888
|
timestamp: displayTime(_chunkKHXZFLINcjs.demoMinutesAgo.call(void 0, minutesAgo)),
|
|
1889
|
-
status: { label: severity, variant:
|
|
1889
|
+
status: { label: severity, variant: _chunkE2JCZU36cjs.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, _chunkE2JCZU36cjs.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
|
+
_chunkE2JCZU36cjs.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
|
+
_chunkE2JCZU36cjs.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, _chunkE2JCZU36cjs.AppLayoutDrawerContainerContext.Provider, { value: dock, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1990
|
+
_chunkE2JCZU36cjs.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, _chunkE2JCZU36cjs.ToolBadge, { toolType: _chunk4FJZ7RJDcjs.normalizeToolTypeWithFallback.call(void 0, selected.source.toolType) })
|
|
2003
2003
|
},
|
|
2004
|
-
{ label: "Device", value:
|
|
2004
|
+
{ label: "Device", value: _chunkE2JCZU36cjs.logSourceLabels.call(void 0, selected.device).deviceName }
|
|
2005
2005
|
],
|
|
2006
2006
|
deviceCard: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2007
|
-
|
|
2007
|
+
_chunkE2JCZU36cjs.DeviceCard,
|
|
2008
2008
|
{
|
|
2009
2009
|
...LOGS_FIXTURE_DEVICE,
|
|
2010
2010
|
actions: {
|
|
@@ -10,7 +10,7 @@ var _chunkKHXZFLINcjs = require('./chunk-KHXZFLIN.cjs');
|
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _chunkE2JCZU36cjs = require('./chunk-E2JCZU36.cjs');
|
|
14
14
|
require('./chunk-ZJNYWNCB.cjs');
|
|
15
15
|
require('./chunk-3HPB4H4C.cjs');
|
|
16
16
|
require('./chunk-L4ZNR5V7.cjs');
|
|
@@ -21,10 +21,10 @@ require('./chunk-AAFW4STC.cjs');
|
|
|
21
21
|
require('./chunk-24I6RFVU.cjs');
|
|
22
22
|
require('./chunk-A6P6DHEZ.cjs');
|
|
23
23
|
require('./chunk-MZ4KBSH7.cjs');
|
|
24
|
-
require('./chunk-
|
|
24
|
+
require('./chunk-MGW5DO6P.cjs');
|
|
25
25
|
require('./chunk-YUMFVQIN.cjs');
|
|
26
|
-
require('./chunk-
|
|
27
|
-
require('./chunk-
|
|
26
|
+
require('./chunk-4FJZ7RJD.cjs');
|
|
27
|
+
require('./chunk-VL4JKXU2.cjs');
|
|
28
28
|
require('./chunk-ZRYKDN2J.cjs');
|
|
29
29
|
require('./chunk-HZJRERJW.cjs');
|
|
30
30
|
require('./chunk-DUXLZPMJ.cjs');
|
|
@@ -1825,8 +1825,8 @@ require('./chunk-7DNL734S.cjs');
|
|
|
1825
1825
|
require('./chunk-WWUSFOJ7.cjs');
|
|
1826
1826
|
require('./chunk-SKI6NKOE.cjs');
|
|
1827
1827
|
require('./chunk-EWPR7662.cjs');
|
|
1828
|
-
require('./chunk-
|
|
1829
|
-
require('./chunk-
|
|
1828
|
+
require('./chunk-EX2GYIGW.cjs');
|
|
1829
|
+
require('./chunk-EJOXXJJB.cjs');
|
|
1830
1830
|
require('./chunk-FCGLSWKR.cjs');
|
|
1831
1831
|
require('./chunk-YADG5Q7C.cjs');
|
|
1832
1832
|
require('./chunk-MYBTNOS6.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: _chunkE2JCZU36cjs.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: _chunkE2JCZU36cjs.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
|
+
_chunkE2JCZU36cjs.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, _chunkE2JCZU36cjs.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, _chunkE2JCZU36cjs.PolicySummaryCards, { summary: POLICIES_FIXTURE.summary, now: POLICIES_FIXTURE.now }),
|
|
1925
1925
|
table
|
|
1926
1926
|
] });
|
|
1927
1927
|
}
|
|
@@ -15,7 +15,7 @@ var _chunkKHXZFLINcjs = require('./chunk-KHXZFLIN.cjs');
|
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _chunkE2JCZU36cjs = require('./chunk-E2JCZU36.cjs');
|
|
19
19
|
require('./chunk-ZJNYWNCB.cjs');
|
|
20
20
|
require('./chunk-3HPB4H4C.cjs');
|
|
21
21
|
|
|
@@ -28,10 +28,10 @@ require('./chunk-AAFW4STC.cjs');
|
|
|
28
28
|
require('./chunk-24I6RFVU.cjs');
|
|
29
29
|
require('./chunk-A6P6DHEZ.cjs');
|
|
30
30
|
require('./chunk-MZ4KBSH7.cjs');
|
|
31
|
-
require('./chunk-
|
|
31
|
+
require('./chunk-MGW5DO6P.cjs');
|
|
32
32
|
require('./chunk-YUMFVQIN.cjs');
|
|
33
|
-
require('./chunk-
|
|
34
|
-
require('./chunk-
|
|
33
|
+
require('./chunk-4FJZ7RJD.cjs');
|
|
34
|
+
require('./chunk-VL4JKXU2.cjs');
|
|
35
35
|
require('./chunk-ZRYKDN2J.cjs');
|
|
36
36
|
require('./chunk-HZJRERJW.cjs');
|
|
37
37
|
require('./chunk-DUXLZPMJ.cjs');
|
|
@@ -1832,8 +1832,8 @@ require('./chunk-7DNL734S.cjs');
|
|
|
1832
1832
|
require('./chunk-WWUSFOJ7.cjs');
|
|
1833
1833
|
require('./chunk-SKI6NKOE.cjs');
|
|
1834
1834
|
require('./chunk-EWPR7662.cjs');
|
|
1835
|
-
require('./chunk-
|
|
1836
|
-
require('./chunk-
|
|
1835
|
+
require('./chunk-EX2GYIGW.cjs');
|
|
1836
|
+
require('./chunk-EJOXXJJB.cjs');
|
|
1837
1837
|
require('./chunk-FCGLSWKR.cjs');
|
|
1838
1838
|
require('./chunk-YADG5Q7C.cjs');
|
|
1839
1839
|
require('./chunk-MYBTNOS6.cjs');
|
|
@@ -1926,12 +1926,12 @@ function StaticPackageField({ value }) {
|
|
|
1926
1926
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1927
1927
|
_chunkL4ZNR5V7cjs.Autocomplete,
|
|
1928
1928
|
{
|
|
1929
|
-
label:
|
|
1929
|
+
label: _chunkE2JCZU36cjs.PACKAGE_SEARCH_LABEL,
|
|
1930
1930
|
labelVariant: "large",
|
|
1931
1931
|
options: value ? [{ value: value.id, label: value.name, description: _nullishCoalesce(value.description, () => ( void 0)) }] : [],
|
|
1932
1932
|
value: _nullishCoalesce(_optionalChain([value, 'optionalAccess', _ => _.id]), () => ( null)),
|
|
1933
1933
|
onChange: noop,
|
|
1934
|
-
placeholder:
|
|
1934
|
+
placeholder: _chunkE2JCZU36cjs.PACKAGE_SEARCH_PLACEHOLDER
|
|
1935
1935
|
}
|
|
1936
1936
|
);
|
|
1937
1937
|
}
|
|
@@ -1945,7 +1945,7 @@ function SoftwareUpdateScreen({ compact = false }) {
|
|
|
1945
1945
|
[fixture.devices, fixture.selectedIds]
|
|
1946
1946
|
);
|
|
1947
1947
|
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,
|
|
1948
|
-
|
|
1948
|
+
_chunkE2JCZU36cjs.SoftwareActionForm,
|
|
1949
1949
|
{
|
|
1950
1950
|
action: fixture.action,
|
|
1951
1951
|
showHeader: false,
|
|
@@ -1957,7 +1957,7 @@ function SoftwareUpdateScreen({ compact = false }) {
|
|
|
1957
1957
|
initialValues: fixture.initialValues,
|
|
1958
1958
|
renderPackageSearch,
|
|
1959
1959
|
renderDevicePicker: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1960
|
-
|
|
1960
|
+
_chunkE2JCZU36cjs.DeviceSelector,
|
|
1961
1961
|
{
|
|
1962
1962
|
devices: selected,
|
|
1963
1963
|
loading: false,
|
package/dist/types/faq.d.ts
CHANGED
|
@@ -1,8 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The two kinds of FAQ. An `answer` is a question with its written answer (the
|
|
3
|
+
* accordion, FAQPage JSON-LD). An `ask` is a question the assistant answers: it
|
|
4
|
+
* has a `prompt` (what is sent to the chat) and no written answer, and is what
|
|
5
|
+
* every "ask the assistant" surface offers.
|
|
6
|
+
*/
|
|
7
|
+
export declare const FAQ_KINDS: readonly ["answer", "ask"];
|
|
8
|
+
export type FaqKind = (typeof FAQ_KINDS)[number];
|
|
1
9
|
export interface Faq {
|
|
2
10
|
id: number;
|
|
3
11
|
question: string;
|
|
4
12
|
answer: string;
|
|
5
13
|
section?: string | null;
|
|
14
|
+
/** Absent on a host that predates kinds: an `answer`. */
|
|
15
|
+
kind?: FaqKind;
|
|
16
|
+
/** An `ask` FAQ's prompt for the chat; null on an `answer`. */
|
|
17
|
+
prompt?: string | null;
|
|
18
|
+
/**
|
|
19
|
+
* The places the FAQ is written for, shared by both kinds: a page's topic
|
|
20
|
+
* (`pricing`, `careers`, `home`) or a section's. Empty: written for no place.
|
|
21
|
+
*/
|
|
22
|
+
topics?: string[];
|
|
6
23
|
display_order: number;
|
|
7
24
|
is_active: boolean;
|
|
8
25
|
created_at: string;
|
package/dist/types/faq.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"faq.d.ts","sourceRoot":"","sources":["../../src/types/faq.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,GAAG;IAClB,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,aAAa,EAAE,MAAM,CAAC;IACtB,SAAS,EAAE,OAAO,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;CACpB"}
|
|
1
|
+
{"version":3,"file":"faq.d.ts","sourceRoot":"","sources":["../../src/types/faq.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,eAAO,MAAM,SAAS,4BAA6B,CAAC;AACpD,MAAM,MAAM,OAAO,GAAG,CAAC,OAAO,SAAS,CAAC,CAAC,MAAM,CAAC,CAAC;AAEjD,MAAM,WAAW,GAAG;IAClB,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,yDAAyD;IACzD,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,+DAA+D;IAC/D,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB,aAAa,EAAE,MAAM,CAAC;IACtB,SAAS,EAAE,OAAO,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;CACpB"}
|
package/dist/types/faq.js
CHANGED
package/dist/types/index.cjs
CHANGED
|
@@ -59,6 +59,9 @@ var TASK_TYPE_TEXT_COLORS = {
|
|
|
59
59
|
// src/types/video-processing.ts
|
|
60
60
|
var ENTITY_QUOTES_TITLE = "Key Quotes";
|
|
61
61
|
|
|
62
|
+
// src/types/faq.ts
|
|
63
|
+
var FAQ_KINDS = ["answer", "ask"];
|
|
64
|
+
|
|
62
65
|
// src/utils/escape-regexp.ts
|
|
63
66
|
function escapeRegExp(value) {
|
|
64
67
|
return value.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
@@ -608,6 +611,7 @@ exports.DOWNLOADS_TAGLINE = DOWNLOADS_TAGLINE;
|
|
|
608
611
|
exports.DOWNLOADS_TITLE = DOWNLOADS_TITLE;
|
|
609
612
|
exports.DOWNLOAD_ARCHITECTURE_LABELS = DOWNLOAD_ARCHITECTURE_LABELS;
|
|
610
613
|
exports.ENTITY_QUOTES_TITLE = ENTITY_QUOTES_TITLE;
|
|
614
|
+
exports.FAQ_KINDS = FAQ_KINDS;
|
|
611
615
|
exports.OSTypeValues = OSTypeValues;
|
|
612
616
|
exports.OS_TYPES = OS_TYPES;
|
|
613
617
|
exports.SEMVER_REGEX = SEMVER_REGEX;
|
package/package.json
CHANGED
|
@@ -139,3 +139,4 @@ export {
|
|
|
139
139
|
// PACKAGE-EXPORTED chat barrel so the hub can value-import them (deep paths
|
|
140
140
|
// into chat/types/* are not in the package exports map and 404 at runtime).
|
|
141
141
|
export { programItemToStripProfile, type ProgramAuthorRef } from '../types/entities/program-types';
|
|
142
|
+
export { type MingoInfoCardAction, MingoInfoCardActionProvider } from '../mingo-info-card';
|
|
@@ -24,7 +24,7 @@ export function buildAskPromptsUrl(
|
|
|
24
24
|
{ count, topic, exclude = [] }: { count: number; topic?: string; exclude?: readonly string[] },
|
|
25
25
|
): string {
|
|
26
26
|
const params = new URLSearchParams({ count: String(count) });
|
|
27
|
-
if (topic) params.set('
|
|
27
|
+
if (topic) params.set('topic', topic);
|
|
28
28
|
if (exclude.length > 0) params.set('exclude', exclude.join(','));
|
|
29
29
|
return `${base}${base.includes('?') ? '&' : '?'}${params.toString()}`;
|
|
30
30
|
}
|
|
@@ -37,7 +37,7 @@ export function assistantAvailable(assistant: AssistantRuntime | null): assistan
|
|
|
37
37
|
export interface UseAskPromptsOptions {
|
|
38
38
|
/**
|
|
39
39
|
* What the surface is about: ANY string the host's endpoint knows (sent as
|
|
40
|
-
* `
|
|
40
|
+
* `topic`). Questions written for it are picked first. Absent: general ones.
|
|
41
41
|
*/
|
|
42
42
|
topic?: string;
|
|
43
43
|
count?: number;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import type
|
|
3
|
+
import { createContext, type MouseEvent, type ReactNode, useContext } from 'react';
|
|
4
4
|
import Image from '../../embed-shims/next-image';
|
|
5
5
|
import Link from '../../embed-shims/next-link';
|
|
6
6
|
import { cn } from '../../utils/cn';
|
|
@@ -13,6 +13,35 @@ import { tagVariants, type TagProps } from '../ui/tag';
|
|
|
13
13
|
// Types
|
|
14
14
|
// =============================================================================
|
|
15
15
|
|
|
16
|
+
/**
|
|
17
|
+
* ONE action in place of the "⋯" menu, for a host that shows the card outside a
|
|
18
|
+
* conversation: an editor's list of attached records swaps the menu for
|
|
19
|
+
* "detach". It is a context because the host renders the card through the
|
|
20
|
+
* entity-card dispatch, which decides the menu per record type.
|
|
21
|
+
*/
|
|
22
|
+
export interface MingoInfoCardAction {
|
|
23
|
+
icon: ReactNode;
|
|
24
|
+
/** The button's accessible name, e.g. "Detach". */
|
|
25
|
+
label: string;
|
|
26
|
+
onClick: () => void;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
const MingoInfoCardActionContext = createContext<MingoInfoCardAction | null>(null);
|
|
30
|
+
|
|
31
|
+
export function MingoInfoCardActionProvider({
|
|
32
|
+
action,
|
|
33
|
+
children,
|
|
34
|
+
}: {
|
|
35
|
+
action: MingoInfoCardAction;
|
|
36
|
+
children: ReactNode;
|
|
37
|
+
}) {
|
|
38
|
+
return <MingoInfoCardActionContext.Provider value={action}>{children}</MingoInfoCardActionContext.Provider>;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/** The trailing cell's footprint and press feedback, shared by the "⋯" trigger and a host's action. */
|
|
42
|
+
const TRAILING_BUTTON_CLASS =
|
|
43
|
+
'flex w-[56px] shrink-0 items-center justify-center self-stretch text-ods-text-secondary transition-colors hover:bg-ods-bg-hover hover:text-ods-text-primary focus:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ods-accent active:bg-ods-bg-active active:text-ods-text-primary md:w-[68px]';
|
|
44
|
+
|
|
16
45
|
/** A coloured status pill rendered to the right of the title/description. */
|
|
17
46
|
export interface MingoInfoCardStatus {
|
|
18
47
|
/** Pill text — rendered uppercase via the `success`/`warning`/… Tag palette. */
|
|
@@ -157,7 +186,8 @@ export function MingoInfoCard({
|
|
|
157
186
|
className,
|
|
158
187
|
}: MingoInfoCardProps) {
|
|
159
188
|
const hasMedia = !!imageSrc || !!icon;
|
|
160
|
-
const
|
|
189
|
+
const action = useContext(MingoInfoCardActionContext);
|
|
190
|
+
const hasMenu = !action && !!menuGroups && menuGroups.length > 0;
|
|
161
191
|
const isAnchor = !!anchorProps;
|
|
162
192
|
const isInteractive = isAnchor || !!onClick;
|
|
163
193
|
|
|
@@ -182,7 +212,7 @@ export function MingoInfoCard({
|
|
|
182
212
|
|
|
183
213
|
const contentClass = cn(
|
|
184
214
|
'flex min-w-0 flex-1 items-center gap-[var(--spacing-system-s)] overflow-hidden p-[var(--spacing-system-s)] text-left',
|
|
185
|
-
hasMenu && 'border-r border-ods-border',
|
|
215
|
+
(hasMenu || action) && 'border-r border-ods-border',
|
|
186
216
|
isInteractive &&
|
|
187
217
|
'cursor-pointer transition-colors hover:bg-ods-bg-hover focus:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ods-accent active:bg-ods-bg-active',
|
|
188
218
|
);
|
|
@@ -206,6 +236,11 @@ export function MingoInfoCard({
|
|
|
206
236
|
<span className={contentClass}>{content}</span>
|
|
207
237
|
)}
|
|
208
238
|
|
|
239
|
+
{action && (
|
|
240
|
+
<button type="button" aria-label={action.label} onClick={action.onClick} className={TRAILING_BUTTON_CLASS}>
|
|
241
|
+
{action.icon}
|
|
242
|
+
</button>
|
|
243
|
+
)}
|
|
209
244
|
{hasMenu && (
|
|
210
245
|
<ActionsMenuDropdown
|
|
211
246
|
groups={menuGroups as ActionsMenuGroup[]}
|
|
@@ -217,7 +252,7 @@ export function MingoInfoCard({
|
|
|
217
252
|
aria-label={menuAriaLabel}
|
|
218
253
|
// Press feedback mirrors `Button` (transparent variant):
|
|
219
254
|
// `hover:bg-ods-bg-hover` → `active:bg-ods-bg-active`.
|
|
220
|
-
className=
|
|
255
|
+
className={TRAILING_BUTTON_CLASS}
|
|
221
256
|
>
|
|
222
257
|
<Ellipsis01Icon size={24} />
|
|
223
258
|
</button>
|
|
@@ -10,10 +10,11 @@ import { assistantAvailable } from '../chat/hooks/use-ask-prompts';
|
|
|
10
10
|
export interface FaqAskOptions {
|
|
11
11
|
/**
|
|
12
12
|
* What this FAQ is about: ANY string the host's questions endpoint knows (it
|
|
13
|
-
* is sent as `
|
|
14
|
-
* for the topic are picked first.
|
|
15
|
-
* the entity the FAQ is attached to (
|
|
16
|
-
*
|
|
13
|
+
* is sent as `topic`, and reported with every click). Questions written
|
|
14
|
+
* for the topic are picked first. Absent: the FAQ's own topic
|
|
15
|
+
* (`FaqSection`'s `topic`), else the entity the FAQ is attached to (its
|
|
16
|
+
* `entityType`). With none, the FAQ has no card: the lib names no topic of
|
|
17
|
+
* its own.
|
|
17
18
|
*/
|
|
18
19
|
topic?: string;
|
|
19
20
|
/**
|
|
@@ -49,6 +49,8 @@ export interface FaqDocumentPageProps {
|
|
|
49
49
|
jsonLd?: FaqSchemaOptions;
|
|
50
50
|
/** Base URL `FaqSection` appends `/api/faqs` to (reverse-proxy embedders). */
|
|
51
51
|
apiBaseUrl?: string;
|
|
52
|
+
/** What the page is about (forwarded to `FaqSection`): its FAQs and its ask card are the ones written for the topic. */
|
|
53
|
+
topic?: string;
|
|
52
54
|
/** Optional entity scoping forwarded to `FaqSection`. */
|
|
53
55
|
entityType?: string;
|
|
54
56
|
entityId?: number | string;
|
|
@@ -70,6 +72,7 @@ export function FaqDocumentPage({
|
|
|
70
72
|
entityType,
|
|
71
73
|
entityId,
|
|
72
74
|
minResults,
|
|
75
|
+
topic,
|
|
73
76
|
ask,
|
|
74
77
|
shell = true,
|
|
75
78
|
}: FaqDocumentPageProps) {
|
|
@@ -97,6 +100,7 @@ export function FaqDocumentPage({
|
|
|
97
100
|
entityType={entityType}
|
|
98
101
|
entityId={entityId}
|
|
99
102
|
minResults={minResults}
|
|
103
|
+
topic={topic}
|
|
100
104
|
ask={ask}
|
|
101
105
|
/>
|
|
102
106
|
</PageLayout>
|