@flamingo-stack/openframe-frontend-core 0.0.828 → 0.0.829
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-ALRX2VIY.cjs → chunk-4DUVTJ6A.cjs} +13 -13
- package/dist/{chunk-B5H7RKFF.cjs → chunk-4ZIKDOPY.cjs} +4 -4
- package/dist/{chunk-6SFCI6D4.cjs → chunk-6WNSZ5XP.cjs} +12 -14
- package/dist/{chunk-UULSSD56.cjs → chunk-AH4YWTWZ.cjs} +5 -5
- package/dist/{chunk-7VC5FVWT.cjs → chunk-DWSU35QQ.cjs} +62 -62
- package/dist/{chunk-3WKQ2GCR.cjs → chunk-HMC2IWV4.cjs} +4 -6
- package/dist/{chunk-RPKWEBHC.cjs → chunk-IBQ3CSKL.cjs} +3 -3
- package/dist/{chunk-ZT7JHN7G.cjs → chunk-IFLGIBFZ.cjs} +54 -59
- package/dist/{chunk-4ZH7RPEA.cjs → chunk-IHRMX3X6.cjs} +154 -154
- package/dist/{chunk-6ZLCEIIC.cjs → chunk-IMDYB77M.cjs} +21 -21
- package/dist/chunk-IX2E3AN7.cjs +77 -0
- package/dist/{chunk-VAIML6YU.cjs → chunk-LNXRTVOY.cjs} +13 -13
- package/dist/{chunk-QMQWXGCH.cjs → chunk-MFYSV7DE.cjs} +23 -19
- package/dist/{chunk-K6X7VP2Y.cjs → chunk-PRZAEPGG.cjs} +41 -41
- package/dist/{chunk-XPF74L76.cjs → chunk-R3PKAIX3.cjs} +2 -2
- package/dist/{chunk-UWGPYAB3.cjs → chunk-THPAGFT6.cjs} +47 -47
- package/dist/{chunk-DR4P7AEU.cjs → chunk-UE5ZBCJ4.cjs} +3 -3
- package/dist/{chunk-BGT6JFMP.cjs → chunk-UO6F6LLI.cjs} +41 -5
- package/dist/{chunk-SVCTAOJR.cjs → chunk-YHQDB5QJ.cjs} +2 -2
- package/dist/{chunk-YKUL6JBI.cjs → chunk-ZJXLNIWC.cjs} +46 -34
- package/dist/{cloud-tenants-LKTWIZNS.cjs → cloud-tenants-YVCSVVIS.cjs} +8 -7
- package/dist/components/case-studies/index.cjs +20 -19
- package/dist/components/chat/assistant-ask-prompts.d.ts +5 -1
- package/dist/components/chat/assistant-ask-prompts.d.ts.map +1 -1
- package/dist/components/chat/assistant-ask-prompts.js +3 -1
- package/dist/components/chat/embeddable-chat.js +1 -0
- package/dist/components/chat/guide-welcome.d.ts +10 -1
- package/dist/components/chat/guide-welcome.d.ts.map +1 -1
- package/dist/components/chat/guide-welcome.js +12 -2
- package/dist/components/chat/hooks/use-empty-state-config.d.ts +13 -3
- package/dist/components/chat/hooks/use-empty-state-config.d.ts.map +1 -1
- package/dist/components/chat/hooks/use-empty-state-config.js +10 -2
- package/dist/components/chat/index.cjs +7 -3
- package/dist/components/contact/index.cjs +9 -8
- package/dist/components/docs/index.cjs +12 -11
- package/dist/components/embeds/index.cjs +9 -8
- package/dist/components/faq/faq-ask-card.d.ts +2 -13
- package/dist/components/faq/faq-ask-card.d.ts.map +1 -1
- package/dist/components/faq/faq-ask-card.js +1 -2
- package/dist/components/faq/faq-document-page.d.ts +2 -4
- package/dist/components/faq/faq-document-page.d.ts.map +1 -1
- package/dist/components/faq/faq-document-page.js +0 -2
- package/dist/components/faq/faq-section.d.ts +16 -29
- package/dist/components/faq/faq-section.d.ts.map +1 -1
- package/dist/components/faq/faq-section.js +23 -15
- package/dist/components/faq/index.cjs +10 -9
- 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 +2 -2
- package/dist/components/features/index.cjs +8 -7
- package/dist/components/help-center-pages/delivery-page.d.ts +1 -8
- package/dist/components/help-center-pages/delivery-page.d.ts.map +1 -1
- package/dist/components/help-center-pages/delivery-page.js +4 -16
- package/dist/components/help-center-pages/download-apps-page.d.ts +1 -8
- package/dist/components/help-center-pages/download-apps-page.d.ts.map +1 -1
- package/dist/components/help-center-pages/download-apps-page.js +3 -4
- package/dist/components/help-center-pages/index.cjs +114 -162
- package/dist/components/help-center-pages/onboarding-guides-catalog-page.d.ts +1 -8
- 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 +14 -26
- package/dist/components/help-center-pages/product-releases-list-page.d.ts +1 -8
- 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 +12 -24
- package/dist/components/help-center-pages/roadmap-page.d.ts +1 -8
- package/dist/components/help-center-pages/roadmap-page.d.ts.map +1 -1
- package/dist/components/help-center-pages/roadmap-page.js +13 -25
- package/dist/components/help-center-pages/trust-center-page.d.ts +1 -1
- package/dist/components/help-center-pages/trust-center-page.d.ts.map +1 -1
- package/dist/components/index.cjs +50 -45
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +1 -0
- package/dist/components/meeting-scheduler/index.cjs +39 -38
- package/dist/components/navigation/index.cjs +11 -10
- package/dist/components/onboarding-guides/index.cjs +10 -9
- package/dist/components/page-topic-label.d.ts +13 -0
- package/dist/components/page-topic-label.d.ts.map +1 -0
- package/dist/components/page-topic-label.js +20 -0
- package/dist/components/product-demo/index.cjs +17 -16
- package/dist/components/shared/dev-section/dev-section-page.d.ts +1 -8
- package/dist/components/shared/dev-section/dev-section-page.d.ts.map +1 -1
- package/dist/components/shared/dev-section/dev-section-page.js +2 -3
- package/dist/components/shared/legal-document/legal-document-page.d.ts +2 -10
- package/dist/components/shared/legal-document/legal-document-page.d.ts.map +1 -1
- package/dist/components/shared/legal-document/legal-document-page.js +2 -5
- package/dist/components/shared/legal-document/use-legal-documents.d.ts +0 -2
- package/dist/components/shared/legal-document/use-legal-documents.d.ts.map +1 -1
- package/dist/components/shared/legal-document/use-legal-documents.js +0 -1
- package/dist/components/tickets/index.cjs +13 -12
- package/dist/components/ui/index.cjs +10 -7
- package/dist/contexts/endpoints-runtime-context.d.ts +5 -0
- package/dist/contexts/endpoints-runtime-context.d.ts.map +1 -1
- package/dist/contexts/index.cjs +10 -1
- package/dist/contexts/index.d.ts +1 -0
- package/dist/contexts/index.d.ts.map +1 -1
- package/dist/contexts/index.js +4 -0
- package/dist/contexts/page-topics-context.d.ts +30 -0
- package/dist/contexts/page-topics-context.d.ts.map +1 -0
- package/dist/contexts/page-topics-context.js +27 -0
- package/dist/{devices-JWG72ANF.cjs → devices-AW6BERJF.cjs} +9 -8
- package/dist/{embeddable-chat-5UT6UHEO.cjs → embeddable-chat-ZJIOMMSA.cjs} +74 -71
- package/dist/hooks/index.cjs +3 -3
- package/dist/index.cjs +25 -11
- package/dist/{knowledge-DQXVSHME.cjs → knowledge-PEOXTIVS.cjs} +9 -8
- package/dist/{logs-Z33VBTVX.cjs → logs-CYA7H4KM.cjs} +15 -14
- package/dist/{policies-XE4UMH6Z.cjs → policies-M6QSFL5G.cjs} +12 -11
- package/dist/{scripts-MECQG5GG.cjs → scripts-Y46ECDDP.cjs} +13 -12
- package/dist/{software-update-PCSIA6BP.cjs → software-update-OTC2DGQZ.cjs} +11 -10
- package/dist/utils/index.cjs +46 -0
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +12 -0
- package/dist/utils/page-topics.cjs +48 -0
- package/dist/utils/page-topics.d.ts +34 -0
- package/dist/utils/page-topics.d.ts.map +1 -0
- package/dist/utils/page-topics.js +46 -0
- package/package.json +7 -1
- package/src/components/chat/assistant-ask-prompts.tsx +8 -2
- package/src/components/chat/embeddable-chat.tsx +3 -0
- package/src/components/chat/guide-welcome.tsx +26 -2
- package/src/components/chat/hooks/use-empty-state-config.ts +22 -5
- package/src/components/faq/faq-ask-card.tsx +2 -12
- package/src/components/faq/faq-document-page.tsx +1 -5
- package/src/components/faq/faq-section.tsx +47 -50
- package/src/components/faq/index.ts +1 -2
- package/src/components/help-center-pages/delivery-page.tsx +1 -16
- package/src/components/help-center-pages/download-apps-page.tsx +2 -9
- package/src/components/help-center-pages/onboarding-guides-catalog-page.tsx +1 -16
- package/src/components/help-center-pages/product-releases-list-page.tsx +1 -16
- package/src/components/help-center-pages/roadmap-page.tsx +1 -16
- package/src/components/help-center-pages/trust-center-page.tsx +1 -1
- package/src/components/index.ts +1 -0
- package/src/components/page-topic-label.tsx +30 -0
- package/src/components/shared/dev-section/dev-section-page.tsx +2 -9
- package/src/components/shared/legal-document/legal-document-page.tsx +3 -13
- package/src/components/shared/legal-document/use-legal-documents.ts +0 -3
- package/src/contexts/endpoints-runtime-context.tsx +5 -0
- package/src/contexts/index.ts +1 -0
- package/src/contexts/page-topics-context.tsx +68 -0
- package/src/utils/index.ts +8 -0
- package/src/utils/page-topics.ts +81 -0
- package/dist/{chunk-IKWQW3YJ.cjs → chunk-AY6XJOIN.cjs} +4 -4
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
export interface PageTopicsProviderProps {
|
|
3
|
+
/**
|
|
4
|
+
* Where the host mounts the hub's pages (`/help-center`): a page under it asks
|
|
5
|
+
* with its path without the mount, the hub page it mirrors. Absent: the
|
|
6
|
+
* enclosing provider's, else the pages sit at the root.
|
|
7
|
+
*/
|
|
8
|
+
basePath?: string;
|
|
9
|
+
/**
|
|
10
|
+
* The page's address, for a subtree the router answers another path for (a
|
|
11
|
+
* layout slot prerendered for one page and shown on another until it
|
|
12
|
+
* hydrates). Absent: the router's (`usePathname`).
|
|
13
|
+
*/
|
|
14
|
+
pathname?: string;
|
|
15
|
+
/**
|
|
16
|
+
* Print the page's topic stamp (`PageTopicLabel`) on every surface that can
|
|
17
|
+
* show it (the FAQ block, the chat's quick actions), for whoever edits FAQs
|
|
18
|
+
* and quick actions. ONE host decision, made at the root; a surface's own
|
|
19
|
+
* `showTopic` prop still overrides it. Absent: the enclosing provider's
|
|
20
|
+
* choice, else off.
|
|
21
|
+
*/
|
|
22
|
+
showTopic?: boolean;
|
|
23
|
+
children: ReactNode;
|
|
24
|
+
}
|
|
25
|
+
export declare function PageTopicsProvider({ basePath, pathname, showTopic, children }: PageTopicsProviderProps): import("react").JSX.Element;
|
|
26
|
+
/** The topic of the page on screen: its path (`pageTopicFor`). Undefined where the host gave no provider. */
|
|
27
|
+
export declare function usePageTopic(): string | undefined;
|
|
28
|
+
/** Whether the host asked surfaces to print the page's topic stamp (`PageTopicsProvider showTopic`). */
|
|
29
|
+
export declare function usePageTopicStamp(): boolean;
|
|
30
|
+
//# sourceMappingURL=page-topics-context.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"page-topics-context.d.ts","sourceRoot":"","sources":["../../src/contexts/page-topics-context.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAsC,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAsB3E,MAAM,WAAW,uBAAuB;IACtC;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;;;;OAMG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED,wBAAgB,kBAAkB,CAAC,EAAE,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE,QAAQ,EAAE,EAAE,uBAAuB,+BAMtG;AAED,6GAA6G;AAC7G,wBAAgB,YAAY,IAAI,MAAM,GAAG,SAAS,CAKjD;AAED,wGAAwG;AACxG,wBAAgB,iBAAiB,IAAI,OAAO,CAE3C"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx } from "react/jsx-runtime";
|
|
3
|
+
import { createContext, useContext, useMemo } from "react";
|
|
4
|
+
import { usePathname } from "../embed-shims/next-navigation.js";
|
|
5
|
+
import { pageTopicFor } from "../utils/page-topics.js";
|
|
6
|
+
const PageTopicsContext = createContext(null);
|
|
7
|
+
function PageTopicsProvider({ basePath, pathname, showTopic, children }) {
|
|
8
|
+
const inherited = useContext(PageTopicsContext);
|
|
9
|
+
const base = basePath ?? inherited?.basePath;
|
|
10
|
+
const stamp = showTopic ?? inherited?.showTopic ?? false;
|
|
11
|
+
const value = useMemo(() => ({ basePath: base, pathname, showTopic: stamp }), [base, pathname, stamp]);
|
|
12
|
+
return /* @__PURE__ */ jsx(PageTopicsContext.Provider, { value, children });
|
|
13
|
+
}
|
|
14
|
+
function usePageTopic() {
|
|
15
|
+
const value = useContext(PageTopicsContext);
|
|
16
|
+
const routerPathname = usePathname();
|
|
17
|
+
if (!value) return void 0;
|
|
18
|
+
return pageTopicFor(value.pathname ?? routerPathname ?? "/", { basePath: value.basePath });
|
|
19
|
+
}
|
|
20
|
+
function usePageTopicStamp() {
|
|
21
|
+
return useContext(PageTopicsContext)?.showTopic ?? false;
|
|
22
|
+
}
|
|
23
|
+
export {
|
|
24
|
+
PageTopicsProvider,
|
|
25
|
+
usePageTopic,
|
|
26
|
+
usePageTopicStamp
|
|
27
|
+
};
|
|
@@ -5,26 +5,25 @@
|
|
|
5
5
|
var _chunkSMZWXY4Xcjs = require('./chunk-SMZWXY4X.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkUE5ZBCJ4cjs = require('./chunk-UE5ZBCJ4.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
var _chunkLHV2R6QUcjs = require('./chunk-LHV2R6QU.cjs');
|
|
12
12
|
require('./chunk-FDZOE5TL.cjs');
|
|
13
|
-
require('./chunk-
|
|
13
|
+
require('./chunk-IHRMX3X6.cjs');
|
|
14
14
|
require('./chunk-DU6AF77X.cjs');
|
|
15
15
|
require('./chunk-7PZQ7SHB.cjs');
|
|
16
|
-
require('./chunk-
|
|
16
|
+
require('./chunk-YHQDB5QJ.cjs');
|
|
17
17
|
require('./chunk-HQQE74RO.cjs');
|
|
18
18
|
require('./chunk-DEY6XXGO.cjs');
|
|
19
|
-
require('./chunk-
|
|
19
|
+
require('./chunk-AY6XJOIN.cjs');
|
|
20
20
|
require('./chunk-APOMNC7H.cjs');
|
|
21
21
|
require('./chunk-24I6RFVU.cjs');
|
|
22
|
-
require('./chunk-7DNL734S.cjs');
|
|
23
22
|
require('./chunk-MZ4KBSH7.cjs');
|
|
24
23
|
require('./chunk-5SZ4ILU3.cjs');
|
|
25
|
-
require('./chunk-
|
|
24
|
+
require('./chunk-MFYSV7DE.cjs');
|
|
26
25
|
require('./chunk-OT6P57ZS.cjs');
|
|
27
|
-
require('./chunk-
|
|
26
|
+
require('./chunk-UO6F6LLI.cjs');
|
|
28
27
|
require('./chunk-IBD2FPSX.cjs');
|
|
29
28
|
require('./chunk-3B6ZE4EZ.cjs');
|
|
30
29
|
require('./chunk-BIG3O33P.cjs');
|
|
@@ -1826,6 +1825,8 @@ require('./chunk-JKX2C3I2.cjs');
|
|
|
1826
1825
|
require('./chunk-WWUSFOJ7.cjs');
|
|
1827
1826
|
require('./chunk-SKI6NKOE.cjs');
|
|
1828
1827
|
require('./chunk-EWPR7662.cjs');
|
|
1828
|
+
require('./chunk-IX2E3AN7.cjs');
|
|
1829
|
+
require('./chunk-7DNL734S.cjs');
|
|
1829
1830
|
require('./chunk-YMLRDVPO.cjs');
|
|
1830
1831
|
require('./chunk-FMSAN6SR.cjs');
|
|
1831
1832
|
require('./chunk-5BM7X4GA.cjs');
|
|
@@ -1870,7 +1871,7 @@ function DevicesScreen({ compact = false }) {
|
|
|
1870
1871
|
const cast = _chunkLHV2R6QUcjs.useProductDemoCast.call(void 0, );
|
|
1871
1872
|
const fixture = _react.useMemo.call(void 0, () => _chunkSMZWXY4Xcjs.buildWindowsDevicesFixture.call(void 0, cast), [cast]);
|
|
1872
1873
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1873
|
-
|
|
1874
|
+
_chunkUE5ZBCJ4cjs.DevicesScreenView,
|
|
1874
1875
|
{
|
|
1875
1876
|
compact,
|
|
1876
1877
|
devices: fixture.devices,
|