@flamingo-stack/openframe-frontend-core 0.0.702 → 0.0.703-snapshot.20261006080901
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-CYYTD5ZK.cjs → chunk-262YQFOS.cjs} +47 -47
- package/dist/{chunk-SAA7B3DA.js → chunk-2G546OND.js} +500 -67
- package/dist/{chunk-6JPQDYYY.js → chunk-2JDVL7UV.js} +2614 -2001
- package/dist/{chunk-ASN65P3F.cjs → chunk-4DQMTBMK.cjs} +15 -15
- package/dist/{chunk-CZ34HXDW.js → chunk-4KGXLVCF.js} +686 -725
- package/dist/{chunk-TCZCMD5Q.js → chunk-5HBHO5TB.js} +1 -1
- package/dist/{chunk-446KS5BG.js → chunk-5QJDM6UV.js} +5 -5
- package/dist/{chunk-UJJWTJ6S.js → chunk-6WQIUQUC.js} +30 -16
- package/dist/{chunk-YR6JPJF4.js → chunk-6XIF2Z7I.js} +4 -4
- package/dist/{chunk-YGRHITPY.cjs → chunk-7JIL3WOH.cjs} +24 -24
- package/dist/{chunk-RS7HWAYX.js → chunk-7LFIKJX2.js} +3 -3
- package/dist/{chunk-4OGAXAEG.cjs → chunk-ABU3TGXA.cjs} +3 -3
- package/dist/{chunk-3WSFIV5G.cjs → chunk-AMYY3PNL.cjs} +69 -55
- package/dist/{chunk-BRXOGCH3.cjs → chunk-BIZNSF3U.cjs} +3 -3
- package/dist/{chunk-2A4XES7R.cjs → chunk-BM5MVGH3.cjs} +3 -3
- package/dist/{chunk-IIMICN7L.cjs → chunk-C3BWIU7R.cjs} +4 -44
- package/dist/{chunk-LZNJH23A.cjs → chunk-C7XGRLT5.cjs} +12 -12
- package/dist/{chunk-6YCXA7CN.js → chunk-CH5232HV.js} +20 -19
- package/dist/{chunk-UIBSSVON.cjs → chunk-D7BTSVMS.cjs} +2 -2
- package/dist/{chunk-BO5ZHDA4.js → chunk-ERCV6HHJ.js} +7 -7
- package/dist/{chunk-5V6O73EH.js → chunk-FLKJYMVB.js} +3 -3
- package/dist/{chunk-Z5HDCZAS.js → chunk-FXENTYE5.js} +15 -15
- package/dist/{chunk-HIXGAY2L.cjs → chunk-HFJW24JJ.cjs} +121 -121
- package/dist/{chunk-HPJ4XS2L.js → chunk-HJAYVKWQ.js} +24 -24
- package/dist/{chunk-PLK6GHN7.js → chunk-I7DFUQMN.js} +10 -10
- package/dist/{chunk-KJ5LWATV.js → chunk-IHU5ANUY.js} +7 -7
- package/dist/{chunk-AEQANLBW.cjs → chunk-IZGDG5X6.cjs} +505 -72
- package/dist/{chunk-2V4Z44G6.js → chunk-JEYRXT5L.js} +17 -17
- package/dist/{chunk-B3LZJ6J3.cjs → chunk-L3IC42IF.cjs} +32 -32
- package/dist/{chunk-RTGPIHVO.cjs → chunk-LDPEQGKT.cjs} +2243 -1630
- package/dist/{chunk-FD4DBTFO.cjs → chunk-LTSTC3N5.cjs} +1253 -1292
- package/dist/{chunk-OGLCD3UL.js → chunk-MFFCUVWG.js} +6 -6
- package/dist/{chunk-3L7KCOGO.cjs → chunk-MGGGBHYD.cjs} +30 -30
- package/dist/{chunk-QFW3RUZS.cjs → chunk-MI3JUJ75.cjs} +33 -33
- package/dist/{chunk-EMCQGFXD.cjs → chunk-MMOODW57.cjs} +28 -27
- package/dist/{chunk-Q76ZTHNV.js → chunk-MP2C3LJ4.js} +1 -1
- package/dist/{chunk-E3DH543A.cjs → chunk-N3TO7JV3.cjs} +98 -98
- package/dist/{chunk-2T6QWNXU.js → chunk-NDESEPW5.js} +99 -11
- package/dist/{chunk-ETFFEA3J.js → chunk-NRLJUBCS.js} +7 -7
- package/dist/{chunk-HUOLB7ZN.cjs → chunk-OHFS7VOU.cjs} +9 -9
- package/dist/{chunk-MWUBBBWZ.js → chunk-QVSFBSWV.js} +10 -10
- package/dist/{chunk-MDBHZBW7.cjs → chunk-RKV5B7EU.cjs} +92 -4
- package/dist/{chunk-3G76LRGL.cjs → chunk-SYXQLETR.cjs} +29 -29
- package/dist/{chunk-FHM7GD5B.cjs → chunk-UK62YTH6.cjs} +28 -14
- package/dist/{chunk-HUMWQMCU.js → chunk-UT4YHQZW.js} +3 -3
- package/dist/{chunk-NGJCWEYX.cjs → chunk-VHCACDKP.cjs} +46 -46
- package/dist/{chunk-5FFNNJM7.js → chunk-VR2ZLFCP.js} +1 -1
- package/dist/{chunk-IZKOQVXO.js → chunk-VTASHWER.js} +14 -14
- package/dist/{chunk-64O4L7WN.js → chunk-WUJNYGO2.js} +11 -51
- package/dist/{chunk-JOY6HVPV.js → chunk-XATTBO5X.js} +25 -11
- package/dist/{chunk-L7KZA7ZD.cjs → chunk-XIFOBQRQ.cjs} +6 -6
- package/dist/{chunk-CXDJUKC6.cjs → chunk-XJKZ4IKT.cjs} +4 -4
- package/dist/{chunk-XCIFHW4E.cjs → chunk-XOYH2YQE.cjs} +2 -2
- package/dist/{chunk-HYFLTFFB.js → chunk-ZQFZSFQI.js} +2 -2
- package/dist/components/case-studies/index.cjs +24 -24
- package/dist/components/case-studies/index.js +10 -10
- package/dist/components/chat/chat-archive-page.d.ts +3 -3
- package/dist/components/chat/chat-archive-page.d.ts.map +1 -1
- package/dist/components/chat/chat-nav-sidebar.d.ts +4 -0
- package/dist/components/chat/chat-nav-sidebar.d.ts.map +1 -1
- package/dist/components/chat/chat-panel-header.d.ts +3 -2
- package/dist/components/chat/chat-panel-header.d.ts.map +1 -1
- package/dist/components/chat/embeddable-chat.d.ts +36 -2
- package/dist/components/chat/embeddable-chat.d.ts.map +1 -1
- package/dist/components/chat/index.cjs +14 -6
- package/dist/components/chat/index.d.ts +4 -1
- package/dist/components/chat/index.d.ts.map +1 -1
- package/dist/components/chat/index.js +13 -5
- package/dist/components/chat/mingo-archive-list.d.ts +17 -0
- package/dist/components/chat/mingo-archive-list.d.ts.map +1 -0
- package/dist/components/chat/mingo-chat-header.d.ts +31 -0
- package/dist/components/chat/mingo-chat-header.d.ts.map +1 -0
- package/dist/components/chat/mingo-chat-rail.d.ts +54 -0
- package/dist/components/chat/mingo-chat-rail.d.ts.map +1 -0
- package/dist/components/chat/model-display.d.ts.map +1 -1
- package/dist/components/contact/contact-form.d.ts.map +1 -1
- package/dist/components/contact/index.cjs +11 -11
- package/dist/components/contact/index.js +10 -10
- package/dist/components/content-loading-container.d.ts +1 -1
- package/dist/components/content-loading-container.d.ts.map +1 -1
- package/dist/components/docs/index.cjs +14 -14
- package/dist/components/docs/index.js +13 -13
- package/dist/components/docs/skeletons.d.ts.map +1 -1
- package/dist/components/embeds/index.cjs +11 -11
- package/dist/components/embeds/index.js +10 -10
- package/dist/components/faq/index.cjs +12 -12
- package/dist/components/faq/index.js +11 -11
- package/dist/components/features/figma-prototype-viewer.d.ts.map +1 -1
- package/dist/components/features/index.cjs +10 -10
- package/dist/components/features/index.js +9 -9
- package/dist/components/features/media-gallery-manager.d.ts.map +1 -1
- package/dist/components/features/parallax-image-showcase.d.ts.map +1 -1
- package/dist/components/features/policy-configuration-panel.d.ts.map +1 -1
- package/dist/components/features/section-selector.d.ts.map +1 -1
- package/dist/components/help-center-pages/index.cjs +119 -119
- package/dist/components/help-center-pages/index.js +39 -39
- package/dist/components/help-center-pages/trust-center-sections.d.ts +2 -2
- package/dist/components/help-center-pages/trust-center-sections.d.ts.map +1 -1
- package/dist/components/index.cjs +94 -86
- package/dist/components/index.js +32 -24
- package/dist/components/layout/article-detail-layout.d.ts +1 -1
- package/dist/components/layout/article-detail-layout.d.ts.map +1 -1
- package/dist/components/layout/page-container.d.ts.map +1 -1
- package/dist/components/layout/title-block.d.ts +2 -2
- package/dist/components/layout/title-block.d.ts.map +1 -1
- package/dist/components/loading/page-layout-skeleton.d.ts.map +1 -1
- package/dist/components/loading/unified-skeleton.d.ts.map +1 -1
- package/dist/components/meeting-scheduler/booking-form.d.ts +4 -4
- package/dist/components/meeting-scheduler/booking-form.d.ts.map +1 -1
- package/dist/components/meeting-scheduler/context-panel.d.ts.map +1 -1
- package/dist/components/meeting-scheduler/index.cjs +127 -127
- package/dist/components/meeting-scheduler/index.d.ts +2 -2
- package/dist/components/meeting-scheduler/index.d.ts.map +1 -1
- package/dist/components/meeting-scheduler/index.js +50 -50
- package/dist/components/navigation/app-header.d.ts +4 -0
- package/dist/components/navigation/app-header.d.ts.map +1 -1
- package/dist/components/navigation/app-layout-drawer.d.ts.map +1 -1
- package/dist/components/navigation/app-layout-side-panel.d.ts +142 -0
- package/dist/components/navigation/app-layout-side-panel.d.ts.map +1 -0
- package/dist/components/navigation/app-layout.d.ts +11 -1
- package/dist/components/navigation/app-layout.d.ts.map +1 -1
- package/dist/components/navigation/header-mingo-button.d.ts +4 -1
- package/dist/components/navigation/header-mingo-button.d.ts.map +1 -1
- package/dist/components/navigation/index.cjs +13 -13
- package/dist/components/navigation/index.d.ts +1 -0
- package/dist/components/navigation/index.d.ts.map +1 -1
- package/dist/components/navigation/index.js +12 -12
- package/dist/components/navigation/navigation-sidebar.d.ts +8 -1
- package/dist/components/navigation/navigation-sidebar.d.ts.map +1 -1
- package/dist/components/navigation/sliding-sidebar.d.ts.map +1 -1
- package/dist/components/onboarding-guides/index.cjs +14 -14
- package/dist/components/onboarding-guides/index.js +13 -13
- package/dist/components/persistent-filter-controls.d.ts.map +1 -1
- package/dist/components/related-content/index.cjs +7 -7
- package/dist/components/related-content/index.js +6 -6
- package/dist/components/shared/detail-page-skeleton.d.ts.map +1 -1
- package/dist/components/tickets/help-center-create-form.d.ts +4 -4
- package/dist/components/tickets/index.cjs +15 -15
- package/dist/components/tickets/index.js +14 -14
- package/dist/components/ui/announcement-bar-view.d.ts.map +1 -1
- package/dist/components/ui/breadcrumb.d.ts.map +1 -1
- package/dist/components/ui/checkbox-block.d.ts.map +1 -1
- package/dist/components/ui/dashboard-info-card.d.ts +1 -1
- package/dist/components/ui/dashboard-info-card.d.ts.map +1 -1
- package/dist/components/ui/data-table/data-table-body.d.ts +2 -2
- package/dist/components/ui/data-table/data-table-skeleton.d.ts +2 -2
- package/dist/components/ui/data-table/data-table-skeleton.d.ts.map +1 -1
- package/dist/components/ui/data-table/utils.d.ts +2 -2
- package/dist/components/ui/dialog.d.ts.map +1 -1
- package/dist/components/ui/drawer.d.ts +7 -3
- package/dist/components/ui/drawer.d.ts.map +1 -1
- package/dist/components/ui/entity-image.d.ts +2 -2
- package/dist/components/ui/file-manager/index.cjs +36 -36
- package/dist/components/ui/file-manager/index.js +3 -3
- package/dist/components/ui/filter-modal.d.ts.map +1 -1
- package/dist/components/ui/index.cjs +18 -10
- package/dist/components/ui/index.js +17 -9
- package/dist/components/ui/info-card-row.d.ts.map +1 -1
- package/dist/components/ui/menubar.d.ts +1 -1
- package/dist/components/ui/menubar.d.ts.map +1 -1
- package/dist/components/ui/modal-v2.d.ts.map +1 -1
- package/dist/components/ui/modal.d.ts.map +1 -1
- package/dist/components/ui/no-data/no-data-actions.d.ts.map +1 -1
- package/dist/components/ui/no-data/no-data-styles.d.ts +1 -1
- package/dist/components/ui/no-data/no-data-styles.d.ts.map +1 -1
- package/dist/components/ui/page-actions.d.ts.map +1 -1
- package/dist/components/ui/panel-resize-handle.d.ts +25 -0
- package/dist/components/ui/panel-resize-handle.d.ts.map +1 -0
- package/dist/components/ui/sheet.d.ts.map +1 -1
- package/dist/components/ui/table/table-skeleton.d.ts +1 -1
- package/dist/components/ui/table/table-skeleton.d.ts.map +1 -1
- package/dist/hooks/index.cjs +23 -9
- package/dist/hooks/index.js +24 -10
- package/dist/hooks/ui/index.d.ts +1 -0
- package/dist/hooks/ui/index.d.ts.map +1 -1
- package/dist/hooks/ui/use-content-breakpoint.d.ts +32 -0
- package/dist/hooks/ui/use-content-breakpoint.d.ts.map +1 -0
- package/dist/hooks/ui/use-isomorphic-layout-effect.d.ts +2 -2
- package/dist/hooks/ui/use-isomorphic-layout-effect.d.ts.map +1 -1
- package/dist/hooks/ui/use-media-query.d.ts.map +1 -1
- package/dist/hooks/ui/use-resizable-panel-size.d.ts +46 -0
- package/dist/hooks/ui/use-resizable-panel-size.d.ts.map +1 -0
- package/dist/index.cjs +39 -17
- package/dist/index.js +41 -19
- package/dist/styles/layout-steps.d.ts +30 -0
- package/dist/styles/layout-steps.d.ts.map +1 -0
- package/dist/tailwind.config.cjs +36 -11
- package/dist/tailwind.config.js +36 -11
- package/eslint-config/README.md +9 -0
- package/eslint-config/base.js +17 -1
- package/eslint-config/layout-variants.js +57 -0
- package/package.json +3 -1
- package/src/ODS_TOKEN_RULES.md +40 -0
- package/src/components/chat/chat-archive-page.tsx +9 -7
- package/src/components/chat/chat-nav-sidebar.tsx +10 -4
- package/src/components/chat/chat-panel-header.tsx +8 -5
- package/src/components/chat/embeddable-chat.tsx +686 -494
- package/src/components/chat/index.ts +4 -0
- package/src/components/chat/mingo-archive-list.tsx +108 -0
- package/src/components/chat/mingo-chat-header.tsx +104 -0
- package/src/components/chat/mingo-chat-rail.tsx +361 -0
- package/src/components/chat/model-display.tsx +8 -1
- package/src/components/contact/contact-form.tsx +11 -9
- package/src/components/content-loading-container.tsx +4 -2
- package/src/components/docs/doc-viewer.tsx +7 -7
- package/src/components/docs/skeletons.tsx +7 -4
- package/src/components/dynamic-skeleton.tsx +1 -1
- package/src/components/embeds/claude-embed.tsx +1 -1
- package/src/components/embeds/embed-viewer-frame.tsx +4 -4
- package/src/components/embeds/figma-embed.tsx +2 -2
- package/src/components/embeds/google-sheets-viewer.tsx +1 -1
- package/src/components/embeds/pdf-viewer.tsx +3 -3
- package/src/components/empty-state.tsx +6 -6
- package/src/components/faq/faq-section.tsx +2 -2
- package/src/components/faq-accordion.tsx +1 -1
- package/src/components/features/board/board-column-header.tsx +1 -1
- package/src/components/features/command-box.tsx +3 -3
- package/src/components/features/entity-video-section.tsx +2 -2
- package/src/components/features/figma-prototype-viewer.tsx +4 -1
- package/src/components/features/media-gallery-manager.tsx +3 -1
- package/src/components/features/parallax-image-showcase.tsx +9 -6
- package/src/components/features/policy-configuration-panel.tsx +9 -7
- package/src/components/features/provider-button.tsx +1 -1
- package/src/components/features/section-selector.tsx +11 -6
- package/src/components/features/select-button.tsx +4 -4
- package/src/components/features/seo-editor-preview.tsx +2 -2
- package/src/components/features/video-ratio-tabs.tsx +3 -3
- package/src/components/features/waitlist-form.tsx +1 -1
- package/src/components/help-center-pages/trust-center-page.tsx +1 -1
- package/src/components/help-center-pages/trust-center-sections.tsx +14 -14
- package/src/components/icon-display.tsx +1 -1
- package/src/components/layout/article-detail-layout.tsx +4 -2
- package/src/components/layout/list-page-layout.tsx +2 -2
- package/src/components/layout/page-container.tsx +26 -14
- package/src/components/layout/page-heading.tsx +1 -1
- package/src/components/layout/page-layout.tsx +1 -1
- package/src/components/layout/title-block.tsx +13 -13
- package/src/components/loading/card-skeleton.tsx +11 -11
- package/src/components/loading/category-vendor-selector-skeleton.tsx +1 -1
- package/src/components/loading/content-skeleton.tsx +6 -6
- package/src/components/loading/device-card-skeleton.tsx +1 -1
- package/src/components/loading/margin-report-skeleton.tsx +7 -7
- package/src/components/loading/msp-profile-form-skeleton.tsx +3 -3
- package/src/components/loading/organization-card-skeleton.tsx +2 -2
- package/src/components/loading/page-layout-skeleton.tsx +80 -68
- package/src/components/loading/unified-skeleton.tsx +16 -6
- package/src/components/media-carousel.tsx +3 -3
- package/src/components/meeting-scheduler/booking-form.tsx +9 -8
- package/src/components/meeting-scheduler/context-panel.tsx +8 -6
- package/src/components/meeting-scheduler/directory.tsx +4 -4
- package/src/components/meeting-scheduler/index.tsx +15 -15
- package/src/components/meeting-scheduler/slot-picker.tsx +12 -12
- package/src/components/navigation/app-header.tsx +6 -0
- package/src/components/navigation/app-layout-drawer.tsx +14 -237
- package/src/components/navigation/app-layout-side-panel.tsx +594 -0
- package/src/components/navigation/app-layout.tsx +69 -4
- package/src/components/navigation/header-mingo-button.tsx +13 -3
- package/src/components/navigation/index.ts +5 -0
- package/src/components/navigation/navigation-sidebar.tsx +17 -3
- package/src/components/navigation/sliding-sidebar.tsx +2 -1
- package/src/components/pagination.tsx +3 -3
- package/src/components/persistent-filter-controls.tsx +6 -2
- package/src/components/platform/ScriptArguments.tsx +1 -1
- package/src/components/platform/ScriptInfoSection.tsx +4 -4
- package/src/components/shared/article-author-byline.tsx +1 -1
- package/src/components/shared/delivery/delivery-lists.tsx +2 -2
- package/src/components/shared/delivery/delivery-row.tsx +7 -7
- package/src/components/shared/delivery/delivery-table.tsx +3 -3
- package/src/components/shared/detail-page-skeleton.tsx +11 -5
- package/src/components/shared/dev-section/dev-card-row.tsx +6 -6
- package/src/components/shared/dev-section/dev-section-view.tsx +1 -1
- package/src/components/shared/product-release/product-release-card-skeleton.tsx +8 -8
- package/src/components/shared/product-release/product-release-card.tsx +9 -9
- package/src/components/shared/product-release/product-releases-view.tsx +1 -1
- package/src/components/shared/product-release/release-detail-page.tsx +5 -5
- package/src/components/shared/roadmap/roadmap-grid-skeleton.tsx +1 -1
- package/src/components/shared/roadmap/roadmap-grid.tsx +3 -3
- package/src/components/tickets/help-center-card.tsx +1 -1
- package/src/components/tickets/help-center-create-form.tsx +12 -12
- package/src/components/ui/announcement-bar-view.tsx +2 -10
- package/src/components/ui/benefit-card.tsx +18 -18
- package/src/components/ui/brand-association-grid.tsx +4 -4
- package/src/components/ui/breadcrumb.tsx +4 -1
- package/src/components/ui/card.tsx +1 -1
- package/src/components/ui/checkbox-block.tsx +9 -7
- package/src/components/ui/content-loader.tsx +3 -3
- package/src/components/ui/cursor-pagination.tsx +3 -3
- package/src/components/ui/dashboard-info-card.tsx +13 -9
- package/src/components/ui/data-attribution.tsx +2 -2
- package/src/components/ui/data-table/data-table-body.tsx +2 -2
- package/src/components/ui/data-table/data-table-header.tsx +15 -15
- package/src/components/ui/data-table/data-table-skeleton.tsx +6 -6
- package/src/components/ui/data-table/utils.ts +5 -5
- package/src/components/ui/dialog.tsx +4 -1
- package/src/components/ui/drawer.tsx +43 -189
- package/src/components/ui/duration-input.tsx +1 -1
- package/src/components/ui/entity-image.tsx +3 -3
- package/src/components/ui/feature-card.tsx +10 -10
- package/src/components/ui/file-manager/file-manager-action-bar.tsx +1 -1
- package/src/components/ui/file-manager/file-manager.tsx +1 -1
- package/src/components/ui/filter-modal.tsx +8 -1
- package/src/components/ui/highlight-card.tsx +7 -7
- package/src/components/ui/info-card-row.tsx +10 -6
- package/src/components/ui/modal-v2.tsx +7 -2
- package/src/components/ui/modal.tsx +3 -2
- package/src/components/ui/no-data/no-data-actions.tsx +10 -4
- package/src/components/ui/no-data/no-data-styles.ts +1 -1
- package/src/components/ui/no-data/no-data.tsx +1 -1
- package/src/components/ui/organization-card.tsx +1 -1
- package/src/components/ui/page-actions.tsx +34 -5
- package/src/components/ui/panel-resize-handle.tsx +184 -0
- package/src/components/ui/progress-bar.tsx +2 -2
- package/src/components/ui/query-report-table/query-report-table.tsx +1 -1
- package/src/components/ui/search-input.tsx +2 -2
- package/src/components/ui/service-card.tsx +2 -2
- package/src/components/ui/sheet.tsx +2 -1
- package/src/components/ui/skeleton.tsx +3 -3
- package/src/components/ui/stacked-rows-panel.tsx +4 -4
- package/src/components/ui/tab-navigation.tsx +2 -2
- package/src/components/ui/tab-selector.tsx +2 -2
- package/src/components/ui/table/table-header.tsx +3 -3
- package/src/components/ui/table/table-skeleton.tsx +3 -3
- package/src/components/ui/table/utils.ts +5 -5
- package/src/components/ui/tag-search-input.tsx +3 -3
- package/src/components/ui/tags-manager.tsx +5 -5
- package/src/components/ui/test-run.tsx +2 -2
- package/src/components/ui/ticket-info-section.tsx +1 -1
- package/src/components/ui/ticket-notes-section.tsx +1 -1
- package/src/components/ui/ticket-status-config-row.tsx +15 -15
- package/src/hooks/ui/index.ts +1 -0
- package/src/hooks/ui/use-content-breakpoint.ts +58 -0
- package/src/hooks/ui/use-media-query.ts +3 -2
- package/src/hooks/ui/use-resizable-panel-size.ts +114 -0
- package/src/styles/index.css +2 -0
- package/src/styles/layout-steps.ts +14 -0
- package/src/styles/ods-colors.css +15 -0
- package/src/styles/ods-content-area-tokens.css +27 -0
- package/src/styles/ods-content-area.css +31 -0
- package/src/styles/ods-effects.css +4 -2
- package/src/styles/ods-responsive-tokens.css +14 -4
- package/tailwind.config.ts +42 -7
|
@@ -3,16 +3,16 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkC7XGRLT5cjs = require('./chunk-C7XGRLT5.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunkXJKZ4IKTcjs = require('./chunk-XJKZ4IKT.cjs');
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var _chunk4DQMTBMKcjs = require('./chunk-4DQMTBMK.cjs');
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
|
|
@@ -22,17 +22,17 @@ var _chunkASN65P3Fcjs = require('./chunk-ASN65P3F.cjs');
|
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
|
|
25
|
-
var
|
|
25
|
+
var _chunkLTSTC3N5cjs = require('./chunk-LTSTC3N5.cjs');
|
|
26
26
|
|
|
27
27
|
|
|
28
|
-
var
|
|
28
|
+
var _chunkABU3TGXAcjs = require('./chunk-ABU3TGXA.cjs');
|
|
29
29
|
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
|
|
33
33
|
|
|
34
34
|
|
|
35
|
-
var
|
|
35
|
+
var _chunkC3BWIU7Rcjs = require('./chunk-C3BWIU7R.cjs');
|
|
36
36
|
|
|
37
37
|
|
|
38
38
|
var _chunk7DNL734Scjs = require('./chunk-7DNL734S.cjs');
|
|
@@ -106,13 +106,21 @@ function PersistentSidebar({ isLoading, children, className }) {
|
|
|
106
106
|
{
|
|
107
107
|
isLoading,
|
|
108
108
|
disabledOpacity: 0.5,
|
|
109
|
-
className: _chunk3ATAYP36cjs.cn.call(void 0, "lg:sticky lg:top-20", className),
|
|
109
|
+
className: _chunk3ATAYP36cjs.cn.call(void 0, "content-lg:sticky content-lg:top-20", className),
|
|
110
110
|
children
|
|
111
111
|
}
|
|
112
112
|
);
|
|
113
113
|
}
|
|
114
114
|
function PersistentMobileDropdown({ isLoading, children, className }) {
|
|
115
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
115
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
116
|
+
PersistentFilterControls,
|
|
117
|
+
{
|
|
118
|
+
isLoading,
|
|
119
|
+
disabledOpacity: 0.7,
|
|
120
|
+
className: _chunk3ATAYP36cjs.cn.call(void 0, "content-lg:hidden", className),
|
|
121
|
+
children
|
|
122
|
+
}
|
|
123
|
+
);
|
|
116
124
|
}
|
|
117
125
|
|
|
118
126
|
// src/components/docs/doc-navigation-context.tsx
|
|
@@ -198,7 +206,7 @@ function useDocsResolveLink(sourceId, resolveLinkEndpoint) {
|
|
|
198
206
|
return _react.useCallback.call(void 0,
|
|
199
207
|
async (href, currentPath) => {
|
|
200
208
|
try {
|
|
201
|
-
const response = await
|
|
209
|
+
const response = await _chunkABU3TGXAcjs.contentFetch.call(void 0, resolvedResolveLinkEndpoint, {
|
|
202
210
|
method: "POST",
|
|
203
211
|
headers: { "Content-Type": "application/json" },
|
|
204
212
|
body: JSON.stringify({ link: href, currentPath, source: sourceId })
|
|
@@ -224,9 +232,9 @@ function useDocsResolveLink(sourceId, resolveLinkEndpoint) {
|
|
|
224
232
|
function scrollToContent() {
|
|
225
233
|
const article = document.querySelector("article");
|
|
226
234
|
if (article) {
|
|
227
|
-
|
|
235
|
+
_chunkC3BWIU7Rcjs.scrollElementIntoView.call(void 0, article, { headerOffset: _chunkC3BWIU7Rcjs.HUB_HEADER_OFFSET_PX });
|
|
228
236
|
} else {
|
|
229
|
-
|
|
237
|
+
_chunkC3BWIU7Rcjs.scrollElementIntoView.call(void 0, document.documentElement);
|
|
230
238
|
}
|
|
231
239
|
}
|
|
232
240
|
function findFirstDocPath(folder) {
|
|
@@ -325,8 +333,8 @@ function toDocContent(value, requestedPath) {
|
|
|
325
333
|
}
|
|
326
334
|
function useDocumentTree(config, initialPath) {
|
|
327
335
|
const { structureEndpoint, contentEndpoint, baseRoute } = config;
|
|
328
|
-
const folderIndexFile = _nullishCoalesce(config.folderIndexFile, () => (
|
|
329
|
-
const cleanInitialPath =
|
|
336
|
+
const folderIndexFile = _nullishCoalesce(config.folderIndexFile, () => ( _chunkLTSTC3N5cjs.DEFAULT_FOLDER_INDEX_FILE));
|
|
337
|
+
const cleanInitialPath = _chunkLTSTC3N5cjs.stripFolderIndexFromPath.call(void 0, _optionalChain([initialPath, 'optionalAccess', _4 => _4.replace, 'call', _5 => _5(/\/$/, "")]) || "", folderIndexFile);
|
|
330
338
|
const [structure, setStructure] = _react.useState.call(void 0, []);
|
|
331
339
|
const [selectedPath, setSelectedPath] = _react.useState.call(void 0, cleanInitialPath);
|
|
332
340
|
const [content, setContent] = _react.useState.call(void 0, null);
|
|
@@ -350,12 +358,12 @@ function useDocumentTree(config, initialPath) {
|
|
|
350
358
|
} else if (pathname.startsWith(`${normalizedBaseRoute}/`)) {
|
|
351
359
|
pathFromUrl = pathname.substring(`${normalizedBaseRoute}/`.length);
|
|
352
360
|
}
|
|
353
|
-
pathFromUrl =
|
|
361
|
+
pathFromUrl = _chunkLTSTC3N5cjs.stripFolderIndexFromPath.call(void 0, pathFromUrl, folderIndexFile);
|
|
354
362
|
if (pathFromUrl !== selectedPathRef.current) {
|
|
355
363
|
setSelectedPath(pathFromUrl);
|
|
356
364
|
if (pathFromUrl) {
|
|
357
365
|
const parentPath = pathFromUrl.includes("/") ? pathFromUrl.substring(0, pathFromUrl.lastIndexOf("/")) : pathFromUrl;
|
|
358
|
-
setExpandedNodes(new Set(
|
|
366
|
+
setExpandedNodes(new Set(_chunkLTSTC3N5cjs.getDocAncestorNodeIds.call(void 0, parentPath)));
|
|
359
367
|
}
|
|
360
368
|
setTimeout(() => {
|
|
361
369
|
scrollToContent();
|
|
@@ -373,7 +381,7 @@ function useDocumentTree(config, initialPath) {
|
|
|
373
381
|
setSelectedPath(cleanInitialPath);
|
|
374
382
|
if (cleanInitialPath) {
|
|
375
383
|
const parentPath = cleanInitialPath.includes("/") ? cleanInitialPath.substring(0, cleanInitialPath.lastIndexOf("/")) : cleanInitialPath;
|
|
376
|
-
setExpandedNodes(new Set(
|
|
384
|
+
setExpandedNodes(new Set(_chunkLTSTC3N5cjs.getDocAncestorNodeIds.call(void 0, parentPath)));
|
|
377
385
|
}
|
|
378
386
|
setExternalNavCount((n) => n + 1);
|
|
379
387
|
}
|
|
@@ -387,7 +395,7 @@ function useDocumentTree(config, initialPath) {
|
|
|
387
395
|
try {
|
|
388
396
|
setIsLoadingStructure(true);
|
|
389
397
|
setError(null);
|
|
390
|
-
const response = await
|
|
398
|
+
const response = await _chunkABU3TGXAcjs.contentFetch.call(void 0, structureEndpoint);
|
|
391
399
|
if (!response.ok) {
|
|
392
400
|
throw new Error("Failed to load documentation structure");
|
|
393
401
|
}
|
|
@@ -398,7 +406,7 @@ function useDocumentTree(config, initialPath) {
|
|
|
398
406
|
if (cleanInitialPath) {
|
|
399
407
|
const pathForExpansion = cleanInitialPath.includes(".") ? cleanInitialPath.substring(0, cleanInitialPath.lastIndexOf("/")) : cleanInitialPath;
|
|
400
408
|
if (pathForExpansion) {
|
|
401
|
-
setExpandedNodes(new Set(
|
|
409
|
+
setExpandedNodes(new Set(_chunkLTSTC3N5cjs.getDocAncestorNodeIds.call(void 0, pathForExpansion)));
|
|
402
410
|
}
|
|
403
411
|
} else if (nodes.length > 0) {
|
|
404
412
|
const hasRootReadme = nodes.some((node) => node.type === "file" && node.path === folderIndexFile);
|
|
@@ -414,7 +422,7 @@ function useDocumentTree(config, initialPath) {
|
|
|
414
422
|
}
|
|
415
423
|
}
|
|
416
424
|
} else {
|
|
417
|
-
setError(
|
|
425
|
+
setError(_chunkC3BWIU7Rcjs.apiErrorMessage.call(void 0, payload, "Failed to load documentation structure"));
|
|
418
426
|
}
|
|
419
427
|
} catch (err) {
|
|
420
428
|
console.error("Error fetching documentation structure:", err);
|
|
@@ -426,7 +434,7 @@ function useDocumentTree(config, initialPath) {
|
|
|
426
434
|
const fetchContent = async (path) => {
|
|
427
435
|
try {
|
|
428
436
|
setIsLoadingContent(true);
|
|
429
|
-
const response = await
|
|
437
|
+
const response = await _chunkABU3TGXAcjs.contentFetch.call(void 0, `${contentEndpoint}?path=${encodeURIComponent(path)}`);
|
|
430
438
|
if (path !== lastFetchedPath.current) return;
|
|
431
439
|
if (!response.ok) {
|
|
432
440
|
if (response.status === 404) {
|
|
@@ -438,7 +446,7 @@ function useDocumentTree(config, initialPath) {
|
|
|
438
446
|
setContent(null);
|
|
439
447
|
return;
|
|
440
448
|
}
|
|
441
|
-
const probe =
|
|
449
|
+
const probe = _chunkLTSTC3N5cjs.findDocNodeByPath.call(void 0, _chunkLTSTC3N5cjs.stripFolderIndexFromPath.call(void 0, path, folderIndexFile), structure);
|
|
442
450
|
const probeIsNoReadmeFolder = !!probe && probe.type === "folder" && !probe.hasReadme;
|
|
443
451
|
const preStructureFolderLike = structure.length === 0 && !path.endsWith(".md");
|
|
444
452
|
if (probeIsNoReadmeFolder || preStructureFolderLike) {
|
|
@@ -447,7 +455,7 @@ function useDocumentTree(config, initialPath) {
|
|
|
447
455
|
setContent(null);
|
|
448
456
|
return;
|
|
449
457
|
}
|
|
450
|
-
setError(
|
|
458
|
+
setError(_chunkC3BWIU7Rcjs.apiErrorMessage.call(void 0, errorPayload, "Documentation file not found"));
|
|
451
459
|
setContent(null);
|
|
452
460
|
return;
|
|
453
461
|
}
|
|
@@ -465,7 +473,7 @@ function useDocumentTree(config, initialPath) {
|
|
|
465
473
|
}
|
|
466
474
|
setContent(doc);
|
|
467
475
|
} else {
|
|
468
|
-
setError(
|
|
476
|
+
setError(_chunkC3BWIU7Rcjs.apiErrorMessage.call(void 0, payload, "Failed to load content"));
|
|
469
477
|
setContent(null);
|
|
470
478
|
}
|
|
471
479
|
} catch (err) {
|
|
@@ -495,7 +503,7 @@ function useDocumentTree(config, initialPath) {
|
|
|
495
503
|
if (selectedPath === "") {
|
|
496
504
|
pathToFetch = folderIndexFile;
|
|
497
505
|
} else {
|
|
498
|
-
const node =
|
|
506
|
+
const node = _chunkLTSTC3N5cjs.findDocNodeByPath.call(void 0, selectedPath, structure);
|
|
499
507
|
if (node && node.type === "folder" && !node.hasReadme) {
|
|
500
508
|
const firstDocPath = findFirstDocPath(node);
|
|
501
509
|
if (!firstDocPath) {
|
|
@@ -536,16 +544,16 @@ function useDocumentTree(config, initialPath) {
|
|
|
536
544
|
if (node.type === "folder") {
|
|
537
545
|
setExpandedNodes((prev) => {
|
|
538
546
|
if (prev.has(node.id)) {
|
|
539
|
-
const ancestorIds =
|
|
547
|
+
const ancestorIds = _chunkLTSTC3N5cjs.getDocAncestorNodeIds.call(void 0, node.path);
|
|
540
548
|
ancestorIds.pop();
|
|
541
549
|
return new Set(ancestorIds);
|
|
542
550
|
}
|
|
543
|
-
return new Set(
|
|
551
|
+
return new Set(_chunkLTSTC3N5cjs.getDocAncestorNodeIds.call(void 0, node.path));
|
|
544
552
|
});
|
|
545
553
|
} else {
|
|
546
554
|
const lastSlash = node.path.lastIndexOf("/");
|
|
547
555
|
if (lastSlash > 0) {
|
|
548
|
-
setExpandedNodes(new Set(
|
|
556
|
+
setExpandedNodes(new Set(_chunkLTSTC3N5cjs.getDocAncestorNodeIds.call(void 0, node.path.substring(0, lastSlash))));
|
|
549
557
|
}
|
|
550
558
|
}
|
|
551
559
|
lastFetchedPath.current = null;
|
|
@@ -560,9 +568,9 @@ function useDocumentTree(config, initialPath) {
|
|
|
560
568
|
const hashIndex = path.indexOf("#");
|
|
561
569
|
const anchor = hashIndex !== -1 ? path.substring(hashIndex) : "";
|
|
562
570
|
const cleanPath = path.replace(/\/$/, "").split("#")[0];
|
|
563
|
-
const pathForSelection = anchor && _optionalChain([options, 'optionalAccess', _6 => _6.fromInternalLink]) && cleanPath === "" ? selectedPathRef.current :
|
|
571
|
+
const pathForSelection = anchor && _optionalChain([options, 'optionalAccess', _6 => _6.fromInternalLink]) && cleanPath === "" ? selectedPathRef.current : _chunkLTSTC3N5cjs.stripFolderIndexFromPath.call(void 0, cleanPath, folderIndexFile);
|
|
564
572
|
if (anchor && _optionalChain([options, 'optionalAccess', _7 => _7.fromInternalLink]) && pathForSelection === selectedPathRef.current) {
|
|
565
|
-
|
|
573
|
+
_chunkC3BWIU7Rcjs.navigateSamePageHash.call(void 0, anchor, { headerOffset: _chunkC3BWIU7Rcjs.HUB_HEADER_OFFSET_PX });
|
|
566
574
|
return;
|
|
567
575
|
}
|
|
568
576
|
const scrollAfterNav = () => {
|
|
@@ -570,7 +578,7 @@ function useDocumentTree(config, initialPath) {
|
|
|
570
578
|
setTimeout(() => {
|
|
571
579
|
const el = document.getElementById(anchor.substring(1));
|
|
572
580
|
if (el) {
|
|
573
|
-
|
|
581
|
+
_chunkC3BWIU7Rcjs.scrollElementIntoView.call(void 0, el, { headerOffset: _chunkC3BWIU7Rcjs.HUB_HEADER_OFFSET_PX });
|
|
574
582
|
} else {
|
|
575
583
|
scrollToContent();
|
|
576
584
|
}
|
|
@@ -624,15 +632,15 @@ function useDocumentTree(config, initialPath) {
|
|
|
624
632
|
return docNavigation.register({
|
|
625
633
|
baseRoute: normalizedBaseRoute,
|
|
626
634
|
findNodeByPath: (path) => {
|
|
627
|
-
const clean =
|
|
628
|
-
return _nullishCoalesce(
|
|
635
|
+
const clean = _chunkLTSTC3N5cjs.stripFolderIndexFromPath.call(void 0, path.replace(/\/$/, "").split("#")[0], folderIndexFile);
|
|
636
|
+
return _nullishCoalesce(_chunkLTSTC3N5cjs.findDocNodeByPath.call(void 0, clean, structure), () => ( null));
|
|
629
637
|
},
|
|
630
638
|
selectNode
|
|
631
639
|
});
|
|
632
640
|
}, [docNavigation, normalizedBaseRoute, structure, selectNode, folderIndexFile]);
|
|
633
641
|
const isEmptyFolder = _react.useMemo.call(void 0, () => {
|
|
634
642
|
if (!selectedPath || structure.length === 0) return false;
|
|
635
|
-
const node =
|
|
643
|
+
const node = _chunkLTSTC3N5cjs.findDocNodeByPath.call(void 0, selectedPath, structure);
|
|
636
644
|
return !!node && node.type === "folder" && !node.hasReadme && !findFirstDocPath(node);
|
|
637
645
|
}, [selectedPath, structure]);
|
|
638
646
|
return {
|
|
@@ -663,7 +671,7 @@ function replaceHash(sectionId) {
|
|
|
663
671
|
window.history.replaceState(window.history.state, "", `${pathname}${search}${next}`);
|
|
664
672
|
}
|
|
665
673
|
function resolveScroller(firstSection) {
|
|
666
|
-
const container = firstSection ?
|
|
674
|
+
const container = firstSection ? _chunkC3BWIU7Rcjs.getScrollableAncestor.call(void 0, firstSection) : null;
|
|
667
675
|
if (container) {
|
|
668
676
|
return {
|
|
669
677
|
target: container,
|
|
@@ -693,7 +701,7 @@ function useScrollSpy(sections, options = {}) {
|
|
|
693
701
|
isScrollingFromClick.current = true;
|
|
694
702
|
setActiveSection(sectionId);
|
|
695
703
|
if (syncHash) replaceHash(sectionId);
|
|
696
|
-
|
|
704
|
+
_chunkC3BWIU7Rcjs.scrollElementIntoView.call(void 0, targetElement, { headerOffset });
|
|
697
705
|
setTimeout(() => {
|
|
698
706
|
isScrollingFromClick.current = false;
|
|
699
707
|
}, 800);
|
|
@@ -815,7 +823,7 @@ function DocViewerContent({
|
|
|
815
823
|
label: _nullishCoalesce(_optionalChain([backButton, 'optionalAccess', _16 => _16.label]), () => ( "Back to home")),
|
|
816
824
|
onClick: () => router.push(_nullishCoalesce(_optionalChain([backButton, 'optionalAccess', _17 => _17.href]), () => ( "/")))
|
|
817
825
|
};
|
|
818
|
-
const docSearch =
|
|
826
|
+
const docSearch = _chunk4DQMTBMKcjs.useDocSearch.call(void 0, {
|
|
819
827
|
source: chatSource,
|
|
820
828
|
baseRoute,
|
|
821
829
|
searchEndpoint,
|
|
@@ -839,7 +847,7 @@ function DocViewerContent({
|
|
|
839
847
|
onResolveLink: resolveLink
|
|
840
848
|
});
|
|
841
849
|
}, [content, renderContent, navigateToDoc, sourceId, resolveLink]);
|
|
842
|
-
const selectedNodeDocType = selectedPath && structure.length > 0 ? _optionalChain([
|
|
850
|
+
const selectedNodeDocType = selectedPath && structure.length > 0 ? _optionalChain([_chunkLTSTC3N5cjs.findDocNodeByPath.call(void 0, selectedPath, structure), 'optionalAccess', _18 => _18.documentType]) : void 0;
|
|
843
851
|
const activeDocType = _nullishCoalesce(_optionalChain([content, 'optionalAccess', _19 => _19.documentType]), () => ( selectedNodeDocType));
|
|
844
852
|
const isMarkdownContent = !activeDocType || activeDocType === "markdown";
|
|
845
853
|
const showStickyNav = isMarkdownContent;
|
|
@@ -850,9 +858,9 @@ function DocViewerContent({
|
|
|
850
858
|
const containerBgStyle = colorPalette.containerBackground !== "transparent" ? { backgroundColor: colorPalette.containerBackground } : {};
|
|
851
859
|
const defaultEmptyText = structure.length > 0 ? "Select a document from the sidebar to view" : "No documents yet. Add content from the admin panel.";
|
|
852
860
|
const resolvedEmptyText = emptyStateText || defaultEmptyText;
|
|
853
|
-
const inner = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { style: { ...bgStyle, ...containerBgStyle }, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
861
|
+
const inner = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { style: { ...bgStyle, ...containerBgStyle }, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLTSTC3N5cjs.PageLayout, { title, subtitle, titleSize: "h1", titleWrap: true, backButton: _nullishCoalesce(backCfg, () => ( void 0)), children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col gap-10", children: [
|
|
854
862
|
showAIChat && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
855
|
-
|
|
863
|
+
_chunk4DQMTBMKcjs.DocSearchBar,
|
|
856
864
|
{
|
|
857
865
|
placeholder: `Search ${_optionalChain([sidebarLabel, 'optionalAccess', _23 => _23.toLowerCase, 'call', _24 => _24()]) || "documents"}...`,
|
|
858
866
|
query: docSearch.query,
|
|
@@ -870,10 +878,10 @@ function DocViewerContent({
|
|
|
870
878
|
". Please try again later."
|
|
871
879
|
] })
|
|
872
880
|
] }) }),
|
|
873
|
-
!error && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-1 flex-col items-start gap-6 lg:flex-row lg:gap-10", children: [
|
|
874
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "w-full lg:w-[320px] lg:shrink-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "lg:sticky lg:top-20", children: isLoadingStructure ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
881
|
+
!error && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-1 flex-col items-start gap-6 content-lg:flex-row content-lg:gap-10", children: [
|
|
882
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "w-full content-lg:w-[320px] content-lg:shrink-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "content-lg:sticky content-lg:top-20", children: isLoadingStructure ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLTSTC3N5cjs.CategorySidebarSkeleton, {}) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
875
883
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, PersistentMobileDropdown, { isLoading: false, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
876
|
-
|
|
884
|
+
_chunkXJKZ4IKTcjs.MobileNavigationDropdown,
|
|
877
885
|
{
|
|
878
886
|
nodes: structure,
|
|
879
887
|
selectedPath,
|
|
@@ -884,10 +892,10 @@ function DocViewerContent({
|
|
|
884
892
|
folderIndexFile
|
|
885
893
|
}
|
|
886
894
|
) }),
|
|
887
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, PersistentSidebar, { isLoading: false, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "hidden lg:block", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-4", children: [
|
|
895
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, PersistentSidebar, { isLoading: false, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "hidden content-lg:block", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-4", children: [
|
|
888
896
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: "font-semibold text-ods-text-secondary text-h5", children: sidebarLabel }),
|
|
889
897
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
890
|
-
|
|
898
|
+
_chunkXJKZ4IKTcjs.MultiLevelNavigation,
|
|
891
899
|
{
|
|
892
900
|
nodes: structure,
|
|
893
901
|
selectedPath,
|
|
@@ -909,10 +917,10 @@ function DocViewerContent({
|
|
|
909
917
|
// `isMarkdownContent` also suppresses the section-skeleton
|
|
910
918
|
// bars during embed loads — the user-reported "skeleton
|
|
911
919
|
// shouldn't be on file pages" bug.
|
|
912
|
-
isMarkdownContent && (showStickyNav && stickyNavSections.length > 0 || isLoadingContent || isLoadingStructure) ? "lg:grid-cols-[1fr_280px]" : ""} gap-8`,
|
|
920
|
+
isMarkdownContent && (showStickyNav && stickyNavSections.length > 0 || isLoadingContent || isLoadingStructure) ? "content-lg:grid-cols-[1fr_280px]" : ""} gap-8`,
|
|
913
921
|
children: [
|
|
914
922
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: `w-full min-w-0 ${isMarkdownContent ? "mx-auto max-w-4xl" : ""}`, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "article", { className: "space-y-2", children: isLoadingContent || isLoadingStructure ? renderSkeleton(selectedNodeDocType) : !content ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "py-16 text-center", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h4", children: resolvedEmptyText }) }) : renderedContent }) }),
|
|
915
|
-
isMarkdownContent && (isLoadingContent || isLoadingStructure) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "hidden lg:block", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "sticky top-24", children: [
|
|
923
|
+
isMarkdownContent && (isLoadingContent || isLoadingStructure) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "hidden content-lg:block", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "sticky top-24", children: [
|
|
916
924
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "mb-5 h-[14px] w-28 animate-pulse rounded bg-ods-border" }),
|
|
917
925
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "space-y-0", children: [130, 170, 190, 220, 110, 200, 80, 100, 120, 140, 90].map((w, i) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
918
926
|
"div",
|
|
@@ -923,10 +931,10 @@ function DocViewerContent({
|
|
|
923
931
|
i
|
|
924
932
|
)) })
|
|
925
933
|
] }) }),
|
|
926
|
-
showStickyNav && content && stickyNavSections.length > 0 && !isLoadingContent && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "hidden lg:block", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "sticky top-24", children: [
|
|
934
|
+
showStickyNav && content && stickyNavSections.length > 0 && !isLoadingContent && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "hidden content-lg:block", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "sticky top-24", children: [
|
|
927
935
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: "mb-4 font-semibold text-ods-text-secondary text-h5", children: "ON THIS PAGE" }),
|
|
928
936
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
929
|
-
|
|
937
|
+
_chunkXJKZ4IKTcjs.StickySectionNav,
|
|
930
938
|
{
|
|
931
939
|
sections: stickyNavSections,
|
|
932
940
|
activeSection,
|
|
@@ -941,7 +949,7 @@ function DocViewerContent({
|
|
|
941
949
|
) })
|
|
942
950
|
] })
|
|
943
951
|
] }) }) });
|
|
944
|
-
return shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
952
|
+
return shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLTSTC3N5cjs.PageShell, { contentClassName: `${bgClass} ${className}`, children: inner }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: `page-shell-content ${bgClass} ${className}`.trim(), children: inner });
|
|
945
953
|
}
|
|
946
954
|
|
|
947
955
|
// src/components/docs/skeletons.tsx
|
|
@@ -1010,12 +1018,18 @@ function EmbedSkeleton({ documentType } = {}) {
|
|
|
1010
1018
|
}
|
|
1011
1019
|
const buttonCount = documentType === "pdf" ? 2 : 1;
|
|
1012
1020
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-4", children: [
|
|
1013
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between", children: [
|
|
1021
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-3 content-sm:flex-row content-sm:items-center content-sm:justify-between", children: [
|
|
1014
1022
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 items-center gap-2", children: [
|
|
1015
1023
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-5 w-5 shrink-0 animate-pulse rounded bg-ods-border" }),
|
|
1016
1024
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-6 w-2/3 animate-pulse rounded bg-ods-border" })
|
|
1017
1025
|
] }),
|
|
1018
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full items-center gap-2 sm:w-auto", children: Array.from({ length: buttonCount }).map((_, i) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1026
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full items-center gap-2 content-sm:w-auto", children: Array.from({ length: buttonCount }).map((_, i) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1027
|
+
"div",
|
|
1028
|
+
{
|
|
1029
|
+
className: "h-10 w-full flex-1 animate-pulse rounded bg-ods-border content-sm:w-32 content-sm:flex-initial"
|
|
1030
|
+
},
|
|
1031
|
+
i
|
|
1032
|
+
)) })
|
|
1019
1033
|
] }),
|
|
1020
1034
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1021
1035
|
"div",
|
|
@@ -1031,11 +1045,11 @@ function EmbedSkeleton({ documentType } = {}) {
|
|
|
1031
1045
|
|
|
1032
1046
|
var DEFAULT_TITLE = "Documents";
|
|
1033
1047
|
var defaultFallbackRenderer = () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "py-16 text-center", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary", children: "Unsupported document type" }) });
|
|
1034
|
-
var defaultPdfRenderer = (content, handlers) => content.fileUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1035
|
-
var defaultGoogleSheetRenderer = (content, handlers) => content.externalUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1036
|
-
var defaultFigmaRenderer = (content, handlers) => content.externalUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1048
|
+
var defaultPdfRenderer = (content, handlers) => content.fileUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkC7XGRLT5cjs.PdfViewer, { src: content.fileUrl, fileName: content.fileName }) : defaultFallbackRenderer(content, handlers);
|
|
1049
|
+
var defaultGoogleSheetRenderer = (content, handlers) => content.externalUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkC7XGRLT5cjs.GoogleSheetsViewer, { externalUrl: content.externalUrl, fileName: content.fileName }) : defaultFallbackRenderer(content, handlers);
|
|
1050
|
+
var defaultFigmaRenderer = (content, handlers) => content.externalUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLTSTC3N5cjs.FigmaEmbed, { url: content.externalUrl, title: content.fileName, loading: "eager" }) : defaultFallbackRenderer(content, handlers);
|
|
1037
1051
|
var defaultFileRenderer = (content) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1038
|
-
|
|
1052
|
+
_chunkC7XGRLT5cjs.FileDownloadCard,
|
|
1039
1053
|
{
|
|
1040
1054
|
fileName: content.fileName,
|
|
1041
1055
|
mimeType: content.mimeType,
|
|
@@ -96,7 +96,7 @@ var Pagination = ({ currentPage, totalPages, onPageChange, className }) => {
|
|
|
96
96
|
onClick: () => onPageChange(currentPage - 1),
|
|
97
97
|
disabled: currentPage === 1,
|
|
98
98
|
"aria-label": "Go to previous page",
|
|
99
|
-
className: "!h-10 !w-10 md:!h-10 md:!w-10",
|
|
99
|
+
className: "!h-10 !w-10 content-md:!h-10 content-md:!w-10",
|
|
100
100
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronLeft, { className: "h-4 w-4" })
|
|
101
101
|
}
|
|
102
102
|
) }),
|
|
@@ -113,7 +113,7 @@ var Pagination = ({ currentPage, totalPages, onPageChange, className }) => {
|
|
|
113
113
|
variant: currentPage === page ? "accent" : "outline",
|
|
114
114
|
size: "icon",
|
|
115
115
|
onClick: () => onPageChange(page),
|
|
116
|
-
className: "!h-9 !w-9 md:!h-9 md:!w-9",
|
|
116
|
+
className: "!h-9 !w-9 content-md:!h-9 content-md:!w-9",
|
|
117
117
|
"aria-label": `Page ${page}`,
|
|
118
118
|
"aria-current": currentPage === page ? "page" : void 0,
|
|
119
119
|
children: page
|
|
@@ -128,7 +128,7 @@ var Pagination = ({ currentPage, totalPages, onPageChange, className }) => {
|
|
|
128
128
|
onClick: () => onPageChange(currentPage + 1),
|
|
129
129
|
disabled: currentPage === totalPages,
|
|
130
130
|
"aria-label": "Go to next page",
|
|
131
|
-
className: "!h-10 !w-10 md:!h-10 md:!w-10",
|
|
131
|
+
className: "!h-10 !w-10 content-md:!h-10 content-md:!w-10",
|
|
132
132
|
children: [
|
|
133
133
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronRight, { className: "h-4 w-4" }),
|
|
134
134
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "sr-only", children: "Next page" })
|
|
@@ -411,9 +411,9 @@ var SkeletonGrid = _react.forwardRef.call(void 0,
|
|
|
411
411
|
ref,
|
|
412
412
|
className: _chunk3ATAYP36cjs.cn.call(void 0,
|
|
413
413
|
`grid grid-cols-1 gap-6`,
|
|
414
|
-
columns === 2 && "md:grid-cols-2",
|
|
415
|
-
columns === 3 && "md:grid-cols-3",
|
|
416
|
-
columns === 4 && "md:grid-cols-4",
|
|
414
|
+
columns === 2 && "content-md:grid-cols-2",
|
|
415
|
+
columns === 3 && "content-md:grid-cols-3",
|
|
416
|
+
columns === 4 && "content-md:grid-cols-4",
|
|
417
417
|
className
|
|
418
418
|
),
|
|
419
419
|
...props,
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
var _chunkN3COXDBHcjs = require('./chunk-N3COXDBH.cjs');
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _chunkRKV5B7EUcjs = require('./chunk-RKV5B7EU.cjs');
|
|
14
14
|
|
|
15
15
|
// src/hooks/ui/use-debounce.ts
|
|
16
16
|
var _react = require('react');
|
|
@@ -27,41 +27,6 @@ function useDebounce(value, delay2 = 500) {
|
|
|
27
27
|
return debouncedValue;
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
-
// src/hooks/ui/use-media-query.ts
|
|
31
|
-
|
|
32
|
-
function useMediaQuery(query) {
|
|
33
|
-
const [matches, setMatches] = _react.useState.call(void 0, void 0);
|
|
34
|
-
_chunkMDBHZBW7cjs.useIsomorphicLayoutEffect.call(void 0, () => {
|
|
35
|
-
const matchMedia = window.matchMedia(query);
|
|
36
|
-
const handleChange = () => {
|
|
37
|
-
setMatches(matchMedia.matches);
|
|
38
|
-
};
|
|
39
|
-
handleChange();
|
|
40
|
-
matchMedia.addEventListener("change", handleChange);
|
|
41
|
-
return () => {
|
|
42
|
-
matchMedia.removeEventListener("change", handleChange);
|
|
43
|
-
};
|
|
44
|
-
}, [query]);
|
|
45
|
-
return matches;
|
|
46
|
-
}
|
|
47
|
-
var breakpoints = {
|
|
48
|
-
md: "(min-width: 800px)",
|
|
49
|
-
// Tablet: 50rem
|
|
50
|
-
lg: "(min-width: 1280px)"
|
|
51
|
-
// Desktop: 80rem
|
|
52
|
-
};
|
|
53
|
-
function useSmUp() {
|
|
54
|
-
return useMdUp();
|
|
55
|
-
}
|
|
56
|
-
function useMdUp() {
|
|
57
|
-
const matches = useMediaQuery(breakpoints.md);
|
|
58
|
-
return matches === void 0 ? void 0 : matches;
|
|
59
|
-
}
|
|
60
|
-
function useLgUp() {
|
|
61
|
-
const matches = useMediaQuery(breakpoints.lg);
|
|
62
|
-
return matches === void 0 ? void 0 : matches;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
30
|
// src/hooks/ui/use-header-height.ts
|
|
66
31
|
|
|
67
32
|
function useHeaderHeight(defaultHeight = 72, options = {}) {
|
|
@@ -219,10 +184,10 @@ function useSuppressCloneFocus(active) {
|
|
|
219
184
|
// src/hooks/ui/use-prefers-reduced-motion.ts
|
|
220
185
|
var PREFERS_REDUCED_MOTION_QUERY = "(prefers-reduced-motion: reduce)";
|
|
221
186
|
function usePrefersReducedMotion() {
|
|
222
|
-
return useMediaQuery(PREFERS_REDUCED_MOTION_QUERY) === true;
|
|
187
|
+
return _chunkRKV5B7EUcjs.useMediaQuery.call(void 0, PREFERS_REDUCED_MOTION_QUERY) === true;
|
|
223
188
|
}
|
|
224
189
|
function usePrefersReducedMotionState() {
|
|
225
|
-
return useMediaQuery(PREFERS_REDUCED_MOTION_QUERY);
|
|
190
|
+
return _chunkRKV5B7EUcjs.useMediaQuery.call(void 0, PREFERS_REDUCED_MOTION_QUERY);
|
|
226
191
|
}
|
|
227
192
|
|
|
228
193
|
// src/hooks/ui/use-in-view.ts
|
|
@@ -836,9 +801,4 @@ function navigateSamePageHash(target, options = {}) {
|
|
|
836
801
|
|
|
837
802
|
|
|
838
803
|
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
exports.useDebounce = useDebounce; exports.useMediaQuery = useMediaQuery; exports.breakpoints = breakpoints; exports.useSmUp = useSmUp; exports.useMdUp = useMdUp; exports.useLgUp = useLgUp; exports.useHeaderHeight = useHeaderHeight; exports.useMarqueeEngine = useMarqueeEngine; exports.useResetOnPageHidden = useResetOnPageHidden; exports.useSuppressCloneFocus = useSuppressCloneFocus; exports.PREFERS_REDUCED_MOTION_QUERY = PREFERS_REDUCED_MOTION_QUERY; exports.usePrefersReducedMotion = usePrefersReducedMotion; exports.usePrefersReducedMotionState = usePrefersReducedMotionState; exports.useInView = useInView; exports.useAutoplay = useAutoplay; exports.ToolTypeValues = ToolTypeValues; exports.toolLabels = toolLabels; exports.ToolIcon = ToolIcon; exports.cn = cn; exports.errorMessage = errorMessage; exports.apiErrorMessage = apiErrorMessage; exports.delay = delay; exports.generateRandomString = generateRandomString; exports.truncateString = truncateString; exports.serializeJsonLd = serializeJsonLd; exports.deepClone = deepClone; exports.getSlackCommunityJoinUrl = getSlackCommunityJoinUrl; exports.clamp = clamp; exports.pick = pick; exports.NO_CLIENT_CACHE = NO_CLIENT_CACHE; exports.NEAR_VIEWPORT_ROOT_MARGIN = NEAR_VIEWPORT_ROOT_MARGIN; exports.useNearViewport = useNearViewport; exports.isBlankLine = isBlankLine; exports.createFenceTracker = createFenceTracker; exports.HEADING_EMOJI_RE = HEADING_EMOJI_RE; exports.stripHeadingEmojis = stripHeadingEmojis; exports.slugifyHeadingBase = slugifyHeadingBase; exports.slugifyHeadingText = slugifyHeadingText; exports.scanHeadings = scanHeadings; exports.createHeadingIdDeduper = createHeadingIdDeduper; exports.normalizeAnchorId = normalizeAnchorId; exports.findAnchorElementByNormalizedId = findAnchorElementByNormalizedId; exports.getScrollableAncestor = getScrollableAncestor; exports.scrollElementIntoView = scrollElementIntoView; exports.STICKY_HEADER_OFFSET_PX = STICKY_HEADER_OFFSET_PX; exports.HUB_HEADER_OFFSET_PX = HUB_HEADER_OFFSET_PX; exports.normalizeHashFragment = normalizeHashFragment; exports.getHashTargetElement = getHashTargetElement; exports.navigateSamePageHash = navigateSamePageHash;
|
|
804
|
+
exports.useDebounce = useDebounce; exports.useHeaderHeight = useHeaderHeight; exports.useMarqueeEngine = useMarqueeEngine; exports.useResetOnPageHidden = useResetOnPageHidden; exports.useSuppressCloneFocus = useSuppressCloneFocus; exports.PREFERS_REDUCED_MOTION_QUERY = PREFERS_REDUCED_MOTION_QUERY; exports.usePrefersReducedMotion = usePrefersReducedMotion; exports.usePrefersReducedMotionState = usePrefersReducedMotionState; exports.useInView = useInView; exports.useAutoplay = useAutoplay; exports.ToolTypeValues = ToolTypeValues; exports.toolLabels = toolLabels; exports.ToolIcon = ToolIcon; exports.cn = cn; exports.errorMessage = errorMessage; exports.apiErrorMessage = apiErrorMessage; exports.delay = delay; exports.generateRandomString = generateRandomString; exports.truncateString = truncateString; exports.serializeJsonLd = serializeJsonLd; exports.deepClone = deepClone; exports.getSlackCommunityJoinUrl = getSlackCommunityJoinUrl; exports.clamp = clamp; exports.pick = pick; exports.NO_CLIENT_CACHE = NO_CLIENT_CACHE; exports.NEAR_VIEWPORT_ROOT_MARGIN = NEAR_VIEWPORT_ROOT_MARGIN; exports.useNearViewport = useNearViewport; exports.isBlankLine = isBlankLine; exports.createFenceTracker = createFenceTracker; exports.HEADING_EMOJI_RE = HEADING_EMOJI_RE; exports.stripHeadingEmojis = stripHeadingEmojis; exports.slugifyHeadingBase = slugifyHeadingBase; exports.slugifyHeadingText = slugifyHeadingText; exports.scanHeadings = scanHeadings; exports.createHeadingIdDeduper = createHeadingIdDeduper; exports.normalizeAnchorId = normalizeAnchorId; exports.findAnchorElementByNormalizedId = findAnchorElementByNormalizedId; exports.getScrollableAncestor = getScrollableAncestor; exports.scrollElementIntoView = scrollElementIntoView; exports.STICKY_HEADER_OFFSET_PX = STICKY_HEADER_OFFSET_PX; exports.HUB_HEADER_OFFSET_PX = HUB_HEADER_OFFSET_PX; exports.normalizeHashFragment = normalizeHashFragment; exports.getHashTargetElement = getHashTargetElement; exports.navigateSamePageHash = navigateSamePageHash;
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkLTSTC3N5cjs = require('./chunk-LTSTC3N5.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkMGGGBHYDcjs = require('./chunk-MGGGBHYD.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
var _chunkN3COXDBHcjs = require('./chunk-N3COXDBH.cjs');
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var _chunkMMOODW57cjs = require('./chunk-MMOODW57.cjs');
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
var _chunkDFQYAYBHcjs = require('./chunk-DFQYAYBH.cjs');
|
|
@@ -27,7 +27,7 @@ function FileDownloadCard({ fileName, mimeType, fileSize, fileUrl }) {
|
|
|
27
27
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: "text-ods-text-primary text-h3", children: fileName || "File" }),
|
|
28
28
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "mt-2 flex items-center justify-center gap-3 text-ods-text-secondary text-h6", children: [
|
|
29
29
|
mimeType && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: mimeType }),
|
|
30
|
-
typeof fileSize === "number" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children:
|
|
30
|
+
typeof fileSize === "number" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: _chunkMMOODW57cjs.formatFileSize.call(void 0, fileSize) })
|
|
31
31
|
] })
|
|
32
32
|
] }),
|
|
33
33
|
fileUrl && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDFQYAYBHcjs.Button, { variant: "accent", href: fileUrl, openInNewTab: true, leftIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Download, { className: "h-4 w-4" }), children: "Download File" })
|
|
@@ -46,7 +46,7 @@ function GoogleSheetsViewer({ externalUrl, fileName, height }) {
|
|
|
46
46
|
] });
|
|
47
47
|
}
|
|
48
48
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
49
|
-
|
|
49
|
+
_chunkLTSTC3N5cjs.EmbedViewerFrame,
|
|
50
50
|
{
|
|
51
51
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3COXDBHcjs.GoogleSheetsIcon, { className: "h-5 w-5 shrink-0" }),
|
|
52
52
|
title: displayName,
|
|
@@ -55,15 +55,15 @@ function GoogleSheetsViewer({ externalUrl, fileName, height }) {
|
|
|
55
55
|
{
|
|
56
56
|
variant: "outline",
|
|
57
57
|
size: "small-legacy",
|
|
58
|
-
href:
|
|
58
|
+
href: _chunkMGGGBHYDcjs.toGoogleSheetsOriginalUrl.call(void 0, externalUrl),
|
|
59
59
|
openInNewTab: true,
|
|
60
60
|
leftIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3COXDBHcjs.GoogleSheetsIcon, { className: "h-4 w-4" }),
|
|
61
61
|
rightIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ExternalLink, { className: "h-4 w-4" }),
|
|
62
|
-
className: "w-full sm:w-auto",
|
|
62
|
+
className: "w-full content-sm:w-auto",
|
|
63
63
|
children: "Open in Google Sheets"
|
|
64
64
|
}
|
|
65
65
|
),
|
|
66
|
-
src:
|
|
66
|
+
src: _chunkMGGGBHYDcjs.toGoogleSheetsEmbedUrl.call(void 0, externalUrl),
|
|
67
67
|
height
|
|
68
68
|
}
|
|
69
69
|
);
|
|
@@ -81,11 +81,11 @@ function PdfViewer({ src, fileName, onPreview, onDownload, height }) {
|
|
|
81
81
|
] });
|
|
82
82
|
}
|
|
83
83
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
84
|
-
|
|
84
|
+
_chunkLTSTC3N5cjs.EmbedViewerFrame,
|
|
85
85
|
{
|
|
86
86
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3COXDBHcjs.AdobePdfIcon, { className: "h-5 w-5 shrink-0" }),
|
|
87
87
|
title: displayName,
|
|
88
|
-
actions: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full items-center gap-2 sm:w-auto", children: [
|
|
88
|
+
actions: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full items-center gap-2 content-sm:w-auto", children: [
|
|
89
89
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
90
90
|
_chunkDFQYAYBHcjs.Button,
|
|
91
91
|
{
|
|
@@ -95,7 +95,7 @@ function PdfViewer({ src, fileName, onPreview, onDownload, height }) {
|
|
|
95
95
|
openInNewTab: !onPreview,
|
|
96
96
|
onClick: onPreview,
|
|
97
97
|
leftIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Eye, { className: "h-4 w-4" }),
|
|
98
|
-
className: "flex-1 sm:flex-initial",
|
|
98
|
+
className: "flex-1 content-sm:flex-initial",
|
|
99
99
|
children: "Preview"
|
|
100
100
|
}
|
|
101
101
|
),
|
|
@@ -108,7 +108,7 @@ function PdfViewer({ src, fileName, onPreview, onDownload, height }) {
|
|
|
108
108
|
openInNewTab: !onDownload,
|
|
109
109
|
onClick: onDownload,
|
|
110
110
|
leftIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Download, { className: "h-4 w-4" }),
|
|
111
|
-
className: "flex-1 sm:flex-initial",
|
|
111
|
+
className: "flex-1 content-sm:flex-initial",
|
|
112
112
|
children: "Download"
|
|
113
113
|
}
|
|
114
114
|
)
|