@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
|
@@ -1,7 +1,7 @@
|
|
|
1
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
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunk3LU4UFPScjs = require('./chunk-3LU4UFPS.cjs');
|
|
5
5
|
|
|
6
6
|
// src/hooks/ui/use-isomorphic-layout-effect.ts
|
|
7
7
|
var _react = require('react');
|
|
@@ -9,17 +9,6 @@ var useIsomorphicLayoutEffect = typeof window !== "undefined" ? _react.useLayout
|
|
|
9
9
|
|
|
10
10
|
// src/hooks/ui/use-media-query.ts
|
|
11
11
|
|
|
12
|
-
|
|
13
|
-
// src/styles/layout-steps.ts
|
|
14
|
-
var LAYOUT_STEPS = {
|
|
15
|
-
sm: { viewport: 640, content: 640 },
|
|
16
|
-
md: { viewport: 800, content: 720 },
|
|
17
|
-
lg: { viewport: 1280, content: 1024 },
|
|
18
|
-
xl: { viewport: 1440, content: 1216 },
|
|
19
|
-
"2xl": { viewport: 1536, content: 1312 }
|
|
20
|
-
};
|
|
21
|
-
|
|
22
|
-
// src/hooks/ui/use-media-query.ts
|
|
23
12
|
function useMediaQuery(query) {
|
|
24
13
|
const [matches, setMatches] = _react.useState.call(void 0, void 0);
|
|
25
14
|
useIsomorphicLayoutEffect(() => {
|
|
@@ -36,9 +25,9 @@ function useMediaQuery(query) {
|
|
|
36
25
|
return matches;
|
|
37
26
|
}
|
|
38
27
|
var breakpoints = {
|
|
39
|
-
md: `(min-width: ${LAYOUT_STEPS.md.viewport}px)`,
|
|
28
|
+
md: `(min-width: ${_chunk3LU4UFPScjs.LAYOUT_STEPS.md.viewport}px)`,
|
|
40
29
|
// Tablet
|
|
41
|
-
lg: `(min-width: ${LAYOUT_STEPS.lg.viewport}px)`
|
|
30
|
+
lg: `(min-width: ${_chunk3LU4UFPScjs.LAYOUT_STEPS.lg.viewport}px)`
|
|
42
31
|
// Desktop
|
|
43
32
|
};
|
|
44
33
|
function useSmUp() {
|
|
@@ -75,124 +64,6 @@ function useIsTruncated(value, options) {
|
|
|
75
64
|
return { ref, isTruncated: element ? isTruncated : false };
|
|
76
65
|
}
|
|
77
66
|
|
|
78
|
-
// src/hooks/ui/use-content-breakpoint.ts
|
|
79
|
-
|
|
80
|
-
var CONTENT_BREAKPOINTS = { md: LAYOUT_STEPS.md.content, lg: LAYOUT_STEPS.lg.content };
|
|
81
|
-
var ContentAreaWidthContext = _react.createContext.call(void 0, null);
|
|
82
|
-
function ViewportBreakpoints({ children }) {
|
|
83
|
-
return _react.createElement.call(void 0, ContentAreaWidthContext.Provider, { value: null }, children);
|
|
84
|
-
}
|
|
85
|
-
function contentBreakpointFor(width) {
|
|
86
|
-
if (width >= CONTENT_BREAKPOINTS.lg) return "desktop";
|
|
87
|
-
if (width >= CONTENT_BREAKPOINTS.md) return "tablet";
|
|
88
|
-
return "mobile";
|
|
89
|
-
}
|
|
90
|
-
function useContentBreakpoint() {
|
|
91
|
-
const width = _react.useContext.call(void 0, ContentAreaWidthContext);
|
|
92
|
-
const mdUp = useMdUp();
|
|
93
|
-
const lgUp = useLgUp();
|
|
94
|
-
if (width !== null) return contentBreakpointFor(width);
|
|
95
|
-
if (mdUp === void 0) return void 0;
|
|
96
|
-
if (lgUp) return "desktop";
|
|
97
|
-
return mdUp ? "tablet" : "mobile";
|
|
98
|
-
}
|
|
99
|
-
function useContentMdUp() {
|
|
100
|
-
const breakpoint = useContentBreakpoint();
|
|
101
|
-
return breakpoint === void 0 ? void 0 : breakpoint !== "mobile";
|
|
102
|
-
}
|
|
103
|
-
function useContentLgUp() {
|
|
104
|
-
const breakpoint = useContentBreakpoint();
|
|
105
|
-
return breakpoint === void 0 ? void 0 : breakpoint === "desktop";
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
// src/hooks/ui/use-image-edge-color.ts
|
|
109
|
-
|
|
110
|
-
function extractEdgeColor(img) {
|
|
111
|
-
const canvas = document.createElement("canvas");
|
|
112
|
-
const ctx = canvas.getContext("2d");
|
|
113
|
-
if (!ctx) return "#000000";
|
|
114
|
-
const maxSize = 100;
|
|
115
|
-
const scale = Math.min(maxSize / img.naturalWidth, maxSize / img.naturalHeight);
|
|
116
|
-
const w = Math.round(img.naturalWidth * scale);
|
|
117
|
-
const h = Math.round(img.naturalHeight * scale);
|
|
118
|
-
canvas.width = w;
|
|
119
|
-
canvas.height = h;
|
|
120
|
-
ctx.drawImage(img, 0, 0, w, h);
|
|
121
|
-
const data = ctx.getImageData(0, 0, w, h).data;
|
|
122
|
-
const edgeW = Math.max(2, Math.round(w * 0.15));
|
|
123
|
-
const edgeH = Math.max(2, Math.round(h * 0.15));
|
|
124
|
-
const bucketSize = 32;
|
|
125
|
-
const buckets = /* @__PURE__ */ new Map();
|
|
126
|
-
for (let y = 0; y < h; y++) {
|
|
127
|
-
for (let x = 0; x < w; x++) {
|
|
128
|
-
const isEdge = x < edgeW || x >= w - edgeW || y < edgeH || y >= h - edgeH;
|
|
129
|
-
if (!isEdge) continue;
|
|
130
|
-
const i = (y * w + x) * 4;
|
|
131
|
-
const a = data[i + 3];
|
|
132
|
-
if (a < 128) continue;
|
|
133
|
-
const r2 = data[i];
|
|
134
|
-
const g2 = data[i + 1];
|
|
135
|
-
const b2 = data[i + 2];
|
|
136
|
-
const br = Math.floor(r2 / bucketSize) * bucketSize;
|
|
137
|
-
const bg = Math.floor(g2 / bucketSize) * bucketSize;
|
|
138
|
-
const bb = Math.floor(b2 / bucketSize) * bucketSize;
|
|
139
|
-
const key = `${br},${bg},${bb}`;
|
|
140
|
-
const existing = buckets.get(key);
|
|
141
|
-
if (existing) {
|
|
142
|
-
existing.r += r2;
|
|
143
|
-
existing.g += g2;
|
|
144
|
-
existing.b += b2;
|
|
145
|
-
existing.count++;
|
|
146
|
-
} else {
|
|
147
|
-
buckets.set(key, { r: r2, g: g2, b: b2, count: 1 });
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
}
|
|
151
|
-
if (buckets.size === 0) return "#000000";
|
|
152
|
-
let bestBucket = null;
|
|
153
|
-
for (const bucket of buckets.values()) {
|
|
154
|
-
if (!bestBucket || bucket.count > bestBucket.count) {
|
|
155
|
-
bestBucket = bucket;
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
if (!bestBucket || bestBucket.count === 0) return "#000000";
|
|
159
|
-
const r = Math.round(bestBucket.r / bestBucket.count);
|
|
160
|
-
const g = Math.round(bestBucket.g / bestBucket.count);
|
|
161
|
-
const b = Math.round(bestBucket.b / bestBucket.count);
|
|
162
|
-
return `rgb(${r}, ${g}, ${b})`;
|
|
163
|
-
}
|
|
164
|
-
function useImageEdgeColor(imageUrl, fallback = "#000000") {
|
|
165
|
-
const [color, setColor] = _react.useState.call(void 0, fallback);
|
|
166
|
-
const [resetFor, setResetFor] = _react.useState.call(void 0, { imageUrl, fallback });
|
|
167
|
-
if (resetFor.imageUrl !== imageUrl || resetFor.fallback !== fallback) {
|
|
168
|
-
setResetFor({ imageUrl, fallback });
|
|
169
|
-
if (!imageUrl) setColor(fallback);
|
|
170
|
-
}
|
|
171
|
-
_react.useEffect.call(void 0, () => {
|
|
172
|
-
if (!imageUrl) return void 0;
|
|
173
|
-
let cancelled = false;
|
|
174
|
-
const img = new Image();
|
|
175
|
-
img.crossOrigin = "anonymous";
|
|
176
|
-
img.onload = () => {
|
|
177
|
-
if (cancelled) return;
|
|
178
|
-
try {
|
|
179
|
-
setColor(extractEdgeColor(img));
|
|
180
|
-
} catch (e) {
|
|
181
|
-
setColor(fallback);
|
|
182
|
-
}
|
|
183
|
-
};
|
|
184
|
-
img.onerror = () => {
|
|
185
|
-
if (cancelled) return;
|
|
186
|
-
setColor(fallback);
|
|
187
|
-
};
|
|
188
|
-
img.src = imageUrl;
|
|
189
|
-
return () => {
|
|
190
|
-
cancelled = true;
|
|
191
|
-
};
|
|
192
|
-
}, [imageUrl, fallback]);
|
|
193
|
-
return color;
|
|
194
|
-
}
|
|
195
|
-
|
|
196
67
|
// src/utils/platform-identity.ts
|
|
197
68
|
var platformDisplayNames = {
|
|
198
69
|
openmsp: "OpenMSP",
|
|
@@ -393,7 +264,7 @@ function getDefaultColorForPlatform(platformName) {
|
|
|
393
264
|
function getAppType() {
|
|
394
265
|
try {
|
|
395
266
|
return process.env.NEXT_PUBLIC_APP_TYPE || "openmsp";
|
|
396
|
-
} catch (
|
|
267
|
+
} catch (e) {
|
|
397
268
|
return "openmsp";
|
|
398
269
|
}
|
|
399
270
|
}
|
|
@@ -403,7 +274,7 @@ function getStorage(backend) {
|
|
|
403
274
|
if (typeof window === "undefined") return null;
|
|
404
275
|
try {
|
|
405
276
|
return backend === "session" ? window.sessionStorage : window.localStorage;
|
|
406
|
-
} catch (
|
|
277
|
+
} catch (e2) {
|
|
407
278
|
return null;
|
|
408
279
|
}
|
|
409
280
|
}
|
|
@@ -568,7 +439,7 @@ function needsBearerAssetFetch(url) {
|
|
|
568
439
|
try {
|
|
569
440
|
target = new URL(url, window.location.href);
|
|
570
441
|
pageOrigin = new URL(window.location.href).origin;
|
|
571
|
-
} catch (
|
|
442
|
+
} catch (e3) {
|
|
572
443
|
return false;
|
|
573
444
|
}
|
|
574
445
|
if (target.protocol !== "http:" && target.protocol !== "https:") return false;
|
|
@@ -650,7 +521,7 @@ function assertSameOrigin(url) {
|
|
|
650
521
|
try {
|
|
651
522
|
target = new URL(url, window.location.href);
|
|
652
523
|
pageOrigin = new URL(window.location.href).origin;
|
|
653
|
-
} catch (
|
|
524
|
+
} catch (e4) {
|
|
654
525
|
throw new Error(`embedAuthedFetch: refusing to fetch malformed URL (${JSON.stringify(url)})`);
|
|
655
526
|
}
|
|
656
527
|
if (target.protocol !== "http:" && target.protocol !== "https:") {
|
|
@@ -767,124 +638,6 @@ function useAuthedImageSrc(src) {
|
|
|
767
638
|
}
|
|
768
639
|
var clearAuthedImageCache = clearAuthedAssetCache;
|
|
769
640
|
|
|
770
|
-
// src/hooks/use-near-viewport.ts
|
|
771
|
-
|
|
772
|
-
var observers = /* @__PURE__ */ new Map();
|
|
773
|
-
var subscribers = /* @__PURE__ */ new WeakMap();
|
|
774
|
-
var THRESHOLD_EPSILON = 0.01;
|
|
775
|
-
function observerKey(rootMargin, threshold) {
|
|
776
|
-
return `${rootMargin}|${threshold}`;
|
|
777
|
-
}
|
|
778
|
-
function getObserverFor(rootMargin, threshold) {
|
|
779
|
-
const key = observerKey(rootMargin, threshold);
|
|
780
|
-
const existing = observers.get(key);
|
|
781
|
-
if (existing) return existing;
|
|
782
|
-
const io = new IntersectionObserver(
|
|
783
|
-
(entries) => {
|
|
784
|
-
entries.forEach((entry) => {
|
|
785
|
-
if (!entry.isIntersecting) return;
|
|
786
|
-
if (entry.intersectionRatio < threshold - THRESHOLD_EPSILON) return;
|
|
787
|
-
const cb = subscribers.get(entry.target);
|
|
788
|
-
if (cb) {
|
|
789
|
-
cb();
|
|
790
|
-
io.unobserve(entry.target);
|
|
791
|
-
subscribers.delete(entry.target);
|
|
792
|
-
}
|
|
793
|
-
});
|
|
794
|
-
},
|
|
795
|
-
{ rootMargin, threshold }
|
|
796
|
-
);
|
|
797
|
-
observers.set(key, io);
|
|
798
|
-
return io;
|
|
799
|
-
}
|
|
800
|
-
var NEAR_VIEWPORT_ROOT_MARGIN = "500px";
|
|
801
|
-
function useNearViewport(rootMargin = NEAR_VIEWPORT_ROOT_MARGIN, threshold = 0) {
|
|
802
|
-
const [isNear, setIsNear] = _react.useState.call(void 0, false);
|
|
803
|
-
const elRef = _react.useRef.call(void 0, null);
|
|
804
|
-
const key = observerKey(rootMargin, threshold);
|
|
805
|
-
const ref = _react.useCallback.call(void 0,
|
|
806
|
-
(node) => {
|
|
807
|
-
const prev = elRef.current;
|
|
808
|
-
if (prev) {
|
|
809
|
-
const stillOurs = subscribers.get(prev);
|
|
810
|
-
if (stillOurs) {
|
|
811
|
-
subscribers.delete(prev);
|
|
812
|
-
_optionalChain([observers, 'access', _31 => _31.get, 'call', _32 => _32(key), 'optionalAccess', _33 => _33.unobserve, 'call', _34 => _34(prev)]);
|
|
813
|
-
}
|
|
814
|
-
}
|
|
815
|
-
elRef.current = node;
|
|
816
|
-
if (!node) return;
|
|
817
|
-
const cb = () => setIsNear(true);
|
|
818
|
-
subscribers.set(node, cb);
|
|
819
|
-
getObserverFor(rootMargin, threshold).observe(node);
|
|
820
|
-
},
|
|
821
|
-
[key, rootMargin, threshold]
|
|
822
|
-
);
|
|
823
|
-
_react.useEffect.call(void 0, () => {
|
|
824
|
-
return () => {
|
|
825
|
-
const el = elRef.current;
|
|
826
|
-
if (!el) return;
|
|
827
|
-
if (subscribers.get(el)) {
|
|
828
|
-
subscribers.delete(el);
|
|
829
|
-
_optionalChain([observers, 'access', _35 => _35.get, 'call', _36 => _36(key), 'optionalAccess', _37 => _37.unobserve, 'call', _38 => _38(el)]);
|
|
830
|
-
}
|
|
831
|
-
};
|
|
832
|
-
}, [key]);
|
|
833
|
-
return { ref, isNear };
|
|
834
|
-
}
|
|
835
|
-
|
|
836
|
-
// src/utils/og-placeholder.ts
|
|
837
|
-
var DEFAULT_OG_PLACEHOLDER_PATH = "/api/og-placeholder";
|
|
838
|
-
function resolveOgPlaceholderBase(endpoints) {
|
|
839
|
-
if (_optionalChain([endpoints, 'optionalAccess', _39 => _39.ogPlaceholderUrl])) return endpoints.ogPlaceholderUrl;
|
|
840
|
-
const imageProxy = _optionalChain([endpoints, 'optionalAccess', _40 => _40.imageProxyUrlPrefix]);
|
|
841
|
-
if (imageProxy) {
|
|
842
|
-
const derived = imageProxy.replace(/\/image-proxy(?=$|[?/])/, "/og-placeholder");
|
|
843
|
-
if (derived !== imageProxy) return derived;
|
|
844
|
-
}
|
|
845
|
-
return DEFAULT_OG_PLACEHOLDER_PATH;
|
|
846
|
-
}
|
|
847
|
-
function buildOgPlaceholderUrl(endpoints, title, options = {}) {
|
|
848
|
-
const base = resolveOgPlaceholderBase(endpoints);
|
|
849
|
-
const qIndex = base.indexOf("?");
|
|
850
|
-
const path = qIndex === -1 ? base : base.slice(0, qIndex);
|
|
851
|
-
const params = new URLSearchParams(qIndex === -1 ? "" : base.slice(qIndex + 1));
|
|
852
|
-
params.set("title", title);
|
|
853
|
-
if (options.site) params.set("site", options.site);
|
|
854
|
-
const width = _nullishCoalesce(options.width, () => ( (options.aspect === "square" ? 1024 : void 0)));
|
|
855
|
-
const height = _nullishCoalesce(options.height, () => ( (options.aspect === "square" ? 1024 : void 0)));
|
|
856
|
-
if (Number.isFinite(width)) params.set("w", String(width));
|
|
857
|
-
if (Number.isFinite(height)) params.set("h", String(height));
|
|
858
|
-
return `${path}?${params.toString()}`;
|
|
859
|
-
}
|
|
860
|
-
|
|
861
|
-
// src/hooks/use-og-placeholder-url.ts
|
|
862
|
-
|
|
863
|
-
function useOgPlaceholderUrl({
|
|
864
|
-
title,
|
|
865
|
-
siteName = "",
|
|
866
|
-
aspect = "wide",
|
|
867
|
-
enabled = true
|
|
868
|
-
}) {
|
|
869
|
-
const endpoints = _optionalChain([_chunkUJ7AXHRZcjs.useChatRuntime.call(void 0, ), 'optionalAccess', _41 => _41.endpoints]);
|
|
870
|
-
return _react.useMemo.call(void 0, () => {
|
|
871
|
-
if (!enabled || !title) return null;
|
|
872
|
-
return buildOgPlaceholderUrl(endpoints, title, { site: siteName || void 0, aspect });
|
|
873
|
-
}, [endpoints, title, siteName, aspect, enabled]);
|
|
874
|
-
}
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
641
|
|
|
889
642
|
|
|
890
643
|
|
|
@@ -938,4 +691,4 @@ function useOgPlaceholderUrl({
|
|
|
938
691
|
|
|
939
692
|
|
|
940
693
|
|
|
941
|
-
exports.useIsomorphicLayoutEffect = useIsomorphicLayoutEffect; exports.useMediaQuery = useMediaQuery; exports.breakpoints = breakpoints; exports.useSmUp = useSmUp; exports.useMdUp = useMdUp; exports.useLgUp = useLgUp; exports.useIsTruncated = useIsTruncated; exports.
|
|
694
|
+
exports.useIsomorphicLayoutEffect = useIsomorphicLayoutEffect; exports.useMediaQuery = useMediaQuery; exports.breakpoints = breakpoints; exports.useSmUp = useSmUp; exports.useMdUp = useMdUp; exports.useLgUp = useLgUp; exports.useIsTruncated = useIsTruncated; exports.createLocalStorageAdapter = createLocalStorageAdapter; exports.platformDisplayNames = platformDisplayNames; exports.platformShortNames = platformShortNames; exports.platformDescriptions = platformDescriptions; exports.platformSlogans = platformSlogans; exports.platformIconNames = platformIconNames; exports.getPlatformDisplayName = getPlatformDisplayName; exports.getPlatformShortName = getPlatformShortName; exports.getPlatformDescription = getPlatformDescription; exports.getPlatformSlogan = getPlatformSlogan; exports.getDefaultIconForPlatform = getDefaultIconForPlatform; exports.ODS_STEM_TOKENS = ODS_STEM_TOKENS; exports.ODS_STEM_CLASSES = ODS_STEM_CLASSES; exports.PLATFORM_THEME = PLATFORM_THEME; exports.PLATFORM_SURFACE = PLATFORM_SURFACE; exports.getPlatformBackgroundVarName = getPlatformBackgroundVarName; exports.getPlatformTextVarName = getPlatformTextVarName; exports.PLATFORM_BRAND = PLATFORM_BRAND; exports.getPlatformBrand = getPlatformBrand; exports.platformAccentToken = platformAccentToken; exports.platformSecondaryToken = platformSecondaryToken; exports.platformAccentVarName = platformAccentVarName; exports.platformSecondaryVarName = platformSecondaryVarName; exports.getPlatformAccentColor = getPlatformAccentColor; exports.getPlatformSecondaryColor = getPlatformSecondaryColor; exports.getPlatformBrandClasses = getPlatformBrandClasses; exports.platformColors = platformColors; exports.getPlatformColor = getPlatformColor; exports.platformHexColors = platformHexColors; exports.getDefaultColorForPlatform = getDefaultColorForPlatform; exports.getAppType = getAppType; exports.EMBED_PROXY_OPTIONAL_HEADERS = EMBED_PROXY_OPTIONAL_HEADERS; exports.getEmbedProxyAuth = getEmbedProxyAuth; exports.getPersistedProxyEmail = getPersistedProxyEmail; exports.setEmbedProxyAuth = setEmbedProxyAuth; exports.clearEmbedProxyAuth = clearEmbedProxyAuth; exports.applyProxyAuth = applyProxyAuth; exports.setEmbedAuthAdapter = setEmbedAuthAdapter; exports.hasEmbedAuthAdapter = hasEmbedAuthAdapter; exports.subscribeEmbedCredentialChange = subscribeEmbedCredentialChange; exports.embedAuthedFetch = embedAuthedFetch; exports.clearAuthedAssetCache = clearAuthedAssetCache; exports.useAuthedAssetSrc = useAuthedAssetSrc; exports.useAuthedImageSrc = useAuthedImageSrc; exports.clearAuthedImageCache = clearAuthedImageCache;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
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
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkL6ZQGWCXcjs = require('./chunk-L6ZQGWCX.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkAUMKE74Mcjs = require('./chunk-AUMKE74M.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
@@ -12,16 +12,16 @@ var _chunkOF6GEI5Acjs = require('./chunk-OF6GEI5A.cjs');
|
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var _chunkHETQETPVcjs = require('./chunk-HETQETPV.cjs');
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _chunkGQ7JJUITcjs = require('./chunk-GQ7JJUIT.cjs');
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
var _chunk7DNL734Scjs = require('./chunk-7DNL734S.cjs');
|
|
22
22
|
|
|
23
23
|
|
|
24
|
-
var
|
|
24
|
+
var _chunkETYLOZOBcjs = require('./chunk-ETYLOZOB.cjs');
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
var _chunkUJ7AXHRZcjs = require('./chunk-UJ7AXHRZ.cjs');
|
|
@@ -39,7 +39,7 @@ var _jsxruntime = require('react/jsx-runtime');
|
|
|
39
39
|
function DocSearchResultRow({ result, isHighlighted }) {
|
|
40
40
|
const docType = _optionalChain([result, 'access', _ => _.metadata, 'optionalAccess', _2 => _2.documentType]) || void 0;
|
|
41
41
|
const sourceRepo = _optionalChain([result, 'access', _3 => _3.metadata, 'optionalAccess', _4 => _4.sourceRepo]) || void 0;
|
|
42
|
-
const { Icon: SourceIcon, label: iconLabel } =
|
|
42
|
+
const { Icon: SourceIcon, label: iconLabel } = _chunkHETQETPVcjs.resolveSourceIcon.call(void 0, {
|
|
43
43
|
sourceRepo,
|
|
44
44
|
documentType: docType
|
|
45
45
|
});
|
|
@@ -69,7 +69,7 @@ function DocSearchBar({
|
|
|
69
69
|
renderResult
|
|
70
70
|
}) {
|
|
71
71
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
72
|
-
|
|
72
|
+
_chunkL6ZQGWCXcjs.SearchInput,
|
|
73
73
|
{
|
|
74
74
|
placeholder,
|
|
75
75
|
value: query,
|
|
@@ -119,7 +119,7 @@ function mapDocSearchResults(docs) {
|
|
|
119
119
|
results.push({
|
|
120
120
|
id: `group-${entry.repo}`,
|
|
121
121
|
// Same table label and count as the chat's grouped chip: one owner each.
|
|
122
|
-
title: `${
|
|
122
|
+
title: `${_chunkHETQETPVcjs.getSourceLabel.call(void 0, entry.repo)} ${_chunkHETQETPVcjs.recordCountLabel.call(void 0, rows.length)}`,
|
|
123
123
|
path: rows[0].path,
|
|
124
124
|
type: "file",
|
|
125
125
|
metadata: {
|
|
@@ -182,7 +182,7 @@ function resolveSearchResultAction(result, source, runtimeMode, composeContentUr
|
|
|
182
182
|
if (composed && !isAbsoluteHref(href)) {
|
|
183
183
|
return { kind: "navigate-same-tab", href };
|
|
184
184
|
}
|
|
185
|
-
const isNewTab =
|
|
185
|
+
const isNewTab = _chunkETYLOZOBcjs.decideNewTab.call(void 0, {
|
|
186
186
|
href,
|
|
187
187
|
targetPlatform: composed ? composed.targetPlatform : targetPlatform,
|
|
188
188
|
surface: "useUnifiedNav",
|
|
@@ -254,7 +254,7 @@ function useDocSearch(config) {
|
|
|
254
254
|
const [query, setQuery] = _react.useState.call(void 0, "");
|
|
255
255
|
const [results, setResults] = _react.useState.call(void 0, NO_RESULTS);
|
|
256
256
|
const [isFetching, setIsFetching] = _react.useState.call(void 0, false);
|
|
257
|
-
const debouncedQuery =
|
|
257
|
+
const debouncedQuery = _chunkGQ7JJUITcjs.useDebounce.call(void 0, query, 300);
|
|
258
258
|
const searchable = debouncedQuery.trim().length >= 2;
|
|
259
259
|
const [wasSearchable, setWasSearchable] = _react.useState.call(void 0, searchable);
|
|
260
260
|
if (wasSearchable !== searchable) {
|
|
@@ -276,7 +276,7 @@ function useDocSearch(config) {
|
|
|
276
276
|
limit: "10"
|
|
277
277
|
});
|
|
278
278
|
if (tableIdsKey) params.set("tableIds", tableIdsKey);
|
|
279
|
-
const response = await
|
|
279
|
+
const response = await _chunkAUMKE74Mcjs.contentFetch.call(void 0, `${resolvedSearchEndpoint}?${params.toString()}`);
|
|
280
280
|
if (!response.ok) {
|
|
281
281
|
throw new Error(`Search request failed: ${response.status}`);
|
|
282
282
|
}
|
|
@@ -311,27 +311,27 @@ function useDocSearch(config) {
|
|
|
311
311
|
case "navigate-same-tab": {
|
|
312
312
|
if (wantsNewTab) {
|
|
313
313
|
setKeepOpen(true);
|
|
314
|
-
window.open(action.href, "_blank",
|
|
314
|
+
window.open(action.href, "_blank", _chunkHETQETPVcjs.NEW_TAB_FEATURES);
|
|
315
315
|
return;
|
|
316
316
|
}
|
|
317
317
|
setKeepOpen(false);
|
|
318
318
|
const path = baseRoute && action.href.startsWith(`${baseRoute}/`) ? action.href.slice(baseRoute.length + 1) : null;
|
|
319
319
|
if (path && _optionalChain([onInPageSwap, 'optionalCall', _16 => _16(path)])) return;
|
|
320
|
-
router.push(
|
|
320
|
+
router.push(_chunkHETQETPVcjs.stripSameOriginToPath.call(void 0, action.href));
|
|
321
321
|
return;
|
|
322
322
|
}
|
|
323
323
|
case "navigate-new-tab":
|
|
324
324
|
setKeepOpen(true);
|
|
325
325
|
if (_optionalChain([runtime, 'optionalAccess', _17 => _17.navigation, 'access', _18 => _18.mode]) === "embed") {
|
|
326
326
|
const targetPlatform = _nullishCoalesce(_optionalChain([result, 'access', _19 => _19.metadata, 'optionalAccess', _20 => _20.targetPlatform]), () => ( null));
|
|
327
|
-
|
|
327
|
+
_chunkHETQETPVcjs.resolveExternalNavigation.call(void 0, {
|
|
328
328
|
href: action.href,
|
|
329
329
|
targetPlatform,
|
|
330
330
|
runtime
|
|
331
331
|
}).open();
|
|
332
332
|
return;
|
|
333
333
|
}
|
|
334
|
-
window.open(action.href, "_blank",
|
|
334
|
+
window.open(action.href, "_blank", _chunkHETQETPVcjs.NEW_TAB_FEATURES);
|
|
335
335
|
return;
|
|
336
336
|
case "ask-ai":
|
|
337
337
|
setKeepOpen(false);
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
DEMO_DEVICES,
|
|
4
|
+
demoMinutesAgo
|
|
5
|
+
} from "./chunk-CYUUHFXL.js";
|
|
6
|
+
|
|
7
|
+
// src/components/product-demo/fixtures/devices.ts
|
|
8
|
+
function device(cast, demo, type, status, lastSeenMinutesAgo) {
|
|
9
|
+
const organization = cast.organization(demo.organization);
|
|
10
|
+
return {
|
|
11
|
+
id: demo.id,
|
|
12
|
+
machineId: demo.id,
|
|
13
|
+
hostname: demo.hostname,
|
|
14
|
+
nickname: void 0,
|
|
15
|
+
status,
|
|
16
|
+
type,
|
|
17
|
+
osType: demo.os,
|
|
18
|
+
last_seen: demoMinutesAgo(lastSeenMinutesAgo),
|
|
19
|
+
organizationId: organization.id,
|
|
20
|
+
organization: organization.name,
|
|
21
|
+
organizationImageUrl: organization.logoUrl
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
function countBy(devices, pick) {
|
|
25
|
+
const counts = /* @__PURE__ */ new Map();
|
|
26
|
+
for (const row of devices) {
|
|
27
|
+
const value = pick(row);
|
|
28
|
+
if (value) counts.set(value, (counts.get(value) ?? 0) + 1);
|
|
29
|
+
}
|
|
30
|
+
return Array.from(counts, ([value, count]) => ({ value, count }));
|
|
31
|
+
}
|
|
32
|
+
function buildDevicesFixture(cast) {
|
|
33
|
+
const devices = [
|
|
34
|
+
device(cast, DEMO_DEVICES.frontDesk, "laptop", "ONLINE", 2),
|
|
35
|
+
device(cast, DEMO_DEVICES.reception, "desktop", "OFFLINE", 190),
|
|
36
|
+
device(cast, DEMO_DEVICES.mayaAir, "laptop", "ONLINE", 1),
|
|
37
|
+
device(cast, DEMO_DEVICES.buildServer, "server", "ONLINE", 1),
|
|
38
|
+
device(cast, DEMO_DEVICES.leoThinkPad, "laptop", "OFFLINE", 64),
|
|
39
|
+
device(cast, DEMO_DEVICES.samT14, "laptop", "ONLINE", 3),
|
|
40
|
+
device(cast, DEMO_DEVICES.jenSurface, "laptop", "ONLINE", 6),
|
|
41
|
+
device(cast, DEMO_DEVICES.priyaXps, "laptop", "ONLINE", 2)
|
|
42
|
+
];
|
|
43
|
+
const deviceFilters = {
|
|
44
|
+
statuses: countBy(devices, (row) => row.status),
|
|
45
|
+
deviceTypes: countBy(devices, (row) => row.type),
|
|
46
|
+
osTypes: countBy(devices, (row) => row.osType),
|
|
47
|
+
organizationIds: countBy(devices, (row) => row.organizationId).map((entry) => ({
|
|
48
|
+
...entry,
|
|
49
|
+
label: devices.find((row) => row.organizationId === entry.value)?.organization ?? entry.value
|
|
50
|
+
})),
|
|
51
|
+
tagKeys: [],
|
|
52
|
+
filteredCount: devices.length
|
|
53
|
+
};
|
|
54
|
+
return { devices, deviceFilters, totalCount: devices.length };
|
|
55
|
+
}
|
|
56
|
+
var DEVICES_SEARCH_QUERY = "Windows";
|
|
57
|
+
function buildWindowsDevicesFixture(cast) {
|
|
58
|
+
const fleet = buildDevicesFixture(cast);
|
|
59
|
+
const devices = fleet.devices.filter((row) => row.osType === "WINDOWS");
|
|
60
|
+
return {
|
|
61
|
+
devices,
|
|
62
|
+
deviceFilters: { ...fleet.deviceFilters, filteredCount: devices.length },
|
|
63
|
+
totalCount: devices.length
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export {
|
|
68
|
+
buildDevicesFixture,
|
|
69
|
+
DEVICES_SEARCH_QUERY,
|
|
70
|
+
buildWindowsDevicesFixture
|
|
71
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
var _chunkDFQYAYBHcjs = require('./chunk-DFQYAYBH.cjs');
|
|
@@ -6,50 +6,6 @@ var _chunkDFQYAYBHcjs = require('./chunk-DFQYAYBH.cjs');
|
|
|
6
6
|
|
|
7
7
|
var _chunk3ATAYP36cjs = require('./chunk-3ATAYP36.cjs');
|
|
8
8
|
|
|
9
|
-
// src/utils/content-ref-groups.ts
|
|
10
|
-
var CONTENT_REF_GROUPS = {
|
|
11
|
-
investor_update: { label: "Investor Updates", order: 1, layout: "grid", gridSize: "default" },
|
|
12
|
-
product_release: { label: "Product Releases", order: 2, layout: "list", gridSize: "lg" },
|
|
13
|
-
podcast: { label: "Podcasts", order: 3, layout: "list", gridSize: "default" },
|
|
14
|
-
webinar: { label: "Webinars", order: 4, layout: "list", gridSize: "default" },
|
|
15
|
-
case_study: { label: "Case Studies", order: 5, layout: "grid", gridSize: "default" },
|
|
16
|
-
event: { label: "Events", order: 6, layout: "list", gridSize: "default" },
|
|
17
|
-
blog_post_existing: { label: "Blog Posts", order: 7, layout: "grid", gridSize: "default" },
|
|
18
|
-
customer_interview: { label: "Customer Interviews", order: 8, layout: "grid", gridSize: "default" },
|
|
19
|
-
onboarding_guide: { label: "Onboarding Guides", order: 9, layout: "list", gridSize: "default" },
|
|
20
|
-
what_i_shipped: { label: "What I Shipped", order: 10, layout: "grid", gridSize: "default" },
|
|
21
|
-
how_i_work: { label: "How I Work", order: 11, layout: "grid", gridSize: "default" },
|
|
22
|
-
ai_prompt: { label: "Squawkbox", order: 12, layout: "grid", gridSize: "default" }
|
|
23
|
-
};
|
|
24
|
-
function getContentRefLabel(type) {
|
|
25
|
-
return _nullishCoalesce(_optionalChain([CONTENT_REF_GROUPS, 'access', _ => _[type], 'optionalAccess', _2 => _2.label]), () => ( null));
|
|
26
|
-
}
|
|
27
|
-
function getContentRefLabelOrTitleCase(type) {
|
|
28
|
-
return _nullishCoalesce(_optionalChain([CONTENT_REF_GROUPS, 'access', _3 => _3[type], 'optionalAccess', _4 => _4.label]), () => ( type.replace(/_/g, " ").replace(/\b\w/g, (ch) => ch.toUpperCase())));
|
|
29
|
-
}
|
|
30
|
-
function orderContentRefTypes(present) {
|
|
31
|
-
const presentSet = new Set(present);
|
|
32
|
-
const registeredInOrder = Object.entries(CONTENT_REF_GROUPS).sort(([, a], [, b]) => a.order - b.order).map(([type]) => type).filter((type) => presentSet.has(type));
|
|
33
|
-
const unregistered = [...presentSet].filter((type) => !CONTENT_REF_GROUPS[type]);
|
|
34
|
-
return [...registeredInOrder, ...unregistered];
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
// src/utils/suggestion-url.ts
|
|
38
|
-
function buildSuggestionUrl(path, opts = {}) {
|
|
39
|
-
const qs = new URLSearchParams();
|
|
40
|
-
const { entityType, entityId } = opts;
|
|
41
|
-
if (entityType && entityId !== void 0 && entityId !== null && entityId !== "") {
|
|
42
|
-
qs.set("entityType", entityType);
|
|
43
|
-
qs.set("entityId", String(entityId));
|
|
44
|
-
}
|
|
45
|
-
if (opts.count !== void 0) qs.set("count", String(opts.count));
|
|
46
|
-
for (const [key, value] of Object.entries(_nullishCoalesce(opts.extraParams, () => ( {})))) {
|
|
47
|
-
if (value !== void 0 && value !== "") qs.set(key, value);
|
|
48
|
-
}
|
|
49
|
-
const query = qs.toString();
|
|
50
|
-
return `${_nullishCoalesce(opts.apiBaseUrl, () => ( ""))}${path}${query ? `?${query}` : ""}`;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
9
|
// src/components/pagination.tsx
|
|
54
10
|
var _lucidereact = require('lucide-react');
|
|
55
11
|
var _react = require('react');
|
|
@@ -207,9 +163,4 @@ PaginationNext.displayName = "PaginationNext";
|
|
|
207
163
|
|
|
208
164
|
|
|
209
165
|
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
exports.CONTENT_REF_GROUPS = CONTENT_REF_GROUPS; exports.getContentRefLabel = getContentRefLabel; exports.getContentRefLabelOrTitleCase = getContentRefLabelOrTitleCase; exports.orderContentRefTypes = orderContentRefTypes; exports.buildSuggestionUrl = buildSuggestionUrl; exports.Pagination = Pagination; exports.PaginationContent = PaginationContent; exports.PaginationItem = PaginationItem; exports.PaginationLink = PaginationLink; exports.PaginationEllipsis = PaginationEllipsis; exports.PaginationPrevious = PaginationPrevious; exports.PaginationNext = PaginationNext;
|
|
166
|
+
exports.Pagination = Pagination; exports.PaginationContent = PaginationContent; exports.PaginationItem = PaginationItem; exports.PaginationLink = PaginationLink; exports.PaginationEllipsis = PaginationEllipsis; exports.PaginationPrevious = PaginationPrevious; exports.PaginationNext = PaginationNext;
|
|
@@ -0,0 +1,71 @@
|
|
|
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
|
+
|
|
5
|
+
var _chunkKHXZFLINcjs = require('./chunk-KHXZFLIN.cjs');
|
|
6
|
+
|
|
7
|
+
// src/components/product-demo/fixtures/devices.ts
|
|
8
|
+
function device(cast, demo, type, status, lastSeenMinutesAgo) {
|
|
9
|
+
const organization = cast.organization(demo.organization);
|
|
10
|
+
return {
|
|
11
|
+
id: demo.id,
|
|
12
|
+
machineId: demo.id,
|
|
13
|
+
hostname: demo.hostname,
|
|
14
|
+
nickname: void 0,
|
|
15
|
+
status,
|
|
16
|
+
type,
|
|
17
|
+
osType: demo.os,
|
|
18
|
+
last_seen: _chunkKHXZFLINcjs.demoMinutesAgo.call(void 0, lastSeenMinutesAgo),
|
|
19
|
+
organizationId: organization.id,
|
|
20
|
+
organization: organization.name,
|
|
21
|
+
organizationImageUrl: organization.logoUrl
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
function countBy(devices, pick) {
|
|
25
|
+
const counts = /* @__PURE__ */ new Map();
|
|
26
|
+
for (const row of devices) {
|
|
27
|
+
const value = pick(row);
|
|
28
|
+
if (value) counts.set(value, (_nullishCoalesce(counts.get(value), () => ( 0))) + 1);
|
|
29
|
+
}
|
|
30
|
+
return Array.from(counts, ([value, count]) => ({ value, count }));
|
|
31
|
+
}
|
|
32
|
+
function buildDevicesFixture(cast) {
|
|
33
|
+
const devices = [
|
|
34
|
+
device(cast, _chunkKHXZFLINcjs.DEMO_DEVICES.frontDesk, "laptop", "ONLINE", 2),
|
|
35
|
+
device(cast, _chunkKHXZFLINcjs.DEMO_DEVICES.reception, "desktop", "OFFLINE", 190),
|
|
36
|
+
device(cast, _chunkKHXZFLINcjs.DEMO_DEVICES.mayaAir, "laptop", "ONLINE", 1),
|
|
37
|
+
device(cast, _chunkKHXZFLINcjs.DEMO_DEVICES.buildServer, "server", "ONLINE", 1),
|
|
38
|
+
device(cast, _chunkKHXZFLINcjs.DEMO_DEVICES.leoThinkPad, "laptop", "OFFLINE", 64),
|
|
39
|
+
device(cast, _chunkKHXZFLINcjs.DEMO_DEVICES.samT14, "laptop", "ONLINE", 3),
|
|
40
|
+
device(cast, _chunkKHXZFLINcjs.DEMO_DEVICES.jenSurface, "laptop", "ONLINE", 6),
|
|
41
|
+
device(cast, _chunkKHXZFLINcjs.DEMO_DEVICES.priyaXps, "laptop", "ONLINE", 2)
|
|
42
|
+
];
|
|
43
|
+
const deviceFilters = {
|
|
44
|
+
statuses: countBy(devices, (row) => row.status),
|
|
45
|
+
deviceTypes: countBy(devices, (row) => row.type),
|
|
46
|
+
osTypes: countBy(devices, (row) => row.osType),
|
|
47
|
+
organizationIds: countBy(devices, (row) => row.organizationId).map((entry) => ({
|
|
48
|
+
...entry,
|
|
49
|
+
label: _nullishCoalesce(_optionalChain([devices, 'access', _ => _.find, 'call', _2 => _2((row) => row.organizationId === entry.value), 'optionalAccess', _3 => _3.organization]), () => ( entry.value))
|
|
50
|
+
})),
|
|
51
|
+
tagKeys: [],
|
|
52
|
+
filteredCount: devices.length
|
|
53
|
+
};
|
|
54
|
+
return { devices, deviceFilters, totalCount: devices.length };
|
|
55
|
+
}
|
|
56
|
+
var DEVICES_SEARCH_QUERY = "Windows";
|
|
57
|
+
function buildWindowsDevicesFixture(cast) {
|
|
58
|
+
const fleet = buildDevicesFixture(cast);
|
|
59
|
+
const devices = fleet.devices.filter((row) => row.osType === "WINDOWS");
|
|
60
|
+
return {
|
|
61
|
+
devices,
|
|
62
|
+
deviceFilters: { ...fleet.deviceFilters, filteredCount: devices.length },
|
|
63
|
+
totalCount: devices.length
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
exports.buildDevicesFixture = buildDevicesFixture; exports.DEVICES_SEARCH_QUERY = DEVICES_SEARCH_QUERY; exports.buildWindowsDevicesFixture = buildWindowsDevicesFixture;
|