@flamingo-stack/openframe-frontend-core 0.0.710 → 0.0.712
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-2NASBO7O.js +1137 -0
- package/dist/{chunk-RQRX4YC3.cjs → chunk-2RKFMUNW.cjs} +46 -46
- package/dist/chunk-2Y7QZAB2.cjs +158 -0
- package/dist/chunk-34I6XI3N.js +136 -0
- package/dist/chunk-3K5ZLZE7.js +292 -0
- package/dist/chunk-3LU4UFPS.cjs +14 -0
- package/dist/{chunk-YBUT4AMG.cjs → chunk-3RKBJT6K.cjs} +8 -6
- package/dist/{chunk-LNW45N2C.js → chunk-3SEEGNRE.js} +35 -27
- package/dist/{chunk-L6Y6OOKG.cjs → chunk-3UAJLO5U.cjs} +41 -39
- package/dist/chunk-4HJRHEXD.cjs +1612 -0
- package/dist/{chunk-JPG7OHEG.js → chunk-4QFWGLZO.js} +1 -1
- package/dist/chunk-4R2L3DSA.js +14 -0
- package/dist/{chunk-36BCTE7D.js → chunk-4UYKNOZG.js} +12 -10
- package/dist/{chunk-DA5UDTLG.js → chunk-5SDELRH3.js} +5 -5
- package/dist/{chunk-CZSZSDD4.js → chunk-5Y72YQEK.js} +22 -113
- package/dist/{chunk-KUC673HM.js → chunk-6T3BTD6Q.js} +204 -982
- package/dist/{chunk-F57ECE2I.js → chunk-6YPTUHM7.js} +4 -4
- package/dist/{chunk-TDYIREDJ.js → chunk-7HNYYNKE.js} +28 -22
- package/dist/{chunk-2G7UYK35.cjs → chunk-7NSU5EQD.cjs} +57 -148
- package/dist/chunk-AAYNCJMW.cjs +48 -0
- package/dist/{chunk-FXJ3WWUB.js → chunk-ADBE7QF3.js} +5 -252
- package/dist/chunk-AECTRMGQ.cjs +334 -0
- package/dist/chunk-AGVXKD4K.js +334 -0
- package/dist/chunk-AL2GUHAJ.cjs +18 -0
- package/dist/{chunk-WMX26HB5.js → chunk-APJZBDQN.js} +12 -12
- package/dist/chunk-AUMKE74M.cjs +16 -0
- package/dist/chunk-B4NCVYEQ.cjs +292 -0
- package/dist/{chunk-2RNB5DTN.cjs → chunk-BXSRTBLU.cjs} +82 -54
- package/dist/chunk-CMGFZHCN.js +233 -0
- package/dist/chunk-CMZ3QTFQ.js +1207 -0
- package/dist/chunk-CPA2CKRZ.cjs +125 -0
- package/dist/{chunk-B73373AG.cjs → chunk-CSCJU6YC.cjs} +35 -33
- package/dist/chunk-CYUUHFXL.js +41 -0
- package/dist/chunk-DC4RTYWK.cjs +1122 -0
- package/dist/{chunk-6YKAT7NV.js → chunk-DDWFCWOE.js} +5 -7
- package/dist/{chunk-F5FF4DME.js → chunk-EFNKS5W4.js} +322 -428
- package/dist/{chunk-2KXTOP6G.cjs → chunk-EOKSKJSS.cjs} +25 -83
- package/dist/{chunk-6NTPY5QA.cjs → chunk-ETYLOZOB.cjs} +978 -2413
- package/dist/chunk-F5BPGWGT.cjs +931 -0
- package/dist/{chunk-4L6XCMOU.js → chunk-FCAVAEHF.js} +8277 -9990
- package/dist/chunk-FFT56TYB.cjs +401 -0
- package/dist/chunk-FYEJTF5Y.js +125 -0
- package/dist/chunk-G3GRYDMS.js +16 -0
- package/dist/{chunk-MR3A4MZV.js → chunk-G3OMVCID.js} +13 -7
- package/dist/chunk-G6OHIX5C.cjs +100 -0
- package/dist/{chunk-UDFRUKLC.cjs → chunk-GEDY7HQI.cjs} +2 -2
- package/dist/chunk-GQ7JJUIT.cjs +1207 -0
- package/dist/chunk-H3PKYE4N.js +18 -0
- package/dist/{chunk-CNWOMQQJ.js → chunk-H5R7U2D2.js} +206 -5
- package/dist/{chunk-SEXWHIMS.cjs → chunk-HETQETPV.cjs} +9648 -9680
- package/dist/{chunk-Y2GSOUCS.cjs → chunk-HWVUR735.cjs} +2 -2
- package/dist/chunk-II4QMH26.cjs +35 -0
- package/dist/chunk-ILNN6QRW.js +1612 -0
- package/dist/chunk-IYVFSLWJ.js +931 -0
- package/dist/{chunk-3AHTOSXJ.cjs → chunk-JGCFRTND.cjs} +23 -17
- package/dist/chunk-JHQ334WS.js +655 -0
- package/dist/{chunk-WCVZCGK5.cjs → chunk-JO5TLJPM.cjs} +129 -907
- package/dist/{chunk-JRU2CXLB.cjs → chunk-JVCAK4W3.cjs} +210 -9
- package/dist/chunk-KBJJQFYU.js +1122 -0
- package/dist/chunk-KEKCQENI.js +48 -0
- package/dist/chunk-KHXZFLIN.cjs +41 -0
- package/dist/chunk-KT3U3ZRP.cjs +1137 -0
- package/dist/chunk-L2VUINHN.js +35 -0
- package/dist/{chunk-P42V6N34.cjs → chunk-L6ZQGWCX.cjs} +4521 -6234
- package/dist/{chunk-PLYEKV3N.cjs → chunk-MA4Q5RBP.cjs} +6 -6
- package/dist/{chunk-SS5MBHDP.js → chunk-N67XG5GY.js} +10 -8
- package/dist/chunk-NPAQSMRY.js +2087 -0
- package/dist/{chunk-I3ST4PLM.js → chunk-NQWJAOHO.js} +6 -4
- package/dist/{chunk-QAOFMK2A.cjs → chunk-OBZJICEA.cjs} +8 -8
- package/dist/{chunk-6IW7TWPV.js → chunk-OPYODNV2.js} +3 -3
- package/dist/chunk-P3JMAMHP.js +401 -0
- package/dist/chunk-PPXR22YC.cjs +2087 -0
- package/dist/chunk-PSVSEN4J.cjs +655 -0
- package/dist/{chunk-4UM2ETLM.js → chunk-RBYVFPER.js} +74 -46
- package/dist/{chunk-PO33GZVY.js → chunk-ROBQ5TR7.js} +10549 -10581
- package/dist/{chunk-ZCLBYT2V.cjs → chunk-T3CLXR43.cjs} +114 -220
- package/dist/{chunk-FI6GMDO7.js → chunk-TTVOLEUS.js} +3605 -5040
- package/dist/{chunk-LM7TXMLU.cjs → chunk-ULWVKHSI.cjs} +8 -255
- package/dist/{chunk-6I4ZAFO2.cjs → chunk-UT3ODMBU.cjs} +15 -15
- package/dist/chunk-WANCBTUE.js +71 -0
- package/dist/{chunk-BIZNSF3U.cjs → chunk-WBNAEYTQ.cjs} +2 -51
- package/dist/chunk-WFPCCBOM.cjs +71 -0
- package/dist/chunk-WI6FHKD7.js +158 -0
- package/dist/chunk-WMNCVLES.js +100 -0
- package/dist/{chunk-UT4YHQZW.js → chunk-WSDT7LYL.js} +0 -49
- package/dist/chunk-WVOTC7HW.cjs +136 -0
- package/dist/{chunk-AOWDNSTM.cjs → chunk-WWJG4GVG.cjs} +93 -87
- package/dist/chunk-XXBLN4BP.cjs +233 -0
- package/dist/{chunk-4IBPRIQH.js → chunk-YBQQNDC7.js} +1 -1
- package/dist/{chunk-LFFB6EMB.js → chunk-YBS5QGON.js} +70 -128
- package/dist/{chunk-NSGXARGJ.cjs → chunk-Z5SWJW5Q.cjs} +125 -117
- package/dist/{chunk-OJLR5MEO.cjs → chunk-ZX7SCPLO.cjs} +6 -8
- package/dist/cloud-tenants-KZUZGD4A.cjs +117 -0
- package/dist/cloud-tenants-OGLVVQ7X.js +117 -0
- package/dist/components/case-studies/index.cjs +45 -29
- package/dist/components/case-studies/index.js +32 -16
- package/dist/components/chat/ask-prompts.d.ts +64 -0
- package/dist/components/chat/ask-prompts.d.ts.map +1 -0
- package/dist/components/chat/entity-cards/case-study-card.d.ts +6 -3
- package/dist/components/chat/entity-cards/case-study-card.d.ts.map +1 -1
- package/dist/components/chat/hooks/use-chat-dialog-manager.d.ts +4 -1
- package/dist/components/chat/hooks/use-chat-dialog-manager.d.ts.map +1 -1
- package/dist/components/chat/hooks/use-unified-chat.d.ts.map +1 -1
- package/dist/components/chat/index.cjs +27 -8
- package/dist/components/chat/index.d.ts +1 -0
- package/dist/components/chat/index.d.ts.map +1 -1
- package/dist/components/chat/index.js +57 -38
- package/dist/components/chat/quick-action-chip.d.ts +7 -3
- package/dist/components/chat/quick-action-chip.d.ts.map +1 -1
- package/dist/components/chat/types/component.types.d.ts +4 -0
- package/dist/components/chat/types/component.types.d.ts.map +1 -1
- package/dist/components/chat/types/unified-chat-state.types.d.ts +12 -0
- package/dist/components/chat/types/unified-chat-state.types.d.ts.map +1 -1
- package/dist/components/contact/index.cjs +29 -13
- package/dist/components/contact/index.js +28 -12
- package/dist/components/docs/index.cjs +33 -16
- package/dist/components/docs/index.js +33 -16
- package/dist/components/docs/use-scroll-spy.d.ts +23 -1
- package/dist/components/docs/use-scroll-spy.d.ts.map +1 -1
- package/dist/components/embeds/index.cjs +29 -13
- package/dist/components/embeds/index.js +28 -12
- package/dist/components/faq/faq-section.d.ts +8 -1
- package/dist/components/faq/faq-section.d.ts.map +1 -1
- package/dist/components/faq/index.cjs +30 -14
- package/dist/components/faq/index.js +29 -13
- package/dist/components/features/array-entry-manager.d.ts +5 -1
- package/dist/components/features/array-entry-manager.d.ts.map +1 -1
- package/dist/components/features/board/board.d.ts +2 -0
- package/dist/components/features/board/board.d.ts.map +1 -1
- package/dist/components/features/board/ticket-card.d.ts.map +1 -1
- package/dist/components/features/board/touch-board.d.ts +1 -1
- package/dist/components/features/board/touch-board.d.ts.map +1 -1
- package/dist/components/features/board/types.d.ts +3 -0
- package/dist/components/features/board/types.d.ts.map +1 -1
- package/dist/components/features/board/use-board-collapse.d.ts +6 -1
- package/dist/components/features/board/use-board-collapse.d.ts.map +1 -1
- package/dist/components/features/capability-explorer.d.ts +94 -0
- package/dist/components/features/capability-explorer.d.ts.map +1 -0
- package/dist/components/features/cloud-tenants/index.d.ts +14 -0
- package/dist/components/features/cloud-tenants/index.d.ts.map +1 -0
- package/dist/components/features/cloud-tenants/tenant-access-cell.d.ts +9 -0
- package/dist/components/features/cloud-tenants/tenant-access-cell.d.ts.map +1 -0
- package/dist/components/features/cloud-tenants/tenant-cell.d.ts +8 -0
- package/dist/components/features/cloud-tenants/tenant-cell.d.ts.map +1 -0
- package/dist/components/features/cloud-tenants/tenant-customer-cell.d.ts +9 -0
- package/dist/components/features/cloud-tenants/tenant-customer-cell.d.ts.map +1 -0
- package/dist/components/features/cloud-tenants/tenant-presentation.d.ts +42 -0
- package/dist/components/features/cloud-tenants/tenant-presentation.d.ts.map +1 -0
- package/dist/components/features/cloud-tenants/tenant-row.d.ts +22 -0
- package/dist/components/features/cloud-tenants/tenant-row.d.ts.map +1 -0
- package/dist/components/features/cloud-tenants/tenants-table-columns.d.ts +42 -0
- package/dist/components/features/cloud-tenants/tenants-table-columns.d.ts.map +1 -0
- package/dist/components/features/cloud-tenants/tenants-table-view.d.ts +26 -0
- package/dist/components/features/cloud-tenants/tenants-table-view.d.ts.map +1 -0
- package/dist/components/features/devices/device-last-online.d.ts +3 -0
- package/dist/components/features/devices/device-last-online.d.ts.map +1 -0
- package/dist/components/features/devices/device-name.d.ts +42 -0
- package/dist/components/features/devices/device-name.d.ts.map +1 -0
- package/dist/components/features/devices/device-selector/device-selection-mode-radio.d.ts +26 -0
- package/dist/components/features/devices/device-selector/device-selection-mode-radio.d.ts.map +1 -0
- package/dist/components/features/devices/device-selector/device-selector-skeleton.d.ts +25 -0
- package/dist/components/features/devices/device-selector/device-selector-skeleton.d.ts.map +1 -0
- package/dist/components/features/devices/device-selector/device-selector.d.ts +38 -0
- package/dist/components/features/devices/device-selector/device-selector.d.ts.map +1 -0
- package/dist/components/features/devices/device-selector/device-selector.types.d.ts +133 -0
- package/dist/components/features/devices/device-selector/device-selector.types.d.ts.map +1 -0
- package/dist/components/features/devices/device-selector/narrowing.d.ts +13 -0
- package/dist/components/features/devices/device-selector/narrowing.d.ts.map +1 -0
- package/dist/components/features/devices/device-selector/use-device-selector.d.ts +17 -0
- package/dist/components/features/devices/device-selector/use-device-selector.d.ts.map +1 -0
- package/dist/components/features/devices/device-status.d.ts +23 -0
- package/dist/components/features/devices/device-status.d.ts.map +1 -0
- package/dist/components/features/devices/device-statuses.d.ts +40 -0
- package/dist/components/features/devices/device-statuses.d.ts.map +1 -0
- package/dist/components/features/devices/device-tags-filter-button.d.ts +22 -0
- package/dist/components/features/devices/device-tags-filter-button.d.ts.map +1 -0
- package/dist/components/features/devices/device-type-icon.d.ts +11 -0
- package/dist/components/features/devices/device-type-icon.d.ts.map +1 -0
- package/dist/components/features/devices/device-type-tile.d.ts +9 -0
- package/dist/components/features/devices/device-type-tile.d.ts.map +1 -0
- package/dist/components/features/devices/devices-filter-toolbar.d.ts +46 -0
- package/dist/components/features/devices/devices-filter-toolbar.d.ts.map +1 -0
- package/dist/components/features/devices/devices-grid-filters.d.ts +25 -0
- package/dist/components/features/devices/devices-grid-filters.d.ts.map +1 -0
- package/dist/components/features/devices/devices-grid.d.ts +12 -0
- package/dist/components/features/devices/devices-grid.d.ts.map +1 -0
- package/dist/components/features/devices/devices-list.d.ts +131 -0
- package/dist/components/features/devices/devices-list.d.ts.map +1 -0
- package/dist/components/features/devices/devices-panel-header.d.ts +46 -0
- package/dist/components/features/devices/devices-panel-header.d.ts.map +1 -0
- package/dist/components/features/devices/devices-panel-view.d.ts +79 -0
- package/dist/components/features/devices/devices-panel-view.d.ts.map +1 -0
- package/dist/components/features/devices/devices-table-columns.d.ts +76 -0
- package/dist/components/features/devices/devices-table-columns.d.ts.map +1 -0
- package/dist/components/features/devices/devices-view-config.d.ts +25 -0
- package/dist/components/features/devices/devices-view-config.d.ts.map +1 -0
- package/dist/components/features/devices/index.d.ts +24 -0
- package/dist/components/features/devices/index.d.ts.map +1 -0
- package/dist/components/features/devices/types.d.ts +68 -0
- package/dist/components/features/devices/types.d.ts.map +1 -0
- package/dist/components/features/devices/use-tag-filter-modal.d.ts +50 -0
- package/dist/components/features/devices/use-tag-filter-modal.d.ts.map +1 -0
- package/dist/components/features/index.cjs +227 -12
- package/dist/components/features/index.d.ts +7 -0
- package/dist/components/features/index.d.ts.map +1 -1
- package/dist/components/features/index.js +266 -51
- package/dist/components/features/knowledge-base/index.d.ts +7 -0
- package/dist/components/features/knowledge-base/index.d.ts.map +1 -0
- package/dist/components/features/knowledge-base/knowledge-base-article-view.d.ts +44 -0
- package/dist/components/features/knowledge-base/knowledge-base-article-view.d.ts.map +1 -0
- package/dist/components/features/knowledge-base/knowledge-base-item-icon.d.ts +13 -0
- package/dist/components/features/knowledge-base/knowledge-base-item-icon.d.ts.map +1 -0
- package/dist/components/features/knowledge-base/knowledge-base-status.d.ts +8 -0
- package/dist/components/features/knowledge-base/knowledge-base-status.d.ts.map +1 -0
- package/dist/components/features/knowledge-base/knowledge-base-table.d.ts +52 -0
- package/dist/components/features/knowledge-base/knowledge-base-table.d.ts.map +1 -0
- package/dist/components/features/logs/index.d.ts +12 -0
- package/dist/components/features/logs/index.d.ts.map +1 -0
- package/dist/components/features/logs/log-drawer.d.ts +29 -0
- package/dist/components/features/logs/log-drawer.d.ts.map +1 -0
- package/dist/components/features/logs/log-source-labels.d.ts +11 -0
- package/dist/components/features/logs/log-source-labels.d.ts.map +1 -0
- package/dist/components/features/logs/logs-page-view.d.ts +32 -0
- package/dist/components/features/logs/logs-page-view.d.ts.map +1 -0
- package/dist/components/features/logs/logs-table-columns.d.ts +15 -0
- package/dist/components/features/logs/logs-table-columns.d.ts.map +1 -0
- package/dist/components/features/logs/logs-table-view.d.ts +64 -0
- package/dist/components/features/logs/logs-table-view.d.ts.map +1 -0
- package/dist/components/features/logs/types.d.ts +52 -0
- package/dist/components/features/logs/types.d.ts.map +1 -0
- package/dist/components/features/policies/compute-policy-summary.d.ts +37 -0
- package/dist/components/features/policies/compute-policy-summary.d.ts.map +1 -0
- package/dist/components/features/policies/index.d.ts +8 -0
- package/dist/components/features/policies/index.d.ts.map +1 -0
- package/dist/components/features/policies/policies-table.d.ts +34 -0
- package/dist/components/features/policies/policies-table.d.ts.map +1 -0
- package/dist/components/features/policies/policy-summary-cards.d.ts +17 -0
- package/dist/components/features/policies/policy-summary-cards.d.ts.map +1 -0
- package/dist/components/features/policies/policy-table-row.d.ts +37 -0
- package/dist/components/features/policies/policy-table-row.d.ts.map +1 -0
- package/dist/components/features/remote-session/index.d.ts +8 -0
- package/dist/components/features/remote-session/index.d.ts.map +1 -1
- package/dist/components/features/remote-session/remote-desktop-chat-message-row.d.ts +21 -0
- package/dist/components/features/remote-session/remote-desktop-chat-message-row.d.ts.map +1 -0
- package/dist/components/features/remote-session/remote-desktop-chat-panel.d.ts +31 -0
- package/dist/components/features/remote-session/remote-desktop-chat-panel.d.ts.map +1 -0
- package/dist/components/features/remote-session/remote-desktop-fullscreen-toolbar.d.ts +21 -0
- package/dist/components/features/remote-session/remote-desktop-fullscreen-toolbar.d.ts.map +1 -0
- package/dist/components/features/remote-session/remote-desktop-view.d.ts +50 -0
- package/dist/components/features/remote-session/remote-desktop-view.d.ts.map +1 -0
- package/dist/components/features/software/index.d.ts +8 -0
- package/dist/components/features/software/index.d.ts.map +1 -0
- package/dist/components/features/software/package-managers.d.ts +30 -0
- package/dist/components/features/software/package-managers.d.ts.map +1 -0
- package/dist/components/features/software/package-search-field-placeholder.d.ts +7 -0
- package/dist/components/features/software/package-search-field-placeholder.d.ts.map +1 -0
- package/dist/components/features/software/schedule-fields.d.ts +34 -0
- package/dist/components/features/software/schedule-fields.d.ts.map +1 -0
- package/dist/components/features/software/software-action-copy.d.ts +25 -0
- package/dist/components/features/software/software-action-copy.d.ts.map +1 -0
- package/dist/components/features/software/software-action-form.d.ts +71 -0
- package/dist/components/features/software/software-action-form.d.ts.map +1 -0
- package/dist/components/features/software/software-row-fields.d.ts +23 -0
- package/dist/components/features/software/software-row-fields.d.ts.map +1 -0
- package/dist/components/features/software/software-row.d.ts +18 -0
- package/dist/components/features/software/software-row.d.ts.map +1 -0
- package/dist/components/features/sortable-list/index.d.ts +1 -0
- package/dist/components/features/sortable-list/index.d.ts.map +1 -1
- package/dist/components/features/sortable-list/sortable-drag-handle.d.ts +21 -0
- package/dist/components/features/sortable-list/sortable-drag-handle.d.ts.map +1 -0
- package/dist/components/help-center-pages/index.cjs +133 -114
- package/dist/components/help-center-pages/index.js +58 -39
- package/dist/components/index.cjs +320 -82
- package/dist/components/index.js +451 -213
- package/dist/components/layout/page-heading.d.ts +12 -3
- package/dist/components/layout/page-heading.d.ts.map +1 -1
- package/dist/components/meeting-scheduler/index.cjs +120 -98
- package/dist/components/meeting-scheduler/index.js +50 -28
- package/dist/components/navigation/index.cjs +36 -17
- package/dist/components/navigation/index.d.ts +3 -0
- package/dist/components/navigation/index.d.ts.map +1 -1
- package/dist/components/navigation/index.js +36 -17
- package/dist/components/navigation/mingo-ai-button.d.ts +23 -10
- package/dist/components/navigation/mingo-ai-button.d.ts.map +1 -1
- package/dist/components/navigation/sticky-section-nav.d.ts +14 -1
- package/dist/components/navigation/sticky-section-nav.d.ts.map +1 -1
- package/dist/components/onboarding-guides/index.cjs +32 -16
- package/dist/components/onboarding-guides/index.js +31 -15
- package/dist/components/product-demo/cast.d.ts +58 -0
- package/dist/components/product-demo/cast.d.ts.map +1 -0
- package/dist/components/product-demo/fixtures/cloud-tenants.d.ts +10 -0
- package/dist/components/product-demo/fixtures/cloud-tenants.d.ts.map +1 -0
- package/dist/components/product-demo/fixtures/devices.d.ts +14 -0
- package/dist/components/product-demo/fixtures/devices.d.ts.map +1 -0
- package/dist/components/product-demo/fixtures/knowledge.d.ts +14 -0
- package/dist/components/product-demo/fixtures/knowledge.d.ts.map +1 -0
- package/dist/components/product-demo/fixtures/logs.d.ts +15 -0
- package/dist/components/product-demo/fixtures/logs.d.ts.map +1 -0
- package/dist/components/product-demo/fixtures/policies.d.ts +13 -0
- package/dist/components/product-demo/fixtures/policies.d.ts.map +1 -0
- package/dist/components/product-demo/fixtures/remote-session.d.ts +20 -0
- package/dist/components/product-demo/fixtures/remote-session.d.ts.map +1 -0
- package/dist/components/product-demo/fixtures/shared.d.ts +156 -0
- package/dist/components/product-demo/fixtures/shared.d.ts.map +1 -0
- package/dist/components/product-demo/fixtures/software-update.d.ts +19 -0
- package/dist/components/product-demo/fixtures/software-update.d.ts.map +1 -0
- package/dist/components/product-demo/fixtures/tickets-board.d.ts +8 -0
- package/dist/components/product-demo/fixtures/tickets-board.d.ts.map +1 -0
- package/dist/components/product-demo/index.cjs +112 -0
- package/dist/components/product-demo/index.d.ts +6 -0
- package/dist/components/product-demo/index.d.ts.map +1 -0
- package/dist/components/product-demo/index.js +112 -0
- package/dist/components/product-demo/product-screen.d.ts +22 -0
- package/dist/components/product-demo/product-screen.d.ts.map +1 -0
- package/dist/components/product-demo/registry.d.ts +13 -0
- package/dist/components/product-demo/registry.d.ts.map +1 -0
- package/dist/components/product-demo/screen-keys.cjs +25 -0
- package/dist/components/product-demo/screen-keys.d.ts +27 -0
- package/dist/components/product-demo/screen-keys.d.ts.map +1 -0
- package/dist/components/product-demo/screen-keys.js +20 -0
- package/dist/components/product-demo/screens/cloud-tenants.d.ts +8 -0
- package/dist/components/product-demo/screens/cloud-tenants.d.ts.map +1 -0
- package/dist/components/product-demo/screens/devices.d.ts +10 -0
- package/dist/components/product-demo/screens/devices.d.ts.map +1 -0
- package/dist/components/product-demo/screens/knowledge.d.ts +9 -0
- package/dist/components/product-demo/screens/knowledge.d.ts.map +1 -0
- package/dist/components/product-demo/screens/logs.d.ts +4 -0
- package/dist/components/product-demo/screens/logs.d.ts.map +1 -0
- package/dist/components/product-demo/screens/policies.d.ts +8 -0
- package/dist/components/product-demo/screens/policies.d.ts.map +1 -0
- package/dist/components/product-demo/screens/remote-desktop-picture.d.ts +11 -0
- package/dist/components/product-demo/screens/remote-desktop-picture.d.ts.map +1 -0
- package/dist/components/product-demo/screens/remote-session.d.ts +8 -0
- package/dist/components/product-demo/screens/remote-session.d.ts.map +1 -0
- package/dist/components/product-demo/screens/software-update.d.ts +12 -0
- package/dist/components/product-demo/screens/software-update.d.ts.map +1 -0
- package/dist/components/product-demo/screens/tickets-board.d.ts +4 -0
- package/dist/components/product-demo/screens/tickets-board.d.ts.map +1 -0
- package/dist/components/product-demo/types.d.ts +9 -0
- package/dist/components/product-demo/types.d.ts.map +1 -0
- package/dist/components/related-content/index.cjs +14 -8
- package/dist/components/related-content/index.js +13 -7
- package/dist/components/tickets/index.cjs +36 -20
- package/dist/components/tickets/index.js +35 -19
- package/dist/components/ui/file-manager/index.cjs +38 -34
- package/dist/components/ui/file-manager/index.js +8 -4
- package/dist/components/ui/index.cjs +57 -17
- package/dist/components/ui/index.d.ts +1 -0
- package/dist/components/ui/index.d.ts.map +1 -1
- package/dist/components/ui/index.js +141 -101
- package/dist/components/ui/product-screen-frame.d.ts +45 -0
- package/dist/components/ui/product-screen-frame.d.ts.map +1 -0
- package/dist/components/ui/radio-group.d.ts +5 -0
- package/dist/components/ui/radio-group.d.ts.map +1 -1
- package/dist/components/ui/snap-carousel.d.ts +11 -1
- package/dist/components/ui/snap-carousel.d.ts.map +1 -1
- package/dist/components/ui/tag.d.ts +1 -1
- package/dist/components/ui/tag.d.ts.map +1 -1
- package/dist/devices-LBMG42K6.js +81 -0
- package/dist/devices-YGYJIXQY.cjs +81 -0
- package/dist/hooks/index.cjs +17 -8
- package/dist/hooks/index.js +32 -23
- package/dist/hooks/ui/index.d.ts +1 -0
- package/dist/hooks/ui/index.d.ts.map +1 -1
- package/dist/hooks/ui/use-header-height.d.ts +12 -0
- package/dist/hooks/ui/use-header-height.d.ts.map +1 -1
- package/dist/hooks/ui/use-sticky-toolbar.d.ts +29 -0
- package/dist/hooks/ui/use-sticky-toolbar.d.ts.map +1 -0
- package/dist/hooks/use-location-hash.d.ts +2 -2
- package/dist/hooks/use-location-hash.d.ts.map +1 -1
- package/dist/hooks/use-scroll-to-hash.d.ts +7 -0
- package/dist/hooks/use-scroll-to-hash.d.ts.map +1 -1
- package/dist/index.cjs +276 -25
- package/dist/index.js +729 -478
- package/dist/knowledge-H5BIWJVI.js +108 -0
- package/dist/knowledge-KTCVJIWN.cjs +108 -0
- package/dist/logs-DB5Z7M5Q.js +216 -0
- package/dist/logs-RVCC2UQW.cjs +216 -0
- package/dist/policies-EWUULFBR.js +121 -0
- package/dist/policies-HV4IQCBV.cjs +121 -0
- package/dist/remote-session-GSGZOFDX.js +196 -0
- package/dist/remote-session-R6VAFESR.cjs +196 -0
- package/dist/software-update-6PXKRKBT.js +179 -0
- package/dist/software-update-D4OVSWSG.cjs +179 -0
- package/dist/tickets-board-BHLPAVNJ.cjs +137 -0
- package/dist/tickets-board-PYDNELSK.js +137 -0
- package/dist/types/case-study.d.ts +15 -1
- package/dist/types/case-study.d.ts.map +1 -1
- package/dist/utils/date-utils.d.ts +5 -0
- package/dist/utils/date-utils.d.ts.map +1 -1
- package/dist/utils/index.cjs +45 -2
- package/dist/utils/index.d.ts +2 -1
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +41 -3
- package/dist/utils/open-in-new-tab.d.ts +7 -0
- package/dist/utils/open-in-new-tab.d.ts.map +1 -0
- package/dist/utils/same-page-hash-nav.d.ts +31 -0
- package/dist/utils/same-page-hash-nav.d.ts.map +1 -1
- package/dist/utils/scroll-into-view.d.ts +14 -1
- package/dist/utils/scroll-into-view.d.ts.map +1 -1
- package/package.json +13 -1
- package/src/components/chat/ask-prompts.tsx +226 -0
- package/src/components/chat/embeddable-chat.tsx +38 -2
- package/src/components/chat/entity-cards/case-study-card.tsx +122 -46
- package/src/components/chat/hooks/use-chat-dialog-manager.ts +22 -4
- package/src/components/chat/hooks/use-unified-chat.ts +1 -0
- package/src/components/chat/index.ts +1 -0
- package/src/components/chat/quick-action-chip.tsx +33 -9
- package/src/components/chat/types/component.types.ts +4 -0
- package/src/components/chat/types/unified-chat-state.types.ts +13 -0
- package/src/components/docs/use-scroll-spy.ts +93 -18
- package/src/components/faq/faq-section.tsx +82 -43
- package/src/components/features/array-entry-manager.tsx +10 -1
- package/src/components/features/board/board.tsx +4 -1
- package/src/components/features/board/ticket-card.tsx +11 -1
- package/src/components/features/board/touch-board.tsx +2 -1
- package/src/components/features/board/types.ts +3 -0
- package/src/components/features/board/use-board-collapse.ts +7 -2
- package/src/components/features/capability-explorer.tsx +412 -0
- package/src/components/features/cloud-tenants/index.ts +28 -0
- package/src/components/features/cloud-tenants/tenant-access-cell.tsx +24 -0
- package/src/components/features/cloud-tenants/tenant-cell.tsx +26 -0
- package/src/components/features/cloud-tenants/tenant-customer-cell.tsx +27 -0
- package/src/components/features/cloud-tenants/tenant-presentation.ts +111 -0
- package/src/components/features/cloud-tenants/tenant-row.ts +21 -0
- package/src/components/features/cloud-tenants/tenants-table-columns.ts +30 -0
- package/src/components/features/cloud-tenants/tenants-table-view.tsx +142 -0
- package/src/components/features/devices/device-last-online.ts +6 -0
- package/src/components/features/devices/device-name.ts +51 -0
- package/src/components/features/devices/device-selector/device-selection-mode-radio.tsx +107 -0
- package/src/components/features/devices/device-selector/device-selector-skeleton.tsx +32 -0
- package/src/components/features/devices/device-selector/device-selector.tsx +799 -0
- package/src/components/features/devices/device-selector/device-selector.types.ts +138 -0
- package/src/components/features/devices/device-selector/narrowing.ts +33 -0
- package/src/components/features/devices/device-selector/use-device-selector.ts +51 -0
- package/src/components/features/devices/device-status.ts +102 -0
- package/src/components/features/devices/device-statuses.ts +88 -0
- package/src/components/features/devices/device-tags-filter-button.tsx +49 -0
- package/src/components/features/devices/device-type-icon.tsx +29 -0
- package/src/components/features/devices/device-type-tile.tsx +17 -0
- package/src/components/features/devices/devices-filter-toolbar.tsx +114 -0
- package/src/components/features/devices/devices-grid-filters.tsx +99 -0
- package/src/components/features/devices/devices-grid.tsx +86 -0
- package/src/components/features/devices/devices-list.tsx +357 -0
- package/src/components/features/devices/devices-panel-header.tsx +97 -0
- package/src/components/features/devices/devices-panel-view.tsx +261 -0
- package/src/components/features/devices/devices-table-columns.tsx +356 -0
- package/src/components/features/devices/devices-view-config.tsx +38 -0
- package/src/components/features/devices/index.ts +89 -0
- package/src/components/features/devices/types.ts +74 -0
- package/src/components/features/devices/use-tag-filter-modal.ts +109 -0
- package/src/components/features/index.ts +9 -0
- package/src/components/features/knowledge-base/index.ts +19 -0
- package/src/components/features/knowledge-base/knowledge-base-article-view.tsx +134 -0
- package/src/components/features/knowledge-base/knowledge-base-item-icon.ts +14 -0
- package/src/components/features/knowledge-base/knowledge-base-status.ts +12 -0
- package/src/components/features/knowledge-base/knowledge-base-table.tsx +180 -0
- package/src/components/features/logs/index.ts +20 -0
- package/src/components/features/logs/log-drawer.tsx +138 -0
- package/src/components/features/logs/log-source-labels.ts +25 -0
- package/src/components/features/logs/logs-page-view.tsx +100 -0
- package/src/components/features/logs/logs-table-columns.ts +16 -0
- package/src/components/features/logs/logs-table-view.tsx +509 -0
- package/src/components/features/logs/types.ts +71 -0
- package/src/components/features/policies/compute-policy-summary.ts +115 -0
- package/src/components/features/policies/index.ts +14 -0
- package/src/components/features/policies/policies-table.tsx +235 -0
- package/src/components/features/policies/policy-summary-cards.tsx +69 -0
- package/src/components/features/policies/policy-table-row.ts +37 -0
- package/src/components/features/remote-session/index.ts +8 -0
- package/src/components/features/remote-session/remote-desktop-chat-message-row.tsx +56 -0
- package/src/components/features/remote-session/remote-desktop-chat-panel.tsx +102 -0
- package/src/components/features/remote-session/remote-desktop-fullscreen-toolbar.tsx +119 -0
- package/src/components/features/remote-session/remote-desktop-view.tsx +209 -0
- package/src/components/features/software/index.ts +39 -0
- package/src/components/features/software/package-managers.ts +54 -0
- package/src/components/features/software/package-search-field-placeholder.tsx +23 -0
- package/src/components/features/software/schedule-fields.tsx +105 -0
- package/src/components/features/software/software-action-copy.ts +70 -0
- package/src/components/features/software/software-action-form.tsx +199 -0
- package/src/components/features/software/software-row-fields.tsx +105 -0
- package/src/components/features/software/software-row.ts +22 -0
- package/src/components/features/sortable-list/index.ts +1 -0
- package/src/components/features/sortable-list/sortable-drag-handle.tsx +41 -0
- package/src/components/layout/page-heading.tsx +23 -6
- package/src/components/navigation/index.ts +5 -0
- package/src/components/navigation/mingo-ai-button.tsx +37 -13
- package/src/components/navigation/sticky-section-nav.tsx +99 -1
- package/src/components/product-demo/cast.tsx +78 -0
- package/src/components/product-demo/fixtures/cloud-tenants.ts +63 -0
- package/src/components/product-demo/fixtures/devices.ts +87 -0
- package/src/components/product-demo/fixtures/knowledge.ts +48 -0
- package/src/components/product-demo/fixtures/logs.ts +103 -0
- package/src/components/product-demo/fixtures/policies.ts +77 -0
- package/src/components/product-demo/fixtures/remote-session.ts +65 -0
- package/src/components/product-demo/fixtures/shared.ts +53 -0
- package/src/components/product-demo/fixtures/software-update.ts +63 -0
- package/src/components/product-demo/fixtures/tickets-board.ts +100 -0
- package/src/components/product-demo/index.ts +7 -0
- package/src/components/product-demo/product-screen.tsx +94 -0
- package/src/components/product-demo/registry.ts +20 -0
- package/src/components/product-demo/screen-keys.ts +31 -0
- package/src/components/product-demo/screens/cloud-tenants.tsx +23 -0
- package/src/components/product-demo/screens/devices.tsx +41 -0
- package/src/components/product-demo/screens/knowledge.tsx +27 -0
- package/src/components/product-demo/screens/logs.tsx +113 -0
- package/src/components/product-demo/screens/policies.tsx +29 -0
- package/src/components/product-demo/screens/remote-desktop-picture.tsx +118 -0
- package/src/components/product-demo/screens/remote-session.tsx +46 -0
- package/src/components/product-demo/screens/software-update.tsx +97 -0
- package/src/components/product-demo/screens/tickets-board.tsx +28 -0
- package/src/components/product-demo/types.ts +10 -0
- package/src/components/ui/index.ts +1 -0
- package/src/components/ui/product-screen-frame.tsx +136 -0
- package/src/components/ui/radio-group.tsx +16 -4
- package/src/components/ui/snap-carousel.tsx +26 -1
- package/src/components/ui/tag.tsx +5 -0
- package/src/hooks/ui/index.ts +1 -0
- package/src/hooks/ui/use-header-height.ts +51 -2
- package/src/hooks/ui/use-sticky-toolbar.ts +60 -0
- package/src/hooks/use-location-hash.ts +9 -5
- package/src/hooks/use-scroll-to-hash.ts +9 -1
- package/src/types/case-study.ts +21 -1
- package/src/utils/date-utils.ts +8 -1
- package/src/utils/index.ts +5 -0
- package/src/utils/open-in-new-tab.ts +12 -0
- package/src/utils/same-page-hash-nav.ts +57 -0
- package/src/utils/scroll-into-view.ts +21 -5
- package/dist/chunk-BM5MVGH3.cjs +0 -499
- package/dist/chunk-CUME3VTQ.js +0 -144
- package/dist/chunk-CZ7Y7UG4.js +0 -732
- package/dist/chunk-FLKJYMVB.js +0 -499
- package/dist/chunk-OF6GEI5A.cjs +0 -144
- package/dist/chunk-UVTD52MD.cjs +0 -732
package/dist/chunk-UVTD52MD.cjs
DELETED
|
@@ -1,732 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }"use client";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
var _chunkLM7TXMLUcjs = require('./chunk-LM7TXMLU.cjs');
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
var _chunkVX4E6YSBcjs = require('./chunk-VX4E6YSB.cjs');
|
|
14
|
-
|
|
15
|
-
// src/hooks/ui/use-debounce.ts
|
|
16
|
-
var _react = require('react');
|
|
17
|
-
function useDebounce(value, delay2 = 500) {
|
|
18
|
-
const [debouncedValue, setDebouncedValue] = _react.useState.call(void 0, value);
|
|
19
|
-
_react.useEffect.call(void 0, () => {
|
|
20
|
-
const timer = setTimeout(() => {
|
|
21
|
-
setDebouncedValue(value);
|
|
22
|
-
}, delay2);
|
|
23
|
-
return () => {
|
|
24
|
-
clearTimeout(timer);
|
|
25
|
-
};
|
|
26
|
-
}, [value, delay2]);
|
|
27
|
-
return debouncedValue;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
// src/hooks/ui/use-header-height.ts
|
|
31
|
-
|
|
32
|
-
function useHeaderHeight(defaultHeight = 72, options = {}) {
|
|
33
|
-
const { enabled = true } = options;
|
|
34
|
-
const [height, setHeight] = _react.useState.call(void 0, defaultHeight);
|
|
35
|
-
_react.useEffect.call(void 0, () => {
|
|
36
|
-
if (!enabled) return void 0;
|
|
37
|
-
const measure = () => {
|
|
38
|
-
let total = 0;
|
|
39
|
-
const header2 = document.querySelector("header");
|
|
40
|
-
if (header2) total += header2.offsetHeight;
|
|
41
|
-
const bar2 = document.querySelector("[data-announcement-bar]");
|
|
42
|
-
if (bar2 instanceof HTMLElement) total += bar2.offsetHeight;
|
|
43
|
-
setHeight(total > 0 ? total : defaultHeight);
|
|
44
|
-
};
|
|
45
|
-
measure();
|
|
46
|
-
const resizeObserver = new ResizeObserver(measure);
|
|
47
|
-
const header = document.querySelector("header");
|
|
48
|
-
if (header) resizeObserver.observe(header);
|
|
49
|
-
const bar = document.querySelector("[data-announcement-bar]");
|
|
50
|
-
if (bar) resizeObserver.observe(bar);
|
|
51
|
-
const mutationObserver = new MutationObserver((mutations) => {
|
|
52
|
-
for (const mutation of mutations) {
|
|
53
|
-
if (mutation.type === "childList" || mutation.type === "attributes") {
|
|
54
|
-
measure();
|
|
55
|
-
const newBar = document.querySelector("[data-announcement-bar]");
|
|
56
|
-
if (newBar) resizeObserver.observe(newBar);
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
});
|
|
60
|
-
mutationObserver.observe(document.body, {
|
|
61
|
-
childList: true,
|
|
62
|
-
subtree: true,
|
|
63
|
-
attributes: true,
|
|
64
|
-
attributeFilter: ["data-announcement-bar"]
|
|
65
|
-
});
|
|
66
|
-
return () => {
|
|
67
|
-
resizeObserver.disconnect();
|
|
68
|
-
mutationObserver.disconnect();
|
|
69
|
-
};
|
|
70
|
-
}, [defaultHeight, enabled]);
|
|
71
|
-
return height;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
// src/hooks/ui/use-marquee-engine.ts
|
|
75
|
-
|
|
76
|
-
var RESYNC_EPSILON = 1.5;
|
|
77
|
-
function useMarqueeEngine(options) {
|
|
78
|
-
const posRef = _react.useRef.call(void 0, 0);
|
|
79
|
-
const glideRemainingRef = _react.useRef.call(void 0, 0);
|
|
80
|
-
const speedEnvRef = _react.useRef.call(void 0, 0);
|
|
81
|
-
const optsRef = _react.useRef.call(void 0, options);
|
|
82
|
-
_react.useEffect.call(void 0, () => {
|
|
83
|
-
optsRef.current = options;
|
|
84
|
-
});
|
|
85
|
-
const wrap = _react.useCallback.call(void 0, (pos) => {
|
|
86
|
-
const half = optsRef.current.getWrapSize();
|
|
87
|
-
if (half <= 0) return pos;
|
|
88
|
-
const min = _nullishCoalesce(_optionalChain([optsRef, 'access', _2 => _2.current, 'access', _3 => _3.getWrapMin, 'optionalCall', _4 => _4()]), () => ( 0));
|
|
89
|
-
let wrapped = pos;
|
|
90
|
-
while (wrapped >= min + half) wrapped -= half;
|
|
91
|
-
while (wrapped < min) wrapped += half;
|
|
92
|
-
return wrapped;
|
|
93
|
-
}, []);
|
|
94
|
-
const glideBy = _react.useCallback.call(void 0, (px) => {
|
|
95
|
-
glideRemainingRef.current += px;
|
|
96
|
-
}, []);
|
|
97
|
-
const active = options.active;
|
|
98
|
-
_react.useEffect.call(void 0, () => {
|
|
99
|
-
if (!active) return void 0;
|
|
100
|
-
let raf = 0;
|
|
101
|
-
let last = performance.now();
|
|
102
|
-
const readBack = optsRef.current.readBack;
|
|
103
|
-
if (readBack) posRef.current = readBack();
|
|
104
|
-
const tick = (now) => {
|
|
105
|
-
const opts = optsRef.current;
|
|
106
|
-
const dt = Math.min(now - last, 100) / 1e3;
|
|
107
|
-
last = now;
|
|
108
|
-
const paused = opts.isPaused(now);
|
|
109
|
-
const targetSpeed = paused ? 0 : opts.speed;
|
|
110
|
-
speedEnvRef.current += (targetSpeed - speedEnvRef.current) * Math.min(1, dt / 0.25);
|
|
111
|
-
if (targetSpeed === 0 && speedEnvRef.current < 0.5) speedEnvRef.current = 0;
|
|
112
|
-
const external = opts.readBack ? opts.readBack() : null;
|
|
113
|
-
const resync = () => {
|
|
114
|
-
if (external !== null && Math.abs(external - posRef.current) > RESYNC_EPSILON) {
|
|
115
|
-
posRef.current = external;
|
|
116
|
-
}
|
|
117
|
-
};
|
|
118
|
-
const glide = glideRemainingRef.current;
|
|
119
|
-
if (glide !== 0) {
|
|
120
|
-
resync();
|
|
121
|
-
const speed = Math.max(Math.abs(glide) * 6, 240);
|
|
122
|
-
const step = Math.sign(glide) * Math.min(Math.abs(glide), speed * dt);
|
|
123
|
-
glideRemainingRef.current = Math.abs(glide - step) < 0.5 ? 0 : glide - step;
|
|
124
|
-
posRef.current = wrap(posRef.current + step);
|
|
125
|
-
opts.apply(posRef.current);
|
|
126
|
-
} else if (speedEnvRef.current > 0) {
|
|
127
|
-
resync();
|
|
128
|
-
posRef.current = wrap(posRef.current + speedEnvRef.current * dt);
|
|
129
|
-
opts.apply(posRef.current);
|
|
130
|
-
} else if (external !== null) {
|
|
131
|
-
posRef.current = external;
|
|
132
|
-
}
|
|
133
|
-
_optionalChain([opts, 'access', _5 => _5.onAfterFrame, 'optionalCall', _6 => _6()]);
|
|
134
|
-
raf = requestAnimationFrame(tick);
|
|
135
|
-
};
|
|
136
|
-
raf = requestAnimationFrame(tick);
|
|
137
|
-
return () => cancelAnimationFrame(raf);
|
|
138
|
-
}, [active, wrap]);
|
|
139
|
-
return { posRef, glideBy, wrap };
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
// src/hooks/ui/use-reset-on-page-hidden.ts
|
|
143
|
-
|
|
144
|
-
function useResetOnPageHidden(reset) {
|
|
145
|
-
_react.useEffect.call(void 0, () => {
|
|
146
|
-
const onVisibility = () => {
|
|
147
|
-
if (document.visibilityState === "hidden") reset();
|
|
148
|
-
};
|
|
149
|
-
window.addEventListener("blur", reset);
|
|
150
|
-
document.addEventListener("visibilitychange", onVisibility);
|
|
151
|
-
return () => {
|
|
152
|
-
window.removeEventListener("blur", reset);
|
|
153
|
-
document.removeEventListener("visibilitychange", onVisibility);
|
|
154
|
-
};
|
|
155
|
-
}, [reset]);
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
// src/hooks/ui/use-suppress-clone-focus.ts
|
|
159
|
-
|
|
160
|
-
var CLONE_FOCUSABLE_SELECTOR = 'a[href],button,input,select,textarea,iframe,summary,audio[controls],video[controls],[tabindex],[contenteditable]:not([contenteditable="false"])';
|
|
161
|
-
function useSuppressCloneFocus(active) {
|
|
162
|
-
const ref = _react.useRef.call(void 0, null);
|
|
163
|
-
_react.useEffect.call(void 0, () => {
|
|
164
|
-
const root = ref.current;
|
|
165
|
-
if (!root || !active) return void 0;
|
|
166
|
-
const suppress = () => {
|
|
167
|
-
root.querySelectorAll(CLONE_FOCUSABLE_SELECTOR).forEach((el) => {
|
|
168
|
-
if (el.getAttribute("tabindex") !== "-1") el.setAttribute("tabindex", "-1");
|
|
169
|
-
});
|
|
170
|
-
};
|
|
171
|
-
suppress();
|
|
172
|
-
const mo = new MutationObserver(suppress);
|
|
173
|
-
mo.observe(root, {
|
|
174
|
-
childList: true,
|
|
175
|
-
subtree: true,
|
|
176
|
-
attributes: true,
|
|
177
|
-
attributeFilter: ["href", "tabindex", "contenteditable", "controls"]
|
|
178
|
-
});
|
|
179
|
-
return () => mo.disconnect();
|
|
180
|
-
}, [active]);
|
|
181
|
-
return ref;
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
// src/hooks/ui/use-prefers-reduced-motion.ts
|
|
185
|
-
var PREFERS_REDUCED_MOTION_QUERY = "(prefers-reduced-motion: reduce)";
|
|
186
|
-
function usePrefersReducedMotion() {
|
|
187
|
-
return _chunkLM7TXMLUcjs.useMediaQuery.call(void 0, PREFERS_REDUCED_MOTION_QUERY) === true;
|
|
188
|
-
}
|
|
189
|
-
function usePrefersReducedMotionState() {
|
|
190
|
-
return _chunkLM7TXMLUcjs.useMediaQuery.call(void 0, PREFERS_REDUCED_MOTION_QUERY);
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
// src/hooks/ui/use-in-view.ts
|
|
194
|
-
|
|
195
|
-
var STEPS = Array.from({ length: 21 }, (_, i) => i / 20);
|
|
196
|
-
function useInView({
|
|
197
|
-
threshold = 0,
|
|
198
|
-
rootMargin = "0px",
|
|
199
|
-
initial = false
|
|
200
|
-
} = {}) {
|
|
201
|
-
const [inView, setInView] = _react.useState.call(void 0, initial);
|
|
202
|
-
const observerRef = _react.useRef.call(void 0, null);
|
|
203
|
-
const disconnect = _react.useCallback.call(void 0, () => {
|
|
204
|
-
_optionalChain([observerRef, 'access', _7 => _7.current, 'optionalAccess', _8 => _8.disconnect, 'call', _9 => _9()]);
|
|
205
|
-
observerRef.current = null;
|
|
206
|
-
}, []);
|
|
207
|
-
const ref = _react.useCallback.call(void 0,
|
|
208
|
-
(node) => {
|
|
209
|
-
disconnect();
|
|
210
|
-
if (!node) {
|
|
211
|
-
setInView(false);
|
|
212
|
-
return;
|
|
213
|
-
}
|
|
214
|
-
if (typeof IntersectionObserver === "undefined") {
|
|
215
|
-
setInView(initial);
|
|
216
|
-
return;
|
|
217
|
-
}
|
|
218
|
-
const observer = new IntersectionObserver(
|
|
219
|
-
(entries) => {
|
|
220
|
-
const entry = entries[entries.length - 1];
|
|
221
|
-
if (!entry) return;
|
|
222
|
-
const ofElement = entry.intersectionRatio >= threshold;
|
|
223
|
-
const viewportHeight = _nullishCoalesce(_optionalChain([entry, 'access', _10 => _10.rootBounds, 'optionalAccess', _11 => _11.height]), () => ( 0));
|
|
224
|
-
const ofViewport = viewportHeight > 0 && (_nullishCoalesce(_optionalChain([entry, 'access', _12 => _12.intersectionRect, 'optionalAccess', _13 => _13.height]), () => ( 0))) >= viewportHeight * threshold;
|
|
225
|
-
setInView(entry.isIntersecting && (ofElement || ofViewport));
|
|
226
|
-
},
|
|
227
|
-
{ threshold: STEPS, rootMargin }
|
|
228
|
-
);
|
|
229
|
-
observer.observe(node);
|
|
230
|
-
observerRef.current = observer;
|
|
231
|
-
},
|
|
232
|
-
[disconnect, threshold, rootMargin, initial]
|
|
233
|
-
);
|
|
234
|
-
_react.useEffect.call(void 0, () => disconnect, [disconnect]);
|
|
235
|
-
return { ref, inView };
|
|
236
|
-
}
|
|
237
|
-
|
|
238
|
-
// src/hooks/ui/use-autoplay.ts
|
|
239
|
-
|
|
240
|
-
function useAutoplay(onScreen) {
|
|
241
|
-
const reducedState = usePrefersReducedMotionState();
|
|
242
|
-
const [paused, setPaused] = _react.useState.call(void 0, false);
|
|
243
|
-
const [tabHidden, setTabHidden] = _react.useState.call(void 0, false);
|
|
244
|
-
_react.useEffect.call(void 0, () => {
|
|
245
|
-
const sync = () => setTabHidden(document.visibilityState === "hidden");
|
|
246
|
-
sync();
|
|
247
|
-
document.addEventListener("visibilitychange", sync);
|
|
248
|
-
window.addEventListener("pageshow", sync);
|
|
249
|
-
return () => {
|
|
250
|
-
document.removeEventListener("visibilitychange", sync);
|
|
251
|
-
window.removeEventListener("pageshow", sync);
|
|
252
|
-
};
|
|
253
|
-
}, []);
|
|
254
|
-
return {
|
|
255
|
-
playing: onScreen && !paused && !tabHidden && reducedState === false,
|
|
256
|
-
paused,
|
|
257
|
-
setPaused,
|
|
258
|
-
reducedMotion: reducedState === true
|
|
259
|
-
};
|
|
260
|
-
}
|
|
261
|
-
|
|
262
|
-
// src/types/tool.types.ts
|
|
263
|
-
var ToolTypeValues = {
|
|
264
|
-
FLEET_MDM: "FLEET_MDM",
|
|
265
|
-
MESHCENTRAL: "MESHCENTRAL",
|
|
266
|
-
AUTHENTIK: "AUTHENTIK",
|
|
267
|
-
OPENFRAME: "OPENFRAME",
|
|
268
|
-
OPENFRAME_CHAT: "OPENFRAME_CHAT",
|
|
269
|
-
OPENFRAME_CLIENT: "OPENFRAME_CLIENT",
|
|
270
|
-
OPENFRAME_RMM: "OPENFRAME_RMM",
|
|
271
|
-
OSQUERY: "OSQUERY",
|
|
272
|
-
SYSTEM: "SYSTEM",
|
|
273
|
-
// Directory tenants (Tenant Management): the same identifiers the gateway's
|
|
274
|
-
// DirectoryProvider enum uses, so a directory sync's log rows resolve here.
|
|
275
|
-
MICROSOFT_365: "MICROSOFT_365",
|
|
276
|
-
GOOGLE_WORKSPACE: "GOOGLE_WORKSPACE"
|
|
277
|
-
};
|
|
278
|
-
var toolLabels = {
|
|
279
|
-
FLEET_MDM: "Fleet",
|
|
280
|
-
MESHCENTRAL: "MeshCentral",
|
|
281
|
-
AUTHENTIK: "Authentik",
|
|
282
|
-
OPENFRAME: "OpenFrame",
|
|
283
|
-
OPENFRAME_CHAT: "OpenFrame Chat",
|
|
284
|
-
OPENFRAME_CLIENT: "OpenFrame Client",
|
|
285
|
-
OPENFRAME_RMM: "RMM",
|
|
286
|
-
OSQUERY: "Osquery",
|
|
287
|
-
SYSTEM: "System",
|
|
288
|
-
MICROSOFT_365: "Microsoft 365",
|
|
289
|
-
GOOGLE_WORKSPACE: "Google Workspace"
|
|
290
|
-
};
|
|
291
|
-
|
|
292
|
-
// src/components/tool-icon.tsx
|
|
293
|
-
var _jsxruntime = require('react/jsx-runtime');
|
|
294
|
-
var renderOpenFrameLogo = (size, className) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVX4E6YSBcjs.OpenframeLogoGreyIcon, { size, className });
|
|
295
|
-
var toolIconMap = {
|
|
296
|
-
[ToolTypeValues.FLEET_MDM]: (size, className) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVX4E6YSBcjs.FleetMdmLogoGreyIcon, { size, className }),
|
|
297
|
-
[ToolTypeValues.MESHCENTRAL]: (size, className) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVX4E6YSBcjs.MeshcentralLogoGreyIcon, { size, className }),
|
|
298
|
-
[ToolTypeValues.OPENFRAME]: renderOpenFrameLogo,
|
|
299
|
-
[ToolTypeValues.OPENFRAME_CHAT]: renderOpenFrameLogo,
|
|
300
|
-
[ToolTypeValues.OPENFRAME_CLIENT]: renderOpenFrameLogo,
|
|
301
|
-
[ToolTypeValues.OPENFRAME_RMM]: renderOpenFrameLogo,
|
|
302
|
-
[ToolTypeValues.AUTHENTIK]: (size, className) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVX4E6YSBcjs.AuthentikLogoGreyIcon, { size, className }),
|
|
303
|
-
[ToolTypeValues.OSQUERY]: (size, className) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVX4E6YSBcjs.OsqueryLogoGreyIcon, { size, className }),
|
|
304
|
-
[ToolTypeValues.SYSTEM]: () => null,
|
|
305
|
-
[ToolTypeValues.MICROSOFT_365]: (size, className) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVX4E6YSBcjs.Office365LogoGreyIcon, { size, className }),
|
|
306
|
-
[ToolTypeValues.GOOGLE_WORKSPACE]: (size, className) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVX4E6YSBcjs.GoogleLogoGreyIcon, { size, className })
|
|
307
|
-
};
|
|
308
|
-
var ToolIcon = ({ toolType, size = 16, className }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: _nullishCoalesce(_optionalChain([toolIconMap, 'access', _14 => _14[toolType], 'optionalCall', _15 => _15(size, className)]), () => ( null)) });
|
|
309
|
-
ToolIcon.displayName = "ToolIcon";
|
|
310
|
-
|
|
311
|
-
// src/utils/common.ts
|
|
312
|
-
var _clsx = require('clsx');
|
|
313
|
-
var _tailwindmerge = require('tailwind-merge');
|
|
314
|
-
function errorMessage(error, fallback = "Something went wrong") {
|
|
315
|
-
if (error instanceof Error && error.message) return error.message;
|
|
316
|
-
if (typeof error === "string" && error) return error;
|
|
317
|
-
if (typeof error === "object" && error !== null) {
|
|
318
|
-
const message = error.message;
|
|
319
|
-
if (typeof message === "string" && message) return message;
|
|
320
|
-
}
|
|
321
|
-
return fallback;
|
|
322
|
-
}
|
|
323
|
-
function apiErrorMessage(payload, fallback) {
|
|
324
|
-
if (typeof payload === "object" && payload !== null && "error" in payload) {
|
|
325
|
-
const { error } = payload;
|
|
326
|
-
if (typeof error === "string" && error) return error;
|
|
327
|
-
}
|
|
328
|
-
return errorMessage(payload, fallback);
|
|
329
|
-
}
|
|
330
|
-
function delay(ms) {
|
|
331
|
-
return new Promise((resolve) => setTimeout(resolve, ms));
|
|
332
|
-
}
|
|
333
|
-
function generateRandomString(length = 8) {
|
|
334
|
-
const chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
|
|
335
|
-
let result = "";
|
|
336
|
-
for (let i = 0; i < length; i++) {
|
|
337
|
-
result += chars.charAt(Math.floor(Math.random() * chars.length));
|
|
338
|
-
}
|
|
339
|
-
return result;
|
|
340
|
-
}
|
|
341
|
-
function truncateString(str, maxLength, suffix = "...") {
|
|
342
|
-
if (str.length <= maxLength) return str;
|
|
343
|
-
return str.substring(0, maxLength - suffix.length) + suffix;
|
|
344
|
-
}
|
|
345
|
-
function serializeJsonLd(schema) {
|
|
346
|
-
return JSON.stringify(schema).replace(/</g, "\\u003c");
|
|
347
|
-
}
|
|
348
|
-
function deepClone(obj) {
|
|
349
|
-
return JSON.parse(JSON.stringify(obj));
|
|
350
|
-
}
|
|
351
|
-
function getSlackCommunityJoinUrl() {
|
|
352
|
-
const url = process.env.NEXT_PUBLIC_SLACK_COMMUNITY_JOIN_URL;
|
|
353
|
-
if (!url) {
|
|
354
|
-
console.warn("NEXT_PUBLIC_SLACK_COMMUNITY_JOIN_URL is not defined in environment variables");
|
|
355
|
-
return "https://join.slack.com/t/openmsp/shared_invite/zt-36bl7mx0h-3~U2nFH6nqHqoTPXMaHEHA";
|
|
356
|
-
}
|
|
357
|
-
return url;
|
|
358
|
-
}
|
|
359
|
-
function clamp(value, min, max) {
|
|
360
|
-
return Math.min(Math.max(value, min), max);
|
|
361
|
-
}
|
|
362
|
-
function pick(source, keys) {
|
|
363
|
-
const out = {};
|
|
364
|
-
for (const key of keys) {
|
|
365
|
-
if (key in source) out[key] = source[key];
|
|
366
|
-
}
|
|
367
|
-
return out;
|
|
368
|
-
}
|
|
369
|
-
var NO_CLIENT_CACHE = { staleTime: 0 };
|
|
370
|
-
|
|
371
|
-
// src/utils/markdown-fences.ts
|
|
372
|
-
var FENCE_RE = /^ {0,3}(`{3,}|~{3,})([^\n]*?)\r?$/;
|
|
373
|
-
var BLANK_LINE_RE = /^[ \t\r]*$/;
|
|
374
|
-
function isBlankLine(line) {
|
|
375
|
-
return BLANK_LINE_RE.test(line);
|
|
376
|
-
}
|
|
377
|
-
function createFenceTracker() {
|
|
378
|
-
let fenceChar = null;
|
|
379
|
-
let fenceLength = 0;
|
|
380
|
-
return {
|
|
381
|
-
push(line) {
|
|
382
|
-
const fence = FENCE_RE.exec(line);
|
|
383
|
-
if (fence) {
|
|
384
|
-
const run = fence[1];
|
|
385
|
-
if (fenceChar === null) {
|
|
386
|
-
fenceChar = run[0];
|
|
387
|
-
fenceLength = run.length;
|
|
388
|
-
return "open";
|
|
389
|
-
}
|
|
390
|
-
if (run[0] === fenceChar && run.length >= fenceLength && isBlankLine(fence[2])) {
|
|
391
|
-
fenceChar = null;
|
|
392
|
-
fenceLength = 0;
|
|
393
|
-
return "close";
|
|
394
|
-
}
|
|
395
|
-
return "inside";
|
|
396
|
-
}
|
|
397
|
-
return fenceChar === null ? "text" : "inside";
|
|
398
|
-
},
|
|
399
|
-
openChar: () => fenceChar,
|
|
400
|
-
openLength: () => fenceLength
|
|
401
|
-
};
|
|
402
|
-
}
|
|
403
|
-
|
|
404
|
-
// src/utils/markdown-heading-id.ts
|
|
405
|
-
var HEADING_EMOJI_RE = /[\u{1F300}-\u{1F9FF}]|[\u{2600}-\u{26FF}]|[\u{2700}-\u{27BF}]/gu;
|
|
406
|
-
function stripHeadingEmojis(text) {
|
|
407
|
-
return text.replace(HEADING_EMOJI_RE, "").trim();
|
|
408
|
-
}
|
|
409
|
-
function slugifyHeadingBase(text) {
|
|
410
|
-
return text.trim().toLowerCase().replace(/[^\w\s-]/g, "").replace(/\s+/g, "-").replace(/^-+|-+$/g, "");
|
|
411
|
-
}
|
|
412
|
-
function slugifyHeadingText(text) {
|
|
413
|
-
return slugifyHeadingBase(stripHeadingEmojis(text));
|
|
414
|
-
}
|
|
415
|
-
var ATX_HEADING_RE = /^ {0,3}(#{1,6})[ \t]+(.*?)(?:[ \t]+#+)?[ \t]*\r?$/;
|
|
416
|
-
var ATX_EMPTY_RE = /^ {0,3}(#{1,6})[ \t]*#*[ \t]*\r?$/;
|
|
417
|
-
var RAW_HEADING_RE = /<h([1-6])\b[^>]*>([\s\S]*?)(?:<\/h\1>|$)/gi;
|
|
418
|
-
var CONTAINER_PREFIX_RE = /^ {0,3}(?:(?:>[ \t]?)+|(?:[-+*]|\d{1,9}[.)])[ \t]+)+/;
|
|
419
|
-
var SETEXT_UNDERLINE_RE = /^ {0,3}(=+|-+)[ \t]*\r?$/;
|
|
420
|
-
var THEMATIC_BREAK_RE = /^ {0,3}(\*|_){3,}[ \t]*\r?$/;
|
|
421
|
-
var HTML_BLOCK_TAGS = "address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h1|h2|h3|h4|h5|h6|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul";
|
|
422
|
-
var HTML_BLOCK_OPENER_RE = new RegExp(
|
|
423
|
-
`^ {0,3}(?:<(?:script|pre|style|textarea)(?:[\\s>]|$)|<!--|<\\?|<![a-zA-Z]|<!\\[CDATA\\[|</?(?:${HTML_BLOCK_TAGS})(?:[\\s/>]|$)|<[a-zA-Z][a-zA-Z0-9-]*(?:\\s[^>]*)?/?>[ \\t]*\\r?$|</[a-zA-Z][a-zA-Z0-9-]*[ \\t]*>[ \\t]*\\r?$)`,
|
|
424
|
-
"i"
|
|
425
|
-
);
|
|
426
|
-
function scanHeadings(content, options = {}) {
|
|
427
|
-
const { skipFrontmatter = true, includeRawHtml = true, skipFences = true } = options;
|
|
428
|
-
const out = [];
|
|
429
|
-
const lines = content.split("\n");
|
|
430
|
-
const fences = skipFences ? createFenceTracker() : null;
|
|
431
|
-
let start = 0;
|
|
432
|
-
if (skipFrontmatter && _optionalChain([lines, 'access', _16 => _16[0], 'optionalAccess', _17 => _17.trim, 'call', _18 => _18()]) === "---") {
|
|
433
|
-
for (let i = 1; i < lines.length; i++) {
|
|
434
|
-
if (lines[i].trim() === "---" || lines[i].trim() === "...") {
|
|
435
|
-
start = i + 1;
|
|
436
|
-
break;
|
|
437
|
-
}
|
|
438
|
-
}
|
|
439
|
-
}
|
|
440
|
-
let setextRun = null;
|
|
441
|
-
for (let i = start; i < lines.length; i++) {
|
|
442
|
-
const line = lines[i];
|
|
443
|
-
if (fences) {
|
|
444
|
-
const role = fences.push(line);
|
|
445
|
-
if (role !== "text") {
|
|
446
|
-
setextRun = null;
|
|
447
|
-
continue;
|
|
448
|
-
}
|
|
449
|
-
}
|
|
450
|
-
const prefix = _nullishCoalesce(_optionalChain([CONTAINER_PREFIX_RE, 'access', _19 => _19.exec, 'call', _20 => _20(line), 'optionalAccess', _21 => _21[0]]), () => ( ""));
|
|
451
|
-
const body = prefix ? line.slice(prefix.length) : line;
|
|
452
|
-
const setext = SETEXT_UNDERLINE_RE.exec(body);
|
|
453
|
-
if (setext) {
|
|
454
|
-
if (setextRun && !setextRun.disqualified && setextRun.prefix === prefix) {
|
|
455
|
-
out.push({
|
|
456
|
-
line: setextRun.line,
|
|
457
|
-
level: setext[1][0] === "=" ? 1 : 2,
|
|
458
|
-
text: setextRun.lines.join("\n")
|
|
459
|
-
});
|
|
460
|
-
}
|
|
461
|
-
setextRun = null;
|
|
462
|
-
continue;
|
|
463
|
-
}
|
|
464
|
-
const atx = _nullishCoalesce(ATX_HEADING_RE.exec(body), () => ( ATX_EMPTY_RE.exec(body)));
|
|
465
|
-
if (atx) {
|
|
466
|
-
out.push({ line: i + 1, level: atx[1].length, text: (_nullishCoalesce(atx[2], () => ( ""))).trim() });
|
|
467
|
-
setextRun = null;
|
|
468
|
-
continue;
|
|
469
|
-
}
|
|
470
|
-
if (includeRawHtml && line.indexOf("<") !== -1) {
|
|
471
|
-
RAW_HEADING_RE.lastIndex = 0;
|
|
472
|
-
let raw;
|
|
473
|
-
let matched = false;
|
|
474
|
-
while ((raw = RAW_HEADING_RE.exec(line)) !== null) {
|
|
475
|
-
matched = true;
|
|
476
|
-
out.push({
|
|
477
|
-
line: i + 1,
|
|
478
|
-
level: Number(raw[1]),
|
|
479
|
-
text: raw[2].replace(/<[^>]*>/g, "").trim()
|
|
480
|
-
});
|
|
481
|
-
}
|
|
482
|
-
if (matched) {
|
|
483
|
-
setextRun = null;
|
|
484
|
-
continue;
|
|
485
|
-
}
|
|
486
|
-
}
|
|
487
|
-
if (isBlankLine(body) || THEMATIC_BREAK_RE.test(body)) {
|
|
488
|
-
setextRun = null;
|
|
489
|
-
continue;
|
|
490
|
-
}
|
|
491
|
-
if (setextRun && setextRun.prefix === prefix) {
|
|
492
|
-
setextRun.lines.push(body.trim());
|
|
493
|
-
} else {
|
|
494
|
-
setextRun = {
|
|
495
|
-
line: i + 1,
|
|
496
|
-
prefix,
|
|
497
|
-
lines: [body.trim()],
|
|
498
|
-
disqualified: HTML_BLOCK_OPENER_RE.test(body)
|
|
499
|
-
};
|
|
500
|
-
}
|
|
501
|
-
}
|
|
502
|
-
return out;
|
|
503
|
-
}
|
|
504
|
-
function createHeadingIdDeduper() {
|
|
505
|
-
const counts = {};
|
|
506
|
-
return (cleanId) => {
|
|
507
|
-
if (counts[cleanId]) {
|
|
508
|
-
counts[cleanId]++;
|
|
509
|
-
return `${cleanId}-${counts[cleanId]}`;
|
|
510
|
-
}
|
|
511
|
-
counts[cleanId] = 1;
|
|
512
|
-
return cleanId;
|
|
513
|
-
};
|
|
514
|
-
}
|
|
515
|
-
|
|
516
|
-
// src/utils/anchor-id.ts
|
|
517
|
-
function normalizeAnchorId(raw) {
|
|
518
|
-
return slugifyHeadingText(raw).replace(/-+/g, "-").replace(/^-+|-+$/g, "");
|
|
519
|
-
}
|
|
520
|
-
var HEADING_SELECTOR = "h1[id], h2[id], h3[id], h4[id], h5[id], h6[id]";
|
|
521
|
-
var DUPLICATE_SUFFIX_RE = /^(.+)-(\d+)$/;
|
|
522
|
-
function findDuplicateShifted(normalized, doc) {
|
|
523
|
-
const parts = DUPLICATE_SUFFIX_RE.exec(normalized);
|
|
524
|
-
if (!parts) return null;
|
|
525
|
-
const ordinal = Number(parts[2]);
|
|
526
|
-
if (!Number.isSafeInteger(ordinal)) return null;
|
|
527
|
-
return doc.getElementById(`${parts[1]}-${ordinal + 1}`);
|
|
528
|
-
}
|
|
529
|
-
function findAnchorElementByNormalizedId(rawId, doc) {
|
|
530
|
-
const normalized = normalizeAnchorId(rawId);
|
|
531
|
-
if (!normalized) return null;
|
|
532
|
-
if (normalized !== rawId) {
|
|
533
|
-
const direct = doc.getElementById(normalized);
|
|
534
|
-
if (direct) return direct;
|
|
535
|
-
}
|
|
536
|
-
for (const heading of Array.from(doc.querySelectorAll(HEADING_SELECTOR))) {
|
|
537
|
-
if (normalizeAnchorId(heading.id) === normalized) return heading;
|
|
538
|
-
}
|
|
539
|
-
return findDuplicateShifted(normalized, doc);
|
|
540
|
-
}
|
|
541
|
-
|
|
542
|
-
// src/utils/scroll-into-view.ts
|
|
543
|
-
var activeRaf = 0;
|
|
544
|
-
var teardownActive = null;
|
|
545
|
-
function cancelActiveScroll() {
|
|
546
|
-
if (activeRaf) {
|
|
547
|
-
cancelAnimationFrame(activeRaf);
|
|
548
|
-
activeRaf = 0;
|
|
549
|
-
}
|
|
550
|
-
if (teardownActive) {
|
|
551
|
-
teardownActive();
|
|
552
|
-
teardownActive = null;
|
|
553
|
-
}
|
|
554
|
-
}
|
|
555
|
-
var easeOutCubic = (t) => 1 - Math.pow(1 - t, 3);
|
|
556
|
-
function getScrollableAncestor(el) {
|
|
557
|
-
for (let node = el.parentElement; node; node = node.parentElement) {
|
|
558
|
-
const overflowY = getComputedStyle(node).overflowY;
|
|
559
|
-
if ((overflowY === "auto" || overflowY === "scroll" || overflowY === "overlay") && node.scrollHeight > node.clientHeight) {
|
|
560
|
-
return node;
|
|
561
|
-
}
|
|
562
|
-
}
|
|
563
|
-
return null;
|
|
564
|
-
}
|
|
565
|
-
function scrollElementIntoView(target, options = {}) {
|
|
566
|
-
if (typeof window === "undefined" || !target) return;
|
|
567
|
-
const { headerOffset = 0, behavior = "smooth", adjustTargetY, durationMs = 320 } = options;
|
|
568
|
-
const container = getScrollableAncestor(target);
|
|
569
|
-
const readCurrent = () => container ? container.scrollTop : window.scrollY;
|
|
570
|
-
const writeTo = (y) => {
|
|
571
|
-
if (container) container.scrollTop = y;
|
|
572
|
-
else window.scrollTo(0, y);
|
|
573
|
-
};
|
|
574
|
-
const computeTarget = () => {
|
|
575
|
-
const raw = container ? container.scrollTop + (target.getBoundingClientRect().top - container.getBoundingClientRect().top) - headerOffset : target.getBoundingClientRect().top + window.scrollY - headerOffset;
|
|
576
|
-
const adjusted = adjustTargetY ? adjustTargetY(raw) : raw;
|
|
577
|
-
const maxScroll = container ? Math.max(0, container.scrollHeight - container.clientHeight) : Math.max(0, document.documentElement.scrollHeight - window.innerHeight);
|
|
578
|
-
return Math.min(Math.max(0, adjusted), maxScroll);
|
|
579
|
-
};
|
|
580
|
-
cancelActiveScroll();
|
|
581
|
-
const prefersReduced = typeof window.matchMedia === "function" && window.matchMedia("(prefers-reduced-motion: reduce)").matches;
|
|
582
|
-
if (behavior === "instant" || behavior === "auto" || prefersReduced) {
|
|
583
|
-
writeTo(computeTarget());
|
|
584
|
-
return;
|
|
585
|
-
}
|
|
586
|
-
let startY = null;
|
|
587
|
-
let startTime = 0;
|
|
588
|
-
const onUserGesture = () => cancelActiveScroll();
|
|
589
|
-
window.addEventListener("wheel", onUserGesture, { passive: true });
|
|
590
|
-
window.addEventListener("touchmove", onUserGesture, { passive: true });
|
|
591
|
-
teardownActive = () => {
|
|
592
|
-
window.removeEventListener("wheel", onUserGesture);
|
|
593
|
-
window.removeEventListener("touchmove", onUserGesture);
|
|
594
|
-
};
|
|
595
|
-
const step = (now) => {
|
|
596
|
-
if (startY === null) {
|
|
597
|
-
startY = readCurrent();
|
|
598
|
-
startTime = now;
|
|
599
|
-
}
|
|
600
|
-
const targetY = computeTarget();
|
|
601
|
-
const t = Math.min(1, (now - startTime) / durationMs);
|
|
602
|
-
const y = startY + (targetY - startY) * easeOutCubic(t);
|
|
603
|
-
writeTo(y);
|
|
604
|
-
if (t < 1) {
|
|
605
|
-
activeRaf = requestAnimationFrame(step);
|
|
606
|
-
} else {
|
|
607
|
-
writeTo(computeTarget());
|
|
608
|
-
activeRaf = 0;
|
|
609
|
-
if (teardownActive) {
|
|
610
|
-
teardownActive();
|
|
611
|
-
teardownActive = null;
|
|
612
|
-
}
|
|
613
|
-
}
|
|
614
|
-
};
|
|
615
|
-
activeRaf = requestAnimationFrame(step);
|
|
616
|
-
}
|
|
617
|
-
|
|
618
|
-
// src/utils/same-page-hash-nav.ts
|
|
619
|
-
var STICKY_HEADER_OFFSET_PX = 96;
|
|
620
|
-
var HUB_HEADER_OFFSET_PX = 80;
|
|
621
|
-
function normalizeHashFragment(hash) {
|
|
622
|
-
if (!hash) return "";
|
|
623
|
-
const second = hash.indexOf("#", 1);
|
|
624
|
-
return second < 0 ? hash : hash.slice(0, second);
|
|
625
|
-
}
|
|
626
|
-
function getHashTargetElement(id) {
|
|
627
|
-
if (!id) return null;
|
|
628
|
-
const direct = document.getElementById(id);
|
|
629
|
-
if (direct) return direct;
|
|
630
|
-
let decoded = id;
|
|
631
|
-
try {
|
|
632
|
-
decoded = decodeURIComponent(id);
|
|
633
|
-
if (decoded !== id) {
|
|
634
|
-
const decodedEl = document.getElementById(decoded);
|
|
635
|
-
if (decodedEl) return decodedEl;
|
|
636
|
-
}
|
|
637
|
-
} catch (e) {
|
|
638
|
-
decoded = id;
|
|
639
|
-
}
|
|
640
|
-
return findAnchorElementByNormalizedId(decoded, document);
|
|
641
|
-
}
|
|
642
|
-
function navigateSamePageHash(target, options = {}) {
|
|
643
|
-
if (typeof window === "undefined") return false;
|
|
644
|
-
const { headerOffset = 0, history: historyMode = "push" } = options;
|
|
645
|
-
const normalizedTarget = target.startsWith("#") ? window.location.pathname + window.location.search + target : target;
|
|
646
|
-
let url;
|
|
647
|
-
try {
|
|
648
|
-
url = new URL(normalizedTarget, window.location.href);
|
|
649
|
-
} catch (e2) {
|
|
650
|
-
return false;
|
|
651
|
-
}
|
|
652
|
-
if (url.origin !== window.location.origin || url.pathname !== window.location.pathname || url.search !== window.location.search) {
|
|
653
|
-
return false;
|
|
654
|
-
}
|
|
655
|
-
const current = window.location.pathname + window.location.search + window.location.hash;
|
|
656
|
-
const normalizedHash = normalizeHashFragment(url.hash);
|
|
657
|
-
if (process.env.NODE_ENV === "development" && normalizedHash !== url.hash) {
|
|
658
|
-
console.warn(
|
|
659
|
-
`[navigateSamePageHash] malformed fragment "${url.hash}" \u2192 normalizing to "${normalizedHash}". Fix the upstream composer.`
|
|
660
|
-
);
|
|
661
|
-
}
|
|
662
|
-
const next = url.pathname + url.search + normalizedHash;
|
|
663
|
-
const id = normalizedHash && normalizedHash !== "#" ? normalizedHash.slice(1) : "";
|
|
664
|
-
if (!id && next !== current) return false;
|
|
665
|
-
if (next !== current) {
|
|
666
|
-
const oldURL = window.location.href;
|
|
667
|
-
if (historyMode === "replace") {
|
|
668
|
-
window.history.replaceState(null, "", next);
|
|
669
|
-
} else {
|
|
670
|
-
window.history.pushState(null, "", next);
|
|
671
|
-
}
|
|
672
|
-
window.dispatchEvent(
|
|
673
|
-
new HashChangeEvent("hashchange", {
|
|
674
|
-
oldURL,
|
|
675
|
-
newURL: window.location.href
|
|
676
|
-
})
|
|
677
|
-
);
|
|
678
|
-
}
|
|
679
|
-
const el = id ? getHashTargetElement(id) : null;
|
|
680
|
-
if (id && !el && process.env.NODE_ENV === "development") {
|
|
681
|
-
console.warn(`[navigateSamePageHash] anchor "#${id}" not found \u2014 scrolling to top.`);
|
|
682
|
-
}
|
|
683
|
-
scrollElementIntoView(_nullishCoalesce(el, () => ( document.documentElement)), {
|
|
684
|
-
behavior: "smooth",
|
|
685
|
-
headerOffset
|
|
686
|
-
});
|
|
687
|
-
return true;
|
|
688
|
-
}
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
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.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.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;
|