@flamingo-stack/openframe-frontend-core 0.0.222 → 0.0.223
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-AIKPR6BE.js → chunk-4VHWSAQR.js} +6069 -5235
- package/dist/chunk-4VHWSAQR.js.map +1 -0
- package/dist/{chunk-GMNE7P7V.cjs → chunk-4WBVMIKQ.cjs} +26 -26
- package/dist/{chunk-GMNE7P7V.cjs.map → chunk-4WBVMIKQ.cjs.map} +1 -1
- package/dist/{chunk-QYRV6MKX.js → chunk-53EA4QPZ.js} +13 -7
- package/dist/chunk-53EA4QPZ.js.map +1 -0
- package/dist/{chunk-4JOWZLEL.cjs → chunk-7TKYFZ3L.cjs} +7 -7
- package/dist/{chunk-4JOWZLEL.cjs.map → chunk-7TKYFZ3L.cjs.map} +1 -1
- package/dist/{chunk-IZA5WF44.cjs → chunk-ABBU7QOM.cjs} +12 -12
- package/dist/{chunk-IZA5WF44.cjs.map → chunk-ABBU7QOM.cjs.map} +1 -1
- package/dist/{chunk-KM4KK2A6.cjs → chunk-ENDUMC7Z.cjs} +2558 -1724
- package/dist/chunk-ENDUMC7Z.cjs.map +1 -0
- package/dist/{chunk-CCSEXVI4.js → chunk-GYYGA24C.js} +2 -2
- package/dist/{chunk-RMOHKAHA.js → chunk-ISWWP2BH.js} +3 -3
- package/dist/{chunk-QNYH3WUU.cjs → chunk-JUWPBMQM.cjs} +13 -7
- package/dist/chunk-JUWPBMQM.cjs.map +1 -0
- package/dist/{chunk-A2SFHYVF.cjs → chunk-KXLTWANQ.cjs} +10 -10
- package/dist/{chunk-A2SFHYVF.cjs.map → chunk-KXLTWANQ.cjs.map} +1 -1
- package/dist/{chunk-ND24XSVT.js → chunk-TA6Z2AKD.js} +3 -3
- package/dist/chunk-TA6Z2AKD.js.map +1 -0
- package/dist/{chunk-HRIAZQ5D.js → chunk-WOKB6RJ7.js} +3 -3
- package/dist/components/chat/chat-archive-page.d.ts.map +1 -1
- package/dist/components/chat/chat-composer.d.ts.map +1 -1
- package/dist/components/chat/chat-message-enhanced.d.ts.map +1 -1
- package/dist/components/chat/chat-message-skeleton.d.ts +19 -4
- package/dist/components/chat/chat-message-skeleton.d.ts.map +1 -1
- package/dist/components/chat/chat-panel-header-mobile.d.ts +24 -0
- package/dist/components/chat/chat-panel-header-mobile.d.ts.map +1 -0
- package/dist/components/chat/chat-panel-header.d.ts +6 -0
- package/dist/components/chat/chat-panel-header.d.ts.map +1 -1
- package/dist/components/chat/chat-quick-action-row.d.ts +31 -0
- package/dist/components/chat/chat-quick-action-row.d.ts.map +1 -0
- package/dist/components/chat/embeddable-chat.d.ts +27 -0
- package/dist/components/chat/embeddable-chat.d.ts.map +1 -1
- package/dist/components/chat/entity-cards/dispatch.d.ts +14 -0
- package/dist/components/chat/entity-cards/dispatch.d.ts.map +1 -1
- package/dist/components/chat/entity-cards/github-activity-card.d.ts +10 -1
- package/dist/components/chat/entity-cards/github-activity-card.d.ts.map +1 -1
- package/dist/components/chat/guide-welcome.d.ts.map +1 -1
- package/dist/components/chat/hooks/use-nats-chat-adapter.d.ts +9 -0
- package/dist/components/chat/hooks/use-nats-chat-adapter.d.ts.map +1 -1
- package/dist/components/chat/hooks/use-slash-commands.d.ts +26 -0
- package/dist/components/chat/hooks/use-slash-commands.d.ts.map +1 -1
- package/dist/components/chat/hooks/use-sse-chat-adapter.d.ts +12 -1
- package/dist/components/chat/hooks/use-sse-chat-adapter.d.ts.map +1 -1
- package/dist/components/chat/hooks/use-unified-chat.d.ts +12 -0
- package/dist/components/chat/hooks/use-unified-chat.d.ts.map +1 -1
- package/dist/components/chat/index.cjs +9 -3
- package/dist/components/chat/index.cjs.map +1 -1
- package/dist/components/chat/index.js +8 -2
- package/dist/components/chat/mingo-chat-history.d.ts +10 -0
- package/dist/components/chat/mingo-chat-history.d.ts.map +1 -1
- package/dist/components/chat/mingo-info-card.d.ts +63 -0
- package/dist/components/chat/mingo-info-card.d.ts.map +1 -0
- package/dist/components/chat/mingo-welcome.d.ts +14 -1
- package/dist/components/chat/mingo-welcome.d.ts.map +1 -1
- package/dist/components/chat/types/chat.types.d.ts +6 -0
- package/dist/components/chat/types/chat.types.d.ts.map +1 -1
- package/dist/components/chat/types/unified-chat-state.types.d.ts +30 -0
- package/dist/components/chat/types/unified-chat-state.types.d.ts.map +1 -1
- package/dist/components/chat/utils/process-historical-messages.d.ts.map +1 -1
- package/dist/components/contact/index.cjs +4 -4
- package/dist/components/contact/index.js +3 -3
- package/dist/components/features/index.cjs +3 -3
- package/dist/components/features/index.js +2 -2
- package/dist/components/index.cjs +110 -104
- package/dist/components/index.cjs.map +1 -1
- package/dist/components/index.js +36 -30
- package/dist/components/index.js.map +1 -1
- package/dist/components/navigation/app-layout-drawer.d.ts +7 -0
- package/dist/components/navigation/app-layout-drawer.d.ts.map +1 -1
- package/dist/components/navigation/index.cjs +3 -3
- package/dist/components/navigation/index.js +2 -2
- package/dist/components/onboarding-guides/index.cjs +26 -26
- package/dist/components/onboarding-guides/index.js +4 -4
- package/dist/components/tickets/index.cjs +67 -67
- package/dist/components/tickets/index.js +5 -5
- package/dist/components/ui/actions-menu.d.ts +9 -0
- package/dist/components/ui/actions-menu.d.ts.map +1 -1
- package/dist/components/ui/dropdown-button.d.ts +2 -2
- package/dist/components/ui/dropdown-button.d.ts.map +1 -1
- package/dist/components/ui/index.cjs +9 -3
- package/dist/components/ui/index.cjs.map +1 -1
- package/dist/components/ui/index.js +8 -2
- package/dist/components/ui/modal-v2.d.ts.map +1 -1
- package/dist/components/ui/more-actions-menu.d.ts +13 -0
- package/dist/components/ui/more-actions-menu.d.ts.map +1 -1
- package/dist/components/ui/square-avatar.d.ts +4 -0
- package/dist/components/ui/square-avatar.d.ts.map +1 -1
- package/dist/components/ui/textarea.d.ts.map +1 -1
- package/dist/hooks/index.cjs +2 -2
- package/dist/hooks/index.js +1 -1
- package/dist/hooks/ui/use-auto-limit-tags.d.ts +7 -1
- package/dist/hooks/ui/use-auto-limit-tags.d.ts.map +1 -1
- package/dist/index.cjs +9 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +8 -2
- package/package.json +1 -1
- package/src/components/chat/chat-archive-page.tsx +32 -7
- package/src/components/chat/chat-composer.tsx +6 -2
- package/src/components/chat/chat-message-enhanced.tsx +24 -7
- package/src/components/chat/chat-message-list.tsx +1 -1
- package/src/components/chat/chat-message-skeleton.tsx +60 -60
- package/src/components/chat/chat-panel-header-mobile.tsx +94 -0
- package/src/components/chat/chat-panel-header.tsx +78 -50
- package/src/components/chat/chat-quick-action-row.tsx +146 -0
- package/src/components/chat/embeddable-chat.tsx +140 -45
- package/src/components/chat/entity-cards/dispatch.tsx +770 -232
- package/src/components/chat/entity-cards/github-activity-card.tsx +9 -3
- package/src/components/chat/guide-welcome.tsx +11 -8
- package/src/components/chat/hooks/use-nats-chat-adapter.ts +80 -7
- package/src/components/chat/hooks/use-slash-commands.ts +39 -0
- package/src/components/chat/hooks/use-sse-chat-adapter.ts +49 -45
- package/src/components/chat/hooks/use-unified-chat.ts +31 -8
- package/src/components/chat/mingo-chat-history.tsx +118 -36
- package/src/components/chat/mingo-info-card.tsx +214 -0
- package/src/components/chat/mingo-welcome.tsx +89 -36
- package/src/components/chat/types/chat.types.ts +4 -0
- package/src/components/chat/types/unified-chat-state.types.ts +35 -0
- package/src/components/chat/utils/process-historical-messages.ts +8 -0
- package/src/components/content-loading-container.tsx +1 -1
- package/src/components/empty-state.tsx +3 -3
- package/src/components/faq-accordion.tsx +2 -2
- package/src/components/features/changelog-manager.tsx +2 -2
- package/src/components/features/highlight-config-section.tsx +2 -2
- package/src/components/features/og-editor-preview.tsx +3 -3
- package/src/components/features/release-media-manager.tsx +2 -2
- package/src/components/loading/card-skeleton.tsx +3 -3
- package/src/components/loading/device-card-skeleton.tsx +1 -1
- package/src/components/loading/margin-report-skeleton.tsx +2 -2
- package/src/components/loading/organization-card-skeleton.tsx +1 -1
- package/src/components/loading/organization-icon-skeleton.tsx +1 -1
- package/src/components/loading/page-layout-skeleton.tsx +9 -9
- package/src/components/loading/users-grid-skeleton.tsx +2 -2
- package/src/components/logs-list.tsx +1 -1
- package/src/components/media-carousel.tsx +1 -1
- package/src/components/navigation/app-layout-drawer.tsx +70 -6
- package/src/components/open-source-features.tsx +2 -2
- package/src/components/ui/actions-menu.tsx +36 -13
- package/src/components/ui/allowed-domains-input.tsx +3 -3
- package/src/components/ui/cursor-pagination.tsx +1 -1
- package/src/components/ui/dropdown-button.tsx +6 -6
- package/src/components/ui/info-row.tsx +2 -2
- package/src/components/ui/modal-v2.tsx +8 -1
- package/src/components/ui/more-actions-menu.tsx +13 -0
- package/src/components/ui/square-avatar.tsx +6 -1
- package/src/components/ui/tags-input.tsx +1 -1
- package/src/components/ui/textarea.tsx +18 -4
- package/src/components/vendor-icon.tsx +1 -1
- package/src/components/vendor-tag.tsx +1 -1
- package/src/components/why-it-matters.tsx +1 -1
- package/src/hooks/ui/use-auto-limit-tags.ts +22 -8
- package/src/stories/ActionsMenu.stories.tsx +256 -0
- package/src/stories/AppLayoutSidebar.stories.tsx +6 -0
- package/src/stories/Board.stories.tsx +1 -1
- package/src/stories/ChatMingoInfoCards.stories.tsx +748 -0
- package/src/stories/ChatTicketList.stories.tsx +1 -1
- package/src/stories/DataTable.stories.tsx +17 -13
- package/src/stories/EmbeddableChat.stories.tsx +233 -1
- package/src/stories/MingoInfoCard.stories.tsx +193 -0
- package/src/stories/MingoOnboardingCard.stories.tsx +1 -1
- package/src/stories/Modal.stories.tsx +1 -0
- package/src/stories/NotificationDrawer.stories.tsx +14 -3
- package/src/stories/PageActions.stories.tsx +4 -4
- package/src/stories/PageContainer.stories.tsx +5 -5
- package/src/stories/PageLayout.stories.tsx +1 -1
- package/src/stories/TabSelector.stories.tsx +2 -2
- package/src/stories/Tag.stories.tsx +10 -5
- package/src/stories/TicketInfoSection.stories.tsx +23 -11
- package/src/stories/Toaster.stories.tsx +5 -5
- package/src/stories/__fixtures__/chat-card-decorator.tsx +44 -0
- package/dist/chunk-AIKPR6BE.js.map +0 -1
- package/dist/chunk-KM4KK2A6.cjs.map +0 -1
- package/dist/chunk-ND24XSVT.js.map +0 -1
- package/dist/chunk-QNYH3WUU.cjs.map +0 -1
- package/dist/chunk-QYRV6MKX.js.map +0 -1
- package/src/stories/.TicketDescriptionViewer.stories.md +0 -39
- package/src/stories/.TicketKnowledgeBaseList.stories.md +0 -36
- package/src/stories/TicketDescriptionViewer.stories.tsx +0 -70
- package/src/stories/TicketKnowledgeBaseList.stories.tsx +0 -51
- /package/dist/{chunk-CCSEXVI4.js.map → chunk-GYYGA24C.js.map} +0 -0
- /package/dist/{chunk-RMOHKAHA.js.map → chunk-ISWWP2BH.js.map} +0 -0
- /package/dist/{chunk-HRIAZQ5D.js.map → chunk-WOKB6RJ7.js.map} +0 -0
|
@@ -31,6 +31,13 @@ export interface AppLayoutDrawerContentProps extends Omit<React.ComponentPropsWi
|
|
|
31
31
|
/** Override the portal container. Defaults to AppLayout's main-area container
|
|
32
32
|
* (from context). Pass `null` to opt out of portaling. */
|
|
33
33
|
container?: HTMLElement | null;
|
|
34
|
+
/** Keep the panel mounted across close so its subtree state survives an
|
|
35
|
+
* open → close → open cycle (no remount, no refetch, no flicker). Lazy:
|
|
36
|
+
* nothing renders until the first open; after that the panel stays mounted
|
|
37
|
+
* (Radix `forceMount`) and the slide animation runs off `data-state`.
|
|
38
|
+
* Default `false` — preserves the standard unmount-on-close behaviour for
|
|
39
|
+
* every other consumer. */
|
|
40
|
+
keepMounted?: boolean;
|
|
34
41
|
/** When `true` (default), clicks on the dim overlay over the main content
|
|
35
42
|
* area close the drawer. Clicks on AppLayout chrome (header, sidebar) NEVER
|
|
36
43
|
* close the drawer regardless of this flag — chrome interactions shouldn't
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app-layout-drawer.d.ts","sourceRoot":"","sources":["../../../src/components/navigation/app-layout-drawer.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAA;AACzD,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAA;AAuCjE,UAAU,wBACR,SAAQ,KAAK,CAAC,wBAAwB,CAAC,OAAO,eAAe,CAAC,IAAI,CAAC;CAAG;AAExE,QAAA,MAAM,mBAAmB;8EAOtB,wBAAwB;;CA4B1B,CAAA;AAGD,QAAA,MAAM,sBAAsB,8GAA0B,CAAA;AACtD,QAAA,MAAM,oBAAoB,4GAAwB,CAAA;AAElD,QAAA,MAAM,uBAAuB;;;8EAkC5B,CAAA;
|
|
1
|
+
{"version":3,"file":"app-layout-drawer.d.ts","sourceRoot":"","sources":["../../../src/components/navigation/app-layout-drawer.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAA;AACzD,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAA;AAuCjE,UAAU,wBACR,SAAQ,KAAK,CAAC,wBAAwB,CAAC,OAAO,eAAe,CAAC,IAAI,CAAC;CAAG;AAExE,QAAA,MAAM,mBAAmB;8EAOtB,wBAAwB;;CA4B1B,CAAA;AAGD,QAAA,MAAM,sBAAsB,8GAA0B,CAAA;AACtD,QAAA,MAAM,oBAAoB,4GAAwB,CAAA;AAElD,QAAA,MAAM,uBAAuB;;;8EAkC5B,CAAA;AAwQD,MAAM,WAAW,2BACf,SAAQ,IAAI,CACR,KAAK,CAAC,wBAAwB,CAAC,OAAO,eAAe,CAAC,OAAO,CAAC,EAC9D,OAAO,CACR,EACD,YAAY,CAAC,OAAO,uBAAuB,CAAC;IAC9C,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB;qEACiE;IACjE,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAA;IAC3B,UAAU,CAAC,EAAE,KAAK,CAAC,aAAa,CAAA;IAChC,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB;+DAC2D;IAC3D,SAAS,CAAC,EAAE,WAAW,GAAG,IAAI,CAAA;IAC9B;;;;;gCAK4B;IAC5B,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB;;;;;mFAK+E;IAC/E,wBAAwB,CAAC,EAAE,OAAO,CAAA;IAClC;;;;;uEAKmE;IACnE,gBAAgB,CAAC,EAAE,OAAO,CAAA;CAC3B;AAED,QAAA,MAAM,sBAAsB,oGAiP3B,CAAA;AAKD,QAAA,MAAM,qBAAqB;;;CAAe,CAAA;AAC1C,QAAA,MAAM,oBAAoB,oKAAc,CAAA;AACxC,QAAA,MAAM,0BAA0B,8KAAoB,CAAA;AACpD,QAAA,MAAM,mBAAmB;;;CAAa,CAAA;AACtC,QAAA,MAAM,qBAAqB;;;CAAe,CAAA;AAE1C,OAAO,EACL,mBAAmB,IAAI,eAAe,EACtC,sBAAsB,EACtB,oBAAoB,EACpB,sBAAsB,EACtB,qBAAqB,EACrB,oBAAoB,EACpB,0BAA0B,EAC1B,mBAAmB,EACnB,qBAAqB,GACtB,CAAA"}
|
|
@@ -26,12 +26,12 @@
|
|
|
26
26
|
|
|
27
27
|
|
|
28
28
|
|
|
29
|
-
var
|
|
29
|
+
var _chunkENDUMC7Zcjs = require('../../chunk-ENDUMC7Z.cjs');
|
|
30
30
|
require('../../chunk-XL4V2PYG.cjs');
|
|
31
31
|
require('../../chunk-BZFW3FOF.cjs');
|
|
32
32
|
require('../../chunk-E6B4B7GM.cjs');
|
|
33
33
|
require('../../chunk-WBR7H6E3.cjs');
|
|
34
|
-
require('../../chunk-
|
|
34
|
+
require('../../chunk-JUWPBMQM.cjs');
|
|
35
35
|
require('../../chunk-G7UE6RKV.cjs');
|
|
36
36
|
require('../../chunk-MWW7LKDN.cjs');
|
|
37
37
|
require('../../chunk-2TBN53KY.cjs');
|
|
@@ -68,5 +68,5 @@ require('../../chunk-VRHGVLSL.cjs');
|
|
|
68
68
|
|
|
69
69
|
|
|
70
70
|
|
|
71
|
-
exports.AppHeader =
|
|
71
|
+
exports.AppHeader = _chunkENDUMC7Zcjs.AppHeader; exports.AppLayout = _chunkENDUMC7Zcjs.AppLayout; exports.AppLayoutDrawer = _chunkENDUMC7Zcjs.AppLayoutDrawerRoot; exports.AppLayoutDrawerBody = _chunkENDUMC7Zcjs.AppLayoutDrawerBody; exports.AppLayoutDrawerClose = _chunkENDUMC7Zcjs.AppLayoutDrawerClose; exports.AppLayoutDrawerContent = _chunkENDUMC7Zcjs.AppLayoutDrawerContent; exports.AppLayoutDrawerDescription = _chunkENDUMC7Zcjs.AppLayoutDrawerDescription; exports.AppLayoutDrawerFooter = _chunkENDUMC7Zcjs.AppLayoutDrawerFooter; exports.AppLayoutDrawerHeader = _chunkENDUMC7Zcjs.AppLayoutDrawerHeader; exports.AppLayoutDrawerTitle = _chunkENDUMC7Zcjs.AppLayoutDrawerTitle; exports.AppLayoutDrawerTrigger = _chunkENDUMC7Zcjs.AppLayoutDrawerTrigger; exports.ClientOnlyHeader = _chunkENDUMC7Zcjs.ClientOnlyHeader; exports.Header = _chunkENDUMC7Zcjs.Header; exports.HeaderButton = _chunkENDUMC7Zcjs.HeaderButton; exports.HeaderGlobalSearch = _chunkENDUMC7Zcjs.HeaderGlobalSearch; exports.HeaderMingoButton = _chunkENDUMC7Zcjs.HeaderMingoButton; exports.HeaderOrganizationFilter = _chunkENDUMC7Zcjs.HeaderOrganizationFilter; exports.HeaderSkeleton = _chunkENDUMC7Zcjs.HeaderSkeleton; exports.MobileBurgerMenu = _chunkENDUMC7Zcjs.MobileBurgerMenu; exports.MobileNavPanel = _chunkENDUMC7Zcjs.MobileNavPanel; exports.NavigationSidebar = _chunkENDUMC7Zcjs.NavigationSidebar; exports.SlidingSidebar = _chunkENDUMC7Zcjs.SlidingSidebar; exports.StickySectionNav = _chunkENDUMC7Zcjs.StickySectionNav; exports.useAppLayoutDrawerContainer = _chunkENDUMC7Zcjs.useAppLayoutDrawerContainer; exports.useSectionNavigation = _chunkENDUMC7Zcjs.useSectionNavigation;
|
|
72
72
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -26,12 +26,12 @@ import {
|
|
|
26
26
|
StickySectionNav,
|
|
27
27
|
useAppLayoutDrawerContainer,
|
|
28
28
|
useSectionNavigation
|
|
29
|
-
} from "../../chunk-
|
|
29
|
+
} from "../../chunk-4VHWSAQR.js";
|
|
30
30
|
import "../../chunk-LXC6P2EO.js";
|
|
31
31
|
import "../../chunk-EL5YVPD5.js";
|
|
32
32
|
import "../../chunk-YZDUOUMB.js";
|
|
33
33
|
import "../../chunk-OHPI2HRK.js";
|
|
34
|
-
import "../../chunk-
|
|
34
|
+
import "../../chunk-53EA4QPZ.js";
|
|
35
35
|
import "../../chunk-PLJLE4A4.js";
|
|
36
36
|
import "../../chunk-Z46NRJWW.js";
|
|
37
37
|
import "../../chunk-YICWWZ3Z.js";
|
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkABBU7QOMcjs = require('../../chunk-ABBU7QOM.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunk7TKYFZ3Lcjs = require('../../chunk-7TKYFZ3L.cjs');
|
|
11
11
|
require('../../chunk-OB45JHDY.cjs');
|
|
12
12
|
|
|
13
13
|
|
|
@@ -22,14 +22,14 @@ require('../../chunk-OB45JHDY.cjs');
|
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
|
|
25
|
-
var
|
|
25
|
+
var _chunkENDUMC7Zcjs = require('../../chunk-ENDUMC7Z.cjs');
|
|
26
26
|
require('../../chunk-XL4V2PYG.cjs');
|
|
27
27
|
require('../../chunk-BZFW3FOF.cjs');
|
|
28
28
|
require('../../chunk-E6B4B7GM.cjs');
|
|
29
29
|
|
|
30
30
|
|
|
31
31
|
var _chunkWBR7H6E3cjs = require('../../chunk-WBR7H6E3.cjs');
|
|
32
|
-
require('../../chunk-
|
|
32
|
+
require('../../chunk-JUWPBMQM.cjs');
|
|
33
33
|
|
|
34
34
|
|
|
35
35
|
|
|
@@ -54,7 +54,7 @@ var _lucidereact = require('lucide-react');
|
|
|
54
54
|
var _jsxruntime = require('react/jsx-runtime');
|
|
55
55
|
function OnboardingGuidesCatalogSkeleton() {
|
|
56
56
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
57
|
-
|
|
57
|
+
_chunk7TKYFZ3Lcjs.DevSectionPage,
|
|
58
58
|
{
|
|
59
59
|
sectionKey: "onboarding",
|
|
60
60
|
preControls: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-4 animate-pulse", children: [
|
|
@@ -75,7 +75,7 @@ function OnboardingGuidesCatalogSkeleton() {
|
|
|
75
75
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-6 w-40 bg-ods-border/70 rounded" }),
|
|
76
76
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-5 w-8 bg-ods-text-secondary/20 rounded-full" })
|
|
77
77
|
] }),
|
|
78
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "ul", { className: "flex flex-col gap-4", children: Array.from({ length: cardCount }).map((_, cardIdx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "li", { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
78
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "ul", { className: "flex flex-col gap-4", children: Array.from({ length: cardCount }).map((_, cardIdx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "li", { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkENDUMC7Zcjs.OnboardingGuideCardSkeleton, { size: "catalog" }) }, cardIdx)) })
|
|
79
79
|
] }, sectionIdx)) })
|
|
80
80
|
}
|
|
81
81
|
);
|
|
@@ -100,10 +100,10 @@ function OnboardingGuidesCatalogView({
|
|
|
100
100
|
const sectionValue = selfFetch ? _nullishCoalesce(searchParams.get("section"), () => ( "")) : initialSection;
|
|
101
101
|
const activeSection = sectionValue || "all";
|
|
102
102
|
const guidesQs = sectionValue ? `?section=${encodeURIComponent(sectionValue)}` : "";
|
|
103
|
-
const guidesRes =
|
|
103
|
+
const guidesRes = _chunkABBU7QOMcjs.useSelfFetch.call(void 0,
|
|
104
104
|
selfFetch && guidesEndpoint ? `${guidesEndpoint}${guidesQs}` : null
|
|
105
105
|
);
|
|
106
|
-
const sectionsRes =
|
|
106
|
+
const sectionsRes = _chunkABBU7QOMcjs.useSelfFetch.call(void 0,
|
|
107
107
|
selfFetch && sectionsEndpoint ? sectionsEndpoint : null
|
|
108
108
|
);
|
|
109
109
|
const guides = _nullishCoalesce(_nullishCoalesce(initialGuides, () => ( _optionalChain([guidesRes, 'access', _2 => _2.data, 'optionalAccess', _3 => _3.data]))), () => ( []));
|
|
@@ -145,21 +145,21 @@ function OnboardingGuidesCatalogView({
|
|
|
145
145
|
});
|
|
146
146
|
};
|
|
147
147
|
const source = _nullishCoalesce(_optionalChain([runtime, 'optionalAccess', _4 => _4.source]), () => ( "openframe"));
|
|
148
|
-
const docSearch =
|
|
148
|
+
const docSearch = _chunkABBU7QOMcjs.useDocSearch.call(void 0, {
|
|
149
149
|
source,
|
|
150
150
|
baseRoute: basePath,
|
|
151
151
|
onNavigate: (path) => router.push(path),
|
|
152
152
|
tableIds: ["onboarding-guides"]
|
|
153
153
|
});
|
|
154
154
|
const defaultRenderCard = (guide) => {
|
|
155
|
-
const cta =
|
|
155
|
+
const cta = _chunkENDUMC7Zcjs.resolveContentHref.call(void 0, _optionalChain([runtime, 'optionalAccess', _5 => _5.composeContentUrl]), {
|
|
156
156
|
type: "onboarding_guide",
|
|
157
157
|
slug: guide.slug,
|
|
158
158
|
basePath,
|
|
159
159
|
platforms: guide.onboarding_guide_platforms
|
|
160
160
|
});
|
|
161
161
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
162
|
-
|
|
162
|
+
_chunkENDUMC7Zcjs.OnboardingGuideCard,
|
|
163
163
|
{
|
|
164
164
|
guide,
|
|
165
165
|
href: cta.href,
|
|
@@ -171,7 +171,7 @@ function OnboardingGuidesCatalogView({
|
|
|
171
171
|
const renderCardFn = _nullishCoalesce(renderCard, () => ( defaultRenderCard));
|
|
172
172
|
const preControls = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-4", children: [
|
|
173
173
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
174
|
-
|
|
174
|
+
_chunkABBU7QOMcjs.DocSearchBar,
|
|
175
175
|
{
|
|
176
176
|
placeholder: "Search onboarding guides, releases, case studies\u2026",
|
|
177
177
|
query: docSearch.query,
|
|
@@ -183,7 +183,7 @@ function OnboardingGuidesCatalogView({
|
|
|
183
183
|
}
|
|
184
184
|
),
|
|
185
185
|
sections.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
186
|
-
|
|
186
|
+
_chunkENDUMC7Zcjs.FilterPillRow,
|
|
187
187
|
{
|
|
188
188
|
label: "Section",
|
|
189
189
|
selectedValue: activeSection,
|
|
@@ -193,7 +193,7 @@ function OnboardingGuidesCatalogView({
|
|
|
193
193
|
)
|
|
194
194
|
] });
|
|
195
195
|
if (selfFetch && guidesRes.error) {
|
|
196
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
196
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkENDUMC7Zcjs.LoadError, { message: "Failed to load onboarding guides.", onRetry: guidesRes.reload });
|
|
197
197
|
}
|
|
198
198
|
if (selfFetch && guidesRes.data == null && isLoading) {
|
|
199
199
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, OnboardingGuidesCatalogSkeleton, {});
|
|
@@ -222,7 +222,7 @@ function OnboardingGuideDetailView({
|
|
|
222
222
|
slug,
|
|
223
223
|
guideEndpoint,
|
|
224
224
|
related = [],
|
|
225
|
-
MarkdownRenderer =
|
|
225
|
+
MarkdownRenderer = _chunkENDUMC7Zcjs.SimpleMarkdownRenderer,
|
|
226
226
|
renderRelatedCard,
|
|
227
227
|
backHref,
|
|
228
228
|
backLabel = "Back to Getting Started",
|
|
@@ -231,30 +231,30 @@ function OnboardingGuideDetailView({
|
|
|
231
231
|
const resolvedBackHref = _nullishCoalesce(backHref, () => ( basePath));
|
|
232
232
|
const runtime = _chunkMEAR2WHScjs.useChatRuntime.call(void 0, );
|
|
233
233
|
const url = initialData ? null : slug && guideEndpoint ? guideEndpoint(slug) : null;
|
|
234
|
-
const { data: guide, isLoading, error, reload } =
|
|
235
|
-
const { ref: videoWarmupRef } =
|
|
234
|
+
const { data: guide, isLoading, error, reload } = _chunkABBU7QOMcjs.useSelfFetch.call(void 0, url, { initialData });
|
|
235
|
+
const { ref: videoWarmupRef } = _chunkENDUMC7Zcjs.useVideoWarmup.call(void 0, {
|
|
236
236
|
videoUrl: _optionalChain([guide, 'optionalAccess', _6 => _6.main_video_url]),
|
|
237
237
|
supabaseStorageOrigin: _optionalChain([runtime, 'optionalAccess', _7 => _7.endpoints, 'access', _8 => _8.supabaseStorageOrigin])
|
|
238
238
|
});
|
|
239
239
|
if (error || !guide && !isLoading) {
|
|
240
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
240
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkENDUMC7Zcjs.LoadError, { message: "Guide not found.", onRetry: reload });
|
|
241
241
|
}
|
|
242
242
|
if (!guide) {
|
|
243
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
243
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkABBU7QOMcjs.DetailPageSkeleton, { showImageGallery: false });
|
|
244
244
|
}
|
|
245
|
-
const captionsUrl =
|
|
245
|
+
const captionsUrl = _chunkENDUMC7Zcjs.getCaptionsUrl.call(void 0, "onboarding_guide", guide.id, guide.srt_content);
|
|
246
246
|
const videoPoster = guide.main_video_thumbnail || guide.featured_image || guide.og_image_url || _optionalChain([runtime, 'optionalAccess', _9 => _9.resolvePlaceholderUrl, 'optionalCall', _10 => _10(guide.title, { aspect: "wide" })]) || void 0;
|
|
247
247
|
const defaultRenderRelatedCard = (g) => {
|
|
248
|
-
const cta =
|
|
248
|
+
const cta = _chunkENDUMC7Zcjs.resolveContentHref.call(void 0, _optionalChain([runtime, 'optionalAccess', _11 => _11.composeContentUrl]), {
|
|
249
249
|
type: "onboarding_guide",
|
|
250
250
|
slug: g.slug,
|
|
251
251
|
basePath,
|
|
252
252
|
platforms: g.onboarding_guide_platforms
|
|
253
253
|
});
|
|
254
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
254
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkENDUMC7Zcjs.OnboardingGuideCard, { guide: g, href: cta.href, targetPlatform: cta.targetPlatform });
|
|
255
255
|
};
|
|
256
256
|
const renderRelatedCardFn = _nullishCoalesce(renderRelatedCard, () => ( defaultRenderRelatedCard));
|
|
257
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
257
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkENDUMC7Zcjs.ArticleDetailLayout, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-6 md:space-y-8", children: [
|
|
258
258
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
259
259
|
_chunkWBR7H6E3cjs.next_link_default,
|
|
260
260
|
{
|
|
@@ -268,7 +268,7 @@ function OnboardingGuideDetailView({
|
|
|
268
268
|
),
|
|
269
269
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h1", { className: "text-h1 tracking-[-1.12px] text-ods-text-primary", children: guide.title }),
|
|
270
270
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
271
|
-
|
|
271
|
+
_chunkENDUMC7Zcjs.EntityAuthorCard,
|
|
272
272
|
{
|
|
273
273
|
author: guide.author,
|
|
274
274
|
publishedAt: guide.published_at,
|
|
@@ -282,7 +282,7 @@ function OnboardingGuideDetailView({
|
|
|
282
282
|
}
|
|
283
283
|
),
|
|
284
284
|
(guide.main_video_url || guide.youtube_url) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref: videoWarmupRef, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
285
|
-
|
|
285
|
+
_chunkENDUMC7Zcjs.EntityVideoSection,
|
|
286
286
|
{
|
|
287
287
|
mainVideoUrl: guide.main_video_url,
|
|
288
288
|
youtubeUrl: guide.youtube_url || void 0,
|
|
@@ -299,7 +299,7 @@ function OnboardingGuideDetailView({
|
|
|
299
299
|
) }),
|
|
300
300
|
guide.content && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "space-y-4", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, MarkdownRenderer, { content: guide.content }) }),
|
|
301
301
|
guide.video_bites && guide.video_bites.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
302
|
-
|
|
302
|
+
_chunkENDUMC7Zcjs.VideoBitesDisplay,
|
|
303
303
|
{
|
|
304
304
|
bites: guide.video_bites,
|
|
305
305
|
filterPublished: true,
|
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
DocSearchBar,
|
|
5
5
|
useDocSearch,
|
|
6
6
|
useSelfFetch
|
|
7
|
-
} from "../../chunk-
|
|
7
|
+
} from "../../chunk-WOKB6RJ7.js";
|
|
8
8
|
import {
|
|
9
9
|
DevSectionPage
|
|
10
|
-
} from "../../chunk-
|
|
10
|
+
} from "../../chunk-GYYGA24C.js";
|
|
11
11
|
import "../../chunk-ORJREQ2W.js";
|
|
12
12
|
import {
|
|
13
13
|
ArticleDetailLayout,
|
|
@@ -22,14 +22,14 @@ import {
|
|
|
22
22
|
getCaptionsUrl,
|
|
23
23
|
resolveContentHref,
|
|
24
24
|
useVideoWarmup
|
|
25
|
-
} from "../../chunk-
|
|
25
|
+
} from "../../chunk-4VHWSAQR.js";
|
|
26
26
|
import "../../chunk-LXC6P2EO.js";
|
|
27
27
|
import "../../chunk-EL5YVPD5.js";
|
|
28
28
|
import "../../chunk-YZDUOUMB.js";
|
|
29
29
|
import {
|
|
30
30
|
next_link_default
|
|
31
31
|
} from "../../chunk-OHPI2HRK.js";
|
|
32
|
-
import "../../chunk-
|
|
32
|
+
import "../../chunk-53EA4QPZ.js";
|
|
33
33
|
import {
|
|
34
34
|
useRouter,
|
|
35
35
|
useSearchParams
|