@flightctl/ui-components 0.0.3 → 0.0.5
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/__mocks__/fileMock.d.ts +3 -0
- package/dist/__mocks__/fileMock.d.ts.map +1 -0
- package/dist/__mocks__/styleMock.d.ts +2 -0
- package/dist/__mocks__/styleMock.d.ts.map +1 -0
- package/dist/jest.config.d.ts +12 -0
- package/dist/jest.config.d.ts.map +1 -0
- package/dist/src/components/DetailsPage/DetailsNotFound.d.ts +8 -0
- package/dist/src/components/DetailsPage/DetailsNotFound.d.ts.map +1 -0
- package/dist/src/components/DetailsPage/DetailsPage.d.ts +18 -0
- package/dist/src/components/DetailsPage/DetailsPage.d.ts.map +1 -0
- package/dist/src/components/DetailsPage/DetailsPage.spec.d.ts +2 -0
- package/dist/src/components/DetailsPage/DetailsPage.spec.d.ts.map +1 -0
- package/dist/src/components/DetailsPage/DetailsPageActions.d.ts +17 -0
- package/dist/src/components/DetailsPage/DetailsPageActions.d.ts.map +1 -0
- package/dist/src/components/DetailsPage/DetailsPageCard.d.ts +7 -0
- package/dist/src/components/DetailsPage/DetailsPageCard.d.ts.map +1 -0
- package/dist/src/components/DetailsPage/Tables/ApplicationsTable.d.ts +8 -0
- package/dist/src/components/DetailsPage/Tables/ApplicationsTable.d.ts.map +1 -0
- package/dist/src/components/DetailsPage/Tables/ApplicationsTable.js +2 -3
- package/dist/src/components/DetailsPage/Tables/ApplicationsTable.js.map +1 -1
- package/dist/src/components/DetailsPage/Tables/ConditionsTable.d.ts +9 -0
- package/dist/src/components/DetailsPage/Tables/ConditionsTable.d.ts.map +1 -0
- package/dist/src/components/DetailsPage/Tables/IntegrityDetails.d.ts +8 -0
- package/dist/src/components/DetailsPage/Tables/IntegrityDetails.d.ts.map +1 -0
- package/dist/src/components/DetailsPage/Tables/IntegrityDetails.js +2 -1
- package/dist/src/components/DetailsPage/Tables/IntegrityDetails.js.map +1 -1
- package/dist/src/components/DetailsPage/Tables/SystemdDetailsTable.d.ts +12 -0
- package/dist/src/components/DetailsPage/Tables/SystemdDetailsTable.d.ts.map +1 -0
- package/dist/src/components/Device/AddDeviceModal/AddDeviceModal.d.ts +6 -0
- package/dist/src/components/Device/AddDeviceModal/AddDeviceModal.d.ts.map +1 -0
- package/dist/src/components/Device/DeviceDetails/DeviceDetailsPage.d.ts +4 -0
- package/dist/src/components/Device/DeviceDetails/DeviceDetailsPage.d.ts.map +1 -0
- package/dist/src/components/Device/DeviceDetails/DeviceDetailsPage.js +10 -1
- package/dist/src/components/Device/DeviceDetails/DeviceDetailsPage.js.map +1 -1
- package/dist/src/components/Device/DeviceDetails/DeviceDetailsTab.d.ts +12 -0
- package/dist/src/components/Device/DeviceDetails/DeviceDetailsTab.d.ts.map +1 -0
- package/dist/src/components/Device/DeviceDetails/DeviceDetailsTab.js +24 -22
- package/dist/src/components/Device/DeviceDetails/DeviceDetailsTab.js.map +1 -1
- package/dist/src/components/Device/DeviceDetails/DeviceFleet.d.ts +8 -0
- package/dist/src/components/Device/DeviceDetails/DeviceFleet.d.ts.map +1 -0
- package/dist/src/components/Device/DeviceDetails/DeviceFleet.js +3 -3
- package/dist/src/components/Device/DeviceDetails/DeviceFleet.js.map +1 -1
- package/dist/src/components/Device/DeviceDetails/DeviceOs.d.ts +7 -0
- package/dist/src/components/Device/DeviceDetails/DeviceOs.d.ts.map +1 -0
- package/dist/src/components/Device/DeviceDetails/DeviceOs.js +24 -0
- package/dist/src/components/Device/DeviceDetails/DeviceOs.js.map +1 -0
- package/dist/src/components/Device/DeviceDetails/DeviceStatusDebugModal.d.ts +9 -0
- package/dist/src/components/Device/DeviceDetails/DeviceStatusDebugModal.d.ts.map +1 -0
- package/dist/src/components/Device/DeviceDetails/SystemdTable.d.ts +10 -0
- package/dist/src/components/Device/DeviceDetails/SystemdTable.d.ts.map +1 -0
- package/dist/src/components/Device/DeviceDetails/TerminalTab.d.ts +7 -0
- package/dist/src/components/Device/DeviceDetails/TerminalTab.d.ts.map +1 -0
- package/dist/src/components/Device/DevicesPage/DeviceFilterSelect.d.ts +17 -0
- package/dist/src/components/Device/DevicesPage/DeviceFilterSelect.d.ts.map +1 -0
- package/dist/src/components/Device/DevicesPage/DeviceFilterSelect.js +61 -0
- package/dist/src/components/Device/DevicesPage/DeviceFilterSelect.js.map +1 -0
- package/dist/src/components/Device/DevicesPage/DeviceTableRow.d.ts +14 -0
- package/dist/src/components/Device/DevicesPage/DeviceTableRow.d.ts.map +1 -0
- package/dist/src/components/Device/{DeviceList → DevicesPage}/DeviceTableRow.js +1 -1
- package/dist/src/components/Device/DevicesPage/DeviceTableRow.js.map +1 -0
- package/dist/src/components/Device/DevicesPage/DeviceTableToolbar.d.ts +21 -0
- package/dist/src/components/Device/DevicesPage/DeviceTableToolbar.d.ts.map +1 -0
- package/dist/src/components/Device/{DeviceList → DevicesPage}/DeviceTableToolbar.js +5 -6
- package/dist/src/components/Device/DevicesPage/DeviceTableToolbar.js.map +1 -0
- package/dist/src/components/Device/DevicesPage/DeviceToolbarFilters.css +16 -0
- package/dist/src/components/Device/DevicesPage/DeviceToolbarFilters.d.ts +18 -0
- package/dist/src/components/Device/DevicesPage/DeviceToolbarFilters.d.ts.map +1 -0
- package/dist/src/components/Device/DevicesPage/DeviceToolbarFilters.js +127 -0
- package/dist/src/components/Device/DevicesPage/DeviceToolbarFilters.js.map +1 -0
- package/dist/src/components/Device/DevicesPage/DevicesPage.d.ts +22 -0
- package/dist/src/components/Device/DevicesPage/DevicesPage.d.ts.map +1 -0
- package/dist/src/components/Device/{DeviceList/DeviceList.js → DevicesPage/DevicesPage.js} +20 -47
- package/dist/src/components/Device/DevicesPage/DevicesPage.js.map +1 -0
- package/dist/src/components/Device/DevicesPage/EnrollmentRequestList.d.ts +13 -0
- package/dist/src/components/Device/DevicesPage/EnrollmentRequestList.d.ts.map +1 -0
- package/dist/src/components/Device/DevicesPage/EnrollmentRequestList.js +104 -0
- package/dist/src/components/Device/DevicesPage/EnrollmentRequestList.js.map +1 -0
- package/dist/src/components/Device/DevicesPage/EnrollmentRequestTableToolbar.d.ts +11 -0
- package/dist/src/components/Device/DevicesPage/EnrollmentRequestTableToolbar.d.ts.map +1 -0
- package/dist/src/components/Device/DevicesPage/EnrollmentRequestTableToolbar.js +18 -0
- package/dist/src/components/Device/DevicesPage/EnrollmentRequestTableToolbar.js.map +1 -0
- package/dist/src/components/Device/DevicesPage/types.d.ts +18 -0
- package/dist/src/components/Device/DevicesPage/types.d.ts.map +1 -0
- package/dist/src/components/Device/DevicesPage/types.js.map +1 -0
- package/dist/src/components/Device/DevicesPage/useDeviceBackendFilters.d.ts +12 -0
- package/dist/src/components/Device/DevicesPage/useDeviceBackendFilters.d.ts.map +1 -0
- package/dist/src/components/Device/{DeviceList → DevicesPage}/useDeviceBackendFilters.js +1 -1
- package/dist/src/components/Device/DevicesPage/useDeviceBackendFilters.js.map +1 -0
- package/dist/src/components/Device/DevicesPage/useDeviceFilters.d.ts +8 -0
- package/dist/src/components/Device/DevicesPage/useDeviceFilters.d.ts.map +1 -0
- package/dist/src/components/Device/{DeviceList → DevicesPage}/useDeviceFilters.js +3 -3
- package/dist/src/components/Device/DevicesPage/useDeviceFilters.js.map +1 -0
- package/dist/src/components/Device/DevicesPage/useDevices.d.ts +21 -0
- package/dist/src/components/Device/DevicesPage/useDevices.d.ts.map +1 -0
- package/dist/src/components/Device/DevicesPage/useDevices.js +83 -0
- package/dist/src/components/Device/DevicesPage/useDevices.js.map +1 -0
- package/dist/src/components/Device/EditDeviceWizard/EditDeviceWizard.d.ts +5 -0
- package/dist/src/components/Device/EditDeviceWizard/EditDeviceWizard.d.ts.map +1 -0
- package/dist/src/components/Device/EditDeviceWizard/EditDeviceWizard.js +1 -0
- package/dist/src/components/Device/EditDeviceWizard/EditDeviceWizard.js.map +1 -1
- package/dist/src/components/Device/EditDeviceWizard/EditDeviceWizardFooter.d.ts +4 -0
- package/dist/src/components/Device/EditDeviceWizard/EditDeviceWizardFooter.d.ts.map +1 -0
- package/dist/src/components/Device/EditDeviceWizard/EditDeviceWizardNav.d.ts +4 -0
- package/dist/src/components/Device/EditDeviceWizard/EditDeviceWizardNav.d.ts.map +1 -0
- package/dist/src/components/Device/EditDeviceWizard/deviceSpecUtils.d.ts +10 -0
- package/dist/src/components/Device/EditDeviceWizard/deviceSpecUtils.d.ts.map +1 -0
- package/dist/src/components/Device/EditDeviceWizard/deviceSpecUtils.js +87 -21
- package/dist/src/components/Device/EditDeviceWizard/deviceSpecUtils.js.map +1 -1
- package/dist/src/components/Device/EditDeviceWizard/steps/ApplicationsForm.css +4 -0
- package/dist/src/components/Device/EditDeviceWizard/steps/ApplicationsForm.d.ts +5 -0
- package/dist/src/components/Device/EditDeviceWizard/steps/ApplicationsForm.d.ts.map +1 -0
- package/dist/src/components/Device/EditDeviceWizard/steps/ApplicationsForm.js +61 -0
- package/dist/src/components/Device/EditDeviceWizard/steps/ApplicationsForm.js.map +1 -0
- package/dist/src/components/Device/EditDeviceWizard/steps/ConfigInlineTemplateForm.d.ts +7 -0
- package/dist/src/components/Device/EditDeviceWizard/steps/ConfigInlineTemplateForm.d.ts.map +1 -0
- package/dist/src/components/Device/EditDeviceWizard/steps/ConfigInlineTemplateForm.js +88 -4
- package/dist/src/components/Device/EditDeviceWizard/steps/ConfigInlineTemplateForm.js.map +1 -1
- package/dist/src/components/Device/EditDeviceWizard/steps/ConfigK8sSecretTemplateForm.d.ts +7 -0
- package/dist/src/components/Device/EditDeviceWizard/steps/ConfigK8sSecretTemplateForm.d.ts.map +1 -0
- package/dist/src/components/Device/EditDeviceWizard/steps/ConfigK8sSecretTemplateForm.js +3 -3
- package/dist/src/components/Device/EditDeviceWizard/steps/ConfigK8sSecretTemplateForm.js.map +1 -1
- package/dist/src/components/Device/EditDeviceWizard/steps/ConfigTemplateForm.d.ts +4 -0
- package/dist/src/components/Device/EditDeviceWizard/steps/ConfigTemplateForm.d.ts.map +1 -0
- package/dist/src/components/Device/EditDeviceWizard/steps/ConfigTemplateForm.js +26 -31
- package/dist/src/components/Device/EditDeviceWizard/steps/ConfigTemplateForm.js.map +1 -1
- package/dist/src/components/Device/EditDeviceWizard/steps/ConfigWithRepositoryTemplateForm.d.ts +11 -0
- package/dist/src/components/Device/EditDeviceWizard/steps/ConfigWithRepositoryTemplateForm.d.ts.map +1 -0
- package/dist/src/components/Device/EditDeviceWizard/steps/DeviceTemplateStep.d.ts +10 -0
- package/dist/src/components/Device/EditDeviceWizard/steps/DeviceTemplateStep.d.ts.map +1 -0
- package/dist/src/components/Device/EditDeviceWizard/steps/DeviceTemplateStep.js +14 -12
- package/dist/src/components/Device/EditDeviceWizard/steps/DeviceTemplateStep.js.map +1 -1
- package/dist/src/components/Device/EditDeviceWizard/steps/GeneralInfoStep.d.ts +8 -0
- package/dist/src/components/Device/EditDeviceWizard/steps/GeneralInfoStep.d.ts.map +1 -0
- package/dist/src/components/Device/EditDeviceWizard/steps/ReviewApplications.d.ts +7 -0
- package/dist/src/components/Device/EditDeviceWizard/steps/ReviewApplications.d.ts.map +1 -0
- package/dist/src/components/Device/EditDeviceWizard/steps/ReviewApplications.js +26 -0
- package/dist/src/components/Device/EditDeviceWizard/steps/ReviewApplications.js.map +1 -0
- package/dist/src/components/Device/EditDeviceWizard/steps/ReviewDeviceStep.d.ts +7 -0
- package/dist/src/components/Device/EditDeviceWizard/steps/ReviewDeviceStep.d.ts.map +1 -0
- package/dist/src/components/Device/EditDeviceWizard/steps/ReviewDeviceStep.js +9 -4
- package/dist/src/components/Device/EditDeviceWizard/steps/ReviewDeviceStep.js.map +1 -1
- package/dist/src/components/Device/EditDeviceWizard/types.d.ts +20 -0
- package/dist/src/components/Device/EditDeviceWizard/types.d.ts.map +1 -0
- package/dist/src/components/Device/EditDeviceWizard/useEditDevice.d.ts +3 -0
- package/dist/src/components/Device/EditDeviceWizard/useEditDevice.d.ts.map +1 -0
- package/dist/src/components/Device/EditDeviceWizard/utils.d.ts +44 -0
- package/dist/src/components/Device/EditDeviceWizard/utils.d.ts.map +1 -0
- package/dist/src/components/Device/EditDeviceWizard/utils.js +6 -4
- package/dist/src/components/Device/EditDeviceWizard/utils.js.map +1 -1
- package/dist/src/components/Device/MatchPatternsModal/MatchPatternsForm.d.ts +11 -0
- package/dist/src/components/Device/MatchPatternsModal/MatchPatternsForm.d.ts.map +1 -0
- package/dist/src/components/Device/MatchPatternsModal/MatchPatternsModal.d.ts +17 -0
- package/dist/src/components/Device/MatchPatternsModal/MatchPatternsModal.d.ts.map +1 -0
- package/dist/src/components/EnrollmentRequest/EnrollmentRequestDetails/EnrollmentRequestDetails.d.ts +5 -0
- package/dist/src/components/EnrollmentRequest/EnrollmentRequestDetails/EnrollmentRequestDetails.d.ts.map +1 -0
- package/dist/src/components/EnrollmentRequest/EnrollmentRequestDetails/EnrollmentRequestDetails.js +2 -1
- package/dist/src/components/EnrollmentRequest/EnrollmentRequestDetails/EnrollmentRequestDetails.js.map +1 -1
- package/dist/src/components/EnrollmentRequest/EnrollmentRequestTableRow.d.ts +15 -0
- package/dist/src/components/EnrollmentRequest/EnrollmentRequestTableRow.d.ts.map +1 -0
- package/dist/src/components/EnrollmentRequest/EnrollmentRequestTableRow.js +9 -13
- package/dist/src/components/EnrollmentRequest/EnrollmentRequestTableRow.js.map +1 -1
- package/dist/src/components/ErrorAlert/ErrorAlert.d.ts +6 -0
- package/dist/src/components/ErrorAlert/ErrorAlert.d.ts.map +1 -0
- package/dist/src/components/Fleet/CreateFleet/CreateFleetWizard.d.ts +5 -0
- package/dist/src/components/Fleet/CreateFleet/CreateFleetWizard.d.ts.map +1 -0
- package/dist/src/components/Fleet/CreateFleet/CreateFleetWizardFooter.d.ts +7 -0
- package/dist/src/components/Fleet/CreateFleet/CreateFleetWizardFooter.d.ts.map +1 -0
- package/dist/src/components/Fleet/CreateFleet/steps/DeviceLabelSelector.d.ts +4 -0
- package/dist/src/components/Fleet/CreateFleet/steps/DeviceLabelSelector.d.ts.map +1 -0
- package/dist/src/components/Fleet/CreateFleet/steps/DeviceLabelSelector.js +4 -5
- package/dist/src/components/Fleet/CreateFleet/steps/DeviceLabelSelector.js.map +1 -1
- package/dist/src/components/Fleet/CreateFleet/steps/GeneralInfoStep.d.ts +10 -0
- package/dist/src/components/Fleet/CreateFleet/steps/GeneralInfoStep.d.ts.map +1 -0
- package/dist/src/components/Fleet/CreateFleet/steps/ReviewStep.d.ts +7 -0
- package/dist/src/components/Fleet/CreateFleet/steps/ReviewStep.d.ts.map +1 -0
- package/dist/src/components/Fleet/CreateFleet/steps/ReviewStep.js +11 -6
- package/dist/src/components/Fleet/CreateFleet/steps/ReviewStep.js.map +1 -1
- package/dist/src/components/Fleet/CreateFleet/types.d.ts +8 -0
- package/dist/src/components/Fleet/CreateFleet/types.d.ts.map +1 -0
- package/dist/src/components/Fleet/CreateFleet/useEditFleet.d.ts +3 -0
- package/dist/src/components/Fleet/CreateFleet/useEditFleet.d.ts.map +1 -0
- package/dist/src/components/Fleet/CreateFleet/utils.d.ts +9 -0
- package/dist/src/components/Fleet/CreateFleet/utils.d.ts.map +1 -0
- package/dist/src/components/Fleet/CreateFleet/utils.js +8 -3
- package/dist/src/components/Fleet/CreateFleet/utils.js.map +1 -1
- package/dist/src/components/Fleet/DeleteFleetModal/DeleteFleetModal.d.ts +7 -0
- package/dist/src/components/Fleet/DeleteFleetModal/DeleteFleetModal.d.ts.map +1 -0
- package/dist/src/components/Fleet/FleetDetails/FleetDetails.d.ts +4 -0
- package/dist/src/components/Fleet/FleetDetails/FleetDetails.d.ts.map +1 -0
- package/dist/src/components/Fleet/FleetDetails/FleetDetailsContent.d.ts +7 -0
- package/dist/src/components/Fleet/FleetDetails/FleetDetailsContent.d.ts.map +1 -0
- package/dist/src/components/Fleet/FleetDetails/FleetDetailsContent.js +10 -20
- package/dist/src/components/Fleet/FleetDetails/FleetDetailsContent.js.map +1 -1
- package/dist/src/components/Fleet/FleetDetails/FleetDevices.d.ts +9 -0
- package/dist/src/components/Fleet/FleetDetails/FleetDevices.d.ts.map +1 -0
- package/dist/src/components/Fleet/FleetDetails/FleetDevices.js +18 -12
- package/dist/src/components/Fleet/FleetDetails/FleetDevices.js.map +1 -1
- package/dist/src/components/Fleet/FleetDetails/FleetDevicesLink.d.ts +7 -0
- package/dist/src/components/Fleet/FleetDetails/FleetDevicesLink.d.ts.map +1 -0
- package/dist/src/components/Fleet/FleetDetails/FleetDevicesLink.js +13 -0
- package/dist/src/components/Fleet/FleetDetails/FleetDevicesLink.js.map +1 -0
- package/dist/src/components/Fleet/FleetDetails/FleetOwnerLink.d.ts +13 -0
- package/dist/src/components/Fleet/FleetDetails/FleetOwnerLink.d.ts.map +1 -0
- package/dist/src/components/Fleet/FleetDetails/FleetOwnerLink.js +1 -0
- package/dist/src/components/Fleet/FleetDetails/FleetOwnerLink.js.map +1 -1
- package/dist/src/components/Fleet/FleetResourceSyncs.d.ts +7 -0
- package/dist/src/components/Fleet/FleetResourceSyncs.d.ts.map +1 -0
- package/dist/src/components/Fleet/FleetResourceSyncs.js +115 -0
- package/dist/src/components/Fleet/FleetResourceSyncs.js.map +1 -0
- package/dist/src/components/Fleet/FleetRow.d.ts +13 -0
- package/dist/src/components/Fleet/FleetRow.d.ts.map +1 -0
- package/dist/src/components/Fleet/FleetRow.js +5 -5
- package/dist/src/components/Fleet/FleetRow.js.map +1 -1
- package/dist/src/components/Fleet/FleetStatus.d.ts +7 -0
- package/dist/src/components/Fleet/FleetStatus.d.ts.map +1 -0
- package/dist/src/components/Fleet/FleetsPage.d.ts +4 -0
- package/dist/src/components/Fleet/FleetsPage.d.ts.map +1 -0
- package/dist/src/components/Fleet/{FleetList.js → FleetsPage.js} +28 -42
- package/dist/src/components/Fleet/FleetsPage.js.map +1 -0
- package/dist/src/components/Fleet/ImportFleetWizard/ImportFleetWizard.d.ts +5 -0
- package/dist/src/components/Fleet/ImportFleetWizard/ImportFleetWizard.d.ts.map +1 -0
- package/dist/src/components/Fleet/ImportFleetWizard/steps/RepositoryStep.d.ts +12 -0
- package/dist/src/components/Fleet/ImportFleetWizard/steps/RepositoryStep.d.ts.map +1 -0
- package/dist/src/components/Fleet/ImportFleetWizard/steps/RepositoryStep.js +1 -1
- package/dist/src/components/Fleet/ImportFleetWizard/steps/RepositoryStep.js.map +1 -1
- package/dist/src/components/Fleet/ImportFleetWizard/steps/ResourceSyncStep.d.ts +8 -0
- package/dist/src/components/Fleet/ImportFleetWizard/steps/ResourceSyncStep.d.ts.map +1 -0
- package/dist/src/components/Fleet/ImportFleetWizard/steps/ReviewStep.d.ts +7 -0
- package/dist/src/components/Fleet/ImportFleetWizard/steps/ReviewStep.d.ts.map +1 -0
- package/dist/src/components/Fleet/ImportFleetWizard/types.d.ts +6 -0
- package/dist/src/components/Fleet/ImportFleetWizard/types.d.ts.map +1 -0
- package/dist/src/components/ListPage/ListPage.d.ts +10 -0
- package/dist/src/components/ListPage/ListPage.d.ts.map +1 -0
- package/dist/src/components/ListPage/ListPage.js +2 -2
- package/dist/src/components/ListPage/ListPage.js.map +1 -1
- package/dist/src/components/ListPage/ListPageActions.d.ts +17 -0
- package/dist/src/components/ListPage/ListPageActions.d.ts.map +1 -0
- package/dist/src/components/ListPage/ListPageActions.js +13 -2
- package/dist/src/components/ListPage/ListPageActions.js.map +1 -1
- package/dist/src/components/ListPage/ListPageBody.d.ts +9 -0
- package/dist/src/components/ListPage/ListPageBody.d.ts.map +1 -0
- package/dist/src/components/ListPage/types.d.ts +16 -0
- package/dist/src/components/ListPage/types.d.ts.map +1 -0
- package/dist/src/components/NavItem/NavItem.d.ts +8 -0
- package/dist/src/components/NavItem/NavItem.d.ts.map +1 -0
- package/dist/src/components/OverviewPage/Cards/Status/ApplicationStatusChart.d.ts +9 -0
- package/dist/src/components/OverviewPage/Cards/Status/ApplicationStatusChart.d.ts.map +1 -0
- package/dist/src/components/OverviewPage/Cards/Status/ApplicationStatusChart.js +5 -17
- package/dist/src/components/OverviewPage/Cards/Status/ApplicationStatusChart.js.map +1 -1
- package/dist/src/components/OverviewPage/Cards/Status/DeviceStatusChart.d.ts +9 -0
- package/dist/src/components/OverviewPage/Cards/Status/DeviceStatusChart.d.ts.map +1 -0
- package/dist/src/components/OverviewPage/Cards/Status/DeviceStatusChart.js +7 -20
- package/dist/src/components/OverviewPage/Cards/Status/DeviceStatusChart.js.map +1 -1
- package/dist/src/components/OverviewPage/Cards/Status/StatusCard.d.ts +4 -0
- package/dist/src/components/OverviewPage/Cards/Status/StatusCard.d.ts.map +1 -0
- package/dist/src/components/OverviewPage/Cards/Status/StatusCard.js +11 -10
- package/dist/src/components/OverviewPage/Cards/Status/StatusCard.js.map +1 -1
- package/dist/src/components/OverviewPage/Cards/Status/StatusCardFilters.d.ts +14 -0
- package/dist/src/components/OverviewPage/Cards/Status/StatusCardFilters.d.ts.map +1 -0
- package/dist/src/components/OverviewPage/Cards/Status/StatusCardFilters.js +22 -51
- package/dist/src/components/OverviewPage/Cards/Status/StatusCardFilters.js.map +1 -1
- package/dist/src/components/OverviewPage/Cards/Status/SystemUpdateStatusChart.d.ts +9 -0
- package/dist/src/components/OverviewPage/Cards/Status/SystemUpdateStatusChart.d.ts.map +1 -0
- package/dist/src/components/OverviewPage/Cards/Status/SystemUpdateStatusChart.js +5 -17
- package/dist/src/components/OverviewPage/Cards/Status/SystemUpdateStatusChart.js.map +1 -1
- package/dist/src/components/OverviewPage/Cards/Status/utils.d.ts +15 -0
- package/dist/src/components/OverviewPage/Cards/Status/utils.d.ts.map +1 -0
- package/dist/src/components/OverviewPage/Cards/Status/utils.js +9 -26
- package/dist/src/components/OverviewPage/Cards/Status/utils.js.map +1 -1
- package/dist/src/components/OverviewPage/Cards/ToDo/ToDoCard.d.ts +4 -0
- package/dist/src/components/OverviewPage/Cards/ToDo/ToDoCard.d.ts.map +1 -0
- package/dist/src/components/OverviewPage/Cards/ToDo/ToDoCard.js +2 -3
- package/dist/src/components/OverviewPage/Cards/ToDo/ToDoCard.js.map +1 -1
- package/dist/src/components/OverviewPage/Overview.d.ts +4 -0
- package/dist/src/components/OverviewPage/Overview.d.ts.map +1 -0
- package/dist/src/components/OverviewPage/OverviewPage.d.ts +4 -0
- package/dist/src/components/OverviewPage/OverviewPage.d.ts.map +1 -0
- package/dist/src/components/Repository/CreateRepository/CreateRepository.d.ts +4 -0
- package/dist/src/components/Repository/CreateRepository/CreateRepository.d.ts.map +1 -0
- package/dist/src/components/Repository/CreateRepository/CreateRepositoryForm.d.ts +21 -0
- package/dist/src/components/Repository/CreateRepository/CreateRepositoryForm.d.ts.map +1 -0
- package/dist/src/components/Repository/CreateRepository/CreateRepositoryForm.js +8 -1
- package/dist/src/components/Repository/CreateRepository/CreateRepositoryForm.js.map +1 -1
- package/dist/src/components/Repository/CreateRepository/CreateResourceSyncsForm.d.ts +9 -0
- package/dist/src/components/Repository/CreateRepository/CreateResourceSyncsForm.d.ts.map +1 -0
- package/dist/src/components/Repository/CreateRepository/CreateResourceSyncsForm.js +18 -11
- package/dist/src/components/Repository/CreateRepository/CreateResourceSyncsForm.js.map +1 -1
- package/dist/src/components/Repository/CreateRepository/types.d.ts +42 -0
- package/dist/src/components/Repository/CreateRepository/types.d.ts.map +1 -0
- package/dist/src/components/Repository/CreateRepository/utils.d.ts +75 -0
- package/dist/src/components/Repository/CreateRepository/utils.d.ts.map +1 -0
- package/dist/src/components/Repository/CreateRepository/utils.js +40 -7
- package/dist/src/components/Repository/CreateRepository/utils.js.map +1 -1
- package/dist/src/components/Repository/RepositoryDetails/DeleteRepositoryModal.d.ts +9 -0
- package/dist/src/components/Repository/RepositoryDetails/DeleteRepositoryModal.d.ts.map +1 -0
- package/dist/src/components/Repository/RepositoryDetails/RepositoryDetails.d.ts +4 -0
- package/dist/src/components/Repository/RepositoryDetails/RepositoryDetails.d.ts.map +1 -0
- package/dist/src/components/Repository/RepositoryDetails/RepositoryDetails.js +3 -2
- package/dist/src/components/Repository/RepositoryDetails/RepositoryDetails.js.map +1 -1
- package/dist/src/components/Repository/RepositoryDetails/RepositoryGeneralDetailsCard.d.ts +7 -0
- package/dist/src/components/Repository/RepositoryDetails/RepositoryGeneralDetailsCard.d.ts.map +1 -0
- package/dist/src/components/Repository/RepositoryDetails/RepositoryGeneralDetailsCard.js +14 -13
- package/dist/src/components/Repository/RepositoryDetails/RepositoryGeneralDetailsCard.js.map +1 -1
- package/dist/src/components/Repository/RepositoryDetails/RepositoryResourceSyncsCard.d.ts +6 -0
- package/dist/src/components/Repository/RepositoryDetails/RepositoryResourceSyncsCard.d.ts.map +1 -0
- package/dist/src/components/Repository/RepositoryDetails/RepositorySource.d.ts +22 -0
- package/dist/src/components/Repository/RepositoryDetails/RepositorySource.d.ts.map +1 -0
- package/dist/src/components/Repository/RepositoryDetails/RepositorySource.js +43 -11
- package/dist/src/components/Repository/RepositoryDetails/RepositorySource.js.map +1 -1
- package/dist/src/components/Repository/RepositoryDetails/RepositorySourceList.d.ts +7 -0
- package/dist/src/components/Repository/RepositoryDetails/RepositorySourceList.d.ts.map +1 -0
- package/dist/src/components/Repository/RepositoryDetails/RepositorySourceList.js +30 -33
- package/dist/src/components/Repository/RepositoryDetails/RepositorySourceList.js.map +1 -1
- package/dist/src/components/Repository/RepositoryList.d.ts +5 -0
- package/dist/src/components/Repository/RepositoryList.d.ts.map +1 -0
- package/dist/src/components/Repository/RepositoryList.js +3 -3
- package/dist/src/components/Repository/RepositoryList.js.map +1 -1
- package/dist/src/components/ResourceSync/RepositoryResourceSyncList.css +7 -0
- package/dist/src/components/ResourceSync/RepositoryResourceSyncList.d.ts +7 -0
- package/dist/src/components/ResourceSync/RepositoryResourceSyncList.d.ts.map +1 -0
- package/dist/src/components/ResourceSync/RepositoryResourceSyncList.js +72 -25
- package/dist/src/components/ResourceSync/RepositoryResourceSyncList.js.map +1 -1
- package/dist/src/components/ResourceSync/ResourceSyncStatus.d.ts +9 -0
- package/dist/src/components/ResourceSync/ResourceSyncStatus.d.ts.map +1 -0
- package/dist/src/components/ResourceSync/ResourceSyncStatus.js +9 -18
- package/dist/src/components/ResourceSync/ResourceSyncStatus.js.map +1 -1
- package/dist/src/components/ResourceSync/ResourceSyncToRepository.d.ts +4 -0
- package/dist/src/components/ResourceSync/ResourceSyncToRepository.d.ts.map +1 -0
- package/dist/src/components/Status/ApplicationStatus.d.ts +13 -0
- package/dist/src/components/Status/ApplicationStatus.d.ts.map +1 -0
- package/dist/src/components/Status/ApplicationSummaryStatus.d.ts +13 -0
- package/dist/src/components/Status/ApplicationSummaryStatus.d.ts.map +1 -0
- package/dist/src/components/Status/ApplicationSummaryStatus.js.map +1 -1
- package/dist/src/components/Status/DeviceResourceStatus.d.ts +9 -0
- package/dist/src/components/Status/DeviceResourceStatus.d.ts.map +1 -0
- package/dist/src/components/Status/DeviceStatus.d.ts +7 -0
- package/dist/src/components/Status/DeviceStatus.d.ts.map +1 -0
- package/dist/src/components/Status/EnrollmentRequestStatus.d.ts +7 -0
- package/dist/src/components/Status/EnrollmentRequestStatus.d.ts.map +1 -0
- package/dist/src/components/Status/IntegrityStatus.d.ts +7 -0
- package/dist/src/components/Status/IntegrityStatus.d.ts.map +1 -0
- package/dist/src/components/Status/RepositoryStatus.d.ts +10 -0
- package/dist/src/components/Status/RepositoryStatus.d.ts.map +1 -0
- package/dist/src/components/Status/StatusDisplay.css +3 -0
- package/dist/src/components/Status/StatusDisplay.d.ts +23 -0
- package/dist/src/components/Status/StatusDisplay.d.ts.map +1 -0
- package/dist/src/components/Status/SystemUpdateStatus.d.ts +7 -0
- package/dist/src/components/Status/SystemUpdateStatus.d.ts.map +1 -0
- package/dist/src/components/Status/SystemdStatus.d.ts +6 -0
- package/dist/src/components/Status/SystemdStatus.d.ts.map +1 -0
- package/dist/src/components/Status/utils.d.ts +5 -0
- package/dist/src/components/Status/utils.d.ts.map +1 -0
- package/dist/src/components/Table/Table.d.ts +25 -0
- package/dist/src/components/Table/Table.d.ts.map +1 -0
- package/dist/src/components/Table/TableActions.d.ts +7 -0
- package/dist/src/components/Table/TableActions.d.ts.map +1 -0
- package/dist/src/components/Table/TableActions.js +3 -3
- package/dist/src/components/Table/TableActions.js.map +1 -1
- package/dist/src/components/Table/TableTextSearch.d.ts +9 -0
- package/dist/src/components/Table/TableTextSearch.d.ts.map +1 -0
- package/dist/src/components/Table/TableTextSearch.js +2 -4
- package/dist/src/components/Table/TableTextSearch.js.map +1 -1
- package/dist/src/components/Terminal/Terminal.d.ts +15 -0
- package/dist/src/components/Terminal/Terminal.d.ts.map +1 -0
- package/dist/src/components/UserPreferences/UserPreferencesModal.d.ts +7 -0
- package/dist/src/components/UserPreferences/UserPreferencesModal.d.ts.map +1 -0
- package/dist/src/components/UserPreferences/UserPreferencesProvider.d.ts +11 -0
- package/dist/src/components/UserPreferences/UserPreferencesProvider.d.ts.map +1 -0
- package/dist/src/components/charts/DonutChart.d.ts +17 -0
- package/dist/src/components/charts/DonutChart.d.ts.map +1 -0
- package/dist/src/components/charts/utils.d.ts +15 -0
- package/dist/src/components/charts/utils.d.ts.map +1 -0
- package/dist/src/components/charts/utils.js +30 -0
- package/dist/src/components/charts/utils.js.map +1 -0
- package/dist/src/components/common/CopyButton.d.ts +10 -0
- package/dist/src/components/common/CopyButton.d.ts.map +1 -0
- package/dist/src/components/common/CopyButton.js +3 -3
- package/dist/src/components/common/CopyButton.js.map +1 -1
- package/dist/src/components/common/EditableLabelControl.d.ts +10 -0
- package/dist/src/components/common/EditableLabelControl.d.ts.map +1 -0
- package/dist/src/components/common/ErrorBoundary.d.ts +9 -0
- package/dist/src/components/common/ErrorBoundary.d.ts.map +1 -0
- package/dist/src/components/common/FlightCtlDescriptionList.d.ts +5 -0
- package/dist/src/components/common/FlightCtlDescriptionList.d.ts.map +1 -0
- package/dist/src/components/common/FlightCtlDescriptionList.js +13 -0
- package/dist/src/components/common/FlightCtlDescriptionList.js.map +1 -0
- package/dist/src/components/common/HelperTextItems.d.ts +3 -0
- package/dist/src/components/common/HelperTextItems.d.ts.map +1 -0
- package/dist/src/components/common/HelperTextItems.js +1 -9
- package/dist/src/components/common/HelperTextItems.js.map +1 -1
- package/dist/src/components/common/LabelsView.d.ts +10 -0
- package/dist/src/components/common/LabelsView.d.ts.map +1 -0
- package/dist/src/components/common/LeaveFormConfirmation.d.ts +4 -0
- package/dist/src/components/common/LeaveFormConfirmation.d.ts.map +1 -0
- package/dist/src/components/common/LeaveFormConfirmation.js +4 -1
- package/dist/src/components/common/LeaveFormConfirmation.js.map +1 -1
- package/dist/src/components/common/ResourceLink.d.ts +13 -0
- package/dist/src/components/common/ResourceLink.d.ts.map +1 -0
- package/dist/src/components/common/ResourceListEmptyState.d.ts +8 -0
- package/dist/src/components/common/ResourceListEmptyState.d.ts.map +1 -0
- package/dist/src/components/common/WithHelperText.d.ts +11 -0
- package/dist/src/components/common/WithHelperText.d.ts.map +1 -0
- package/dist/src/components/common/WithTooltip.d.ts +10 -0
- package/dist/src/components/common/WithTooltip.d.ts.map +1 -0
- package/dist/src/components/form/CheckboxField.d.ts +10 -0
- package/dist/src/components/form/CheckboxField.d.ts.map +1 -0
- package/dist/src/components/{Device/EditDeviceWizard/steps/ConfigTemplateForm.css → form/ExpandableFormSection.css} +2 -2
- package/dist/src/components/form/ExpandableFormSection.d.ts +11 -0
- package/dist/src/components/form/ExpandableFormSection.d.ts.map +1 -0
- package/dist/src/components/form/ExpandableFormSection.js +30 -0
- package/dist/src/components/form/ExpandableFormSection.js.map +1 -0
- package/dist/src/components/form/FieldHelperText.d.ts +14 -0
- package/dist/src/components/form/FieldHelperText.d.ts.map +1 -0
- package/dist/src/components/form/FilterSelect.css +11 -1
- package/dist/src/components/form/FilterSelect.d.ts +16 -0
- package/dist/src/components/form/FilterSelect.d.ts.map +1 -0
- package/dist/src/components/form/FilterSelect.js +14 -9
- package/dist/src/components/form/FilterSelect.js.map +1 -1
- package/dist/src/components/form/FlightCtlActionGroup.d.ts +5 -0
- package/dist/src/components/form/FlightCtlActionGroup.d.ts.map +1 -0
- package/dist/src/components/form/FlightCtlForm.d.ts +6 -0
- package/dist/src/components/form/FlightCtlForm.d.ts.map +1 -0
- package/dist/src/components/form/FormSelect.css +8 -0
- package/dist/src/components/form/FormSelect.d.ts +16 -0
- package/dist/src/components/form/FormSelect.d.ts.map +1 -0
- package/dist/src/components/form/FormSelectTypeahead.d.ts +19 -0
- package/dist/src/components/form/FormSelectTypeahead.d.ts.map +1 -0
- package/dist/src/components/form/FormSelectTypeahead.js +116 -0
- package/dist/src/components/form/FormSelectTypeahead.js.map +1 -0
- package/dist/src/components/form/LabelsField.d.ts +12 -0
- package/dist/src/components/form/LabelsField.d.ts.map +1 -0
- package/dist/src/components/form/NameField.d.ts +10 -0
- package/dist/src/components/form/NameField.d.ts.map +1 -0
- package/dist/src/components/form/RadioField.d.ts +12 -0
- package/dist/src/components/form/RadioField.d.ts.map +1 -0
- package/dist/src/components/form/RichValidationTextField.d.ts +13 -0
- package/dist/src/components/form/RichValidationTextField.d.ts.map +1 -0
- package/dist/src/components/form/SwitchField.d.ts +9 -0
- package/dist/src/components/form/SwitchField.d.ts.map +1 -0
- package/dist/src/components/form/SwitchField.js +24 -0
- package/dist/src/components/form/SwitchField.js.map +1 -0
- package/dist/src/components/form/TextAreaField.d.ts +11 -0
- package/dist/src/components/form/TextAreaField.d.ts.map +1 -0
- package/dist/src/components/form/TextField.d.ts +10 -0
- package/dist/src/components/form/TextField.d.ts.map +1 -0
- package/dist/src/components/form/UploadField.d.ts +13 -0
- package/dist/src/components/form/UploadField.d.ts.map +1 -0
- package/dist/src/components/form/UploadField.js +74 -0
- package/dist/src/components/form/UploadField.js.map +1 -0
- package/dist/src/components/form/validations.d.ts +82 -0
- package/dist/src/components/form/validations.d.ts.map +1 -0
- package/dist/src/components/form/validations.js +54 -19
- package/dist/src/components/form/validations.js.map +1 -1
- package/dist/src/components/modals/ApproveDeviceModal/ApproveDeviceForm.d.ts +16 -0
- package/dist/src/components/modals/ApproveDeviceModal/ApproveDeviceForm.d.ts.map +1 -0
- package/dist/src/components/modals/ApproveDeviceModal/ApproveDeviceModal.d.ts +6 -0
- package/dist/src/components/modals/ApproveDeviceModal/ApproveDeviceModal.d.ts.map +1 -0
- package/dist/src/components/modals/ApproveDeviceModal/ApproveDeviceModal.js +1 -1
- package/dist/src/components/modals/ApproveDeviceModal/ApproveDeviceModal.js.map +1 -1
- package/dist/src/components/modals/ApproveDeviceModal/DeviceLabelMatch.d.ts +8 -0
- package/dist/src/components/modals/ApproveDeviceModal/DeviceLabelMatch.d.ts.map +1 -0
- package/dist/src/components/modals/CreateRepositoryModal/CreateRepositoryModal.d.ts +11 -0
- package/dist/src/components/modals/CreateRepositoryModal/CreateRepositoryModal.d.ts.map +1 -0
- package/dist/src/components/modals/DeleteModal/DeleteModal.d.ts +10 -0
- package/dist/src/components/modals/DeleteModal/DeleteModal.d.ts.map +1 -0
- package/dist/src/components/modals/EditLabelsModal/EditLabelsForm.d.ts +9 -0
- package/dist/src/components/modals/EditLabelsModal/EditLabelsForm.d.ts.map +1 -0
- package/dist/src/components/modals/EditLabelsModal/EditLabelsForm.js +1 -2
- package/dist/src/components/modals/EditLabelsModal/EditLabelsForm.js.map +1 -1
- package/dist/src/components/modals/massModals/MassApproveDeviceModal/MassApproveDeviceModal.d.ts +11 -0
- package/dist/src/components/modals/massModals/MassApproveDeviceModal/MassApproveDeviceModal.d.ts.map +1 -0
- package/dist/src/components/modals/massModals/MassApproveDeviceModal/MassApproveDeviceModal.js +3 -41
- package/dist/src/components/modals/massModals/MassApproveDeviceModal/MassApproveDeviceModal.js.map +1 -1
- package/dist/src/components/modals/massModals/MassDeleteDeviceModal/MassDeleteDeviceModal.d.ts +10 -0
- package/dist/src/components/modals/massModals/MassDeleteDeviceModal/MassDeleteDeviceModal.d.ts.map +1 -0
- package/dist/src/components/modals/massModals/MassDeleteDeviceModal/MassDeleteDeviceModal.js +4 -4
- package/dist/src/components/modals/massModals/MassDeleteDeviceModal/MassDeleteDeviceModal.js.map +1 -1
- package/dist/src/components/modals/massModals/MassDeleteFleetModal/MassDeleteFleetModal.d.ts +10 -0
- package/dist/src/components/modals/massModals/MassDeleteFleetModal/MassDeleteFleetModal.d.ts.map +1 -0
- package/dist/src/components/modals/massModals/MassDeleteFleetModal/MassDeleteFleetModal.js +22 -21
- package/dist/src/components/modals/massModals/MassDeleteFleetModal/MassDeleteFleetModal.js.map +1 -1
- package/dist/src/components/modals/massModals/MassDeleteRepositoryModal/MassDeleteRepositoryModal.d.ts +10 -0
- package/dist/src/components/modals/massModals/MassDeleteRepositoryModal/MassDeleteRepositoryModal.d.ts.map +1 -0
- package/dist/src/components/modals/massModals/MassDeleteResourceSyncModal/MassDeleteResourceSyncModal.d.ts +10 -0
- package/dist/src/components/modals/massModals/MassDeleteResourceSyncModal/MassDeleteResourceSyncModal.d.ts.map +1 -0
- package/dist/src/constants.d.ts +4 -0
- package/dist/src/constants.d.ts.map +1 -0
- package/dist/src/hooks/useAppContext.d.ts +70 -0
- package/dist/src/hooks/useAppContext.d.ts.map +1 -0
- package/dist/src/hooks/useDeviceLabelMatch.d.ts +9 -0
- package/dist/src/hooks/useDeviceLabelMatch.d.ts.map +1 -0
- package/dist/src/hooks/useDocumentTitle.d.ts +2 -0
- package/dist/src/hooks/useDocumentTitle.d.ts.map +1 -0
- package/dist/src/hooks/useFetch.d.ts +12 -0
- package/dist/src/hooks/useFetch.d.ts.map +1 -0
- package/dist/src/hooks/useFetchPeriodically.d.ts +3 -0
- package/dist/src/hooks/useFetchPeriodically.d.ts.map +1 -0
- package/dist/src/hooks/useNavigate.d.ts +38 -0
- package/dist/src/hooks/useNavigate.d.ts.map +1 -0
- package/dist/src/hooks/useTableSelect.d.ts +13 -0
- package/dist/src/hooks/useTableSelect.d.ts.map +1 -0
- package/dist/src/hooks/useTableSort.d.ts +7 -0
- package/dist/src/hooks/useTableSort.d.ts.map +1 -0
- package/dist/src/hooks/useTableTextSearch.d.ts +6 -0
- package/dist/src/hooks/useTableTextSearch.d.ts.map +1 -0
- package/dist/src/hooks/useTemplateVersion.d.ts +3 -0
- package/dist/src/hooks/useTemplateVersion.d.ts.map +1 -0
- package/dist/src/hooks/useThemePreferences.d.ts +8 -0
- package/dist/src/hooks/useThemePreferences.d.ts.map +1 -0
- package/dist/src/hooks/useTranslation.d.ts +2 -0
- package/dist/src/hooks/useTranslation.d.ts.map +1 -0
- package/dist/src/hooks/useUserPreferences.d.ts +2 -0
- package/dist/src/hooks/useUserPreferences.d.ts.map +1 -0
- package/dist/src/hooks/useWebSocket.d.ts +8 -0
- package/dist/src/hooks/useWebSocket.d.ts.map +1 -0
- package/dist/src/setupTests.d.ts +2 -0
- package/dist/src/setupTests.d.ts.map +1 -0
- package/dist/src/tests/test-utils.d.ts +7 -0
- package/dist/src/tests/test-utils.d.ts.map +1 -0
- package/dist/src/types/deviceSpec.d.ts +57 -0
- package/dist/src/types/deviceSpec.d.ts.map +1 -0
- package/dist/src/types/deviceSpec.js +41 -9
- package/dist/src/types/deviceSpec.js.map +1 -1
- package/dist/src/types/extraTypes.d.ts +36 -0
- package/dist/src/types/extraTypes.d.ts.map +1 -0
- package/dist/src/types/extraTypes.js +1 -3
- package/dist/src/types/extraTypes.js.map +1 -1
- package/dist/src/types/typeUtils.d.ts +3 -0
- package/dist/src/types/typeUtils.d.ts.map +1 -0
- package/dist/src/utils/api.d.ts +24 -0
- package/dist/src/utils/api.d.ts.map +1 -0
- package/dist/src/utils/dates.d.ts +5 -0
- package/dist/src/utils/dates.d.ts.map +1 -0
- package/dist/src/utils/devices.d.ts +4 -0
- package/dist/src/utils/devices.d.ts.map +1 -0
- package/dist/src/utils/devices.js +1 -27
- package/dist/src/utils/devices.js.map +1 -1
- package/dist/src/utils/error.d.ts +4 -0
- package/dist/src/utils/error.d.ts.map +1 -0
- package/dist/src/utils/labels.d.ts +11 -0
- package/dist/src/utils/labels.d.ts.map +1 -0
- package/dist/src/utils/labels.js +4 -14
- package/dist/src/utils/labels.js.map +1 -1
- package/dist/src/utils/metrics.d.ts +9 -0
- package/dist/src/utils/metrics.d.ts.map +1 -0
- package/dist/src/utils/patch.d.ts +15 -0
- package/dist/src/utils/patch.d.ts.map +1 -0
- package/dist/src/utils/patch.js +71 -1
- package/dist/src/utils/patch.js.map +1 -1
- package/dist/src/utils/resource.d.ts +6 -0
- package/dist/src/utils/resource.d.ts.map +1 -0
- package/dist/src/utils/search.d.ts +3 -0
- package/dist/src/utils/search.d.ts.map +1 -0
- package/dist/src/utils/search.js +15 -1
- package/dist/src/utils/search.js.map +1 -1
- package/dist/src/utils/sort/device.d.ts +4 -0
- package/dist/src/utils/sort/device.d.ts.map +1 -0
- package/dist/src/utils/sort/device.js +3 -43
- package/dist/src/utils/sort/device.js.map +1 -1
- package/dist/src/utils/sort/fleet.d.ts +4 -0
- package/dist/src/utils/sort/fleet.d.ts.map +1 -0
- package/dist/src/utils/sort/fleet.js +6 -8
- package/dist/src/utils/sort/fleet.js.map +1 -1
- package/dist/src/utils/sort/generic.d.ts +8 -0
- package/dist/src/utils/sort/generic.d.ts.map +1 -0
- package/dist/src/utils/sort/generic.js +14 -11
- package/dist/src/utils/sort/generic.js.map +1 -1
- package/dist/src/utils/sort/repository.d.ts +6 -0
- package/dist/src/utils/sort/repository.d.ts.map +1 -0
- package/dist/src/utils/sort/repository.js +2 -2
- package/dist/src/utils/sort/repository.js.map +1 -1
- package/dist/src/utils/sort/resourceSync.d.ts +6 -0
- package/dist/src/utils/sort/resourceSync.d.ts.map +1 -0
- package/dist/src/utils/status/applications.d.ts +7 -0
- package/dist/src/utils/status/applications.d.ts.map +1 -0
- package/dist/src/utils/status/applications.js +19 -21
- package/dist/src/utils/status/applications.js.map +1 -1
- package/dist/src/utils/status/common.d.ts +12 -0
- package/dist/src/utils/status/common.d.ts.map +1 -0
- package/dist/src/utils/status/devices.d.ts +17 -0
- package/dist/src/utils/status/devices.d.ts.map +1 -0
- package/dist/src/utils/status/devices.js +9 -19
- package/dist/src/utils/status/devices.js.map +1 -1
- package/dist/src/utils/status/enrollmentRequest.d.ts +12 -0
- package/dist/src/utils/status/enrollmentRequest.d.ts.map +1 -0
- package/dist/src/utils/status/fleet.d.ts +15 -0
- package/dist/src/utils/status/fleet.d.ts.map +1 -0
- package/dist/src/utils/status/integrity.d.ts +5 -0
- package/dist/src/utils/status/integrity.d.ts.map +1 -0
- package/dist/src/utils/status/repository.d.ts +24 -0
- package/dist/src/utils/status/repository.d.ts.map +1 -0
- package/dist/src/utils/status/repository.js +9 -5
- package/dist/src/utils/status/repository.js.map +1 -1
- package/dist/src/utils/status/system.d.ts +6 -0
- package/dist/src/utils/status/system.d.ts.map +1 -0
- package/dist/src/utils/status/system.js +5 -5
- package/dist/src/utils/status/system.js.map +1 -1
- package/package.json +11 -3
- package/src/components/DetailsPage/DetailsNotFound.tsx +114 -0
- package/src/components/DetailsPage/DetailsPage.css +3 -0
- package/src/components/DetailsPage/DetailsPage.spec.tsx +128 -0
- package/src/components/DetailsPage/DetailsPage.tsx +99 -0
- package/src/components/DetailsPage/DetailsPageActions.tsx +73 -0
- package/src/components/DetailsPage/DetailsPageCard.css +8 -0
- package/src/components/DetailsPage/DetailsPageCard.tsx +12 -0
- package/src/components/DetailsPage/Tables/ApplicationsTable.tsx +44 -0
- package/src/components/DetailsPage/Tables/ConditionsTable.tsx +40 -0
- package/src/components/DetailsPage/Tables/IntegrityDetails.tsx +44 -0
- package/src/components/DetailsPage/Tables/SystemdDetailsTable.tsx +63 -0
- package/src/components/Device/AddDeviceModal/AddDeviceModal.tsx +146 -0
- package/src/components/Device/DeviceDetails/DeviceDetailsPage.tsx +117 -0
- package/src/components/Device/DeviceDetails/DeviceDetailsTab.css +4 -0
- package/src/components/Device/DeviceDetails/DeviceDetailsTab.tsx +216 -0
- package/src/components/Device/DeviceDetails/DeviceFleet.css +3 -0
- package/src/components/Device/DeviceDetails/DeviceFleet.tsx +76 -0
- package/src/components/Device/DeviceDetails/DeviceOs.tsx +43 -0
- package/src/components/Device/DeviceDetails/DeviceStatusDebugModal.css +3 -0
- package/src/components/Device/DeviceDetails/DeviceStatusDebugModal.tsx +60 -0
- package/src/components/Device/DeviceDetails/SystemdTable.tsx +65 -0
- package/src/components/Device/DeviceDetails/TerminalTab.tsx +53 -0
- package/src/components/Device/DevicesPage/DeviceFilterSelect.tsx +111 -0
- package/src/components/Device/DevicesPage/DeviceTableRow.tsx +95 -0
- package/src/components/Device/DevicesPage/DeviceTableToolbar.tsx +195 -0
- package/src/components/Device/DevicesPage/DeviceToolbarFilters.css +16 -0
- package/src/components/Device/DevicesPage/DeviceToolbarFilters.tsx +305 -0
- package/src/components/Device/DevicesPage/DevicesPage.tsx +265 -0
- package/src/components/Device/DevicesPage/EnrollmentRequestList.tsx +183 -0
- package/src/components/Device/DevicesPage/EnrollmentRequestTableToolbar.tsx +35 -0
- package/src/components/Device/DevicesPage/types.ts +22 -0
- package/src/components/Device/DevicesPage/useDeviceBackendFilters.ts +119 -0
- package/src/components/Device/DevicesPage/useDeviceFilters.ts +15 -0
- package/src/components/Device/DevicesPage/useDevices.ts +112 -0
- package/src/components/Device/EditDeviceWizard/EditDeviceWizard.css +4 -0
- package/src/components/Device/EditDeviceWizard/EditDeviceWizard.tsx +150 -0
- package/src/components/Device/EditDeviceWizard/EditDeviceWizardFooter.tsx +52 -0
- package/src/components/Device/EditDeviceWizard/EditDeviceWizardNav.tsx +66 -0
- package/src/components/Device/EditDeviceWizard/deviceSpecUtils.ts +278 -0
- package/src/components/Device/EditDeviceWizard/steps/ApplicationsForm.css +4 -0
- package/src/components/Device/EditDeviceWizard/steps/ApplicationsForm.tsx +140 -0
- package/src/components/Device/EditDeviceWizard/steps/ConfigInlineTemplateForm.tsx +161 -0
- package/src/components/Device/EditDeviceWizard/steps/ConfigK8sSecretTemplateForm.tsx +50 -0
- package/src/components/Device/EditDeviceWizard/steps/ConfigTemplateForm.tsx +174 -0
- package/src/components/Device/EditDeviceWizard/steps/ConfigWithRepositoryTemplateForm.tsx +229 -0
- package/src/components/Device/EditDeviceWizard/steps/DeviceTemplateStep.tsx +75 -0
- package/src/components/Device/EditDeviceWizard/steps/GeneralInfoStep.tsx +61 -0
- package/src/components/Device/EditDeviceWizard/steps/ReviewApplications.tsx +35 -0
- package/src/components/Device/EditDeviceWizard/steps/ReviewDeviceStep.tsx +83 -0
- package/src/components/Device/EditDeviceWizard/types.ts +19 -0
- package/src/components/Device/EditDeviceWizard/useEditDevice.ts +36 -0
- package/src/components/Device/EditDeviceWizard/utils.ts +79 -0
- package/src/components/Device/MatchPatternsModal/MatchPatternsForm.tsx +92 -0
- package/src/components/Device/MatchPatternsModal/MatchPatternsModal.tsx +62 -0
- package/src/components/EnrollmentRequest/EnrollmentRequestDetails/EnrollmentRequestDetails.css +3 -0
- package/src/components/EnrollmentRequest/EnrollmentRequestDetails/EnrollmentRequestDetails.tsx +226 -0
- package/src/components/EnrollmentRequest/EnrollmentRequestTableRow.tsx +69 -0
- package/src/components/ErrorAlert/ErrorAlert.tsx +15 -0
- package/src/components/Fleet/CreateFleet/CreateFleetWizard.css +3 -0
- package/src/components/Fleet/CreateFleet/CreateFleetWizard.tsx +152 -0
- package/src/components/Fleet/CreateFleet/CreateFleetWizardFooter.tsx +56 -0
- package/src/components/Fleet/CreateFleet/steps/DeviceLabelSelector.tsx +114 -0
- package/src/components/Fleet/CreateFleet/steps/GeneralInfoStep.tsx +55 -0
- package/src/components/Fleet/CreateFleet/steps/ReviewStep.tsx +83 -0
- package/src/components/Fleet/CreateFleet/types.ts +8 -0
- package/src/components/Fleet/CreateFleet/useEditFleet.ts +35 -0
- package/src/components/Fleet/CreateFleet/utils.ts +160 -0
- package/src/components/Fleet/DeleteFleetModal/DeleteFleetModal.tsx +89 -0
- package/src/components/Fleet/FleetDetails/FleetDetails.tsx +97 -0
- package/src/components/Fleet/FleetDetails/FleetDetailsContent.tsx +97 -0
- package/src/components/Fleet/FleetDetails/FleetDevices.tsx +115 -0
- package/src/components/Fleet/FleetDetails/FleetDevicesLink.tsx +16 -0
- package/src/components/Fleet/FleetDetails/FleetOwnerLink.tsx +51 -0
- package/src/components/Fleet/FleetResourceSyncs.tsx +161 -0
- package/src/components/Fleet/FleetRow.tsx +86 -0
- package/src/components/Fleet/FleetStatus.tsx +37 -0
- package/src/components/Fleet/FleetsPage.tsx +204 -0
- package/src/components/Fleet/ImportFleetWizard/ImportFleetWizard.css +3 -0
- package/src/components/Fleet/ImportFleetWizard/ImportFleetWizard.tsx +216 -0
- package/src/components/Fleet/ImportFleetWizard/steps/RepositoryStep.tsx +115 -0
- package/src/components/Fleet/ImportFleetWizard/steps/ResourceSyncStep.tsx +42 -0
- package/src/components/Fleet/ImportFleetWizard/steps/ReviewStep.tsx +70 -0
- package/src/components/Fleet/ImportFleetWizard/types.ts +6 -0
- package/src/components/ListPage/ListPage.tsx +22 -0
- package/src/components/ListPage/ListPageActions.tsx +68 -0
- package/src/components/ListPage/ListPageBody.tsx +34 -0
- package/src/components/ListPage/types.ts +13 -0
- package/src/components/NavItem/NavItem.tsx +42 -0
- package/src/components/OverviewPage/Cards/Status/ApplicationStatusChart.tsx +39 -0
- package/src/components/OverviewPage/Cards/Status/DeviceStatusChart.tsx +38 -0
- package/src/components/OverviewPage/Cards/Status/StatusCard.tsx +115 -0
- package/src/components/OverviewPage/Cards/Status/StatusCardFilters.tsx +111 -0
- package/src/components/OverviewPage/Cards/Status/SystemUpdateStatusChart.tsx +39 -0
- package/src/components/OverviewPage/Cards/Status/utils.ts +19 -0
- package/src/components/OverviewPage/Cards/ToDo/ToDoCard.tsx +72 -0
- package/src/components/OverviewPage/Overview.tsx +19 -0
- package/src/components/OverviewPage/OverviewPage.tsx +22 -0
- package/src/components/Repository/CreateRepository/CreateRepository.tsx +144 -0
- package/src/components/Repository/CreateRepository/CreateRepositoryForm.css +7 -0
- package/src/components/Repository/CreateRepository/CreateRepositoryForm.tsx +440 -0
- package/src/components/Repository/CreateRepository/CreateResourceSyncsForm.tsx +98 -0
- package/src/components/Repository/CreateRepository/types.ts +43 -0
- package/src/components/Repository/CreateRepository/utils.ts +539 -0
- package/src/components/Repository/RepositoryDetails/DeleteRepositoryModal.tsx +156 -0
- package/src/components/Repository/RepositoryDetails/RepositoryDetails.tsx +78 -0
- package/src/components/Repository/RepositoryDetails/RepositoryGeneralDetailsCard.tsx +102 -0
- package/src/components/Repository/RepositoryDetails/RepositoryResourceSyncsCard.tsx +28 -0
- package/src/components/Repository/RepositoryDetails/RepositorySource.tsx +96 -0
- package/src/components/Repository/RepositoryDetails/RepositorySourceList.tsx +79 -0
- package/src/components/Repository/RepositoryList.tsx +216 -0
- package/src/components/ResourceSync/RepositoryResourceSyncList.css +14 -0
- package/src/components/ResourceSync/RepositoryResourceSyncList.tsx +322 -0
- package/src/components/ResourceSync/ResourceSyncStatus.tsx +77 -0
- package/src/components/ResourceSync/ResourceSyncToRepository.tsx +73 -0
- package/src/components/Status/ApplicationStatus.tsx +25 -0
- package/src/components/Status/ApplicationSummaryStatus.tsx +24 -0
- package/src/components/Status/DeviceResourceStatus.tsx +112 -0
- package/src/components/Status/DeviceStatus.tsx +20 -0
- package/src/components/Status/EnrollmentRequestStatus.tsx +24 -0
- package/src/components/Status/IntegrityStatus.tsx +19 -0
- package/src/components/Status/RepositoryStatus.tsx +50 -0
- package/src/components/Status/StatusDisplay.css +12 -0
- package/src/components/Status/StatusDisplay.tsx +83 -0
- package/src/components/Status/SystemUpdateStatus.tsx +34 -0
- package/src/components/Status/SystemdStatus.tsx +22 -0
- package/src/components/Status/utils.ts +8 -0
- package/src/components/Table/Table.tsx +78 -0
- package/src/components/Table/TableActions.tsx +33 -0
- package/src/components/Table/TableTextSearch.tsx +23 -0
- package/src/components/Terminal/Terminal.css +1 -0
- package/src/components/Terminal/Terminal.tsx +100 -0
- package/src/components/UserPreferences/UserPreferencesModal.tsx +85 -0
- package/src/components/UserPreferences/UserPreferencesProvider.tsx +29 -0
- package/src/components/charts/DonutChart.css +10 -0
- package/src/components/charts/DonutChart.tsx +115 -0
- package/src/components/charts/utils.ts +38 -0
- package/src/components/common/CopyButton.tsx +36 -0
- package/src/components/common/EditableLabelControl.tsx +69 -0
- package/src/components/common/ErrorBoundary.tsx +53 -0
- package/src/components/common/FlightCtlDescriptionList.tsx +13 -0
- package/src/components/common/HelperTextItems.tsx +25 -0
- package/src/components/common/LabelsView.css +9 -0
- package/src/components/common/LabelsView.tsx +38 -0
- package/src/components/common/LeaveFormConfirmation.tsx +96 -0
- package/src/components/common/ResourceLink.css +29 -0
- package/src/components/common/ResourceLink.tsx +42 -0
- package/src/components/common/ResourceListEmptyState.tsx +19 -0
- package/src/components/common/WithHelperText.css +3 -0
- package/src/components/common/WithHelperText.tsx +34 -0
- package/src/components/common/WithTooltip.tsx +14 -0
- package/src/components/form/CheckboxField.tsx +39 -0
- package/src/components/form/ExpandableFormSection.css +3 -0
- package/src/components/form/ExpandableFormSection.tsx +59 -0
- package/src/components/form/FieldHelperText.tsx +45 -0
- package/src/components/form/FilterSelect.css +18 -0
- package/src/components/form/FilterSelect.tsx +92 -0
- package/src/components/form/FlightCtlActionGroup.css +9 -0
- package/src/components/form/FlightCtlActionGroup.tsx +11 -0
- package/src/components/form/FlightCtlForm.tsx +18 -0
- package/src/components/form/FormSelect.css +16 -0
- package/src/components/form/FormSelect.tsx +96 -0
- package/src/components/form/FormSelectTypeahead.tsx +212 -0
- package/src/components/form/LabelsField.tsx +116 -0
- package/src/components/form/NameField.tsx +73 -0
- package/src/components/form/RadioField.tsx +57 -0
- package/src/components/form/RichValidationTextField.tsx +142 -0
- package/src/components/form/SwitchField.tsx +32 -0
- package/src/components/form/TextAreaField.tsx +46 -0
- package/src/components/form/TextField.tsx +49 -0
- package/src/components/form/UploadField.tsx +133 -0
- package/src/components/form/validations.ts +386 -0
- package/src/components/modals/ApproveDeviceModal/ApproveDeviceForm.tsx +74 -0
- package/src/components/modals/ApproveDeviceModal/ApproveDeviceModal.tsx +65 -0
- package/src/components/modals/ApproveDeviceModal/DeviceLabelMatch.css +24 -0
- package/src/components/modals/ApproveDeviceModal/DeviceLabelMatch.tsx +101 -0
- package/src/components/modals/CreateRepositoryModal/CreateRepositoryModal.tsx +25 -0
- package/src/components/modals/DeleteModal/DeleteModal.tsx +68 -0
- package/src/components/modals/EditLabelsModal/EditLabelsForm.tsx +101 -0
- package/src/components/modals/massModals/MassApproveDeviceModal/MassApproveDeviceModal.css +4 -0
- package/src/components/modals/massModals/MassApproveDeviceModal/MassApproveDeviceModal.tsx +192 -0
- package/src/components/modals/massModals/MassDeleteDeviceModal/MassDeleteDeviceModal.tsx +117 -0
- package/src/components/modals/massModals/MassDeleteFleetModal/MassDeleteFleetModal.tsx +193 -0
- package/src/components/modals/massModals/MassDeleteRepositoryModal/MassDeleteRepositoryModal.tsx +172 -0
- package/src/components/modals/massModals/MassDeleteResourceSyncModal/MassDeleteResourceSyncModal.tsx +116 -0
- package/src/constants.ts +4 -0
- package/src/hooks/useAppContext.tsx +108 -0
- package/src/hooks/useDeviceLabelMatch.ts +101 -0
- package/src/hooks/useDocumentTitle.ts +12 -0
- package/src/hooks/useFetch.ts +10 -0
- package/src/hooks/useFetchPeriodically.ts +82 -0
- package/src/hooks/useNavigate.tsx +92 -0
- package/src/hooks/useTableSelect.ts +48 -0
- package/src/hooks/useTableSort.ts +42 -0
- package/src/hooks/useTableTextSearch.ts +23 -0
- package/src/hooks/useTemplateVersion.ts +23 -0
- package/src/hooks/useThemePreferences.ts +64 -0
- package/src/hooks/useTranslation.ts +8 -0
- package/src/hooks/useUserPreferences.ts +16 -0
- package/src/hooks/useWebSocket.ts +74 -0
- package/src/setupTests.ts +21 -0
- package/src/tests/test-utils.tsx +21 -0
- package/src/types/deviceSpec.ts +110 -0
- package/src/types/extraTypes.ts +52 -0
- package/src/types/typeUtils.ts +7 -0
- package/src/typings.d.ts +12 -0
- package/src/utils/api.ts +87 -0
- package/src/utils/dates.ts +60 -0
- package/src/utils/devices.ts +10 -0
- package/src/utils/error.ts +24 -0
- package/src/utils/labels.ts +40 -0
- package/src/utils/metrics.ts +49 -0
- package/src/utils/patch.ts +202 -0
- package/src/utils/resource.ts +4 -0
- package/src/utils/search.ts +25 -0
- package/src/utils/sort/device.ts +60 -0
- package/src/utils/sort/fleet.ts +16 -0
- package/src/utils/sort/generic.ts +37 -0
- package/src/utils/sort/repository.ts +28 -0
- package/src/utils/sort/resourceSync.ts +30 -0
- package/src/utils/status/applications.ts +58 -0
- package/src/utils/status/common.ts +71 -0
- package/src/utils/status/devices.ts +74 -0
- package/src/utils/status/enrollmentRequest.ts +49 -0
- package/src/utils/status/fleet.ts +47 -0
- package/src/utils/status/integrity.ts +26 -0
- package/src/utils/status/repository.ts +117 -0
- package/src/utils/status/system.ts +28 -0
- package/dist/src/components/Device/DeviceList/DeviceFilterSelect.js +0 -87
- package/dist/src/components/Device/DeviceList/DeviceFilterSelect.js.map +0 -1
- package/dist/src/components/Device/DeviceList/DeviceList.js.map +0 -1
- package/dist/src/components/Device/DeviceList/DeviceTableRow.js.map +0 -1
- package/dist/src/components/Device/DeviceList/DeviceTableToolbar.js.map +0 -1
- package/dist/src/components/Device/DeviceList/types.js.map +0 -1
- package/dist/src/components/Device/DeviceList/useDeviceBackendFilters.js.map +0 -1
- package/dist/src/components/Device/DeviceList/useDeviceFilters.js.map +0 -1
- package/dist/src/components/Device/DeviceList/useDeviceLikeResources.js +0 -98
- package/dist/src/components/Device/DeviceList/useDeviceLikeResources.js.map +0 -1
- package/dist/src/components/Fleet/FleetDetails/chartUtils.js +0 -29
- package/dist/src/components/Fleet/FleetDetails/chartUtils.js.map +0 -1
- package/dist/src/components/Fleet/FleetList.js.map +0 -1
- package/dist/src/components/Fleet/ResourceSyncRow.js +0 -36
- package/dist/src/components/Fleet/ResourceSyncRow.js.map +0 -1
- /package/dist/src/components/Device/{DeviceList → DevicesPage}/types.js +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useTemplateVersion.d.ts","sourceRoot":"","sources":["../../../src/hooks/useTemplateVersion.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAM3D,eAAO,MAAM,kBAAkB,WACrB,MAAM,GAAG,SAAS,KACzB,CAAC,OAAO,EAAE,eAAe,GAAG,SAAS,EAAE,OAAO,EAAE,OAAO,CAczD,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare const THEME_LOCAL_STORAGE_KEY = "flightctl/theme";
|
|
2
|
+
export type Theme = 'dark' | 'light' | 'system';
|
|
3
|
+
export declare const updateThemeClass: (htmlTagElement: HTMLElement, theme: string | null) => void;
|
|
4
|
+
export declare const useThemePreferences: () => {
|
|
5
|
+
theme: Theme;
|
|
6
|
+
setTheme: (theme: Theme) => void;
|
|
7
|
+
};
|
|
8
|
+
//# sourceMappingURL=useThemePreferences.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useThemePreferences.d.ts","sourceRoot":"","sources":["../../../src/hooks/useThemePreferences.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,uBAAuB,oBAAoB,CAAC;AAGzD,MAAM,MAAM,KAAK,GAAG,MAAM,GAAG,OAAO,GAAG,QAAQ,CAAC;AAEhD,eAAO,MAAM,gBAAgB,mBAAoB,WAAW,SAAS,MAAM,GAAG,IAAI,SAOjF,CAAC;AAgBF,eAAO,MAAM,mBAAmB;;sBAqBpB,KAAK;CAWhB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useTranslation.d.ts","sourceRoot":"","sources":["../../../src/hooks/useTranslation.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,cAAc,yEAG1B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useUserPreferences.d.ts","sourceRoot":"","sources":["../../../src/hooks/useUserPreferences.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,kBAAkB,uBAAwB,MAAM,6BAA2B,MAAM,KAAK,IAAI,CAatG,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare const useWebSocket: <T extends string>(endpoint: string, onMsgReceived: (msg: T) => void) => {
|
|
2
|
+
sendMessage: (msg: T) => void;
|
|
3
|
+
isConnecting: boolean;
|
|
4
|
+
isClosed: boolean;
|
|
5
|
+
error: unknown;
|
|
6
|
+
reconnect: VoidFunction;
|
|
7
|
+
};
|
|
8
|
+
//# sourceMappingURL=useWebSocket.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useWebSocket.d.ts","sourceRoot":"","sources":["../../../src/hooks/useWebSocket.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,YAAY,+BACb,MAAM,6BACW,IAAI;6BAEN,IAAI;kBACf,OAAO;cACX,OAAO;WACV,OAAO;eACH,YAAY;CA6DxB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"setupTests.d.ts","sourceRoot":"","sources":["../../src/setupTests.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { RenderResult } from '@testing-library/react';
|
|
2
|
+
import '@testing-library/jest-dom';
|
|
3
|
+
declare const customRender: (ui: React.ReactNode, options?: object) => RenderResult;
|
|
4
|
+
export declare const checkAccessibility: (container: HTMLElement | string, options?: object) => Promise<void>;
|
|
5
|
+
export * from '@testing-library/react';
|
|
6
|
+
export { customRender as render };
|
|
7
|
+
//# sourceMappingURL=test-utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"test-utils.d.ts","sourceRoot":"","sources":["../../../src/tests/test-utils.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAU,MAAM,wBAAwB,CAAC;AAG9D,OAAO,2BAA2B,CAAC;AAInC,QAAA,MAAM,YAAY,OAAQ,MAAM,SAAS,YAAY,MAAM,KAAG,YAEH,CAAC;AAE5D,eAAO,MAAM,kBAAkB,cAAqB,WAAW,GAAG,MAAM,YAAY,MAAM,kBAGzF,CAAC;AAGF,cAAc,wBAAwB,CAAC;AAGvC,OAAO,EAAE,YAAY,IAAI,MAAM,EAAE,CAAC"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { ConfigProviderSpec, GitConfigProviderSpec, HttpConfigProviderSpec, InlineConfigProviderSpec, KubernetesSecretProviderSpec } from '@flightctl/types';
|
|
2
|
+
export declare enum ConfigType {
|
|
3
|
+
GIT = "git",
|
|
4
|
+
HTTP = "http",
|
|
5
|
+
K8S_SECRET = "secret",
|
|
6
|
+
INLINE = "inline"
|
|
7
|
+
}
|
|
8
|
+
export type ConfigTemplate = {
|
|
9
|
+
type: ConfigType;
|
|
10
|
+
name: string;
|
|
11
|
+
};
|
|
12
|
+
export type GitConfigTemplate = ConfigTemplate & {
|
|
13
|
+
type: ConfigType.GIT;
|
|
14
|
+
repository: string;
|
|
15
|
+
targetRevision: string;
|
|
16
|
+
path: string;
|
|
17
|
+
mountPath?: string;
|
|
18
|
+
};
|
|
19
|
+
export declare const isGitConfigTemplate: (configTemplate: ConfigTemplate) => configTemplate is GitConfigTemplate;
|
|
20
|
+
export declare const isGitProviderSpec: (providerSpec: ConfigProviderSpec) => providerSpec is GitConfigProviderSpec;
|
|
21
|
+
export type ConfigSourceProvider = GitConfigProviderSpec | KubernetesSecretProviderSpec | InlineConfigProviderSpec | HttpConfigProviderSpec;
|
|
22
|
+
export type RepoConfig = GitConfigProviderSpec | HttpConfigProviderSpec;
|
|
23
|
+
export declare const isRepoConfig: (config: ConfigSourceProvider) => config is RepoConfig;
|
|
24
|
+
export declare const getConfigFullRepoUrl: (config: RepoConfig, repositoryUrl: string) => string;
|
|
25
|
+
export declare const getRepoName: (config: RepoConfig) => string;
|
|
26
|
+
export type KubeSecretTemplate = ConfigTemplate & {
|
|
27
|
+
type: ConfigType.K8S_SECRET;
|
|
28
|
+
secretName: string;
|
|
29
|
+
secretNs: string;
|
|
30
|
+
mountPath: string;
|
|
31
|
+
};
|
|
32
|
+
export declare const isKubeSecretTemplate: (configTemplate: ConfigTemplate) => configTemplate is KubeSecretTemplate;
|
|
33
|
+
export declare const isKubeProviderSpec: (providerSpec: ConfigProviderSpec) => providerSpec is KubernetesSecretProviderSpec;
|
|
34
|
+
export type InlineConfigTemplate = ConfigTemplate & {
|
|
35
|
+
type: ConfigType.INLINE;
|
|
36
|
+
files: Array<{
|
|
37
|
+
path: string;
|
|
38
|
+
content: string;
|
|
39
|
+
base64: boolean;
|
|
40
|
+
permissions?: string;
|
|
41
|
+
user?: string;
|
|
42
|
+
group?: string;
|
|
43
|
+
}>;
|
|
44
|
+
};
|
|
45
|
+
export declare const isInlineConfigTemplate: (configTemplate: ConfigTemplate) => configTemplate is InlineConfigTemplate;
|
|
46
|
+
export declare const isInlineProviderSpec: (providerSpec: ConfigProviderSpec) => providerSpec is InlineConfigProviderSpec;
|
|
47
|
+
export type HttpConfigTemplate = ConfigTemplate & {
|
|
48
|
+
type: ConfigType.HTTP;
|
|
49
|
+
repository: string;
|
|
50
|
+
validationSuffix: string;
|
|
51
|
+
suffix: string;
|
|
52
|
+
filePath: string;
|
|
53
|
+
};
|
|
54
|
+
export declare const isHttpConfigTemplate: (configTemplate: ConfigTemplate) => configTemplate is HttpConfigTemplate;
|
|
55
|
+
export declare const isHttpProviderSpec: (providerSpec: ConfigProviderSpec) => providerSpec is HttpConfigProviderSpec;
|
|
56
|
+
export type SpecConfigTemplate = GitConfigTemplate | HttpConfigTemplate | KubeSecretTemplate | InlineConfigTemplate;
|
|
57
|
+
//# sourceMappingURL=deviceSpec.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deviceSpec.d.ts","sourceRoot":"","sources":["../../../src/types/deviceSpec.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,kBAAkB,EAClB,qBAAqB,EACrB,sBAAsB,EACtB,wBAAwB,EACxB,4BAA4B,EAC7B,MAAM,kBAAkB,CAAC;AAE1B,oBAAY,UAAU;IACpB,GAAG,QAAQ;IACX,IAAI,SAAS;IACb,UAAU,WAAW;IACrB,MAAM,WAAW;CAClB;AAED,MAAM,MAAM,cAAc,GAAG;IAC3B,IAAI,EAAE,UAAU,C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AC,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;CACvH,CAAC;AAEF,eAAO,MAAM,sBAAsB,mBAAoB,cAAc,2CAC1B,CAAC;AAE5C,eAAO,MAAM,oBAAoB,iBAAkB,kBAAkB,6CAC3C,CAAC;AAE3B,MAAM,MAAM,kBAAkB,GAAG,cAAc,GAAG;IAChD,IAAI,EAAE,UAAU,CAAC,IAAI,CAAC;IACtB,UAAU,EAAE,MAAM,CAAC;IACnB,gBAAgB,EAAE,MAAM,CAAC;IACzB,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,eAAO,MAAM,oBAAoB,mBAAoB,cAAc,yCAC1B,CAAC;AAE1C,eAAO,MAAM,kBAAkB,iBAAkB,kBAAkB,2CACxC,CAAC;AAE5B,MAAM,MAAM,kBAAkB,GAAG,iBAAiB,GAAG,kBAAkB,GAAG,kBAAkB,GAAG,oBAAoB,CAAC"}
|
|
@@ -1,20 +1,52 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.isHttpProviderSpec = exports.isHttpConfigTemplate = exports.isInlineProviderSpec = exports.isInlineConfigTemplate = exports.isKubeProviderSpec = exports.isKubeSecretTemplate = exports.isGitProviderSpec = exports.isGitConfigTemplate = void 0;
|
|
4
|
-
|
|
3
|
+
exports.isHttpProviderSpec = exports.isHttpConfigTemplate = exports.isInlineProviderSpec = exports.isInlineConfigTemplate = exports.isKubeProviderSpec = exports.isKubeSecretTemplate = exports.getRepoName = exports.getConfigFullRepoUrl = exports.isRepoConfig = exports.isGitProviderSpec = exports.isGitConfigTemplate = exports.ConfigType = void 0;
|
|
4
|
+
var ConfigType;
|
|
5
|
+
(function (ConfigType) {
|
|
6
|
+
ConfigType["GIT"] = "git";
|
|
7
|
+
ConfigType["HTTP"] = "http";
|
|
8
|
+
ConfigType["K8S_SECRET"] = "secret";
|
|
9
|
+
ConfigType["INLINE"] = "inline";
|
|
10
|
+
})(ConfigType || (exports.ConfigType = ConfigType = {}));
|
|
11
|
+
const isGitConfigTemplate = (configTemplate) => configTemplate.type === ConfigType.GIT;
|
|
5
12
|
exports.isGitConfigTemplate = isGitConfigTemplate;
|
|
6
|
-
const isGitProviderSpec = (providerSpec) =>
|
|
13
|
+
const isGitProviderSpec = (providerSpec) => 'gitRef' in providerSpec;
|
|
7
14
|
exports.isGitProviderSpec = isGitProviderSpec;
|
|
8
|
-
const
|
|
15
|
+
const isRepoConfig = (config) => (0, exports.isGitProviderSpec)(config) || (0, exports.isHttpProviderSpec)(config);
|
|
16
|
+
exports.isRepoConfig = isRepoConfig;
|
|
17
|
+
const hasTemplateVariables = (str) => /device.metadata/.test(str);
|
|
18
|
+
const getConfigFullRepoUrl = (config, repositoryUrl) => {
|
|
19
|
+
let relativePath = '';
|
|
20
|
+
if ((0, exports.isHttpProviderSpec)(config)) {
|
|
21
|
+
relativePath = (config.httpRef.suffix || '').replace(/^\//g, ''); // remove the leading slash
|
|
22
|
+
}
|
|
23
|
+
else if ((0, exports.isGitProviderSpec)(config) && /github|gitlab/.test(repositoryUrl)) {
|
|
24
|
+
const configPath = config.gitRef.path.replace(/^\//g, ''); // remove the leading slash
|
|
25
|
+
const configParts = configPath.split('/');
|
|
26
|
+
const lastPart = configParts[configParts.length - 1];
|
|
27
|
+
// Extension-less files cannot be identified as such. GitHub and Gitlab both redirect to the correct URL to show the file contents
|
|
28
|
+
const fileOrDir = lastPart.includes('.') ? 'blob' : 'tree';
|
|
29
|
+
relativePath = `${fileOrDir}/${config.gitRef.targetRevision}/${configPath}`;
|
|
30
|
+
}
|
|
31
|
+
if (relativePath && !hasTemplateVariables(relativePath)) {
|
|
32
|
+
return `${repositoryUrl}/${relativePath}`;
|
|
33
|
+
}
|
|
34
|
+
// We return just the base repository URL as a fallback
|
|
35
|
+
return repositoryUrl;
|
|
36
|
+
};
|
|
37
|
+
exports.getConfigFullRepoUrl = getConfigFullRepoUrl;
|
|
38
|
+
const getRepoName = (config) => (0, exports.isGitProviderSpec)(config) ? config.gitRef.repository : config.httpRef.repository;
|
|
39
|
+
exports.getRepoName = getRepoName;
|
|
40
|
+
const isKubeSecretTemplate = (configTemplate) => configTemplate.type === ConfigType.K8S_SECRET;
|
|
9
41
|
exports.isKubeSecretTemplate = isKubeSecretTemplate;
|
|
10
|
-
const isKubeProviderSpec = (providerSpec) =>
|
|
42
|
+
const isKubeProviderSpec = (providerSpec) => 'secretRef' in providerSpec;
|
|
11
43
|
exports.isKubeProviderSpec = isKubeProviderSpec;
|
|
12
|
-
const isInlineConfigTemplate = (configTemplate) => configTemplate.type ===
|
|
44
|
+
const isInlineConfigTemplate = (configTemplate) => configTemplate.type === ConfigType.INLINE;
|
|
13
45
|
exports.isInlineConfigTemplate = isInlineConfigTemplate;
|
|
14
|
-
const isInlineProviderSpec = (providerSpec) =>
|
|
46
|
+
const isInlineProviderSpec = (providerSpec) => 'inline' in providerSpec;
|
|
15
47
|
exports.isInlineProviderSpec = isInlineProviderSpec;
|
|
16
|
-
const isHttpConfigTemplate = (configTemplate) => configTemplate.type ===
|
|
48
|
+
const isHttpConfigTemplate = (configTemplate) => configTemplate.type === ConfigType.HTTP;
|
|
17
49
|
exports.isHttpConfigTemplate = isHttpConfigTemplate;
|
|
18
|
-
const isHttpProviderSpec = (providerSpec) =>
|
|
50
|
+
const isHttpProviderSpec = (providerSpec) => 'httpRef' in providerSpec;
|
|
19
51
|
exports.isHttpProviderSpec = isHttpProviderSpec;
|
|
20
52
|
//# sourceMappingURL=deviceSpec.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deviceSpec.js","sourceRoot":"","sources":["../../../src/types/deviceSpec.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"deviceSpec.js","sourceRoot":"","sources":["../../../src/types/deviceSpec.ts"],"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Q,IAAI,YAAY,CAAC;AADd,QAAA,oBAAoB,wBACN;AAUpB,MAAM,oBAAoB,GAAG,CAAC,cAA8B,EAAwC,EAAE,CAC3G,cAAc,CAAC,IAAI,KAAK,UAAU,CAAC,IAAI,CAAC;AAD7B,QAAA,oBAAoB,wBACS;AAEnC,MAAM,kBAAkB,GAAG,CAAC,YAAgC,EAA0C,EAAE,CAC7G,SAAS,IAAI,YAAY,CAAC;AADf,QAAA,kBAAkB,sBACH"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { ConditionType, Device, EnrollmentRequest, Fleet, ResourceSync } from '@flightctl/types';
|
|
2
|
+
export declare enum FlightControlMetrics {
|
|
3
|
+
ACTIVE_AGENT_COUNT_METRIC = "flightctl_devicesimulator_active_agent_count",
|
|
4
|
+
TOTAL_API_REQUESTS_METRIC = "flightctl_devicesimulator_api_requests_total"
|
|
5
|
+
}
|
|
6
|
+
export type MetricValue = [number, number | string];
|
|
7
|
+
export interface PrometheusMetric {
|
|
8
|
+
metric: {
|
|
9
|
+
__name__: FlightControlMetrics;
|
|
10
|
+
job: string;
|
|
11
|
+
};
|
|
12
|
+
value?: MetricValue;
|
|
13
|
+
values?: Array<MetricValue>;
|
|
14
|
+
}
|
|
15
|
+
export interface FlightCtlLabel {
|
|
16
|
+
key: string;
|
|
17
|
+
value?: string;
|
|
18
|
+
isDefault?: boolean;
|
|
19
|
+
}
|
|
20
|
+
export interface ApiQuery {
|
|
21
|
+
endpoint: string;
|
|
22
|
+
}
|
|
23
|
+
export interface MetricsQuery {
|
|
24
|
+
metrics: FlightControlMetrics[];
|
|
25
|
+
period: string;
|
|
26
|
+
}
|
|
27
|
+
export type FleetConditionType = ConditionType.FleetOverlappingSelectors | ConditionType.FleetValid | 'Invalid' | 'SyncPending';
|
|
28
|
+
export type FlightControlQuery = ApiQuery | MetricsQuery;
|
|
29
|
+
export declare enum DeviceAnnotation {
|
|
30
|
+
TemplateVersion = "fleet-controller/templateVersion",
|
|
31
|
+
RenderedVersion = "device-controller/renderedVersion"
|
|
32
|
+
}
|
|
33
|
+
export declare const isEnrollmentRequest: (resource: Device | EnrollmentRequest) => resource is EnrollmentRequest;
|
|
34
|
+
export type AnnotationType = DeviceAnnotation;
|
|
35
|
+
export declare const isFleet: (resource: ResourceSync | Fleet) => resource is Fleet;
|
|
36
|
+
//# sourceMappingURL=extraTypes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"extraTypes.d.ts","sourceRoot":"","sources":["../../../src/types/extraTypes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,EAAE,iBAAiB,EAAE,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAEjG,oBAAY,oBAAoB;IAC9B,yBAAyB,iDAAiD;IAC1E,yBAAyB,iDAAiD;CAC3E;AAED,MAAM,MAAM,WAAW,GAAG,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,CAAC;AAEpD,MAAM,WAAW,gBAAgB;IAC/B,MAAM,EAAE;QACN,QAAQ,EAAE,oBAAoB,CAAC;QAC/B,GAAG,EAAE,MAAM,CAAC;KACb,CAAC;IACF,KAAK,CAAC,EAAE,WAAW,CAAC;IACpB,MAAM,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC,CAAC;CAC7B;AAED,MAAM,WAAW,cAAc;IAC7B,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,MAAM,WAAW,QAAQ;IACvB,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,YAAY;IAC3B,OAAO,EAAE,oBAAoB,EAAE,CAAC;IAChC,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,MAAM,kBAAkB,GAC1B,aAAa,CAAC,yBAAyB,GACvC,aAAa,CAAC,UAAU,GACxB,SAAS,GACT,aAAa,CAAC;AAElB,MAAM,MAAM,kBAAkB,GAAG,QAAQ,GAAG,YAAY,CAAC;AAEzD,oBAAY,gBAAgB;IAC1B,eAAe,qCAAqC;IACpD,eAAe,sCAAsC;CACtD;AAED,eAAO,MAAM,mBAAmB,aAAc,MAAM,GAAG,iBAAiB,kCACjC,CAAC;AAExC,MAAM,MAAM,cAAc,GAAG,gBAAgB,CAAC;AAE9C,eAAO,MAAM,OAAO,aAAc,YAAY,GAAG,KAAK,sBAAiD,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.isFleet = exports.
|
|
3
|
+
exports.isFleet = exports.isEnrollmentRequest = exports.DeviceAnnotation = exports.FlightControlMetrics = void 0;
|
|
4
4
|
var FlightControlMetrics;
|
|
5
5
|
(function (FlightControlMetrics) {
|
|
6
6
|
FlightControlMetrics["ACTIVE_AGENT_COUNT_METRIC"] = "flightctl_devicesimulator_active_agent_count";
|
|
@@ -13,8 +13,6 @@ var DeviceAnnotation;
|
|
|
13
13
|
})(DeviceAnnotation || (exports.DeviceAnnotation = DeviceAnnotation = {}));
|
|
14
14
|
const isEnrollmentRequest = (resource) => resource.kind === 'EnrollmentRequest';
|
|
15
15
|
exports.isEnrollmentRequest = isEnrollmentRequest;
|
|
16
|
-
const isDevice = (resource) => resource.kind === 'Device';
|
|
17
|
-
exports.isDevice = isDevice;
|
|
18
16
|
const isFleet = (resource) => resource.kind === 'Fleet';
|
|
19
17
|
exports.isFleet = isFleet;
|
|
20
18
|
//# sourceMappingURL=extraTypes.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"extraTypes.js","sourceRoot":"","sources":["../../../src/types/extraTypes.ts"],"names":[],"mappings":";;;AAEA,IAAY,oBAGX;AAHD,WAAY,oBAAoB;IAC9B,kGAA0E,CAAA;IAC1E,kGAA0E,CAAA;AAC5E,CAAC,EAHW,oBAAoB,oCAApB,oBAAoB,QAG/B;AAoCD,IAAY,gBAGX;AAHD,WAAY,gBAAgB;IAC1B,wEAAoD,CAAA;IACpD,yEAAqD,CAAA;AACvD,CAAC,EAHW,gBAAgB,gCAAhB,gBAAgB,QAG3B;
|
|
1
|
+
{"version":3,"file":"extraTypes.js","sourceRoot":"","sources":["../../../src/types/extraTypes.ts"],"names":[],"mappings":";;;AAEA,IAAY,oBAGX;AAHD,WAAY,oBAAoB;IAC9B,kGAA0E,CAAA;IAC1E,kGAA0E,CAAA;AAC5E,CAAC,EAHW,oBAAoB,oCAApB,oBAAoB,QAG/B;AAoCD,IAAY,gBAGX;AAHD,WAAY,gBAAgB;IAC1B,wEAAoD,CAAA;IACpD,yEAAqD,CAAA;AACvD,CAAC,EAHW,gBAAgB,gCAAhB,gBAAgB,QAG3B;AAEM,MAAM,mBAAmB,GAAG,CAAC,QAAoC,EAAiC,EAAE,CACzG,QAAQ,CAAC,IAAI,KAAK,mBAAmB,CAAC;AAD3B,QAAA,mBAAmB,uBACQ;AAIjC,MAAM,OAAO,GAAG,CAAC,QAA8B,EAAqB,EAAE,CAAC,QAAQ,CAAC,IAAI,KAAK,OAAO,CAAC;AAA3F,QAAA,OAAO,WAAoF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"typeUtils.d.ts","sourceRoot":"","sources":["../../../src/types/typeUtils.ts"],"names":[],"mappings":"AAAA,wBAAgB,kBAAkB,CAAC,CAAC,EAAE,MAAM,EAAE,oBAAoB,CAAC,CAAC,CAAC,GAAG,MAAM,IAAI,sBAAsB,CAAC,CAAC,CAAC,CAE1G;AAED,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,oBAAoB,CAAC,OAAO,CAAC,GAAG,MAAM,IAAI,qBAAqB,CAExG"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Condition, ConditionStatus, ConditionType, ListMeta, ObjectMeta } from '@flightctl/types';
|
|
2
|
+
import { AnnotationType, ApiQuery, FlightControlQuery, MetricsQuery } from '../types/extraTypes';
|
|
3
|
+
declare const isApiQuery: (query: ApiQuery | MetricsQuery) => query is ApiQuery;
|
|
4
|
+
declare const getApiQueryString: (apiQuery: ApiQuery) => string;
|
|
5
|
+
declare const getMetricsQueryString: (metricsQuery: MetricsQuery) => string;
|
|
6
|
+
/**
|
|
7
|
+
* Builds the query string hash that identifies this query based only on its parameters
|
|
8
|
+
* @param queryObj
|
|
9
|
+
*/
|
|
10
|
+
declare const getQueryStringHash: (queryObj: FlightControlQuery) => string;
|
|
11
|
+
/**
|
|
12
|
+
* Builds the query string that should be triggered, adding time parameters etc to the base query string
|
|
13
|
+
* @param queryObj
|
|
14
|
+
*/
|
|
15
|
+
declare const getRequestQueryString: (queryObj: FlightControlQuery) => string;
|
|
16
|
+
interface ApiList {
|
|
17
|
+
items: Array<unknown>;
|
|
18
|
+
metadata: ListMeta;
|
|
19
|
+
}
|
|
20
|
+
declare const getApiListCount: (listResponse: ApiList | undefined) => number | undefined;
|
|
21
|
+
declare const getMetadataAnnotation: (metadata: ObjectMeta | undefined, annotation: AnnotationType) => string | undefined;
|
|
22
|
+
declare const getCondition: (conditions: Condition[] | undefined, type: ConditionType, status?: ConditionStatus) => Condition | undefined;
|
|
23
|
+
export { isApiQuery, getRequestQueryString, getQueryStringHash, getMetadataAnnotation, getApiQueryString, getMetricsQueryString, getApiListCount, getCondition, };
|
|
24
|
+
//# sourceMappingURL=api.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../../src/utils/api.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,eAAe,EAAE,aAAa,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAEnG,OAAO,EAAE,cAAc,EAAE,QAAQ,EAAE,kBAAkB,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAGjG,QAAA,MAAM,UAAU,UAAW,QAAQ,GAAG,YAAY,sBAA2C,CAAC;AAE9F,QAAA,MAAM,iBAAiB,aAAc,QAAQ,WAAsB,CAAC;AAEpE,QAAA,MAAM,qBAAqB,iBAAkB,YAAY,WAUxD,CAAC;AAEF;;;GAGG;AACH,QAAA,MAAM,kBAAkB,aAAc,kBAAkB,WAMvD,CAAC;AAEF;;;GAGG;AACH,QAAA,MAAM,qBAAqB,aAAc,kBAAkB,WAK1D,CAAC;AAEF,UAAU,OAAO;IACf,KAAK,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC;IACtB,QAAQ,EAAE,QAAQ,CAAC;CACpB;AAED,QAAA,MAAM,eAAe,iBAAkB,OAAO,GAAG,SAAS,KAAG,MAAM,GAAG,SAOrE,CAAC;AAEF,QAAA,MAAM,qBAAqB,aAAc,UAAU,GAAG,SAAS,cAAc,cAAc,uBAK1F,CAAC;AAEF,QAAA,MAAM,YAAY,eACJ,SAAS,EAAE,GAAG,SAAS,QAC7B,aAAa,WACX,eAAe,0BAOxB,CAAC;AAEF,OAAO,EACL,UAAU,EACV,qBAAqB,EACrB,kBAAkB,EAClB,qBAAqB,EACrB,iBAAiB,EACjB,qBAAqB,EACrB,eAAe,EACf,YAAY,GACb,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { TFunction } from 'i18next';
|
|
2
|
+
declare const getDateDisplay: (timestamp?: string, withTime?: boolean) => string;
|
|
3
|
+
declare const timeSinceText: (t: TFunction, timestampStr?: string) => string;
|
|
4
|
+
export { getDateDisplay, timeSinceText };
|
|
5
|
+
//# sourceMappingURL=dates.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dates.d.ts","sourceRoot":"","sources":["../../../src/utils/dates.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAOpC,QAAA,MAAM,cAAc,eAAgB,MAAM,aAAY,OAAO,WAiB5D,CAAC;AAGF,QAAA,MAAM,aAAa,MAAO,SAAS,iBAAiB,MAAM,WA8BzD,CAAC;AAEF,OAAO,EAAE,cAAc,EAAE,aAAa,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"devices.d.ts","sourceRoot":"","sources":["../../../src/utils/devices.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAI9C,QAAA,MAAM,cAAc,aAAc,UAAU,kBAG3C,CAAC;AAEF,OAAO,EAAE,cAAc,EAAE,CAAC"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
const deviceSpec_1 = require("../types/deviceSpec");
|
|
3
|
+
exports.getDeviceFleet = void 0;
|
|
5
4
|
const deviceFleetRegExp = /^Fleet\/(?<fleetName>.*)$/;
|
|
6
5
|
const getDeviceFleet = (metadata) => {
|
|
7
6
|
var _a;
|
|
@@ -9,29 +8,4 @@ const getDeviceFleet = (metadata) => {
|
|
|
9
8
|
return ((_a = match === null || match === void 0 ? void 0 : match.groups) === null || _a === void 0 ? void 0 : _a.fleetName) || null;
|
|
10
9
|
};
|
|
11
10
|
exports.getDeviceFleet = getDeviceFleet;
|
|
12
|
-
const getSourceItems = (specConfigs) => {
|
|
13
|
-
return (specConfigs !== null && specConfigs !== void 0 ? specConfigs : [])
|
|
14
|
-
.map((config) => {
|
|
15
|
-
let sourceItem;
|
|
16
|
-
if ((0, deviceSpec_1.isGitProviderSpec)(config)) {
|
|
17
|
-
sourceItem = { type: 'git', name: config.name, details: config.gitRef.repository };
|
|
18
|
-
}
|
|
19
|
-
else if ((0, deviceSpec_1.isHttpProviderSpec)(config)) {
|
|
20
|
-
sourceItem = { type: 'http', name: config.name, details: config.httpRef.repository };
|
|
21
|
-
}
|
|
22
|
-
else if ((0, deviceSpec_1.isKubeProviderSpec)(config)) {
|
|
23
|
-
sourceItem = {
|
|
24
|
-
type: 'secret',
|
|
25
|
-
name: config.name,
|
|
26
|
-
details: `${config.secretRef.namespace || ''}/${config.secretRef.name || ''}`,
|
|
27
|
-
};
|
|
28
|
-
}
|
|
29
|
-
else {
|
|
30
|
-
sourceItem = { type: 'inline', name: config.name, details: '' };
|
|
31
|
-
}
|
|
32
|
-
return sourceItem;
|
|
33
|
-
})
|
|
34
|
-
.filter((repoName) => !!repoName);
|
|
35
|
-
};
|
|
36
|
-
exports.getSourceItems = getSourceItems;
|
|
37
11
|
//# sourceMappingURL=devices.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"devices.js","sourceRoot":"","sources":["../../../src/utils/devices.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"devices.js","sourceRoot":"","sources":["../../../src/utils/devices.ts"],"names":[],"mappings":";;;AAEA,MAAM,iBAAiB,GAAG,2BAA2B,CAAC;AAEtD,MAAM,cAAc,GAAG,CAAC,QAAoB,EAAE,EAAE;;IAC9C,MAAM,KAAK,GAAG,iBAAiB,CAAC,IAAI,CAAC,QAAQ,CAAC,KAAK,IAAI,EAAE,CAAC,CAAC;IAC3D,OAAO,CAAA,MAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,MAAM,0CAAE,SAAS,KAAI,IAAI,CAAC;AAC1C,CAAC,CAAC;AAEO,wCAAc"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"error.d.ts","sourceRoot":"","sources":["../../../src/utils/error.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAElD,eAAO,MAAM,eAAe,UAAW,OAAO,KAAG,MAWhD,CAAC;AAIF,eAAO,MAAM,mBAAmB,cAAe,SAAS,WAAW,MAAM,KAAG,MAG7D,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { FlightCtlLabel } from '../types/extraTypes';
|
|
2
|
+
type LabelOptions = {
|
|
3
|
+
isDefault?: boolean;
|
|
4
|
+
};
|
|
5
|
+
export declare const fromAPILabel: (labels: Record<string, string>, options?: LabelOptions) => FlightCtlLabel[];
|
|
6
|
+
export declare const toAPILabel: (labels: FlightCtlLabel[]) => Record<string, string>;
|
|
7
|
+
export declare const labelToString: (label: FlightCtlLabel) => string;
|
|
8
|
+
export declare const stringToLabel: (labelStr: string) => FlightCtlLabel;
|
|
9
|
+
export declare const filterDevicesLabels: (allLabels: FlightCtlLabel[], selectedLabels: FlightCtlLabel[], filter: string) => string[];
|
|
10
|
+
export {};
|
|
11
|
+
//# sourceMappingURL=labels.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"labels.d.ts","sourceRoot":"","sources":["../../../src/utils/labels.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAErD,KAAK,YAAY,GAAG;IAClB,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,CAAC;AAEF,eAAO,MAAM,YAAY,WAAY,OAAO,MAAM,EAAE,MAAM,CAAC,YAAY,YAAY,KAAG,cAAc,EAK/F,CAAC;AAEN,eAAO,MAAM,UAAU,WAAY,cAAc,EAAE,KAAG,OAAO,MAAM,EAAE,MAAM,CASxE,CAAC;AAEJ,eAAO,MAAM,aAAa,UAAW,cAAc,WAA0D,CAAC;AAE9G,eAAO,MAAM,aAAa,aAAc,MAAM,KAAG,cAMhD,CAAC;AAEF,eAAO,MAAM,mBAAmB,cAAe,cAAc,EAAE,kBAAkB,cAAc,EAAE,UAAU,MAAM,aAKhH,CAAC"}
|
package/dist/src/utils/labels.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.filterDevicesLabels = exports.stringToLabel = exports.labelToString = exports.toAPILabel = exports.fromAPILabel = void 0;
|
|
4
|
-
const search_1 = require("./search");
|
|
5
4
|
const fromAPILabel = (labels, options) => Object.entries(labels).map((labelEntry) => ({
|
|
6
5
|
key: labelEntry[0],
|
|
7
6
|
value: labelEntry[1],
|
|
@@ -25,19 +24,10 @@ const stringToLabel = (labelStr) => {
|
|
|
25
24
|
};
|
|
26
25
|
};
|
|
27
26
|
exports.stringToLabel = stringToLabel;
|
|
28
|
-
const filterDevicesLabels = (
|
|
29
|
-
const filteredLabels = [
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
const deviceLabels = curr.metadata.labels || {};
|
|
33
|
-
acc.push(...(0, exports.fromAPILabel)(deviceLabels));
|
|
34
|
-
return acc;
|
|
35
|
-
}, []),
|
|
36
|
-
...additionalLabels,
|
|
37
|
-
].map(exports.labelToString)),
|
|
38
|
-
]
|
|
39
|
-
.sort()
|
|
40
|
-
.filter((label) => (0, search_1.fuzzySeach)(filter, label));
|
|
27
|
+
const filterDevicesLabels = (allLabels, selectedLabels, filter) => {
|
|
28
|
+
const filteredLabels = [...new Set(allLabels.concat(selectedLabels).map(exports.labelToString))]
|
|
29
|
+
.sort((a, b) => a.localeCompare(b, undefined, { sensitivity: 'base' })) // ignore case
|
|
30
|
+
.filter((label) => label.includes(filter));
|
|
41
31
|
return filteredLabels;
|
|
42
32
|
};
|
|
43
33
|
exports.filterDevicesLabels = filterDevicesLabels;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"labels.js","sourceRoot":"","sources":["../../../src/utils/labels.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"labels.js","sourceRoot":"","sources":["../../../src/utils/labels.ts"],"names":[],"mappings":";;;AAMO,MAAM,YAAY,GAAG,CAAC,MAA8B,EAAE,OAAsB,EAAoB,EAAE,CACvG,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,CAAC,UAAU,EAAE,EAAE,CAAC,CAAC;IAC1C,GAAG,EAAE,UAAU,CAAC,CAAC,CAAC;IAClB,KAAK,EAAE,UAAU,CAAC,CAAC,CAAC;IACpB,SAAS,EAAE,CAAA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C,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,EAAE,SAAS,EAAE,EAAE,WAAW,EAAE,MAAM,EAAE,CAAC,CAAC,CAAC,cAAc;SACrF,MAAM,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC;IAC7C,OAAO,cAAc,CAAC;AACxB,CAAC,CAAC;AALW,QAAA,mBAAmB,uBAK9B"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { MetricValue, PrometheusMetric } from '../types/extraTypes';
|
|
2
|
+
declare const getMetricSeries: (metrics: PrometheusMetric[], name: string) => MetricValue[];
|
|
3
|
+
declare const getPeriodTimestamps: (period: string) => {
|
|
4
|
+
from: number;
|
|
5
|
+
to: number;
|
|
6
|
+
step: number;
|
|
7
|
+
};
|
|
8
|
+
export { getMetricSeries, getPeriodTimestamps };
|
|
9
|
+
//# sourceMappingURL=metrics.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"metrics.d.ts","sourceRoot":"","sources":["../../../src/utils/metrics.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAEpE,QAAA,MAAM,eAAe,YAAa,gBAAgB,EAAE,QAAQ,MAAM,KAAG,WAAW,EAQ/E,CAAC;AAGF,QAAA,MAAM,mBAAmB,WAAY,MAAM;;;;CAiC1C,CAAC;AAEF,OAAO,EAAE,eAAe,EAAE,mBAAmB,EAAE,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ApplicationSpec, PatchRequest } from '@flightctl/types';
|
|
2
|
+
import { FlightCtlLabel } from '../types/extraTypes';
|
|
3
|
+
import { ApplicationFormSpec } from '../components/Device/EditDeviceWizard/types';
|
|
4
|
+
export declare const appendJSONPatch: <V = unknown>({ patches, newValue, originalValue, path, encodeB64, }: {
|
|
5
|
+
patches: PatchRequest;
|
|
6
|
+
newValue: V;
|
|
7
|
+
originalValue: V;
|
|
8
|
+
path: string;
|
|
9
|
+
encodeB64?: boolean | undefined;
|
|
10
|
+
}) => void;
|
|
11
|
+
export declare const getStringListPatches: (path: string, currentList: string[], newList: string[], valueBuilder: (value: string[]) => unknown) => PatchRequest;
|
|
12
|
+
export declare const getLabelPatches: (basePath: string, currentLabels: Record<string, string>, newLabels: FlightCtlLabel[]) => PatchRequest;
|
|
13
|
+
export declare const toAPIApplication: (app: ApplicationFormSpec) => ApplicationSpec;
|
|
14
|
+
export declare const getApplicationPatches: (basePath: string, currentApps: ApplicationSpec[], updatedApps: ApplicationFormSpec[]) => PatchRequest;
|
|
15
|
+
//# sourceMappingURL=patch.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"patch.d.ts","sourceRoot":"","sources":["../../../src/utils/patch.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAKjE,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAErD,OAAO,EAAE,mBAAmB,EAAE,MAAM,6CAA6C,CAAC;AAElF,eAAO,MAAM,eAAe;;;;UAUpB,MAAM;;UAmBb,CAAC;AAEF,eAAO,MAAM,oBAAoB,SACzB,MAAM,eACC,MAAM,EAAE,WACZ,MAAM,EAAE,wBACK,MAAM,EAAE,KAAK,OAAO,iBA+B3C,CAAC;AAEF,eAAO,MAAM,eAAe,aAChB,MAAM,iBACD,OAAO,MAAM,EAAE,MAAM,CAAC,aAC1B,cAAc,EAAE,iBA+C5B,CAAC;AAEF,eAAO,MAAM,gBAAgB,QAAS,mBAAmB,KAAG,eAiB3D,CAAC;AAEF,eAAO,MAAM,qBAAqB,aACtB,MAAM,eACH,eAAe,EAAE,eACjB,mBAAmB,EAAE,iBAkDnC,CAAC"}
|
package/dist/src/utils/patch.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getLabelPatches = exports.getStringListPatches = exports.appendJSONPatch = void 0;
|
|
3
|
+
exports.getApplicationPatches = exports.toAPIApplication = exports.getLabelPatches = exports.getStringListPatches = exports.appendJSONPatch = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const isNil_1 = tslib_1.__importDefault(require("lodash/isNil"));
|
|
6
6
|
const isEqual_1 = tslib_1.__importDefault(require("lodash/isEqual"));
|
|
@@ -105,4 +105,74 @@ const getLabelPatches = (basePath, currentLabels, newLabels) => {
|
|
|
105
105
|
return patches;
|
|
106
106
|
};
|
|
107
107
|
exports.getLabelPatches = getLabelPatches;
|
|
108
|
+
const toAPIApplication = (app) => {
|
|
109
|
+
const envVars = app.variables.reduce((acc, variable) => {
|
|
110
|
+
acc[variable.name] = variable.value;
|
|
111
|
+
return acc;
|
|
112
|
+
}, {});
|
|
113
|
+
return app.name
|
|
114
|
+
? {
|
|
115
|
+
name: app.name,
|
|
116
|
+
image: app.image,
|
|
117
|
+
envVars,
|
|
118
|
+
}
|
|
119
|
+
: {
|
|
120
|
+
// Name must not be sent, otherwise the API expects it to have a value
|
|
121
|
+
image: app.image,
|
|
122
|
+
envVars,
|
|
123
|
+
};
|
|
124
|
+
};
|
|
125
|
+
exports.toAPIApplication = toAPIApplication;
|
|
126
|
+
const getApplicationPatches = (basePath, currentApps, updatedApps) => {
|
|
127
|
+
const patches = [];
|
|
128
|
+
const currentLen = currentApps.length;
|
|
129
|
+
const newLen = updatedApps.length;
|
|
130
|
+
if (currentLen === 0 && newLen > 0) {
|
|
131
|
+
// First apps(s) have been added
|
|
132
|
+
patches.push({
|
|
133
|
+
path: `${basePath}/applications`,
|
|
134
|
+
op: 'add',
|
|
135
|
+
value: updatedApps.map(exports.toAPIApplication),
|
|
136
|
+
});
|
|
137
|
+
}
|
|
138
|
+
else if (currentLen > 0 && newLen === 0) {
|
|
139
|
+
// Last app(s) have been removed
|
|
140
|
+
patches.push({
|
|
141
|
+
path: `${basePath}/applications`,
|
|
142
|
+
op: 'remove',
|
|
143
|
+
});
|
|
144
|
+
}
|
|
145
|
+
else if (currentLen !== newLen) {
|
|
146
|
+
patches.push({
|
|
147
|
+
path: `${basePath}/applications`,
|
|
148
|
+
op: 'replace',
|
|
149
|
+
value: updatedApps.map(exports.toAPIApplication),
|
|
150
|
+
});
|
|
151
|
+
}
|
|
152
|
+
else {
|
|
153
|
+
const needsPatch = currentApps.some((currentApp, index) => {
|
|
154
|
+
const updatedApp = updatedApps[index];
|
|
155
|
+
if (updatedApp.name !== currentApp.name || updatedApp.image !== currentApp.image) {
|
|
156
|
+
return true;
|
|
157
|
+
}
|
|
158
|
+
const currentVars = Object.entries(currentApp.envVars || {});
|
|
159
|
+
if (currentVars.length !== updatedApp.variables.length) {
|
|
160
|
+
return true;
|
|
161
|
+
}
|
|
162
|
+
return updatedApp.variables.some((variable) => {
|
|
163
|
+
const currentValue = currentApp.envVars ? currentApp.envVars[variable.name] : undefined;
|
|
164
|
+
return !currentValue || currentValue !== variable.value;
|
|
165
|
+
});
|
|
166
|
+
});
|
|
167
|
+
if (needsPatch) {
|
|
168
|
+
patches.push({
|
|
169
|
+
path: `${basePath}/applications`,
|
|
170
|
+
op: 'replace',
|
|
171
|
+
value: updatedApps.map(exports.toAPIApplication),
|
|
172
|
+
});
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
return patches;
|
|
176
|
+
};
|
|
177
|
+
exports.getApplicationPatches = getApplicationPatches;
|
|
108
178
|
//# sourceMappingURL=patch.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"patch.js","sourceRoot":"","sources":["../../../src/utils/patch.ts"],"names":[],"mappings":";;;;AACA,iEAAiC;AACjC,qEAAqC;AACrC,mFAAmD;AAGnD,qCAAsC;
|
|
1
|
+
{"version":3,"file":"patch.js","sourceRoot":"","sources":["../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