@osdk/react-components 0.34.0 → 0.34.1-main-e39a72892d538f3130e2cd51cee05d83d11fa493
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/CHANGELOG.md +10 -0
- package/build/browser/action-form/ActionForm.js.map +1 -1
- package/build/browser/action-form/ActionFormApi.js.map +1 -1
- package/build/browser/action-form/BaseForm.js +3 -3
- package/build/browser/action-form/BaseForm.js.map +1 -1
- package/build/browser/action-form/FormField.js.map +1 -1
- package/build/browser/action-form/FormFieldApi.js.map +1 -1
- package/build/browser/action-form/FormHeader.js.map +1 -1
- package/build/browser/action-form/FormSection.js.map +1 -1
- package/build/browser/action-form/fields/AsyncDropdownField.js +1 -1
- package/build/browser/action-form/fields/AsyncDropdownField.js.map +1 -1
- package/build/browser/action-form/fields/CustomField.js.map +1 -1
- package/build/browser/action-form/fields/DropdownField.js +2 -2
- package/build/browser/action-form/fields/DropdownField.js.map +1 -1
- package/build/browser/action-form/fields/FieldBridge.js.map +1 -1
- package/build/browser/action-form/fields/FilePickerField.js.map +1 -1
- package/build/browser/action-form/fields/FormFieldRenderer.js.map +1 -1
- package/build/browser/action-form/fields/NumberInputField.js.map +1 -1
- package/build/browser/action-form/fields/ObjectSelectField.js.map +1 -1
- package/build/browser/action-form/fields/ObjectSetField.js.map +1 -1
- package/build/browser/action-form/fields/RadioButtonsField.js.map +1 -1
- package/build/browser/action-form/fields/SwitchField.js.map +1 -1
- package/build/browser/action-form/fields/TextAreaField.js.map +1 -1
- package/build/browser/action-form/fields/TextInputField.js.map +1 -1
- package/build/browser/action-form/utils/coerceFieldValue.js.map +1 -1
- package/build/browser/action-form/utils/extractValidationRules.js.map +1 -1
- package/build/browser/action-form/utils/getDefaultFieldDefinitions.js.map +1 -1
- package/build/browser/aip-agent-chat/AipAgentChat.js.map +1 -1
- package/build/browser/aip-agent-chat/BaseAipAgentChat.js +1 -1
- package/build/browser/aip-agent-chat/BaseAipAgentChat.js.map +1 -1
- package/build/browser/aip-agent-chat/components/AipAgentChatComposer.js.map +1 -1
- package/build/browser/aip-agent-chat/components/AipAgentChatLoader.js.map +1 -1
- package/build/browser/aip-agent-chat/components/AipAgentChatMessage.js.map +1 -1
- package/build/browser/aip-agent-chat/components/AipAgentChatMessageList.js +1 -1
- package/build/browser/aip-agent-chat/components/AipAgentChatMessageList.js.map +1 -1
- package/build/browser/aip-agent-chat/components/AipAgentChatModelPicker.js.map +1 -1
- package/build/browser/aip-agent-chat/hooks/useChatAutoScroll.js.map +1 -1
- package/build/browser/base-components/action-button/ActionButton.js.map +1 -1
- package/build/browser/base-components/callout/Callout.js.map +1 -1
- package/build/browser/base-components/checkbox/Checkbox.js.map +1 -1
- package/build/browser/base-components/combobox/Combobox.js.map +1 -1
- package/build/browser/base-components/dialog/Dialog.js.map +1 -1
- package/build/browser/base-components/draggable-list/DraggableList.js +1 -1
- package/build/browser/base-components/draggable-list/DraggableList.js.map +1 -1
- package/build/browser/base-components/icon/BlueprintIcon.js.map +1 -1
- package/build/browser/base-components/search-bar/SearchBar.js.map +1 -1
- package/build/browser/base-components/searchable-menu/SearchableMenu.js.map +1 -1
- package/build/browser/base-components/select/Select.js.map +1 -1
- package/build/browser/base-components/skeleton/SkeletonBar.js.map +1 -1
- package/build/browser/base-components/switch/Switch.js.map +1 -1
- package/build/browser/base-components/tooltip/Tooltip.js.map +1 -1
- package/build/browser/cbac-picker/CbacBanner.js.map +1 -1
- package/build/browser/cbac-picker/CbacBannerPopover.js.map +1 -1
- package/build/browser/cbac-picker/CbacPicker.js.map +1 -1
- package/build/browser/cbac-picker/CbacPickerDialog.js.map +1 -1
- package/build/browser/cbac-picker/base/BaseCbacBanner.js.map +1 -1
- package/build/browser/cbac-picker/base/BaseCbacBannerPopover.js.map +1 -1
- package/build/browser/cbac-picker/base/BaseCbacPicker.js +1 -1
- package/build/browser/cbac-picker/base/BaseCbacPicker.js.map +1 -1
- package/build/browser/cbac-picker/base/BaseCbacPickerDialog.js.map +1 -1
- package/build/browser/cbac-picker/base/CategoryMarkingGroup.js +1 -1
- package/build/browser/cbac-picker/base/CategoryMarkingGroup.js.map +1 -1
- package/build/browser/cbac-picker/base/CbacPickerDialogFooter.js.map +1 -1
- package/build/browser/cbac-picker/base/InfoBanner.js.map +1 -1
- package/build/browser/cbac-picker/base/MarkingButton.js +1 -1
- package/build/browser/cbac-picker/base/MarkingButton.js.map +1 -1
- package/build/browser/cbac-picker/base/MaxClassificationField.js.map +1 -1
- package/build/browser/cbac-picker/base/OverflowButton.js +1 -1
- package/build/browser/cbac-picker/base/OverflowButton.js.map +1 -1
- package/build/browser/cbac-picker/base/OverflowItem.js +1 -1
- package/build/browser/cbac-picker/base/OverflowItem.js.map +1 -1
- package/build/browser/cbac-picker/base/ValidationWarning.js.map +1 -1
- package/build/browser/cbac-picker/base/selectionStateHelpers.js.map +1 -1
- package/build/browser/cbac-picker/useCbacPickerState.js.map +1 -1
- package/build/browser/cbac-picker/useCbacSelection.js.map +1 -1
- package/build/browser/cbac-picker/useConstraintCallout.js.map +1 -1
- package/build/browser/cbac-picker/utils/cbacPickerUtils.js.map +1 -1
- package/build/browser/cbac-picker/utils/errorMessages.js.map +1 -1
- package/build/browser/cbac-picker/utils/selectionLogic.js.map +1 -1
- package/build/browser/cbac-picker/utils/validationMessages.js.map +1 -1
- package/build/browser/document-viewer/DocumentViewer.js +1 -1
- package/build/browser/document-viewer/DocumentViewer.js.map +1 -1
- package/build/browser/document-viewer/DocumentViewerApi.js.map +1 -1
- package/build/browser/document-viewer/TiffDocumentViewer.js +1 -1
- package/build/browser/document-viewer/TiffDocumentViewer.js.map +1 -1
- package/build/browser/document-viewer/hooks/useTiffToPdf.js.map +1 -1
- package/build/browser/email-viewer/BaseEmailViewer.js.map +1 -1
- package/build/browser/email-viewer/EmailViewer.js +1 -1
- package/build/browser/email-viewer/EmailViewer.js.map +1 -1
- package/build/browser/email-viewer/EmailViewerApi.js.map +1 -1
- package/build/browser/email-viewer/parseEmail.js.map +1 -1
- package/build/browser/excel-viewer/BaseExcelViewer.js +1 -0
- package/build/browser/excel-viewer/BaseExcelViewer.js.map +1 -1
- package/build/browser/excel-viewer/ExcelViewer.js +1 -1
- package/build/browser/excel-viewer/ExcelViewer.js.map +1 -1
- package/build/browser/excel-viewer/ExcelViewerApi.js.map +1 -1
- package/build/browser/excel-viewer/parseSpreadsheet.js.map +1 -1
- package/build/browser/filter-list/FilterInput.js.map +1 -1
- package/build/browser/filter-list/FilterList.js.map +1 -1
- package/build/browser/filter-list/FilterListApi.js.map +1 -1
- package/build/browser/filter-list/FilterListItemApi.js.map +1 -1
- package/build/browser/filter-list/base/AddFilterPopover.js +1 -1
- package/build/browser/filter-list/base/AddFilterPopover.js.map +1 -1
- package/build/browser/filter-list/base/BaseFilterList.js +1 -1
- package/build/browser/filter-list/base/BaseFilterList.js.map +1 -1
- package/build/browser/filter-list/base/BaseFilterListApi.js.map +1 -1
- package/build/browser/filter-list/base/ExcludeDropdown.js +1 -1
- package/build/browser/filter-list/base/ExcludeDropdown.js.map +1 -1
- package/build/browser/filter-list/base/FilterInputExcludeRow.js.map +1 -1
- package/build/browser/filter-list/base/FilterListContent.js +1 -1
- package/build/browser/filter-list/base/FilterListContent.js.map +1 -1
- package/build/browser/filter-list/base/FilterListHeader.js.map +1 -1
- package/build/browser/filter-list/base/FilterListItem.js.map +1 -1
- package/build/browser/filter-list/base/FilterPopover.js.map +1 -1
- package/build/browser/filter-list/base/SortableFilterListItem.js.map +1 -1
- package/build/browser/filter-list/base/inputs/ContainsTextInput.js.map +1 -1
- package/build/browser/filter-list/base/inputs/DateRangeHistogramInput.js.map +1 -1
- package/build/browser/filter-list/base/inputs/EmptyStringLabel.js +1 -0
- package/build/browser/filter-list/base/inputs/EmptyStringLabel.js.map +1 -1
- package/build/browser/filter-list/base/inputs/HistogramTooltip.js.map +1 -1
- package/build/browser/filter-list/base/inputs/ListogramInput.js +2 -2
- package/build/browser/filter-list/base/inputs/ListogramInput.js.map +1 -1
- package/build/browser/filter-list/base/inputs/ListogramSkeleton.js.map +1 -1
- package/build/browser/filter-list/base/inputs/MultiDateInput.js.map +1 -1
- package/build/browser/filter-list/base/inputs/MultiSelectDropdownLayout.js.map +1 -1
- package/build/browser/filter-list/base/inputs/MultiSelectInlineLayout.js.map +1 -1
- package/build/browser/filter-list/base/inputs/MultiSelectInput.js +2 -2
- package/build/browser/filter-list/base/inputs/MultiSelectInput.js.map +1 -1
- package/build/browser/filter-list/base/inputs/NoValueLabel.js.map +1 -1
- package/build/browser/filter-list/base/inputs/NullValueWrapper.js.map +1 -1
- package/build/browser/filter-list/base/inputs/NumberRangeInput.js.map +1 -1
- package/build/browser/filter-list/base/inputs/OptionLabel.js.map +1 -1
- package/build/browser/filter-list/base/inputs/RangeInput.js +1 -1
- package/build/browser/filter-list/base/inputs/RangeInput.js.map +1 -1
- package/build/browser/filter-list/base/inputs/SelectInputSkeleton.js.map +1 -1
- package/build/browser/filter-list/base/inputs/SingleDateInput.js.map +1 -1
- package/build/browser/filter-list/base/inputs/SingleSelectInput.js +1 -1
- package/build/browser/filter-list/base/inputs/SingleSelectInput.js.map +1 -1
- package/build/browser/filter-list/base/inputs/TextTagsInput.js.map +1 -1
- package/build/browser/filter-list/base/inputs/TimelineInput.js.map +1 -1
- package/build/browser/filter-list/base/inputs/ToggleInput.js.map +1 -1
- package/build/browser/filter-list/base/inputs/comboboxFilter.js.map +1 -1
- package/build/browser/filter-list/base/inputs/createDateHistogramBuckets.js.map +1 -1
- package/build/browser/filter-list/base/inputs/createHistogramBuckets.js.map +1 -1
- package/build/browser/filter-list/hooks/useDualScopeAggregation.js.map +1 -1
- package/build/browser/filter-list/hooks/useFilterListState.js.map +1 -1
- package/build/browser/filter-list/hooks/useFilterPropertyAggregation.js.map +1 -1
- package/build/browser/filter-list/hooks/useFilterVisibility.js.map +1 -1
- package/build/browser/filter-list/hooks/usePropertyAggregation.js.map +1 -1
- package/build/browser/filter-list/inputs/ContainsTextFilterInput.js.map +1 -1
- package/build/browser/filter-list/inputs/DateRangeFilterInput.js.map +1 -1
- package/build/browser/filter-list/inputs/LinkedPropertyInput.js +1 -1
- package/build/browser/filter-list/inputs/LinkedPropertyInput.js.map +1 -1
- package/build/browser/filter-list/inputs/ListogramFilterInput.js.map +1 -1
- package/build/browser/filter-list/inputs/MultiDateFilterInput.js.map +1 -1
- package/build/browser/filter-list/inputs/MultiSelectFilterInput.js.map +1 -1
- package/build/browser/filter-list/inputs/NumberRangeFilterInput.js.map +1 -1
- package/build/browser/filter-list/inputs/PropertyFilterInput.js.map +1 -1
- package/build/browser/filter-list/inputs/SingleDateFilterInput.js.map +1 -1
- package/build/browser/filter-list/inputs/SingleSelectFilterInput.js.map +1 -1
- package/build/browser/filter-list/inputs/StaticValuesFilterInput.js.map +1 -1
- package/build/browser/filter-list/inputs/TextTagsFilterInput.js.map +1 -1
- package/build/browser/filter-list/inputs/TimelineFilterInput.js.map +1 -1
- package/build/browser/filter-list/inputs/ToggleFilterInput.js.map +1 -1
- package/build/browser/filter-list/types/CustomRendererTypes.js.map +1 -1
- package/build/browser/filter-list/types/KeywordSearchTypes.js.map +1 -1
- package/build/browser/filter-list/types/LinkedFilterTypes.js.map +1 -1
- package/build/browser/filter-list/types/StaticValuesTypes.js.map +1 -1
- package/build/browser/filter-list/utils/aggregationHelpers.js.map +1 -1
- package/build/browser/filter-list/utils/coerceFilterValue.js.map +1 -1
- package/build/browser/filter-list/utils/emptyFilterDisplayState.js.map +1 -1
- package/build/browser/filter-list/utils/filterStateSerialization.js.map +1 -1
- package/build/browser/filter-list/utils/filterStateToWhereClause.js.map +1 -1
- package/build/browser/filter-list/utils/filterValues.js.map +1 -1
- package/build/browser/filter-list/utils/getFilterKey.js.map +1 -1
- package/build/browser/filter-list/utils/getFilterLabel.js.map +1 -1
- package/build/browser/filter-list/utils/narrowObjectSet.js.map +1 -1
- package/build/browser/filter-list/utils/summarizeFilterValue.js.map +1 -1
- package/build/browser/images/image-viewer/BaseImageViewer.js.map +1 -1
- package/build/browser/images/image-viewer/ImageViewer.js.map +1 -1
- package/build/browser/images/image-viewer/ImageViewerApi.js.map +1 -1
- package/build/browser/images/tiff-renderer/TiffRenderer.js +1 -0
- package/build/browser/images/tiff-renderer/TiffRenderer.js.map +1 -1
- package/build/browser/images/tiff-renderer/TiffViewerMedia.js.map +1 -1
- package/build/browser/markdown-renderer/MarkdownRenderer.js.map +1 -1
- package/build/browser/markdown-renderer/MarkdownViewerMedia.js.map +1 -1
- package/build/browser/object-table/CellContextMenu.js.map +1 -1
- package/build/browser/object-table/ColumnConfigDialog.js.map +1 -1
- package/build/browser/object-table/DefaultCellRenderer.js +4 -3
- package/build/browser/object-table/DefaultCellRenderer.js.map +1 -1
- package/build/browser/object-table/EditableCell.js +1 -1
- package/build/browser/object-table/EditableCell.js.map +1 -1
- package/build/browser/object-table/LoadingCell.js.map +1 -1
- package/build/browser/object-table/LoadingRow.js +1 -1
- package/build/browser/object-table/LoadingRow.js.map +1 -1
- package/build/browser/object-table/LoadingStateTable.js +3 -3
- package/build/browser/object-table/LoadingStateTable.js.map +1 -1
- package/build/browser/object-table/MultiColumnSortDialog.js +1 -1
- package/build/browser/object-table/MultiColumnSortDialog.js.map +1 -1
- package/build/browser/object-table/NonIdealState.js.map +1 -1
- package/build/browser/object-table/ObjectTable.js.map +1 -1
- package/build/browser/object-table/ObjectTableApi.js.map +1 -1
- package/build/browser/object-table/SelectionCells.js.map +1 -1
- package/build/browser/object-table/SortableItemsList.js.map +1 -1
- package/build/browser/object-table/Table.js +1 -1
- package/build/browser/object-table/Table.js.map +1 -1
- package/build/browser/object-table/TableBody.js +1 -1
- package/build/browser/object-table/TableBody.js.map +1 -1
- package/build/browser/object-table/TableCell.js +1 -1
- package/build/browser/object-table/TableCell.js.map +1 -1
- package/build/browser/object-table/TableEditContainer.js.map +1 -1
- package/build/browser/object-table/TableHeader.js +1 -1
- package/build/browser/object-table/TableHeader.js.map +1 -1
- package/build/browser/object-table/TableHeaderContent.js.map +1 -1
- package/build/browser/object-table/TableHeaderWithPopover.js.map +1 -1
- package/build/browser/object-table/TableRow.js.map +1 -1
- package/build/browser/object-table/components/AsyncValueCell.js.map +1 -1
- package/build/browser/object-table/components/CbacMarkingCell.js.map +1 -1
- package/build/browser/object-table/components/DatePickerCellField.js +1 -1
- package/build/browser/object-table/components/DatePickerCellField.js.map +1 -1
- package/build/browser/object-table/components/DropdownCellField.js +1 -1
- package/build/browser/object-table/components/DropdownCellField.js.map +1 -1
- package/build/browser/object-table/components/MandatoryMarkingCell.js.map +1 -1
- package/build/browser/object-table/components/ReadonlyDisplayCell.js.map +1 -1
- package/build/browser/object-table/components/TextInputCellField.js.map +1 -1
- package/build/browser/object-table/hooks/useCellContextMenu.js.map +1 -1
- package/build/browser/object-table/hooks/useColumnDefs.js.map +1 -1
- package/build/browser/object-table/hooks/useColumnPinning.js.map +1 -1
- package/build/browser/object-table/hooks/useColumnResize.js.map +1 -1
- package/build/browser/object-table/hooks/useColumnVisibility.js.map +1 -1
- package/build/browser/object-table/hooks/useEditableTable.js.map +1 -1
- package/build/browser/object-table/hooks/useFocusedRow.js.map +1 -1
- package/build/browser/object-table/hooks/useFunctionColumnsData.js.map +1 -1
- package/build/browser/object-table/hooks/useObjectTableData.js.map +1 -1
- package/build/browser/object-table/hooks/useObjectTableSnapshot.js.map +1 -1
- package/build/browser/object-table/hooks/useRowSelection.js.map +1 -1
- package/build/browser/object-table/hooks/useSelectionColumn.js.map +1 -1
- package/build/browser/object-table/hooks/useTableSorting.js.map +1 -1
- package/build/browser/object-table/utils/AsyncCellData.js.map +1 -1
- package/build/browser/object-table/utils/PortalTracker.js.map +1 -1
- package/build/browser/object-table/utils/deriveSelectionObjectSet.js.map +1 -1
- package/build/browser/object-table/utils/editableUtils.js.map +1 -1
- package/build/browser/object-table/utils/functionColumns.js.map +1 -1
- package/build/browser/object-table/utils/getColumnPinningStyles.js.map +1 -1
- package/build/browser/object-table/utils/getRowId.js.map +1 -1
- package/build/browser/object-table/utils/objectTableSnapshot.js.map +1 -1
- package/build/browser/object-table/utils/shouldShowEditableCell.js.map +1 -1
- package/build/browser/object-table/utils/types.js.map +1 -1
- package/build/browser/pdf-viewer/PdfRenderer.js.map +1 -1
- package/build/browser/pdf-viewer/PdfViewer.js.map +1 -1
- package/build/browser/pdf-viewer/PdfViewerContext.js.map +1 -1
- package/build/browser/pdf-viewer/components/PdfAnnotationOverlay.js.map +1 -1
- package/build/browser/pdf-viewer/components/PdfViewerAnnotationLayer.js.map +1 -1
- package/build/browser/pdf-viewer/components/PdfViewerContent.js +1 -1
- package/build/browser/pdf-viewer/components/PdfViewerContent.js.map +1 -1
- package/build/browser/pdf-viewer/components/PdfViewerOutlineSidebar.js +1 -1
- package/build/browser/pdf-viewer/components/PdfViewerOutlineSidebar.js.map +1 -1
- package/build/browser/pdf-viewer/components/PdfViewerSearchBar.js.map +1 -1
- package/build/browser/pdf-viewer/components/PdfViewerSidebar.js +1 -1
- package/build/browser/pdf-viewer/components/PdfViewerSidebar.js.map +1 -1
- package/build/browser/pdf-viewer/components/PdfViewerSidebarHeader.js.map +1 -1
- package/build/browser/pdf-viewer/components/PdfViewerThumbnail.js.map +1 -1
- package/build/browser/pdf-viewer/components/PdfViewerToolbar.js.map +1 -1
- package/build/browser/pdf-viewer/constants.js.map +1 -1
- package/build/browser/pdf-viewer/hooks/usePdfAnnotationPortals.js.map +1 -1
- package/build/browser/pdf-viewer/hooks/usePdfAnnotationsByPage.js.map +1 -1
- package/build/browser/pdf-viewer/hooks/usePdfDocument.js.map +1 -1
- package/build/browser/pdf-viewer/hooks/usePdfFormFields.js.map +1 -1
- package/build/browser/pdf-viewer/hooks/usePdfHighlightMode.js.map +1 -1
- package/build/browser/pdf-viewer/hooks/usePdfOutline.js.map +1 -1
- package/build/browser/pdf-viewer/hooks/usePdfViewer.js.map +1 -1
- package/build/browser/pdf-viewer/hooks/usePdfViewerCore.js.map +1 -1
- package/build/browser/pdf-viewer/hooks/usePdfViewerSearch.js.map +1 -1
- package/build/browser/pdf-viewer/hooks/usePdfViewerState.js.map +1 -1
- package/build/browser/pdf-viewer/hooks/usePdfViewerSync.js.map +1 -1
- package/build/browser/public/experimental/action-form.js.map +1 -1
- package/build/browser/public/experimental/cbac-picker.js.map +1 -1
- package/build/browser/public/experimental/document-viewer.js.map +1 -1
- package/build/browser/public/experimental/email-viewer.js.map +1 -1
- package/build/browser/public/experimental/excel-viewer.js.map +1 -1
- package/build/browser/public/experimental/filter-list.js.map +1 -1
- package/build/browser/public/experimental/image-viewer.js.map +1 -1
- package/build/browser/public/experimental/markdown-renderer.js.map +1 -1
- package/build/browser/public/experimental/object-table.js.map +1 -1
- package/build/browser/public/experimental/pdf-viewer.js.map +1 -1
- package/build/browser/public/experimental/tiff-renderer.js.map +1 -1
- package/build/browser/public/experimental/video-viewer.js.map +1 -1
- package/build/browser/public/experimental/xml-viewer.js.map +1 -1
- package/build/browser/shared/ErrorBoundary.js.map +1 -1
- package/build/browser/shared/PortalContainerContext.js.map +1 -1
- package/build/browser/shared/PortalDismissLayer.js.map +1 -1
- package/build/browser/shared/calendar/DateCalendar.js +1 -1
- package/build/browser/shared/calendar/DateCalendar.js.map +1 -1
- package/build/browser/shared/calendar/DatePicker.js +2 -2
- package/build/browser/shared/calendar/DatePicker.js.map +1 -1
- package/build/browser/shared/calendar/DateRangeCalendar.js.map +1 -1
- package/build/browser/shared/calendar/DateRangePicker.js +2 -2
- package/build/browser/shared/calendar/DateRangePicker.js.map +1 -1
- package/build/browser/shared/calendar/LazyDateCalendar.js.map +1 -1
- package/build/browser/shared/calendar/LazyDateRangeCalendar.js.map +1 -1
- package/build/browser/shared/calendar/TimePicker.js.map +1 -1
- package/build/browser/shared/calendar/calendarShared.js.map +1 -1
- package/build/browser/shared/calendar/useDateEditState.js.map +1 -1
- package/build/browser/shared/dateUtils.js.map +1 -1
- package/build/browser/shared/hooks/useAsyncAction.js.map +1 -1
- package/build/browser/shared/hooks/useDebouncedValue.js.map +1 -1
- package/build/browser/shared/hooks/useEventCallback.js.map +1 -1
- package/build/browser/shared/hooks/useInfiniteScroll.js.map +1 -1
- package/build/browser/shared/hooks/useMediaContents.js.map +1 -1
- package/build/browser/theme/OsdkThemeContext.js.map +1 -1
- package/build/browser/theme/OsdkThemeProvider.js.map +1 -1
- package/build/browser/theme/useOsdkTheme.js.map +1 -1
- package/build/browser/theme/useSystemTheme.js.map +1 -1
- package/build/browser/util/UserAgent.js +1 -1
- package/build/browser/util/UserAgent.js.map +1 -1
- package/build/browser/util/withOsdkMetrics.js.map +1 -1
- package/build/browser/video-viewer/BaseVideoViewer.js.map +1 -1
- package/build/browser/video-viewer/VideoViewer.js.map +1 -1
- package/build/browser/video-viewer/VideoViewerApi.js.map +1 -1
- package/build/browser/xml-viewer/BaseXmlViewer.js.map +1 -1
- package/build/browser/xml-viewer/XmlViewer.js.map +1 -1
- package/build/browser/xml-viewer/XmlViewerApi.js.map +1 -1
- package/build/cjs/{DateCalendar-OCDSESQR.cjs → DateCalendar-FCZXD24P.cjs} +6 -6
- package/build/cjs/{DateCalendar-OCDSESQR.cjs.map → DateCalendar-FCZXD24P.cjs.map} +1 -1
- package/build/cjs/{DateCalendar-FTW3OIEP.css → DateCalendar-VBZGPZ5P.css} +39 -39
- package/build/cjs/DateCalendar-VBZGPZ5P.css.map +1 -0
- package/build/cjs/{DateRangeCalendar-I4JHCZAK.css → DateRangeCalendar-2M2I5Q3Z.css} +39 -39
- package/build/cjs/DateRangeCalendar-2M2I5Q3Z.css.map +1 -0
- package/build/cjs/DateRangeCalendar-XN2ZWAFK.cjs +12 -0
- package/build/cjs/{DateRangeCalendar-PHC3VPW3.cjs.map → DateRangeCalendar-XN2ZWAFK.cjs.map} +1 -1
- package/build/cjs/{chunk-DA22W6ZO.cjs → chunk-BE226IHU.cjs} +8 -8
- package/build/cjs/chunk-BE226IHU.cjs.map +1 -0
- package/build/cjs/{chunk-XWT6S3FL.cjs → chunk-BFRUHBWM.cjs} +12 -12
- package/build/cjs/{chunk-XWT6S3FL.cjs.map → chunk-BFRUHBWM.cjs.map} +1 -1
- package/build/cjs/chunk-CXMIRPQU.cjs +11 -0
- package/build/cjs/{chunk-PYOEFNQH.cjs.map → chunk-CXMIRPQU.cjs.map} +1 -1
- package/build/cjs/{chunk-CASYBF4M.cjs → chunk-ENE2RWIL.cjs} +25 -23
- package/build/cjs/chunk-ENE2RWIL.cjs.map +1 -0
- package/build/cjs/{chunk-IHVPE5CD.cjs → chunk-G6AOIKDH.cjs} +66 -66
- package/build/cjs/chunk-G6AOIKDH.cjs.map +1 -0
- package/build/cjs/{chunk-U74WOMFV.cjs → chunk-GJ2KJKWI.cjs} +17 -17
- package/build/cjs/{chunk-U74WOMFV.cjs.map → chunk-GJ2KJKWI.cjs.map} +1 -1
- package/build/cjs/chunk-HBU5ZLVP.cjs +11 -0
- package/build/cjs/{chunk-F4JELV7M.cjs.map → chunk-HBU5ZLVP.cjs.map} +1 -1
- package/build/cjs/{chunk-KNZXFIIH.cjs → chunk-HWWTZKC5.cjs} +24 -24
- package/build/cjs/{chunk-KNZXFIIH.cjs.map → chunk-HWWTZKC5.cjs.map} +1 -1
- package/build/cjs/{chunk-YTDSW5OV.cjs → chunk-IHTYJU2F.cjs} +29 -28
- package/build/cjs/chunk-IHTYJU2F.cjs.map +1 -0
- package/build/cjs/{chunk-5KTGUKJT.cjs → chunk-JCN6P3YW.cjs} +4 -4
- package/build/cjs/{chunk-5KTGUKJT.cjs.map → chunk-JCN6P3YW.cjs.map} +1 -1
- package/build/cjs/{chunk-XK4H7EHE.cjs → chunk-KQ4B2XDH.cjs} +5 -5
- package/build/cjs/chunk-KQ4B2XDH.cjs.map +1 -0
- package/build/cjs/{chunk-IISDOJPR.cjs → chunk-LB3IHFAB.cjs} +2 -2
- package/build/cjs/{chunk-IISDOJPR.cjs.map → chunk-LB3IHFAB.cjs.map} +1 -1
- package/build/cjs/{chunk-PUQBJVFU.cjs → chunk-MUDJXY6I.cjs} +22 -22
- package/build/cjs/{chunk-PUQBJVFU.cjs.map → chunk-MUDJXY6I.cjs.map} +1 -1
- package/build/cjs/chunk-NN5IHTYW.cjs +11 -0
- package/build/cjs/{chunk-W6DWGABB.cjs.map → chunk-NN5IHTYW.cjs.map} +1 -1
- package/build/cjs/{chunk-PKJFOG2Z.cjs → chunk-OISZU73V.cjs} +2 -2
- package/build/cjs/{chunk-PKJFOG2Z.cjs.map → chunk-OISZU73V.cjs.map} +1 -1
- package/build/cjs/chunk-PPVWOEYX.cjs +11 -0
- package/build/cjs/{chunk-VRTFHF24.cjs.map → chunk-PPVWOEYX.cjs.map} +1 -1
- package/build/cjs/{chunk-3SJODG6U.cjs → chunk-S2FQCZAB.cjs} +2 -2
- package/build/cjs/{chunk-3SJODG6U.cjs.map → chunk-S2FQCZAB.cjs.map} +1 -1
- package/build/cjs/{chunk-4VNWCW75.cjs → chunk-V3ZJM4N2.cjs} +16 -16
- package/build/cjs/chunk-V3ZJM4N2.cjs.map +1 -0
- package/build/cjs/{chunk-MMPVBH5H.cjs → chunk-VT7TNOMD.cjs} +24 -21
- package/build/cjs/chunk-VT7TNOMD.cjs.map +1 -0
- package/build/cjs/chunk-WKKN2KJU.cjs +11 -0
- package/build/cjs/{chunk-Q5H4KPSL.cjs.map → chunk-WKKN2KJU.cjs.map} +1 -1
- package/build/cjs/{chunk-WE4REEMW.cjs → chunk-YIBSLDUU.cjs} +3 -3
- package/build/cjs/chunk-YIBSLDUU.cjs.map +1 -0
- package/build/cjs/chunk-YK3PUDSD.cjs +11 -0
- package/build/cjs/{chunk-LGGRMQCE.cjs.map → chunk-YK3PUDSD.cjs.map} +1 -1
- package/build/cjs/public/experimental/action-form.cjs +8 -8
- package/build/cjs/public/experimental/action-form.css +98 -98
- package/build/cjs/public/experimental/action-form.css.map +1 -1
- package/build/cjs/public/experimental/aip-agent-chat.cjs +2 -0
- package/build/cjs/public/experimental/aip-agent-chat.cjs.map +1 -1
- package/build/cjs/public/experimental/cbac-picker.cjs +11 -11
- package/build/cjs/public/experimental/cbac-picker.css +110 -110
- package/build/cjs/public/experimental/cbac-picker.css.map +1 -1
- package/build/cjs/public/experimental/document-viewer.cjs +8 -8
- package/build/cjs/public/experimental/document-viewer.css +72 -72
- package/build/cjs/public/experimental/document-viewer.css.map +1 -1
- package/build/cjs/public/experimental/email-viewer.cjs +5 -5
- package/build/cjs/public/experimental/excel-viewer.cjs +5 -5
- package/build/cjs/public/experimental/filter-list.cjs +18 -18
- package/build/cjs/public/experimental/filter-list.css +225 -225
- package/build/cjs/public/experimental/filter-list.css.map +1 -1
- package/build/cjs/public/experimental/image-viewer.cjs +3 -3
- package/build/cjs/public/experimental/markdown-renderer.cjs +3 -3
- package/build/cjs/public/experimental/object-table.cjs +12 -12
- package/build/cjs/public/experimental/object-table.css +151 -151
- package/build/cjs/public/experimental/object-table.css.map +1 -1
- package/build/cjs/public/experimental/pdf-viewer.cjs +25 -25
- package/build/cjs/public/experimental/pdf-viewer.css +72 -72
- package/build/cjs/public/experimental/pdf-viewer.css.map +1 -1
- package/build/cjs/public/experimental/pdf-viewer.d.cts +1 -1
- package/build/cjs/public/experimental/tiff-renderer.cjs +5 -5
- package/build/cjs/public/experimental/video-viewer.cjs +3 -3
- package/build/cjs/public/experimental/xml-viewer.cjs +3 -3
- package/build/cjs/public/experimental.cjs +86 -86
- package/build/cjs/public/experimental.css +632 -632
- package/build/cjs/public/experimental.css.map +1 -1
- package/build/esm/action-form/ActionForm.js.map +1 -1
- package/build/esm/action-form/ActionFormApi.js.map +1 -1
- package/build/esm/action-form/BaseForm.js +3 -3
- package/build/esm/action-form/BaseForm.js.map +1 -1
- package/build/esm/action-form/FormField.js.map +1 -1
- package/build/esm/action-form/FormFieldApi.js.map +1 -1
- package/build/esm/action-form/FormHeader.js.map +1 -1
- package/build/esm/action-form/FormSection.js.map +1 -1
- package/build/esm/action-form/fields/AsyncDropdownField.js +1 -1
- package/build/esm/action-form/fields/AsyncDropdownField.js.map +1 -1
- package/build/esm/action-form/fields/CustomField.js.map +1 -1
- package/build/esm/action-form/fields/DropdownField.js +2 -2
- package/build/esm/action-form/fields/DropdownField.js.map +1 -1
- package/build/esm/action-form/fields/FieldBridge.js.map +1 -1
- package/build/esm/action-form/fields/FilePickerField.js.map +1 -1
- package/build/esm/action-form/fields/FormFieldRenderer.js.map +1 -1
- package/build/esm/action-form/fields/NumberInputField.js.map +1 -1
- package/build/esm/action-form/fields/ObjectSelectField.js.map +1 -1
- package/build/esm/action-form/fields/ObjectSetField.js.map +1 -1
- package/build/esm/action-form/fields/RadioButtonsField.js.map +1 -1
- package/build/esm/action-form/fields/SwitchField.js.map +1 -1
- package/build/esm/action-form/fields/TextAreaField.js.map +1 -1
- package/build/esm/action-form/fields/TextInputField.js.map +1 -1
- package/build/esm/action-form/utils/coerceFieldValue.js.map +1 -1
- package/build/esm/action-form/utils/extractValidationRules.js.map +1 -1
- package/build/esm/action-form/utils/getDefaultFieldDefinitions.js.map +1 -1
- package/build/esm/aip-agent-chat/AipAgentChat.js.map +1 -1
- package/build/esm/aip-agent-chat/BaseAipAgentChat.js +1 -1
- package/build/esm/aip-agent-chat/BaseAipAgentChat.js.map +1 -1
- package/build/esm/aip-agent-chat/components/AipAgentChatComposer.js.map +1 -1
- package/build/esm/aip-agent-chat/components/AipAgentChatLoader.js.map +1 -1
- package/build/esm/aip-agent-chat/components/AipAgentChatMessage.js.map +1 -1
- package/build/esm/aip-agent-chat/components/AipAgentChatMessageList.js +1 -1
- package/build/esm/aip-agent-chat/components/AipAgentChatMessageList.js.map +1 -1
- package/build/esm/aip-agent-chat/components/AipAgentChatModelPicker.js.map +1 -1
- package/build/esm/aip-agent-chat/hooks/useChatAutoScroll.js.map +1 -1
- package/build/esm/base-components/action-button/ActionButton.js.map +1 -1
- package/build/esm/base-components/callout/Callout.js.map +1 -1
- package/build/esm/base-components/checkbox/Checkbox.js.map +1 -1
- package/build/esm/base-components/combobox/Combobox.js.map +1 -1
- package/build/esm/base-components/dialog/Dialog.js.map +1 -1
- package/build/esm/base-components/draggable-list/DraggableList.js +1 -1
- package/build/esm/base-components/draggable-list/DraggableList.js.map +1 -1
- package/build/esm/base-components/icon/BlueprintIcon.js.map +1 -1
- package/build/esm/base-components/search-bar/SearchBar.js.map +1 -1
- package/build/esm/base-components/searchable-menu/SearchableMenu.js.map +1 -1
- package/build/esm/base-components/select/Select.js.map +1 -1
- package/build/esm/base-components/skeleton/SkeletonBar.js.map +1 -1
- package/build/esm/base-components/switch/Switch.js.map +1 -1
- package/build/esm/base-components/tooltip/Tooltip.js.map +1 -1
- package/build/esm/cbac-picker/CbacBanner.js.map +1 -1
- package/build/esm/cbac-picker/CbacBannerPopover.js.map +1 -1
- package/build/esm/cbac-picker/CbacPicker.js.map +1 -1
- package/build/esm/cbac-picker/CbacPickerDialog.js.map +1 -1
- package/build/esm/cbac-picker/base/BaseCbacBanner.js.map +1 -1
- package/build/esm/cbac-picker/base/BaseCbacBannerPopover.js.map +1 -1
- package/build/esm/cbac-picker/base/BaseCbacPicker.js +1 -1
- package/build/esm/cbac-picker/base/BaseCbacPicker.js.map +1 -1
- package/build/esm/cbac-picker/base/BaseCbacPickerDialog.js.map +1 -1
- package/build/esm/cbac-picker/base/CategoryMarkingGroup.js +1 -1
- package/build/esm/cbac-picker/base/CategoryMarkingGroup.js.map +1 -1
- package/build/esm/cbac-picker/base/CbacPickerDialogFooter.js.map +1 -1
- package/build/esm/cbac-picker/base/InfoBanner.js.map +1 -1
- package/build/esm/cbac-picker/base/MarkingButton.js +1 -1
- package/build/esm/cbac-picker/base/MarkingButton.js.map +1 -1
- package/build/esm/cbac-picker/base/MaxClassificationField.js.map +1 -1
- package/build/esm/cbac-picker/base/OverflowButton.js +1 -1
- package/build/esm/cbac-picker/base/OverflowButton.js.map +1 -1
- package/build/esm/cbac-picker/base/OverflowItem.js +1 -1
- package/build/esm/cbac-picker/base/OverflowItem.js.map +1 -1
- package/build/esm/cbac-picker/base/ValidationWarning.js.map +1 -1
- package/build/esm/cbac-picker/base/selectionStateHelpers.js.map +1 -1
- package/build/esm/cbac-picker/useCbacPickerState.js.map +1 -1
- package/build/esm/cbac-picker/useCbacSelection.js.map +1 -1
- package/build/esm/cbac-picker/useConstraintCallout.js.map +1 -1
- package/build/esm/cbac-picker/utils/cbacPickerUtils.js.map +1 -1
- package/build/esm/cbac-picker/utils/errorMessages.js.map +1 -1
- package/build/esm/cbac-picker/utils/selectionLogic.js.map +1 -1
- package/build/esm/cbac-picker/utils/validationMessages.js.map +1 -1
- package/build/esm/document-viewer/DocumentViewer.js +1 -1
- package/build/esm/document-viewer/DocumentViewer.js.map +1 -1
- package/build/esm/document-viewer/DocumentViewerApi.js.map +1 -1
- package/build/esm/document-viewer/TiffDocumentViewer.js +1 -1
- package/build/esm/document-viewer/TiffDocumentViewer.js.map +1 -1
- package/build/esm/document-viewer/hooks/useTiffToPdf.js.map +1 -1
- package/build/esm/email-viewer/BaseEmailViewer.js.map +1 -1
- package/build/esm/email-viewer/EmailViewer.js +1 -1
- package/build/esm/email-viewer/EmailViewer.js.map +1 -1
- package/build/esm/email-viewer/EmailViewerApi.js.map +1 -1
- package/build/esm/email-viewer/parseEmail.js.map +1 -1
- package/build/esm/excel-viewer/BaseExcelViewer.js +1 -0
- package/build/esm/excel-viewer/BaseExcelViewer.js.map +1 -1
- package/build/esm/excel-viewer/ExcelViewer.js +1 -1
- package/build/esm/excel-viewer/ExcelViewer.js.map +1 -1
- package/build/esm/excel-viewer/ExcelViewerApi.js.map +1 -1
- package/build/esm/excel-viewer/parseSpreadsheet.js.map +1 -1
- package/build/esm/filter-list/FilterInput.js.map +1 -1
- package/build/esm/filter-list/FilterList.js.map +1 -1
- package/build/esm/filter-list/FilterListApi.js.map +1 -1
- package/build/esm/filter-list/FilterListItemApi.js.map +1 -1
- package/build/esm/filter-list/base/AddFilterPopover.js +1 -1
- package/build/esm/filter-list/base/AddFilterPopover.js.map +1 -1
- package/build/esm/filter-list/base/BaseFilterList.js +1 -1
- package/build/esm/filter-list/base/BaseFilterList.js.map +1 -1
- package/build/esm/filter-list/base/BaseFilterListApi.js.map +1 -1
- package/build/esm/filter-list/base/ExcludeDropdown.js +1 -1
- package/build/esm/filter-list/base/ExcludeDropdown.js.map +1 -1
- package/build/esm/filter-list/base/FilterInputExcludeRow.js.map +1 -1
- package/build/esm/filter-list/base/FilterListContent.js +1 -1
- package/build/esm/filter-list/base/FilterListContent.js.map +1 -1
- package/build/esm/filter-list/base/FilterListHeader.js.map +1 -1
- package/build/esm/filter-list/base/FilterListItem.js.map +1 -1
- package/build/esm/filter-list/base/FilterPopover.js.map +1 -1
- package/build/esm/filter-list/base/SortableFilterListItem.js.map +1 -1
- package/build/esm/filter-list/base/inputs/ContainsTextInput.js.map +1 -1
- package/build/esm/filter-list/base/inputs/DateRangeHistogramInput.js.map +1 -1
- package/build/esm/filter-list/base/inputs/EmptyStringLabel.js +1 -0
- package/build/esm/filter-list/base/inputs/EmptyStringLabel.js.map +1 -1
- package/build/esm/filter-list/base/inputs/HistogramTooltip.js.map +1 -1
- package/build/esm/filter-list/base/inputs/ListogramInput.js +2 -2
- package/build/esm/filter-list/base/inputs/ListogramInput.js.map +1 -1
- package/build/esm/filter-list/base/inputs/ListogramSkeleton.js.map +1 -1
- package/build/esm/filter-list/base/inputs/MultiDateInput.js.map +1 -1
- package/build/esm/filter-list/base/inputs/MultiSelectDropdownLayout.js.map +1 -1
- package/build/esm/filter-list/base/inputs/MultiSelectInlineLayout.js.map +1 -1
- package/build/esm/filter-list/base/inputs/MultiSelectInput.js +2 -2
- package/build/esm/filter-list/base/inputs/MultiSelectInput.js.map +1 -1
- package/build/esm/filter-list/base/inputs/NoValueLabel.js.map +1 -1
- package/build/esm/filter-list/base/inputs/NullValueWrapper.js.map +1 -1
- package/build/esm/filter-list/base/inputs/NumberRangeInput.js.map +1 -1
- package/build/esm/filter-list/base/inputs/OptionLabel.js.map +1 -1
- package/build/esm/filter-list/base/inputs/RangeInput.js +1 -1
- package/build/esm/filter-list/base/inputs/RangeInput.js.map +1 -1
- package/build/esm/filter-list/base/inputs/SelectInputSkeleton.js.map +1 -1
- package/build/esm/filter-list/base/inputs/SingleDateInput.js.map +1 -1
- package/build/esm/filter-list/base/inputs/SingleSelectInput.js +1 -1
- package/build/esm/filter-list/base/inputs/SingleSelectInput.js.map +1 -1
- package/build/esm/filter-list/base/inputs/TextTagsInput.js.map +1 -1
- package/build/esm/filter-list/base/inputs/TimelineInput.js.map +1 -1
- package/build/esm/filter-list/base/inputs/ToggleInput.js.map +1 -1
- package/build/esm/filter-list/base/inputs/comboboxFilter.js.map +1 -1
- package/build/esm/filter-list/base/inputs/createDateHistogramBuckets.js.map +1 -1
- package/build/esm/filter-list/base/inputs/createHistogramBuckets.js.map +1 -1
- package/build/esm/filter-list/hooks/useDualScopeAggregation.js.map +1 -1
- package/build/esm/filter-list/hooks/useFilterListState.js.map +1 -1
- package/build/esm/filter-list/hooks/useFilterPropertyAggregation.js.map +1 -1
- package/build/esm/filter-list/hooks/useFilterVisibility.js.map +1 -1
- package/build/esm/filter-list/hooks/usePropertyAggregation.js.map +1 -1
- package/build/esm/filter-list/inputs/ContainsTextFilterInput.js.map +1 -1
- package/build/esm/filter-list/inputs/DateRangeFilterInput.js.map +1 -1
- package/build/esm/filter-list/inputs/LinkedPropertyInput.js +1 -1
- package/build/esm/filter-list/inputs/LinkedPropertyInput.js.map +1 -1
- package/build/esm/filter-list/inputs/ListogramFilterInput.js.map +1 -1
- package/build/esm/filter-list/inputs/MultiDateFilterInput.js.map +1 -1
- package/build/esm/filter-list/inputs/MultiSelectFilterInput.js.map +1 -1
- package/build/esm/filter-list/inputs/NumberRangeFilterInput.js.map +1 -1
- package/build/esm/filter-list/inputs/PropertyFilterInput.js.map +1 -1
- package/build/esm/filter-list/inputs/SingleDateFilterInput.js.map +1 -1
- package/build/esm/filter-list/inputs/SingleSelectFilterInput.js.map +1 -1
- package/build/esm/filter-list/inputs/StaticValuesFilterInput.js.map +1 -1
- package/build/esm/filter-list/inputs/TextTagsFilterInput.js.map +1 -1
- package/build/esm/filter-list/inputs/TimelineFilterInput.js.map +1 -1
- package/build/esm/filter-list/inputs/ToggleFilterInput.js.map +1 -1
- package/build/esm/filter-list/types/CustomRendererTypes.js.map +1 -1
- package/build/esm/filter-list/types/KeywordSearchTypes.js.map +1 -1
- package/build/esm/filter-list/types/LinkedFilterTypes.js.map +1 -1
- package/build/esm/filter-list/types/StaticValuesTypes.js.map +1 -1
- package/build/esm/filter-list/utils/aggregationHelpers.js.map +1 -1
- package/build/esm/filter-list/utils/coerceFilterValue.js.map +1 -1
- package/build/esm/filter-list/utils/emptyFilterDisplayState.js.map +1 -1
- package/build/esm/filter-list/utils/filterStateSerialization.js.map +1 -1
- package/build/esm/filter-list/utils/filterStateToWhereClause.js.map +1 -1
- package/build/esm/filter-list/utils/filterValues.js.map +1 -1
- package/build/esm/filter-list/utils/getFilterKey.js.map +1 -1
- package/build/esm/filter-list/utils/getFilterLabel.js.map +1 -1
- package/build/esm/filter-list/utils/narrowObjectSet.js.map +1 -1
- package/build/esm/filter-list/utils/summarizeFilterValue.js.map +1 -1
- package/build/esm/images/image-viewer/BaseImageViewer.js.map +1 -1
- package/build/esm/images/image-viewer/ImageViewer.js.map +1 -1
- package/build/esm/images/image-viewer/ImageViewerApi.js.map +1 -1
- package/build/esm/images/tiff-renderer/TiffRenderer.js +1 -0
- package/build/esm/images/tiff-renderer/TiffRenderer.js.map +1 -1
- package/build/esm/images/tiff-renderer/TiffViewerMedia.js.map +1 -1
- package/build/esm/markdown-renderer/MarkdownRenderer.js.map +1 -1
- package/build/esm/markdown-renderer/MarkdownViewerMedia.js.map +1 -1
- package/build/esm/object-table/CellContextMenu.js.map +1 -1
- package/build/esm/object-table/ColumnConfigDialog.js.map +1 -1
- package/build/esm/object-table/DefaultCellRenderer.js +4 -3
- package/build/esm/object-table/DefaultCellRenderer.js.map +1 -1
- package/build/esm/object-table/EditableCell.js +1 -1
- package/build/esm/object-table/EditableCell.js.map +1 -1
- package/build/esm/object-table/LoadingCell.js.map +1 -1
- package/build/esm/object-table/LoadingRow.js +1 -1
- package/build/esm/object-table/LoadingRow.js.map +1 -1
- package/build/esm/object-table/LoadingStateTable.js +3 -3
- package/build/esm/object-table/LoadingStateTable.js.map +1 -1
- package/build/esm/object-table/MultiColumnSortDialog.js +1 -1
- package/build/esm/object-table/MultiColumnSortDialog.js.map +1 -1
- package/build/esm/object-table/NonIdealState.js.map +1 -1
- package/build/esm/object-table/ObjectTable.js.map +1 -1
- package/build/esm/object-table/ObjectTableApi.js.map +1 -1
- package/build/esm/object-table/SelectionCells.js.map +1 -1
- package/build/esm/object-table/SortableItemsList.js.map +1 -1
- package/build/esm/object-table/Table.js +1 -1
- package/build/esm/object-table/Table.js.map +1 -1
- package/build/esm/object-table/TableBody.js +1 -1
- package/build/esm/object-table/TableBody.js.map +1 -1
- package/build/esm/object-table/TableCell.js +1 -1
- package/build/esm/object-table/TableCell.js.map +1 -1
- package/build/esm/object-table/TableEditContainer.js.map +1 -1
- package/build/esm/object-table/TableHeader.js +1 -1
- package/build/esm/object-table/TableHeader.js.map +1 -1
- package/build/esm/object-table/TableHeaderContent.js.map +1 -1
- package/build/esm/object-table/TableHeaderWithPopover.js.map +1 -1
- package/build/esm/object-table/TableRow.js.map +1 -1
- package/build/esm/object-table/components/AsyncValueCell.js.map +1 -1
- package/build/esm/object-table/components/CbacMarkingCell.js.map +1 -1
- package/build/esm/object-table/components/DatePickerCellField.js +1 -1
- package/build/esm/object-table/components/DatePickerCellField.js.map +1 -1
- package/build/esm/object-table/components/DropdownCellField.js +1 -1
- package/build/esm/object-table/components/DropdownCellField.js.map +1 -1
- package/build/esm/object-table/components/MandatoryMarkingCell.js.map +1 -1
- package/build/esm/object-table/components/ReadonlyDisplayCell.js.map +1 -1
- package/build/esm/object-table/components/TextInputCellField.js.map +1 -1
- package/build/esm/object-table/hooks/useCellContextMenu.js.map +1 -1
- package/build/esm/object-table/hooks/useColumnDefs.js.map +1 -1
- package/build/esm/object-table/hooks/useColumnPinning.js.map +1 -1
- package/build/esm/object-table/hooks/useColumnResize.js.map +1 -1
- package/build/esm/object-table/hooks/useColumnVisibility.js.map +1 -1
- package/build/esm/object-table/hooks/useEditableTable.js.map +1 -1
- package/build/esm/object-table/hooks/useFocusedRow.js.map +1 -1
- package/build/esm/object-table/hooks/useFunctionColumnsData.js.map +1 -1
- package/build/esm/object-table/hooks/useObjectTableData.js.map +1 -1
- package/build/esm/object-table/hooks/useObjectTableSnapshot.js.map +1 -1
- package/build/esm/object-table/hooks/useRowSelection.js.map +1 -1
- package/build/esm/object-table/hooks/useSelectionColumn.js.map +1 -1
- package/build/esm/object-table/hooks/useTableSorting.js.map +1 -1
- package/build/esm/object-table/utils/AsyncCellData.js.map +1 -1
- package/build/esm/object-table/utils/PortalTracker.js.map +1 -1
- package/build/esm/object-table/utils/deriveSelectionObjectSet.js.map +1 -1
- package/build/esm/object-table/utils/editableUtils.js.map +1 -1
- package/build/esm/object-table/utils/functionColumns.js.map +1 -1
- package/build/esm/object-table/utils/getColumnPinningStyles.js.map +1 -1
- package/build/esm/object-table/utils/getRowId.js.map +1 -1
- package/build/esm/object-table/utils/objectTableSnapshot.js.map +1 -1
- package/build/esm/object-table/utils/shouldShowEditableCell.js.map +1 -1
- package/build/esm/object-table/utils/types.js.map +1 -1
- package/build/esm/pdf-viewer/PdfRenderer.js.map +1 -1
- package/build/esm/pdf-viewer/PdfViewer.js.map +1 -1
- package/build/esm/pdf-viewer/PdfViewerContext.js.map +1 -1
- package/build/esm/pdf-viewer/components/PdfAnnotationOverlay.js.map +1 -1
- package/build/esm/pdf-viewer/components/PdfViewerAnnotationLayer.js.map +1 -1
- package/build/esm/pdf-viewer/components/PdfViewerContent.js +1 -1
- package/build/esm/pdf-viewer/components/PdfViewerContent.js.map +1 -1
- package/build/esm/pdf-viewer/components/PdfViewerOutlineSidebar.js +1 -1
- package/build/esm/pdf-viewer/components/PdfViewerOutlineSidebar.js.map +1 -1
- package/build/esm/pdf-viewer/components/PdfViewerSearchBar.js.map +1 -1
- package/build/esm/pdf-viewer/components/PdfViewerSidebar.js +1 -1
- package/build/esm/pdf-viewer/components/PdfViewerSidebar.js.map +1 -1
- package/build/esm/pdf-viewer/components/PdfViewerSidebarHeader.js.map +1 -1
- package/build/esm/pdf-viewer/components/PdfViewerThumbnail.js.map +1 -1
- package/build/esm/pdf-viewer/components/PdfViewerToolbar.js.map +1 -1
- package/build/esm/pdf-viewer/constants.js.map +1 -1
- package/build/esm/pdf-viewer/hooks/usePdfAnnotationPortals.js.map +1 -1
- package/build/esm/pdf-viewer/hooks/usePdfAnnotationsByPage.js.map +1 -1
- package/build/esm/pdf-viewer/hooks/usePdfDocument.js.map +1 -1
- package/build/esm/pdf-viewer/hooks/usePdfFormFields.js.map +1 -1
- package/build/esm/pdf-viewer/hooks/usePdfHighlightMode.js.map +1 -1
- package/build/esm/pdf-viewer/hooks/usePdfOutline.js.map +1 -1
- package/build/esm/pdf-viewer/hooks/usePdfViewer.js.map +1 -1
- package/build/esm/pdf-viewer/hooks/usePdfViewerCore.js.map +1 -1
- package/build/esm/pdf-viewer/hooks/usePdfViewerSearch.js.map +1 -1
- package/build/esm/pdf-viewer/hooks/usePdfViewerState.js.map +1 -1
- package/build/esm/pdf-viewer/hooks/usePdfViewerSync.js.map +1 -1
- package/build/esm/public/experimental/action-form.js.map +1 -1
- package/build/esm/public/experimental/cbac-picker.js.map +1 -1
- package/build/esm/public/experimental/document-viewer.js.map +1 -1
- package/build/esm/public/experimental/email-viewer.js.map +1 -1
- package/build/esm/public/experimental/excel-viewer.js.map +1 -1
- package/build/esm/public/experimental/filter-list.js.map +1 -1
- package/build/esm/public/experimental/image-viewer.js.map +1 -1
- package/build/esm/public/experimental/markdown-renderer.js.map +1 -1
- package/build/esm/public/experimental/object-table.js.map +1 -1
- package/build/esm/public/experimental/pdf-viewer.js.map +1 -1
- package/build/esm/public/experimental/tiff-renderer.js.map +1 -1
- package/build/esm/public/experimental/video-viewer.js.map +1 -1
- package/build/esm/public/experimental/xml-viewer.js.map +1 -1
- package/build/esm/shared/ErrorBoundary.js.map +1 -1
- package/build/esm/shared/PortalContainerContext.js.map +1 -1
- package/build/esm/shared/PortalDismissLayer.js.map +1 -1
- package/build/esm/shared/calendar/DateCalendar.js +1 -1
- package/build/esm/shared/calendar/DateCalendar.js.map +1 -1
- package/build/esm/shared/calendar/DatePicker.js +2 -2
- package/build/esm/shared/calendar/DatePicker.js.map +1 -1
- package/build/esm/shared/calendar/DateRangeCalendar.js.map +1 -1
- package/build/esm/shared/calendar/DateRangePicker.js +2 -2
- package/build/esm/shared/calendar/DateRangePicker.js.map +1 -1
- package/build/esm/shared/calendar/LazyDateCalendar.js.map +1 -1
- package/build/esm/shared/calendar/LazyDateRangeCalendar.js.map +1 -1
- package/build/esm/shared/calendar/TimePicker.js.map +1 -1
- package/build/esm/shared/calendar/calendarShared.js.map +1 -1
- package/build/esm/shared/calendar/useDateEditState.js.map +1 -1
- package/build/esm/shared/dateUtils.js.map +1 -1
- package/build/esm/shared/hooks/useAsyncAction.js.map +1 -1
- package/build/esm/shared/hooks/useDebouncedValue.js.map +1 -1
- package/build/esm/shared/hooks/useEventCallback.js.map +1 -1
- package/build/esm/shared/hooks/useInfiniteScroll.js.map +1 -1
- package/build/esm/shared/hooks/useMediaContents.js.map +1 -1
- package/build/esm/theme/OsdkThemeContext.js.map +1 -1
- package/build/esm/theme/OsdkThemeProvider.js.map +1 -1
- package/build/esm/theme/useOsdkTheme.js.map +1 -1
- package/build/esm/theme/useSystemTheme.js.map +1 -1
- package/build/esm/util/UserAgent.js +1 -1
- package/build/esm/util/UserAgent.js.map +1 -1
- package/build/esm/util/withOsdkMetrics.js.map +1 -1
- package/build/esm/video-viewer/BaseVideoViewer.js.map +1 -1
- package/build/esm/video-viewer/VideoViewer.js.map +1 -1
- package/build/esm/video-viewer/VideoViewerApi.js.map +1 -1
- package/build/esm/xml-viewer/BaseXmlViewer.js.map +1 -1
- package/build/esm/xml-viewer/XmlViewer.js.map +1 -1
- package/build/esm/xml-viewer/XmlViewerApi.js.map +1 -1
- package/build/types/action-form/ActionForm.d.ts.map +1 -1
- package/build/types/action-form/ActionFormApi.d.ts.map +1 -1
- package/build/types/action-form/BaseForm.d.ts.map +1 -1
- package/build/types/action-form/FormField.d.ts.map +1 -1
- package/build/types/action-form/FormFieldApi.d.ts.map +1 -1
- package/build/types/action-form/FormHeader.d.ts.map +1 -1
- package/build/types/action-form/FormSection.d.ts.map +1 -1
- package/build/types/action-form/fields/AsyncDropdownField.d.ts.map +1 -1
- package/build/types/action-form/fields/CustomField.d.ts.map +1 -1
- package/build/types/action-form/fields/DropdownField.d.ts.map +1 -1
- package/build/types/action-form/fields/FieldBridge.d.ts.map +1 -1
- package/build/types/action-form/fields/FilePickerField.d.ts.map +1 -1
- package/build/types/action-form/fields/FormFieldRenderer.d.ts.map +1 -1
- package/build/types/action-form/fields/NumberInputField.d.ts.map +1 -1
- package/build/types/action-form/fields/ObjectSelectField.d.ts.map +1 -1
- package/build/types/action-form/fields/ObjectSetField.d.ts.map +1 -1
- package/build/types/action-form/fields/RadioButtonsField.d.ts.map +1 -1
- package/build/types/action-form/fields/SwitchField.d.ts.map +1 -1
- package/build/types/action-form/fields/TextAreaField.d.ts.map +1 -1
- package/build/types/action-form/fields/TextInputField.d.ts.map +1 -1
- package/build/types/action-form/utils/extractValidationRules.d.ts.map +1 -1
- package/build/types/action-form/utils/getDefaultFieldDefinitions.d.ts.map +1 -1
- package/build/types/aip-agent-chat/AipAgentChat.d.ts.map +1 -1
- package/build/types/aip-agent-chat/BaseAipAgentChat.d.ts.map +1 -1
- package/build/types/aip-agent-chat/components/AipAgentChatComposer.d.ts.map +1 -1
- package/build/types/aip-agent-chat/components/AipAgentChatLoader.d.ts.map +1 -1
- package/build/types/aip-agent-chat/components/AipAgentChatMessage.d.ts.map +1 -1
- package/build/types/aip-agent-chat/components/AipAgentChatMessageList.d.ts.map +1 -1
- package/build/types/aip-agent-chat/components/AipAgentChatModelPicker.d.ts.map +1 -1
- package/build/types/base-components/action-button/ActionButton.d.ts.map +1 -1
- package/build/types/base-components/callout/Callout.d.ts.map +1 -1
- package/build/types/base-components/checkbox/Checkbox.d.ts.map +1 -1
- package/build/types/base-components/combobox/Combobox.d.ts.map +1 -1
- package/build/types/base-components/dialog/Dialog.d.ts.map +1 -1
- package/build/types/base-components/draggable-list/DraggableList.d.ts.map +1 -1
- package/build/types/base-components/search-bar/SearchBar.d.ts.map +1 -1
- package/build/types/base-components/searchable-menu/SearchableMenu.d.ts.map +1 -1
- package/build/types/base-components/select/Select.d.ts.map +1 -1
- package/build/types/base-components/skeleton/SkeletonBar.d.ts.map +1 -1
- package/build/types/base-components/switch/Switch.d.ts.map +1 -1
- package/build/types/base-components/tooltip/Tooltip.d.ts.map +1 -1
- package/build/types/cbac-picker/CbacBanner.d.ts.map +1 -1
- package/build/types/cbac-picker/CbacBannerPopover.d.ts.map +1 -1
- package/build/types/cbac-picker/CbacPicker.d.ts.map +1 -1
- package/build/types/cbac-picker/CbacPickerDialog.d.ts.map +1 -1
- package/build/types/cbac-picker/base/BaseCbacBanner.d.ts.map +1 -1
- package/build/types/cbac-picker/base/BaseCbacBannerPopover.d.ts.map +1 -1
- package/build/types/cbac-picker/base/BaseCbacPicker.d.ts.map +1 -1
- package/build/types/cbac-picker/base/BaseCbacPickerDialog.d.ts.map +1 -1
- package/build/types/cbac-picker/base/CategoryMarkingGroup.d.ts.map +1 -1
- package/build/types/cbac-picker/base/CbacPickerDialogFooter.d.ts.map +1 -1
- package/build/types/cbac-picker/base/InfoBanner.d.ts.map +1 -1
- package/build/types/cbac-picker/base/MarkingButton.d.ts.map +1 -1
- package/build/types/cbac-picker/base/MaxClassificationField.d.ts.map +1 -1
- package/build/types/cbac-picker/base/OverflowButton.d.ts.map +1 -1
- package/build/types/cbac-picker/base/OverflowItem.d.ts.map +1 -1
- package/build/types/cbac-picker/base/ValidationWarning.d.ts.map +1 -1
- package/build/types/cbac-picker/useCbacPickerState.d.ts.map +1 -1
- package/build/types/cbac-picker/useCbacSelection.d.ts.map +1 -1
- package/build/types/cbac-picker/useConstraintCallout.d.ts.map +1 -1
- package/build/types/cbac-picker/utils/errorMessages.d.ts.map +1 -1
- package/build/types/document-viewer/DocumentViewer.d.ts.map +1 -1
- package/build/types/document-viewer/DocumentViewerApi.d.ts.map +1 -1
- package/build/types/document-viewer/TiffDocumentViewer.d.ts.map +1 -1
- package/build/types/document-viewer/hooks/useTiffToPdf.d.ts.map +1 -1
- package/build/types/email-viewer/BaseEmailViewer.d.ts.map +1 -1
- package/build/types/email-viewer/EmailViewer.d.ts.map +1 -1
- package/build/types/email-viewer/EmailViewerApi.d.ts.map +1 -1
- package/build/types/email-viewer/parseEmail.d.ts.map +1 -1
- package/build/types/excel-viewer/BaseExcelViewer.d.ts.map +1 -1
- package/build/types/excel-viewer/ExcelViewer.d.ts.map +1 -1
- package/build/types/excel-viewer/ExcelViewerApi.d.ts.map +1 -1
- package/build/types/excel-viewer/parseSpreadsheet.d.ts.map +1 -1
- package/build/types/filter-list/FilterInput.d.ts.map +1 -1
- package/build/types/filter-list/FilterList.d.ts.map +1 -1
- package/build/types/filter-list/FilterListApi.d.ts.map +1 -1
- package/build/types/filter-list/FilterListItemApi.d.ts.map +1 -1
- package/build/types/filter-list/base/AddFilterPopover.d.ts.map +1 -1
- package/build/types/filter-list/base/BaseFilterList.d.ts.map +1 -1
- package/build/types/filter-list/base/BaseFilterListApi.d.ts.map +1 -1
- package/build/types/filter-list/base/ExcludeDropdown.d.ts.map +1 -1
- package/build/types/filter-list/base/FilterInputExcludeRow.d.ts.map +1 -1
- package/build/types/filter-list/base/FilterListContent.d.ts.map +1 -1
- package/build/types/filter-list/base/FilterListHeader.d.ts.map +1 -1
- package/build/types/filter-list/base/FilterListItem.d.ts.map +1 -1
- package/build/types/filter-list/base/FilterPopover.d.ts.map +1 -1
- package/build/types/filter-list/base/SortableFilterListItem.d.ts.map +1 -1
- package/build/types/filter-list/base/inputs/ContainsTextInput.d.ts.map +1 -1
- package/build/types/filter-list/base/inputs/DateRangeHistogramInput.d.ts.map +1 -1
- package/build/types/filter-list/base/inputs/EmptyStringLabel.d.ts.map +1 -1
- package/build/types/filter-list/base/inputs/HistogramTooltip.d.ts.map +1 -1
- package/build/types/filter-list/base/inputs/ListogramInput.d.ts.map +1 -1
- package/build/types/filter-list/base/inputs/ListogramSkeleton.d.ts.map +1 -1
- package/build/types/filter-list/base/inputs/MultiDateInput.d.ts.map +1 -1
- package/build/types/filter-list/base/inputs/MultiSelectDropdownLayout.d.ts.map +1 -1
- package/build/types/filter-list/base/inputs/MultiSelectInlineLayout.d.ts.map +1 -1
- package/build/types/filter-list/base/inputs/MultiSelectInput.d.ts.map +1 -1
- package/build/types/filter-list/base/inputs/NoValueLabel.d.ts.map +1 -1
- package/build/types/filter-list/base/inputs/NullValueWrapper.d.ts.map +1 -1
- package/build/types/filter-list/base/inputs/NumberRangeInput.d.ts.map +1 -1
- package/build/types/filter-list/base/inputs/OptionLabel.d.ts.map +1 -1
- package/build/types/filter-list/base/inputs/RangeInput.d.ts.map +1 -1
- package/build/types/filter-list/base/inputs/SelectInputSkeleton.d.ts.map +1 -1
- package/build/types/filter-list/base/inputs/SingleDateInput.d.ts.map +1 -1
- package/build/types/filter-list/base/inputs/SingleSelectInput.d.ts.map +1 -1
- package/build/types/filter-list/base/inputs/TextTagsInput.d.ts.map +1 -1
- package/build/types/filter-list/base/inputs/TimelineInput.d.ts.map +1 -1
- package/build/types/filter-list/base/inputs/ToggleInput.d.ts.map +1 -1
- package/build/types/filter-list/base/inputs/createDateHistogramBuckets.d.ts.map +1 -1
- package/build/types/filter-list/base/inputs/createHistogramBuckets.d.ts.map +1 -1
- package/build/types/filter-list/hooks/useDualScopeAggregation.d.ts.map +1 -1
- package/build/types/filter-list/hooks/useFilterListState.d.ts.map +1 -1
- package/build/types/filter-list/hooks/useFilterPropertyAggregation.d.ts.map +1 -1
- package/build/types/filter-list/hooks/useFilterVisibility.d.ts.map +1 -1
- package/build/types/filter-list/hooks/usePropertyAggregation.d.ts.map +1 -1
- package/build/types/filter-list/inputs/ContainsTextFilterInput.d.ts.map +1 -1
- package/build/types/filter-list/inputs/DateRangeFilterInput.d.ts.map +1 -1
- package/build/types/filter-list/inputs/LinkedPropertyInput.d.ts.map +1 -1
- package/build/types/filter-list/inputs/ListogramFilterInput.d.ts.map +1 -1
- package/build/types/filter-list/inputs/MultiDateFilterInput.d.ts.map +1 -1
- package/build/types/filter-list/inputs/MultiSelectFilterInput.d.ts.map +1 -1
- package/build/types/filter-list/inputs/NumberRangeFilterInput.d.ts.map +1 -1
- package/build/types/filter-list/inputs/PropertyFilterInput.d.ts.map +1 -1
- package/build/types/filter-list/inputs/SingleDateFilterInput.d.ts.map +1 -1
- package/build/types/filter-list/inputs/SingleSelectFilterInput.d.ts.map +1 -1
- package/build/types/filter-list/inputs/StaticValuesFilterInput.d.ts.map +1 -1
- package/build/types/filter-list/inputs/TextTagsFilterInput.d.ts.map +1 -1
- package/build/types/filter-list/inputs/TimelineFilterInput.d.ts.map +1 -1
- package/build/types/filter-list/inputs/ToggleFilterInput.d.ts.map +1 -1
- package/build/types/filter-list/types/CustomRendererTypes.d.ts.map +1 -1
- package/build/types/filter-list/types/KeywordSearchTypes.d.ts.map +1 -1
- package/build/types/filter-list/types/LinkedFilterTypes.d.ts.map +1 -1
- package/build/types/filter-list/types/StaticValuesTypes.d.ts.map +1 -1
- package/build/types/filter-list/utils/aggregationHelpers.d.ts.map +1 -1
- package/build/types/filter-list/utils/emptyFilterDisplayState.d.ts.map +1 -1
- package/build/types/filter-list/utils/filterStateToWhereClause.d.ts.map +1 -1
- package/build/types/filter-list/utils/filterValues.d.ts.map +1 -1
- package/build/types/filter-list/utils/getFilterKey.d.ts.map +1 -1
- package/build/types/filter-list/utils/getFilterLabel.d.ts.map +1 -1
- package/build/types/filter-list/utils/narrowObjectSet.d.ts.map +1 -1
- package/build/types/filter-list/utils/summarizeFilterValue.d.ts.map +1 -1
- package/build/types/images/image-viewer/BaseImageViewer.d.ts.map +1 -1
- package/build/types/images/image-viewer/ImageViewer.d.ts.map +1 -1
- package/build/types/images/image-viewer/ImageViewerApi.d.ts.map +1 -1
- package/build/types/images/tiff-renderer/TiffRenderer.d.ts.map +1 -1
- package/build/types/images/tiff-renderer/TiffViewerMedia.d.ts.map +1 -1
- package/build/types/markdown-renderer/MarkdownRenderer.d.ts.map +1 -1
- package/build/types/markdown-renderer/MarkdownViewerMedia.d.ts.map +1 -1
- package/build/types/object-table/CellContextMenu.d.ts.map +1 -1
- package/build/types/object-table/ColumnConfigDialog.d.ts.map +1 -1
- package/build/types/object-table/DefaultCellRenderer.d.ts.map +1 -1
- package/build/types/object-table/EditableCell.d.ts.map +1 -1
- package/build/types/object-table/LoadingCell.d.ts.map +1 -1
- package/build/types/object-table/LoadingRow.d.ts.map +1 -1
- package/build/types/object-table/LoadingStateTable.d.ts.map +1 -1
- package/build/types/object-table/MultiColumnSortDialog.d.ts.map +1 -1
- package/build/types/object-table/NonIdealState.d.ts.map +1 -1
- package/build/types/object-table/ObjectTable.d.ts.map +1 -1
- package/build/types/object-table/ObjectTableApi.d.ts.map +1 -1
- package/build/types/object-table/SelectionCells.d.ts.map +1 -1
- package/build/types/object-table/SortableItemsList.d.ts.map +1 -1
- package/build/types/object-table/Table.d.ts.map +1 -1
- package/build/types/object-table/TableBody.d.ts.map +1 -1
- package/build/types/object-table/TableCell.d.ts.map +1 -1
- package/build/types/object-table/TableEditContainer.d.ts.map +1 -1
- package/build/types/object-table/TableHeader.d.ts.map +1 -1
- package/build/types/object-table/TableHeaderContent.d.ts.map +1 -1
- package/build/types/object-table/TableHeaderWithPopover.d.ts.map +1 -1
- package/build/types/object-table/TableRow.d.ts.map +1 -1
- package/build/types/object-table/components/AsyncValueCell.d.ts.map +1 -1
- package/build/types/object-table/components/CbacMarkingCell.d.ts.map +1 -1
- package/build/types/object-table/components/DatePickerCellField.d.ts.map +1 -1
- package/build/types/object-table/components/DropdownCellField.d.ts.map +1 -1
- package/build/types/object-table/components/MandatoryMarkingCell.d.ts.map +1 -1
- package/build/types/object-table/components/ReadonlyDisplayCell.d.ts.map +1 -1
- package/build/types/object-table/components/TextInputCellField.d.ts.map +1 -1
- package/build/types/object-table/hooks/useColumnDefs.d.ts.map +1 -1
- package/build/types/object-table/hooks/useColumnPinning.d.ts.map +1 -1
- package/build/types/object-table/hooks/useColumnVisibility.d.ts.map +1 -1
- package/build/types/object-table/hooks/useEditableTable.d.ts.map +1 -1
- package/build/types/object-table/hooks/useFocusedRow.d.ts.map +1 -1
- package/build/types/object-table/hooks/useFunctionColumnsData.d.ts.map +1 -1
- package/build/types/object-table/hooks/useObjectTableData.d.ts.map +1 -1
- package/build/types/object-table/hooks/useObjectTableSnapshot.d.ts.map +1 -1
- package/build/types/object-table/hooks/useRowSelection.d.ts.map +1 -1
- package/build/types/object-table/hooks/useSelectionColumn.d.ts.map +1 -1
- package/build/types/object-table/hooks/useTableSorting.d.ts.map +1 -1
- package/build/types/object-table/utils/AsyncCellData.d.ts.map +1 -1
- package/build/types/object-table/utils/PortalTracker.d.ts.map +1 -1
- package/build/types/object-table/utils/deriveSelectionObjectSet.d.ts.map +1 -1
- package/build/types/object-table/utils/functionColumns.d.ts.map +1 -1
- package/build/types/object-table/utils/getRowId.d.ts.map +1 -1
- package/build/types/object-table/utils/objectTableSnapshot.d.ts.map +1 -1
- package/build/types/object-table/utils/types.d.ts.map +1 -1
- package/build/types/pdf-viewer/PdfRenderer.d.ts.map +1 -1
- package/build/types/pdf-viewer/PdfViewer.d.ts.map +1 -1
- package/build/types/pdf-viewer/PdfViewerContext.d.ts.map +1 -1
- package/build/types/pdf-viewer/components/PdfAnnotationOverlay.d.ts.map +1 -1
- package/build/types/pdf-viewer/components/PdfViewerAnnotationLayer.d.ts.map +1 -1
- package/build/types/pdf-viewer/components/PdfViewerContent.d.ts.map +1 -1
- package/build/types/pdf-viewer/components/PdfViewerOutlineSidebar.d.ts.map +1 -1
- package/build/types/pdf-viewer/components/PdfViewerSearchBar.d.ts.map +1 -1
- package/build/types/pdf-viewer/components/PdfViewerSidebar.d.ts.map +1 -1
- package/build/types/pdf-viewer/components/PdfViewerSidebarHeader.d.ts.map +1 -1
- package/build/types/pdf-viewer/components/PdfViewerThumbnail.d.ts.map +1 -1
- package/build/types/pdf-viewer/components/PdfViewerToolbar.d.ts.map +1 -1
- package/build/types/pdf-viewer/constants.d.ts.map +1 -1
- package/build/types/pdf-viewer/hooks/usePdfAnnotationPortals.d.ts.map +1 -1
- package/build/types/pdf-viewer/hooks/usePdfAnnotationsByPage.d.ts.map +1 -1
- package/build/types/pdf-viewer/hooks/usePdfFormFields.d.ts.map +1 -1
- package/build/types/pdf-viewer/hooks/usePdfHighlightMode.d.ts.map +1 -1
- package/build/types/pdf-viewer/hooks/usePdfOutline.d.ts.map +1 -1
- package/build/types/pdf-viewer/hooks/usePdfViewer.d.ts.map +1 -1
- package/build/types/pdf-viewer/hooks/usePdfViewerCore.d.ts.map +1 -1
- package/build/types/pdf-viewer/hooks/usePdfViewerSearch.d.ts.map +1 -1
- package/build/types/pdf-viewer/hooks/usePdfViewerState.d.ts.map +1 -1
- package/build/types/pdf-viewer/hooks/usePdfViewerSync.d.ts.map +1 -1
- package/build/types/shared/ErrorBoundary.d.ts.map +1 -1
- package/build/types/shared/PortalContainerContext.d.ts.map +1 -1
- package/build/types/shared/PortalDismissLayer.d.ts.map +1 -1
- package/build/types/shared/calendar/DateCalendar.d.ts.map +1 -1
- package/build/types/shared/calendar/DatePicker.d.ts.map +1 -1
- package/build/types/shared/calendar/DateRangeCalendar.d.ts.map +1 -1
- package/build/types/shared/calendar/DateRangePicker.d.ts.map +1 -1
- package/build/types/shared/calendar/LazyDateCalendar.d.ts.map +1 -1
- package/build/types/shared/calendar/LazyDateRangeCalendar.d.ts.map +1 -1
- package/build/types/shared/calendar/TimePicker.d.ts.map +1 -1
- package/build/types/shared/calendar/useDateEditState.d.ts.map +1 -1
- package/build/types/shared/dateUtils.d.ts.map +1 -1
- package/build/types/shared/hooks/useAsyncAction.d.ts.map +1 -1
- package/build/types/shared/hooks/useInfiniteScroll.d.ts.map +1 -1
- package/build/types/theme/OsdkThemeContext.d.ts.map +1 -1
- package/build/types/theme/OsdkThemeProvider.d.ts.map +1 -1
- package/build/types/theme/useOsdkTheme.d.ts.map +1 -1
- package/build/types/theme/useSystemTheme.d.ts.map +1 -1
- package/build/types/util/UserAgent.d.ts.map +1 -1
- package/build/types/util/withOsdkMetrics.d.ts.map +1 -1
- package/build/types/video-viewer/BaseVideoViewer.d.ts.map +1 -1
- package/build/types/video-viewer/VideoViewer.d.ts.map +1 -1
- package/build/types/video-viewer/VideoViewerApi.d.ts.map +1 -1
- package/build/types/xml-viewer/BaseXmlViewer.d.ts.map +1 -1
- package/build/types/xml-viewer/XmlViewer.d.ts.map +1 -1
- package/build/types/xml-viewer/XmlViewerApi.d.ts.map +1 -1
- package/package.json +9 -10
- package/build/cjs/DateCalendar-FTW3OIEP.css.map +0 -1
- package/build/cjs/DateRangeCalendar-I4JHCZAK.css.map +0 -1
- package/build/cjs/DateRangeCalendar-PHC3VPW3.cjs +0 -12
- package/build/cjs/chunk-4VNWCW75.cjs.map +0 -1
- package/build/cjs/chunk-CASYBF4M.cjs.map +0 -1
- package/build/cjs/chunk-DA22W6ZO.cjs.map +0 -1
- package/build/cjs/chunk-F4JELV7M.cjs +0 -11
- package/build/cjs/chunk-IHVPE5CD.cjs.map +0 -1
- package/build/cjs/chunk-LGGRMQCE.cjs +0 -11
- package/build/cjs/chunk-MMPVBH5H.cjs.map +0 -1
- package/build/cjs/chunk-PYOEFNQH.cjs +0 -11
- package/build/cjs/chunk-Q5H4KPSL.cjs +0 -11
- package/build/cjs/chunk-VRTFHF24.cjs +0 -11
- package/build/cjs/chunk-W6DWGABB.cjs +0 -11
- package/build/cjs/chunk-WE4REEMW.cjs.map +0 -1
- package/build/cjs/chunk-XK4H7EHE.cjs.map +0 -1
- package/build/cjs/chunk-YTDSW5OV.cjs.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"coerceFieldValue.js","names":["coerceFieldValue","parameterType","rawValue","undefined","String","maybeNumber","extractNumber","Math","trunc","Number","isNaN","Date","parse","toISOString","trimmed","trim","parsed"],"sources":["coerceFieldValue.ts"],"sourcesContent":["/*\n * Copyright 2025 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport type { FieldType } from \"../FormFieldApi.js\";\n\n/**\n * Coerces a raw form field value to match the expected type for the given\n * field type. Returns `undefined` when coercion fails\n * (e.g. non-numeric string for a number field).\n *\n * Complex types (object, objectSet, struct, interface) are passed through\n * unchanged since they cannot be meaningfully coerced.\n */\nexport function coerceFieldValue(\n parameterType: FieldType | undefined,\n rawValue: unknown
|
|
1
|
+
{"version":3,"file":"coerceFieldValue.js","names":["coerceFieldValue","parameterType","rawValue","undefined","String","maybeNumber","extractNumber","Math","trunc","Number","isNaN","Date","parse","toISOString","trimmed","trim","parsed"],"sources":["coerceFieldValue.ts"],"sourcesContent":["/*\n * Copyright 2025 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport type { FieldType } from \"../FormFieldApi.js\";\n\n/**\n * Coerces a raw form field value to match the expected type for the given\n * field type. Returns `undefined` when coercion fails\n * (e.g. non-numeric string for a number field).\n *\n * Complex types (object, objectSet, struct, interface) are passed through\n * unchanged since they cannot be meaningfully coerced.\n */\nexport function coerceFieldValue(\n parameterType: FieldType | undefined,\n rawValue: unknown\n): unknown {\n if (rawValue == null) {\n return undefined;\n }\n\n if (parameterType == null) {\n return rawValue;\n }\n\n // TODO: Handle complex object types later\n if (typeof parameterType === \"object\") {\n return rawValue;\n }\n\n switch (parameterType) {\n case \"string\":\n case \"marking\":\n case \"geohash\":\n case \"geoshape\":\n case \"objectType\":\n return typeof rawValue === \"string\" ? rawValue : String(rawValue);\n\n case \"integer\":\n case \"long\": {\n const maybeNumber = extractNumber(rawValue);\n return maybeNumber != null ? Math.trunc(maybeNumber) : undefined;\n }\n\n case \"double\": {\n return extractNumber(rawValue);\n }\n\n case \"boolean\": {\n if (typeof rawValue === \"boolean\") {\n return rawValue;\n }\n if (rawValue === \"true\") return true;\n if (rawValue === \"false\") return false;\n return undefined;\n }\n\n case \"datetime\":\n case \"timestamp\": {\n if (typeof rawValue === \"string\") {\n return Number.isNaN(Date.parse(rawValue)) ? undefined : rawValue;\n }\n if (rawValue instanceof Date) {\n return rawValue.toISOString();\n }\n return undefined;\n }\n\n case \"attachment\":\n case \"mediaReference\":\n return rawValue;\n\n default:\n return rawValue;\n }\n}\n\nfunction extractNumber(rawValue: unknown): number | undefined {\n if (typeof rawValue === \"number\") {\n return rawValue;\n }\n if (typeof rawValue === \"string\") {\n const trimmed = rawValue.trim();\n if (trimmed === \"\") return undefined;\n const parsed = Number(trimmed);\n return Number.isNaN(parsed) ? undefined : parsed;\n }\n return undefined;\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASA,gBAAgBA,CAC9BC,aAAoC,EACpCC,QAAiB,EACR;EAC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AAOD,QAAQ;IAEjB;MACE,OAAOA,QAAQ;EACnB;AACF;AAEA,SAASI,aAAaA,CAACJ,QAAiB,EAAsB;EAC5D,IAAI,OAAOA,QAAQ,KAAK,QAAQ,EAAE;IAChC,OAAOA,QAAQ;EACjB;EACA,IAAI,OAAOA,QAAQ,KAAK,QAAQ,EAAE;IAChC,MAAMY,OAAO,GAAGZ,QAAQ,CAACa,IAAI,CAAC,CAAC;IAC/B,IAAID,OAAO,KAAK,EAAE,EAAE,OAAOX,SAAS;IACpC,MAAMa,MAAM,GAAGP,MAAM,CAACK,OAAO,CAAC;IAC9B,OAAOL,MAAM,CAACC,KAAK,CAACM,MAAM,CAAC,GAAGb,SAAS,GAAGa,MAAM;EAClD;EACA,OAAOb,SAAS;AAClB","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"extractValidationRules.js","names":["extractValidationRules","fieldDef","rules","isRequired","required","getMessage","type","validateFns","fieldComponent","min","max","fieldComponentProps","msg","value","minLength","maxLength","message","Date","getTime","maxSize","File","size","Array","isArray","oversized","some","f","validate","userValidate","custom","result","Object","keys","length","error","onValidationError","getDefaultMessage","formatConstraint","formatBytes","toLocaleDateString","String","bytes","toFixed"],"sources":["extractValidationRules.ts"],"sourcesContent":["/*\n * Copyright 2026 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport type { RegisterOptions } from \"react-hook-form\";\nimport type {\n RendererFieldDefinition,\n ValidationError,\n} from \"../FormFieldApi.js\";\n\ntype RhfRules = RegisterOptions<Record<string, unknown>, string>;\n\n/**\n * Derives react-hook-form validation rules from a field definition's\n * constraint props (min, max, minLength, etc.) and the optional\n * user-provided `validate` function.\n *\n * Called at rule-building time so that `onValidationError` can inject\n * custom messages into the RHF rules object.\n */\nexport function extractValidationRules(\n fieldDef: RendererFieldDefinition,\n): RhfRules {\n const rules: RhfRules = {};\n\n if (fieldDef.isRequired) {\n rules.required = getMessage(fieldDef, { type: \"required\" });\n }\n\n const validateFns: Record<\n string,\n (value: unknown) => string | true | Promise<string | true>\n > = {};\n\n switch (fieldDef.fieldComponent) {\n case \"NUMBER_INPUT\": {\n const { min, max } = fieldDef.fieldComponentProps;\n if (min != null) {\n const msg = getMessage(fieldDef, { type: \"min\", min });\n validateFns.min = (value) =>\n typeof value === \"number\" && value < min ? msg : true;\n }\n if (max != null) {\n const msg = getMessage(fieldDef, { type: \"max\", max });\n validateFns.max = (value) =>\n typeof value === \"number\" && value > max ? msg : true;\n }\n break;\n }\n case \"TEXT_INPUT\":\n case \"TEXT_AREA\": {\n const { minLength, maxLength } = fieldDef.fieldComponentProps;\n if (minLength != null) {\n rules.minLength = {\n value: minLength,\n message: getMessage(fieldDef, { type: \"minLength\", minLength }),\n };\n }\n if (maxLength != null) {\n rules.maxLength = {\n value: maxLength,\n message: getMessage(fieldDef, { type: \"maxLength\", maxLength }),\n };\n }\n break;\n }\n case \"DATETIME_PICKER\": {\n const { min, max } = fieldDef.fieldComponentProps;\n if (min != null) {\n const msg = getMessage(fieldDef, { type: \"min\", min });\n validateFns.min = (value) =>\n value instanceof Date && value.getTime() < min.getTime()\n ? msg\n : true;\n }\n if (max != null) {\n const msg = getMessage(fieldDef, { type: \"max\", max });\n validateFns.max = (value) =>\n value instanceof Date && value.getTime() > max.getTime()\n ? msg\n : true;\n }\n break;\n }\n case \"FILE_PICKER\": {\n const { maxSize } = fieldDef.fieldComponentProps;\n if (maxSize != null) {\n const msg = getMessage(fieldDef, { type: \"maxSize\", maxSize });\n validateFns.maxSize = (value) => {\n if (value instanceof File) {\n return value.size > maxSize ? msg : true;\n }\n if (Array.isArray(value)) {\n const oversized = value.some(\n (f: unknown) => f instanceof File && f.size > maxSize,\n );\n return oversized ? msg : true;\n }\n return true;\n };\n }\n break;\n }\n // DROPDOWN, RADIO_BUTTONS, CUSTOM, OBJECT_SET, UNSUPPORTED: only `required` applies\n default:\n break;\n }\n\n if (fieldDef.validate != null) {\n const userValidate = fieldDef.validate;\n validateFns.custom = async (value: unknown) => {\n const result = await userValidate(value);\n if (result == null) {\n return true;\n }\n return getMessage(fieldDef, { type: \"validate\", message: result });\n };\n }\n\n if (Object.keys(validateFns).length > 0) {\n rules.validate = validateFns;\n }\n\n return rules;\n}\n\nfunction getMessage(\n fieldDef: RendererFieldDefinition,\n error: ValidationError,\n): string {\n return fieldDef.onValidationError?.(error) ?? getDefaultMessage(error);\n}\n\nfunction getDefaultMessage(error: ValidationError): string {\n switch (error.type) {\n case \"required\":\n return \"This field is required\";\n case \"min\":\n return `Must be at least ${formatConstraint(error.min)}`;\n case \"max\":\n return `Must be at most ${formatConstraint(error.max)}`;\n case \"minLength\":\n return `Must be at least ${error.minLength} characters`;\n case \"maxLength\":\n return `Must be at most ${error.maxLength} characters`;\n case \"maxSize\":\n return `File must be smaller than ${formatBytes(error.maxSize)}`;\n case \"validate\":\n return error.message;\n }\n}\n\nfunction formatConstraint(value: number | Date): string {\n if (value instanceof Date) {\n return value.toLocaleDateString();\n }\n return String(value);\n}\n\nfunction formatBytes(bytes: number): string {\n if (bytes < 1024) {\n return `${bytes} B`;\n }\n if (bytes < 1024 * 1024) {\n return `${(bytes / 1024).toFixed(1)} KB`;\n }\n return `${(bytes / (1024 * 1024)).toFixed(1)} MB`;\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAUA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASA,sBAAsBA,CACpCC,QAAiC,EACvB;EACV,MAAMC,KAAe,GAAG,CAAC,CAAC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AG,CAAC,EAAE;IAC1D,KAAK,KAAK;MACR,OAAO,mBAAmB4B,gBAAgB,CAACH,KAAK,CAACxB,GAAG,CAAC,EAAE;IACzD,KAAK,WAAW;MACd,OAAO,oBAAoBwB,KAAK,CAACpB,SAAS,aAAa;IACzD,KAAK,WAAW;MACd,OAAO,mBAAmBoB,KAAK,CAACnB,SAAS,aAAa;IACxD,KAAK,SAAS;MACZ,OAAO,6BAA6BuB,WAAW,CAACJ,KAAK,CAACf,OAAO,CAAC,EAAE;IAClE,KAAK,UAAU;MACb,OAAOe,KAAK,CAAClB,OAAO;EACxB;AACF;AAEA,SAASqB,gBAAgBA,CAACxB,KAAoB,EAAU;EACtD,IAAIA,KAAK,YAAYI,IAAI,EAAE;IACzB,OAAOJ,KAAK,CAAC0B,kBAAkB,CAAC,CAAC;EACnC;EACA,OAAOC,MAAM,CAAC3B,KAAK,CAAC;AACtB;AAEA,SAASyB,WAAWA,CAACG,KAAa,EAAU;EAC1C,IAAIA,KAAK,GAAG,IAAI,EAAE;IAChB,OAAO,GAAGA,KAAK,IAAI;EACrB;EACA,IAAIA,KAAK,GAAG,IAAI,GAAG,IAAI,EAAE;IACvB,OAAO,GAAG,CAACA,KAAK,GAAG,IAAI,EAAEC,OAAO,CAAC,CAAC,CAAC,KAAK;EAC1C;EACA,OAAO,GAAG,CAACD,KAAK,IAAI,IAAI,GAAG,IAAI,CAAC,EAAEC,OAAO,CAAC,CAAC,CAAC,KAAK;AACnD","ignoreList":[]}
|
|
1
|
+
{"version":3,"file":"extractValidationRules.js","names":["extractValidationRules","fieldDef","rules","isRequired","required","getMessage","type","validateFns","fieldComponent","min","max","fieldComponentProps","msg","value","minLength","maxLength","message","Date","getTime","maxSize","File","size","Array","isArray","oversized","some","f","validate","userValidate","custom","result","Object","keys","length","error","onValidationError","getDefaultMessage","formatConstraint","formatBytes","toLocaleDateString","String","bytes","toFixed"],"sources":["extractValidationRules.ts"],"sourcesContent":["/*\n * Copyright 2026 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport type { RegisterOptions } from \"react-hook-form\";\n\nimport type {\n RendererFieldDefinition,\n ValidationError,\n} from \"../FormFieldApi.js\";\n\ntype RhfRules = RegisterOptions<Record<string, unknown>, string>;\n\n/**\n * Derives react-hook-form validation rules from a field definition's\n * constraint props (min, max, minLength, etc.) and the optional\n * user-provided `validate` function.\n *\n * Called at rule-building time so that `onValidationError` can inject\n * custom messages into the RHF rules object.\n */\nexport function extractValidationRules(\n fieldDef: RendererFieldDefinition\n): RhfRules {\n const rules: RhfRules = {};\n\n if (fieldDef.isRequired) {\n rules.required = getMessage(fieldDef, { type: \"required\" });\n }\n\n const validateFns: Record<\n string,\n (value: unknown) => string | true | Promise<string | true>\n > = {};\n\n switch (fieldDef.fieldComponent) {\n case \"NUMBER_INPUT\": {\n const { min, max } = fieldDef.fieldComponentProps;\n if (min != null) {\n const msg = getMessage(fieldDef, { type: \"min\", min });\n validateFns.min = (value) =>\n typeof value === \"number\" && value < min ? msg : true;\n }\n if (max != null) {\n const msg = getMessage(fieldDef, { type: \"max\", max });\n validateFns.max = (value) =>\n typeof value === \"number\" && value > max ? msg : true;\n }\n break;\n }\n case \"TEXT_INPUT\":\n case \"TEXT_AREA\": {\n const { minLength, maxLength } = fieldDef.fieldComponentProps;\n if (minLength != null) {\n rules.minLength = {\n value: minLength,\n message: getMessage(fieldDef, { type: \"minLength\", minLength }),\n };\n }\n if (maxLength != null) {\n rules.maxLength = {\n value: maxLength,\n message: getMessage(fieldDef, { type: \"maxLength\", maxLength }),\n };\n }\n break;\n }\n case \"DATETIME_PICKER\": {\n const { min, max } = fieldDef.fieldComponentProps;\n if (min != null) {\n const msg = getMessage(fieldDef, { type: \"min\", min });\n validateFns.min = (value) =>\n value instanceof Date && value.getTime() < min.getTime() ? msg : true;\n }\n if (max != null) {\n const msg = getMessage(fieldDef, { type: \"max\", max });\n validateFns.max = (value) =>\n value instanceof Date && value.getTime() > max.getTime() ? msg : true;\n }\n break;\n }\n case \"FILE_PICKER\": {\n const { maxSize } = fieldDef.fieldComponentProps;\n if (maxSize != null) {\n const msg = getMessage(fieldDef, { type: \"maxSize\", maxSize });\n validateFns.maxSize = (value) => {\n if (value instanceof File) {\n return value.size > maxSize ? msg : true;\n }\n if (Array.isArray(value)) {\n const oversized = value.some(\n (f: unknown) => f instanceof File && f.size > maxSize\n );\n return oversized ? msg : true;\n }\n return true;\n };\n }\n break;\n }\n // DROPDOWN, RADIO_BUTTONS, CUSTOM, OBJECT_SET, UNSUPPORTED: only `required` applies\n default:\n break;\n }\n\n if (fieldDef.validate != null) {\n const userValidate = fieldDef.validate;\n validateFns.custom = async (value: unknown) => {\n const result = await userValidate(value);\n if (result == null) {\n return true;\n }\n return getMessage(fieldDef, { type: \"validate\", message: result });\n };\n }\n\n if (Object.keys(validateFns).length > 0) {\n rules.validate = validateFns;\n }\n\n return rules;\n}\n\nfunction getMessage(\n fieldDef: RendererFieldDefinition,\n error: ValidationError\n): string {\n return fieldDef.onValidationError?.(error) ?? getDefaultMessage(error);\n}\n\nfunction getDefaultMessage(error: ValidationError): string {\n switch (error.type) {\n case \"required\":\n return \"This field is required\";\n case \"min\":\n return `Must be at least ${formatConstraint(error.min)}`;\n case \"max\":\n return `Must be at most ${formatConstraint(error.max)}`;\n case \"minLength\":\n return `Must be at least ${error.minLength} characters`;\n case \"maxLength\":\n return `Must be at most ${error.maxLength} characters`;\n case \"maxSize\":\n return `File must be smaller than ${formatBytes(error.maxSize)}`;\n case \"validate\":\n return error.message;\n }\n}\n\nfunction formatConstraint(value: number | Date): string {\n if (value instanceof Date) {\n return value.toLocaleDateString();\n }\n return String(value);\n}\n\nfunction formatBytes(bytes: number): string {\n if (bytes < 1024) {\n return `${bytes} B`;\n }\n if (bytes < 1024 * 1024) {\n return `${(bytes / 1024).toFixed(1)} KB`;\n }\n return `${(bytes / (1024 * 1024)).toFixed(1)} MB`;\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAWA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASA,sBAAsBA,CACpCC,QAAiC,EACvB;EACV,MAAMC,KAAe,GAAG,CAAC,CAAC;EAE1B,IAAID,QAAQ,CAACE,UAAU,EAAE;IACvBD,KAAK,CAACE,QAAQ,GAAGC,UAAU,CAACJ,QAAQ,EAAE;MAAEK,IAAI,EAAE;IAAW,CAAC,CAAC;EAC7D;EAEA,MAAMC,WAGL,GAAG,CAAC,CAAC;EAEN,QAAQN,QAAQ,CAACO,cAAc;IAC7B,KAAK,cAAc;MAAE;QACnB,MAAM;UAAEC,GAAG;UAAEC;QAAI,CAAC,GAAGT,QAAQ,CAACU,mBAAmB;QACjD,IAAIF,GAAG,IAAI,IAAI,EAAE;UACf,MAAMG,GAAG,GAAGP,UAAU,CAACJ,QAAQ,EAAE;YAAEK,IAAI,EAAE,KAAK;YAAEG;UAAI,CAAC,CAAC;UACtDF,WAAW,CAACE,GAAG,GAAII,KAAK,IACtB,OAAOA,KAAK,KAAK,QAAQ,IAAIA,KAAK,GAAGJ,GAAG,GAAGG,GAAG,GAAG,IAAI;QACzD;QACA,IAAIF,GAAG,IAAI,IAAI,EAAE;UACf,MAAME,GAAG,GAAGP,UAAU,CAACJ,QAAQ,EAAE;YAAEK,IAAI,EAAE,KAAK;YAAEI;UAAI,CAAC,CAAC;UACtDH,WAAW,CAACG,GAAG,GAAIG,KAAK,IACtB,OAAOA,KAAK,KAAK,QAAQ,IAAIA,KAAK,GAAGH,GAAG,GAAGE,GAAG,GA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,KAAK,IAAI,IAAI,GAAG,IAAI,CAAC,EAAEC,OAAO,CAAC,CAAC,CAAC,KAAK;AACnD","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getDefaultFieldDefinitions.js","names":["assertUnreachable","getDefaultFieldDefinitions","metadata","Object","entries","parameters","map","key","param","buildFieldDefinition","base","fieldKey","label","isRequired","nullable","fieldType","type","paramType","fieldComponent","fieldComponentProps","value","objectType","apiName","object","options"],"sources":["getDefaultFieldDefinitions.ts"],"sourcesContent":["/*\n * Copyright 2025 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport type { ActionMetadata } from \"@osdk/api\";\nimport { assertUnreachable } from \"../../shared/assertUnreachable.js\";\nimport type { RendererFieldDefinition } from \"../FormFieldApi.js\";\n\n/**\n * Derives default field definitions from ActionMetadata.\n *\n * Each parameter type maps to a concrete RendererFieldDefinition with the\n * correct fieldComponent and default fieldComponentProps.\n */\nexport function getDefaultFieldDefinitions(\n metadata: ActionMetadata
|
|
1
|
+
{"version":3,"file":"getDefaultFieldDefinitions.js","names":["assertUnreachable","getDefaultFieldDefinitions","metadata","Object","entries","parameters","map","key","param","buildFieldDefinition","base","fieldKey","label","isRequired","nullable","fieldType","type","paramType","fieldComponent","fieldComponentProps","value","objectType","apiName","object","options"],"sources":["getDefaultFieldDefinitions.ts"],"sourcesContent":["/*\n * Copyright 2025 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport type { ActionMetadata } from \"@osdk/api\";\n\nimport { assertUnreachable } from \"../../shared/assertUnreachable.js\";\nimport type { RendererFieldDefinition } from \"../FormFieldApi.js\";\n\n/**\n * Derives default field definitions from ActionMetadata.\n *\n * Each parameter type maps to a concrete RendererFieldDefinition with the\n * correct fieldComponent and default fieldComponentProps.\n */\nexport function getDefaultFieldDefinitions(\n metadata: ActionMetadata\n): ReadonlyArray<RendererFieldDefinition> {\n return Object.entries(metadata.parameters).map(([key, param]) =>\n buildFieldDefinition(key, param)\n );\n}\n\n/**\n * Maps a single action parameter to its default RendererFieldDefinition.\n *\n * Switches on the parameter's data type to select both the field component\n * and its required default props.\n */\nfunction buildFieldDefinition(\n key: string,\n param: ActionMetadata.Parameter\n): RendererFieldDefinition {\n const base = {\n fieldKey: key,\n label: key,\n isRequired: !param.nullable,\n fieldType: param.type,\n };\n\n const paramType = param.type;\n\n if (typeof paramType === \"object\") {\n switch (paramType.type) {\n case \"objectSet\":\n return {\n ...base,\n fieldComponent: \"OBJECT_SET\",\n fieldComponentProps: { value: null },\n };\n case \"object\":\n return {\n ...base,\n fieldComponent: \"OBJECT_SELECT\",\n fieldComponentProps: {\n // Construct a minimal ObjectTypeDefinition from the action\n // parameter metadata. At runtime useOsdkObjects only reads\n // type + apiName from the definition.\n objectType: {\n type: \"object\" as const,\n apiName: paramType.object,\n },\n },\n };\n case \"interface\":\n case \"struct\":\n return {\n ...base,\n fieldComponent: \"UNSUPPORTED\",\n fieldComponentProps: {},\n };\n }\n }\n\n switch (paramType) {\n case \"string\":\n return {\n ...base,\n fieldComponent: \"TEXT_INPUT\",\n fieldComponentProps: {},\n };\n case \"marking\":\n case \"geohash\":\n case \"geoshape\":\n case \"objectType\":\n case \"scenarioReference\":\n return {\n ...base,\n fieldComponent: \"UNSUPPORTED\",\n fieldComponentProps: {},\n };\n case \"boolean\":\n return {\n ...base,\n fieldComponent: \"RADIO_BUTTONS\",\n fieldComponentProps: {\n options: [\n { label: \"True\", value: true },\n {\n label: \"False\",\n value: false,\n },\n ],\n },\n };\n case \"integer\":\n case \"double\":\n case \"long\":\n return {\n ...base,\n fieldComponent: \"NUMBER_INPUT\",\n fieldComponentProps: {},\n };\n case \"datetime\":\n case \"timestamp\":\n return {\n ...base,\n fieldComponent: \"DATETIME_PICKER\",\n fieldComponentProps: {},\n };\n case \"attachment\":\n case \"mediaReference\":\n return {\n ...base,\n fieldComponent: \"FILE_PICKER\",\n fieldComponentProps: {},\n };\n default:\n return assertUnreachable(paramType);\n }\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAIA,SAASA,iBAAiB,QAAQ,mCAAmC;AAGrE;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,0BAA0BA,CACxCC,QAAwB,EACgB;EACxC,OAAOC,MAAM,CAACC,OAAO,CAACF,QAAQ,CAACG,UAAU,CAAC,CAACC,GAAG,CAAC,CAAC,CAACC,GAAG,EAAEC,KAAK,CAAC,KAC1DC,oBAAoB,CAACF,GAAG,EAAEC,KAAK,CACjC,CAAC;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,SAASC,oBAAoBA,CAC3BF,GAAW,EACXC,KAA+B,EACN;EACzB,MAAME,IAAI,GAAG;IACXC,QAAQ,EAAEJ,GAAG;IACbK,KAAK,EAAEL,GAAG;IACVM,UAAU,EAAE,CAACL,KAAK,CAACM,QAAQ;IAC3BC,SAAS,EAAEP,KAAK,CAACQ;EACnB,CAAC;EAED,MAAMC,SAAS,GAAGT,KAAK,CAACQ,IAAI;EAE5B,IAAI,OAAOC,SAAS,KAAK,QAAQ,EAAE;IACjC,QAAQA,SAAS,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,KAAK,WAAW;MACd,OAAO;QACL,GAAGT,IAAI;QACPQ,cAAc,EAAE,iBAAiB;QACjCC,mBAAmB,EAAE,CAAC;MACxB,CAAC;IACH,KAAK,YAAY;IACjB,KAAK,gBAAgB;MACnB,OAAO;QACL,GAAGT,IAAI;QACPQ,cAAc,EAAE,aAAa;QAC7BC,mBAAmB,EAAE,CAAC;MACxB,CAAC;IACH;MACE,OAAOnB,iBAAiB,CAACiB,SAAS,CAAC;EACvC;AACF","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AipAgentChat.js","names":["foundryModel","useChat","React","BaseAipAgentChat","AipAgentChatModelPicker","FALLBACK_MODEL_API_NAME","AipAgentChat","client","model","controlledModel","defaultModel","availableModels","onModelChange","system","initialMessages","className","placeholder","enableAutoScroll","onError","onFinish","renderEmptyState","renderMessage","internalModel","setInternalModel","useState","isControlled","activeModel","handleModelChange","useCallback","next","useMemo","messages","status","error","sendMessage","stop","clearError","useEffect","length","includes","handleSendMessage","text","composerFooter","createElement","models","disabled","undefined","onClearError","onSendMessage","onStop"],"sources":["AipAgentChat.tsx"],"sourcesContent":["/*\n * Copyright 2026 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { foundryModel } from \"@osdk/aip-core\";\nimport { useChat } from \"@osdk/react/experimental/aip\";\nimport * as React from \"react\";\nimport type { AipAgentChatProps } from \"./AipAgentChatApi.js\";\nimport { BaseAipAgentChat } from \"./BaseAipAgentChat.js\";\nimport { AipAgentChatModelPicker } from \"./components/AipAgentChatModelPicker.js\";\n\nexport type { AipAgentChatProps } from \"./AipAgentChatApi.js\";\n\nconst FALLBACK_MODEL_API_NAME = \"gpt-4o\";\n\n/**\n * OSDK-aware chat surface backed by Foundry's Language Model Service.\n * Constructs the LMS-backed model internally and uses `useChat` to\n * manage conversation state, so consumers never need to import `useChat`,\n * `streamText`, or `foundryModel` themselves.\n */\nexport function AipAgentChat({\n client,\n model: controlledModel,\n defaultModel,\n availableModels,\n onModelChange,\n system,\n initialMessages,\n className,\n placeholder,\n enableAutoScroll,\n onError,\n onFinish,\n renderEmptyState,\n renderMessage,\n}: AipAgentChatProps): React.ReactElement {\n // Internal state used only in uncontrolled mode. Initialized once\n // from the first available source: `controlledModel` → `defaultModel`\n // → first entry of `availableModels` → `FALLBACK_MODEL_API_NAME`.\n const [internalModel, setInternalModel] = React.useState<string>(\n () =>\n controlledModel
|
|
1
|
+
{"version":3,"file":"AipAgentChat.js","names":["foundryModel","useChat","React","BaseAipAgentChat","AipAgentChatModelPicker","FALLBACK_MODEL_API_NAME","AipAgentChat","client","model","controlledModel","defaultModel","availableModels","onModelChange","system","initialMessages","className","placeholder","enableAutoScroll","onError","onFinish","renderEmptyState","renderMessage","internalModel","setInternalModel","useState","isControlled","activeModel","handleModelChange","useCallback","next","useMemo","messages","status","error","sendMessage","stop","clearError","useEffect","length","includes","handleSendMessage","text","composerFooter","createElement","models","disabled","undefined","onClearError","onSendMessage","onStop"],"sources":["AipAgentChat.tsx"],"sourcesContent":["/*\n * Copyright 2026 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { foundryModel } from \"@osdk/aip-core\";\nimport { useChat } from \"@osdk/react/experimental/aip\";\nimport * as React from \"react\";\n\nimport type { AipAgentChatProps } from \"./AipAgentChatApi.js\";\nimport { BaseAipAgentChat } from \"./BaseAipAgentChat.js\";\nimport { AipAgentChatModelPicker } from \"./components/AipAgentChatModelPicker.js\";\n\nexport type { AipAgentChatProps } from \"./AipAgentChatApi.js\";\n\nconst FALLBACK_MODEL_API_NAME = \"gpt-4o\";\n\n/**\n * OSDK-aware chat surface backed by Foundry's Language Model Service.\n * Constructs the LMS-backed model internally and uses `useChat` to\n * manage conversation state, so consumers never need to import `useChat`,\n * `streamText`, or `foundryModel` themselves.\n */\nexport function AipAgentChat({\n client,\n model: controlledModel,\n defaultModel,\n availableModels,\n onModelChange,\n system,\n initialMessages,\n className,\n placeholder,\n enableAutoScroll,\n onError,\n onFinish,\n renderEmptyState,\n renderMessage,\n}: AipAgentChatProps): React.ReactElement {\n // Internal state used only in uncontrolled mode. Initialized once\n // from the first available source: `controlledModel` → `defaultModel`\n // → first entry of `availableModels` → `FALLBACK_MODEL_API_NAME`.\n const [internalModel, setInternalModel] = React.useState<string>(\n () =>\n controlledModel ??\n defaultModel ??\n availableModels?.[0] ??\n FALLBACK_MODEL_API_NAME\n );\n\n const isControlled = controlledModel != null;\n const activeModel = isControlled ? controlledModel : internalModel;\n\n const handleModelChange = React.useCallback(\n (next: string) => {\n if (!isControlled) {\n setInternalModel(next);\n }\n onModelChange?.(next);\n },\n [isControlled, onModelChange]\n );\n\n const model = React.useMemo(\n () => foundryModel({ client, model: activeModel }),\n [client, activeModel]\n );\n\n const { messages, status, error, sendMessage, stop, clearError } = useChat({\n model,\n system,\n messages: initialMessages,\n onError,\n onFinish,\n });\n\n // Snap the uncontrolled model to the first available option whenever the\n // current selection isn't in `availableModels` (e.g. on first async resolve).\n React.useEffect(() => {\n if (\n isControlled ||\n availableModels == null ||\n availableModels.length === 0\n ) {\n return;\n }\n if (!availableModels.includes(internalModel)) {\n setInternalModel(availableModels[0]);\n }\n }, [isControlled, availableModels, internalModel]);\n\n const handleSendMessage = React.useCallback(\n (text: string) => {\n return sendMessage({ text });\n },\n [sendMessage]\n );\n\n const isInFlight = status === \"submitted\" || status === \"streaming\";\n\n const composerFooter =\n availableModels != null && availableModels.length > 0 ? (\n <AipAgentChatModelPicker\n activeModel={activeModel}\n models={availableModels}\n onModelChange={handleModelChange}\n disabled={isInFlight}\n />\n ) : undefined;\n\n return (\n <BaseAipAgentChat\n className={className}\n composerFooter={composerFooter}\n enableAutoScroll={enableAutoScroll}\n messages={messages}\n status={status}\n error={error}\n onClearError={clearError}\n onSendMessage={handleSendMessage}\n onStop={stop}\n placeholder={placeholder}\n renderEmptyState={renderEmptyState}\n renderMessage={renderMessage}\n />\n );\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA,YAAY,QAAQ,gBAAgB;AAC7C,SAASC,OAAO,QAAQ,8BAA8B;AACtD,OAAO,KAAKC,KAAK,MAAM,OAAO;AAG9B,SAASC,gBAAgB,QAAQ,uBAAuB;AACxD,SAASC,uBAAuB,QAAQ,yCAAyC;AAIjF,MAAMC,uBAAuB,GAAG,QAAQ;;AAExC;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,YAAYA,CAAC;EAC3BC,MAAM;EACNC,KAAK,EAAEC,eAAe;EACtBC,YAAY;EACZC,eAAe;EACfC,aAAa;EACbC,MAAM;EACNC,eAAe;EACfC,SAAS;EACTC,WAAW;EACXC,gBAAgB;EAChBC,OAAO;EACPC,QAAQ;EACRC,gBAAgB;EAChBC;AACiB,CAAC,EAAsB;EACxC;EACA;EACA;EACA,MAAM,CAACC,aAAa,EAAEC,gBAAgB,CAAC,GAAGrB,KAAK,CAACsB,QAAQ,CACtD,MACEf,eAAe,IACfC,YAAY,IACZC,eAAe,GAAG,CAAC,CAAC,IACpBN,uBACJ,CAAC;EAED,MAAMoB,YAAY,GAAGhB,eAAe,IAAI,IAA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IA,eAAe,CAAC2B,MAAM,GAAG,CAAC,gBACnDpC,KAAA,CAAAyC,aAAA,CAACvC,uBAAuB;IACtBsB,WAAW,EAAEA,WAAY;IACzBkB,MAAM,EAAEjC,eAAgB;IACxBC,aAAa,EAAEe,iBAAkB;IACjCkB,QAAQ,EARKb,MAAM,KAAK,WAAW,IAAIA,MAAM,KAAK;EAQ7B,CACtB,CAAC,GACAc,SAAS;EAEf,oBACE5C,KAAA,CAAAyC,aAAA,CAACxC,gBAAgB;IACfY,SAAS,EAAEA,SAAU;IACrB2B,cAAc,EAAEA,cAAe;IAC/BzB,gBAAgB,EAAEA,gBAAiB;IACnCc,QAAQ,EAAEA,QAAS;IACnBC,MAAM,EAAEA,MAAO;IACfC,KAAK,EAAEA,KAAM;IACbc,YAAY,EAAEX,UAAW;IACzBY,aAAa,EAAER,iBAAkB;IACjCS,MAAM,EAAEd,IAAK;IACbnB,WAAW,EAAEA,WAAY;IACzBI,gBAAgB,EAAEA,gBAAiB;IACnCC,aAAa,EAAEA;EAAc,CAC9B,CAAC;AAEN","ignoreList":[]}
|
|
@@ -18,9 +18,9 @@ import classNames from "classnames";
|
|
|
18
18
|
import * as React from "react";
|
|
19
19
|
import { ActionButton } from "../base-components/action-button/ActionButton.js";
|
|
20
20
|
import { Callout } from "../base-components/callout/Callout.js";
|
|
21
|
-
import styles from "./AipAgentChat.module.css";
|
|
22
21
|
import { AipAgentChatComposer } from "./components/AipAgentChatComposer.js";
|
|
23
22
|
import { AipAgentChatMessageList } from "./components/AipAgentChatMessageList.js";
|
|
23
|
+
import styles from "./AipAgentChat.module.css";
|
|
24
24
|
/**
|
|
25
25
|
* OSDK-agnostic chat surface. Manages conversation state, streaming UI,
|
|
26
26
|
* and error display internally; the consumer provides the current state
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BaseAipAgentChat.js","names":["classNames","React","ActionButton","Callout","
|
|
1
|
+
{"version":3,"file":"BaseAipAgentChat.js","names":["classNames","React","ActionButton","Callout","AipAgentChatComposer","AipAgentChatMessageList","styles","BaseAipAgentChat","memo","messages","status","error","onSendMessage","onStop","onClearError","composerFooter","className","placeholder","enableAutoScroll","renderEmptyState","renderMessage","isInFlight","createElement","chat","actions","onClick","type","intent","title","message","length","isStreaming","footerLeft"],"sources":["BaseAipAgentChat.tsx"],"sourcesContent":["/*\n * Copyright 2026 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport type { UIMessage } from \"@osdk/aip-core\";\nimport type { ChatStatus } from \"@osdk/react/experimental/aip\";\nimport classNames from \"classnames\";\nimport * as React from \"react\";\n\nimport { ActionButton } from \"../base-components/action-button/ActionButton.js\";\nimport { Callout } from \"../base-components/callout/Callout.js\";\nimport { AipAgentChatComposer } from \"./components/AipAgentChatComposer.js\";\nimport { AipAgentChatMessageList } from \"./components/AipAgentChatMessageList.js\";\n\nimport styles from \"./AipAgentChat.module.css\";\n\nexport interface BaseAipAgentChatProps {\n /**\n * Current messages in the conversation.\n */\n messages: ReadonlyArray<UIMessage>;\n\n /**\n * Current status of the chat lifecycle.\n */\n status: ChatStatus;\n\n /**\n * Current error, if any.\n */\n error: Error | undefined;\n\n /**\n * Called when the user sends a message. Should return a promise that\n * resolves when the message has been sent.\n *\n * @param text The text the user just submitted (already trimmed).\n */\n onSendMessage: (text: string) => Promise<void>;\n\n /**\n * Called to stop an in-flight request.\n */\n onStop: () => void;\n\n /**\n * Called to clear the current error.\n */\n onClearError: () => void;\n\n /**\n * Optional content rendered in the composer footer, to the left of\n * the send button. The OSDK wrapper uses this slot for the model\n * picker.\n */\n composerFooter?: React.ReactNode;\n\n className?: string;\n\n /**\n * @default \"Type a message...\"\n */\n placeholder?: string;\n\n /**\n * @default true\n */\n enableAutoScroll?: boolean;\n\n renderEmptyState?: () => React.ReactNode;\n renderMessage?: (message: UIMessage) => React.ReactNode;\n}\n\n/**\n * OSDK-agnostic chat surface. Manages conversation state, streaming UI,\n * and error display internally; the consumer provides the current state\n * and callbacks for sending messages and managing state.\n */\nexport const BaseAipAgentChat: React.NamedExoticComponent<BaseAipAgentChatProps> =\n React.memo(function BaseAipAgentChat({\n messages,\n status,\n error,\n onSendMessage,\n onStop,\n onClearError,\n composerFooter,\n className,\n placeholder = \"Type a message...\",\n enableAutoScroll = true,\n renderEmptyState,\n renderMessage,\n }) {\n const isInFlight = status === \"submitted\" || status === \"streaming\";\n\n return (\n <div className={classNames(styles.chat, className)}>\n {error != null && (\n <Callout\n actions={\n <ActionButton onClick={onClearError} type=\"button\">\n Dismiss\n </ActionButton>\n }\n intent=\"error\"\n title=\"Something went wrong\"\n >\n {error.message.length > 0\n ? error.message\n : \"An unknown error occurred. Try again, or dismiss to keep the conversation.\"}\n </Callout>\n )}\n <AipAgentChatMessageList\n enableAutoScroll={enableAutoScroll}\n isStreaming={isInFlight}\n messages={messages}\n renderEmptyState={renderEmptyState}\n renderMessage={renderMessage}\n />\n <AipAgentChatComposer\n footerLeft={composerFooter}\n isInFlight={isInFlight}\n onSendMessage={onSendMessage}\n onStop={onStop}\n placeholder={placeholder}\n />\n </div>\n );\n });\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAIA,OAAOA,UAAU,MAAM,YAAY;AACnC,OAAO,KAAKC,KAAK,MAAM,OAAO;AAE9B,SAASC,YAAY,QAAQ,kDAAkD;AAC/E,SAASC,OAAO,QAAQ,uCAAuC;AAC/D,SAASC,oBAAoB,QAAQ,sCAAsC;AAC3E,SAASC,uBAAuB,QAAQ,yCAAyC;AAEjF,OAAOC,MAA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oreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AipAgentChatComposer.js","names":["Input","classNames","React","ActionButton","styles","AipAgentChatComposer","isInFlight","onSendMessage","onStop","placeholder","className","footerLeft","draft","setDraft","useState","canSend","trim","length","handleSend","useCallback","trimmed","result","Promise","catch","noop","handleKeyDown","event","key","shiftKey","preventDefault","renderTextarea","props","createElement","_extends","onKeyDown","rows","composer","inputWrapper","textarea","onValueChange","value","render","inputActions","onClick","type","disabled","variant","composerFooterLeft"],"sources":["AipAgentChatComposer.tsx"],"sourcesContent":["/*\n * Copyright 2026 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { Input } from \"@base-ui/react/input\";\nimport classNames from \"classnames\";\nimport * as React from \"react\";\nimport { ActionButton } from \"../../base-components/action-button/ActionButton.js\";\nimport styles from \"../AipAgentChat.module.css\";\n\nexport interface AipAgentChatComposerProps {\n isInFlight: boolean;\n onSendMessage: (text: string) => void;\n onStop?: () => void;\n placeholder?: string;\n className?: string;\n /**\n * Optional content rendered to the left of the send button (e.g. the\n * model picker passed in by the OSDK wrapper).\n */\n footerLeft?: React.ReactNode;\n}\n\n/**\n * Textarea + send/stop button. Enter sends; Shift+Enter inserts a newline.\n * The button toggles to \"Stop\" while a stream is in flight (when an\n * `onStop` callback is provided).\n */\nexport function AipAgentChatComposer({\n isInFlight,\n onSendMessage,\n onStop,\n placeholder,\n className,\n footerLeft,\n}: AipAgentChatComposerProps): React.ReactElement {\n const [draft, setDraft] = React.useState(\"\");\n\n const canSend = !isInFlight && draft.trim().length > 0;\n\n const handleSend = React.useCallback(() => {\n const trimmed = draft.trim();\n if (trimmed.length === 0) {\n return;\n }\n // Absorb sync throws and unhandled rejections; chat-level errors are\n // surfaced via `onError` on the upstream useChat hook.\n try {\n const result = onSendMessage(trimmed) as void | Promise<void>;\n if (result instanceof Promise) {\n result.catch(noop);\n }\n } catch {\n // swallow sync throws\n }\n setDraft(\"\");\n }, [draft, onSendMessage]);\n\n const handleKeyDown = React.useCallback(\n (event: React.KeyboardEvent<HTMLTextAreaElement>) => {\n if (event.key === \"Enter\" && !event.shiftKey) {\n event.preventDefault();\n if (!isInFlight) {\n handleSend();\n }\n }\n },\n [handleSend, isInFlight]
|
|
1
|
+
{"version":3,"file":"AipAgentChatComposer.js","names":["Input","classNames","React","ActionButton","styles","AipAgentChatComposer","isInFlight","onSendMessage","onStop","placeholder","className","footerLeft","draft","setDraft","useState","canSend","trim","length","handleSend","useCallback","trimmed","result","Promise","catch","noop","handleKeyDown","event","key","shiftKey","preventDefault","renderTextarea","props","createElement","_extends","onKeyDown","rows","composer","inputWrapper","textarea","onValueChange","value","render","inputActions","onClick","type","disabled","variant","composerFooterLeft"],"sources":["AipAgentChatComposer.tsx"],"sourcesContent":["/*\n * Copyright 2026 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { Input } from \"@base-ui/react/input\";\nimport classNames from \"classnames\";\nimport * as React from \"react\";\n\nimport { ActionButton } from \"../../base-components/action-button/ActionButton.js\";\n\nimport styles from \"../AipAgentChat.module.css\";\n\nexport interface AipAgentChatComposerProps {\n isInFlight: boolean;\n onSendMessage: (text: string) => void;\n onStop?: () => void;\n placeholder?: string;\n className?: string;\n /**\n * Optional content rendered to the left of the send button (e.g. the\n * model picker passed in by the OSDK wrapper).\n */\n footerLeft?: React.ReactNode;\n}\n\n/**\n * Textarea + send/stop button. Enter sends; Shift+Enter inserts a newline.\n * The button toggles to \"Stop\" while a stream is in flight (when an\n * `onStop` callback is provided).\n */\nexport function AipAgentChatComposer({\n isInFlight,\n onSendMessage,\n onStop,\n placeholder,\n className,\n footerLeft,\n}: AipAgentChatComposerProps): React.ReactElement {\n const [draft, setDraft] = React.useState(\"\");\n\n const canSend = !isInFlight && draft.trim().length > 0;\n\n const handleSend = React.useCallback(() => {\n const trimmed = draft.trim();\n if (trimmed.length === 0) {\n return;\n }\n // Absorb sync throws and unhandled rejections; chat-level errors are\n // surfaced via `onError` on the upstream useChat hook.\n try {\n const result = onSendMessage(trimmed) as void | Promise<void>;\n if (result instanceof Promise) {\n result.catch(noop);\n }\n } catch {\n // swallow sync throws\n }\n setDraft(\"\");\n }, [draft, onSendMessage]);\n\n const handleKeyDown = React.useCallback(\n (event: React.KeyboardEvent<HTMLTextAreaElement>) => {\n if (event.key === \"Enter\" && !event.shiftKey) {\n event.preventDefault();\n if (!isInFlight) {\n handleSend();\n }\n }\n },\n [handleSend, isInFlight]\n );\n\n // Attach the keydown handler in the `render` prop so it can be typed against\n // the actual rendered <textarea> element rather than base-ui's HTMLInputElement.\n const renderTextarea = React.useCallback(\n (props: React.ComponentPropsWithRef<\"textarea\">) => (\n <textarea {...props} onKeyDown={handleKeyDown} rows={3} />\n ),\n [handleKeyDown]\n );\n\n return (\n <div className={classNames(styles.composer, className)}>\n <div className={styles.inputWrapper}>\n <Input\n aria-label=\"Message input\"\n className={styles.textarea}\n onValueChange={setDraft}\n placeholder={placeholder}\n value={draft}\n render={renderTextarea}\n />\n <div className={styles.inputActions}>\n {isInFlight && onStop != null ? (\n <ActionButton onClick={onStop} type=\"button\">\n Stop\n </ActionButton>\n ) : (\n <ActionButton\n disabled={!canSend}\n onClick={handleSend}\n type=\"button\"\n variant=\"primary\"\n >\n Send\n </ActionButton>\n )}\n </div>\n </div>\n {footerLeft != null && (\n <div className={styles.composerFooterLeft}>{footerLeft}</div>\n )}\n </div>\n );\n}\n\nfunction noop(): void {}\n"],"mappings":";AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA,KAAK,QAAQ,sBAAsB;AAC5C,OAAOC,UAAU,MAAM,YAAY;AACnC,OAAO,KAAKC,KAAK,MAAM,OAAO;AAE9B,SAASC,YAAY,QAAQ,qDAAqD;AAElF,OAAOC,MAAM,MAAM,4BAA4B;AAe/C;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,oBAAoBA,CAAC;EACnCC,UAAU;EACVC,aAAa;EACbC,MAAM;EACNC,WAAW;EACXC,SAAS;EACTC;AACyB,CAAC,EAAsB;EAChD,MAAM,CAACC,KAAK,EAAEC,QAAQ,CAAC,GAAGX,KAAK,CAACY,QAAQ,CAAC,EAAE,CAAC;EAE5C,MAAMC,OAAO,GAAG,CAACT,UAAU,IAAIM,KAAK,CAACI,IAAI,CAAC,CAAC,CAACC,MAAM,GAAG,CAAC;EAEtD,MAAMC,UAAU,GAAGhB,KAAK,CAACiB,WAAW,CAAC,MAAM;IACzC,MAAMC,OAAO,GAAGR,KAAK,CAACI,IAAI,CAAC,CAAC;IAC5B,IAAII,OAAO,CAACH,MAAM,KAAK,CAAC,EAAE;MACxB;IACF;IACA;IACA;IACA,IAAI;MACF,MAAMI,MAAM,GAAGd,aAAa,CAACa,OAAO,CAAyB;MAC7D,IAAIC,MAAM,YAAYC,OAAO,EAAE;QAC7BD,MAAM,CAACE,KAAK,CAACC,IAAI,CAAC;MACpB;IACF,CAAC,CAAC,MAAM;MACN;IAAA;IAEFX,QAAQ,CAAC,EAAE,CAAC;EACd,CAAC,EAAE,CAACD,KAAK,EAAEL,aAAa,CAAC,CAAC;EAE1B,MAAMkB,aAAa,GAA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EzB,UAAW;IACpB0B,IAAI,EAAC,QAAQ;IACbE,OAAO,EAAC;EAAS,GAClB,MAEa,CAEb,CACF,CAAC,EACLnC,UAAU,IAAI,IAAI,iBACjBT,KAAA,CAAA8B,aAAA;IAAKtB,SAAS,EAAEN,MAAM,CAAC2C;EAAmB,GAAEpC,UAAgB,CAE3D,CAAC;AAEV;AAEA,SAASa,IAAIA,CAAA,EAAS,CAAC","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AipAgentChatLoader.js","names":["classNames","React","styles","AipAgentChatLoader","className","label","createElement","loader","role","loaderDot"],"sources":["AipAgentChatLoader.tsx"],"sourcesContent":["/*\n * Copyright 2026 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport classNames from \"classnames\";\nimport * as React from \"react\";\nimport styles from \"../AipAgentChat.module.css\";\n\nexport interface AipAgentChatLoaderProps {\n className?: string;\n label?: string;\n}\n\n/**\n * Three-dot bouncing animation rendered while the agent is responding.\n */\nexport function AipAgentChatLoader(\n
|
|
1
|
+
{"version":3,"file":"AipAgentChatLoader.js","names":["classNames","React","styles","AipAgentChatLoader","className","label","createElement","loader","role","loaderDot"],"sources":["AipAgentChatLoader.tsx"],"sourcesContent":["/*\n * Copyright 2026 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport classNames from \"classnames\";\nimport * as React from \"react\";\n\nimport styles from \"../AipAgentChat.module.css\";\n\nexport interface AipAgentChatLoaderProps {\n className?: string;\n label?: string;\n}\n\n/**\n * Three-dot bouncing animation rendered while the agent is responding.\n */\nexport function AipAgentChatLoader({\n className,\n label = \"Assistant is responding\",\n}: AipAgentChatLoaderProps): React.ReactElement {\n return (\n <div\n aria-label={label}\n aria-live=\"polite\"\n className={classNames(styles.loader, className)}\n role=\"status\"\n >\n <span aria-hidden=\"true\" className={styles.loaderDot} />\n <span aria-hidden=\"true\" className={styles.loaderDot} />\n <span aria-hidden=\"true\" className={styles.loaderDot} />\n </div>\n );\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAOA,UAAU,MAAM,YAAY;AACnC,OAAO,KAAKC,KAAK,MAAM,OAAO;AAE9B,OAAOC,MAAM,MAAM,4BAA4B;AAO/C;AACA;AACA;AACA,OAAO,SAASC,kBAAkBA,CAAC;EACjCC,SAAS;EACTC,KAAK,GAAG;AACe,CAAC,EAAsB;EAC9C,oBACEJ,KAAA,CAAAK,aAAA;IACE,cAAYD,KAAM;IAClB,aAAU,QAAQ;IAClBD,SAAS,EAAEJ,UAAU,CAACE,MAAM,CAACK,MAAM,EAAEH,SAAS,CAAE;IAChDI,IAAI,EAAC;EAAQ,gBAEbP,KAAA,CAAAK,aAAA;IAAM,eAAY,MAAM;IAACF,SAAS,EAAEF,MAAM,CAACO;EAAU,CAAE,CAAC,eACxDR,KAAA,CAAAK,aAAA;IAAM,eAAY,MAAM;IAACF,SAAS,EAAEF,MAAM,CAACO;EAAU,CAAE,CAAC,eACxDR,KAAA,CAAAK,aAAA;IAAM,eAAY,MAAM;IAACF,SAAS,EAAEF,MAAM,CAACO;EAAU,CAAE,CACpD,CAAC;AAEV","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AipAgentChatMessage.js","names":["getUIMessageText","classNames","React","styles","AipAgentChatMessage","message","text","role","styling","ROLE_STYLING","createElement","label","className","container","bubble","length","streamingPlaceholder","user","userMessage","userBubble","assistant","assistantMessage","assistantBubble","system","systemMessage","systemBubble"],"sources":["AipAgentChatMessage.tsx"],"sourcesContent":["/*\n * Copyright 2026 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { getUIMessageText, type UIMessage } from \"@osdk/aip-core\";\nimport classNames from \"classnames\";\nimport * as React from \"react\";\nimport styles from \"../AipAgentChat.module.css\";\n\nexport interface AipAgentChatMessageProps {\n message: UIMessage;\n}\n\n/**\n * Default rendering for a single chat message bubble. User messages are\n * right-aligned with a primary background; assistant messages are\n * left-aligned with a secondary background; system messages render\n * centered in muted style.\n */\nexport function AipAgentChatMessage(\n
|
|
1
|
+
{"version":3,"file":"AipAgentChatMessage.js","names":["getUIMessageText","classNames","React","styles","AipAgentChatMessage","message","text","role","styling","ROLE_STYLING","createElement","label","className","container","bubble","length","streamingPlaceholder","user","userMessage","userBubble","assistant","assistantMessage","assistantBubble","system","systemMessage","systemBubble"],"sources":["AipAgentChatMessage.tsx"],"sourcesContent":["/*\n * Copyright 2026 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { getUIMessageText, type UIMessage } from \"@osdk/aip-core\";\nimport classNames from \"classnames\";\nimport * as React from \"react\";\n\nimport styles from \"../AipAgentChat.module.css\";\n\nexport interface AipAgentChatMessageProps {\n message: UIMessage;\n}\n\n/**\n * Default rendering for a single chat message bubble. User messages are\n * right-aligned with a primary background; assistant messages are\n * left-aligned with a secondary background; system messages render\n * centered in muted style.\n */\nexport function AipAgentChatMessage({\n message,\n}: AipAgentChatMessageProps): React.ReactElement {\n const text = getUIMessageText(message);\n const role = message.role;\n const styling = ROLE_STYLING[role];\n\n return (\n <div\n aria-label={styling.label}\n className={classNames(styles.message, styling.container)}\n role=\"group\"\n >\n <div className={classNames(styles.bubble, styling.bubble)}>\n {text.length > 0 ? (\n text\n ) : (\n <span className={styles.streamingPlaceholder}>…</span>\n )}\n </div>\n </div>\n );\n}\n\ninterface RoleStyling {\n container: string;\n bubble: string;\n label: string;\n}\n\nconst ROLE_STYLING: Record<UIMessage[\"role\"], RoleStyling> = {\n user: {\n container: styles.userMessage,\n bubble: styles.userBubble,\n label: \"User message\",\n },\n assistant: {\n container: styles.assistantMessage,\n bubble: styles.assistantBubble,\n label: \"Assistant message\",\n },\n system: {\n container: styles.systemMessage,\n bubble: styles.systemBubble,\n label: \"System message\",\n },\n};\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA,gBAAgB,QAAwB,gBAAgB;AACjE,OAAOC,UAAU,MAAM,YAAY;AACnC,OAAO,KAAKC,KAAK,MAAM,OAAO;AAE9B,OAAOC,MAAM,MAAM,4BAA4B;AAM/C;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,mBAAmBA,CAAC;EAClCC;AACwB,CAAC,EAAsB;EAC/C,MAAMC,IAAI,GAAGN,gBAAgB,CAACK,OAAO,CAAC;EACtC,MAAME,IAAI,GAAGF,OAAO,CAACE,IAAI;EACzB,MAAMC,OAAO,GAAGC,YAAY,CAACF,IAAI,CAAC;EAElC,oBACEL,KAAA,CAAAQ,aAAA;IACE,cAAYF,OAAO,CAACG,KAAM;IAC1BC,SAAS,EAAEX,UAAU,CAACE,MAAM,CAACE,OAAO,EAAEG,OAAO,CAACK,SAAS,CAAE;IACzDN,IAAI,EAAC;EAAO,gBAEZL,KAAA,CAAAQ,aAAA;IAAKE,SAAS,EAAEX,UAAU,CAACE,MAAM,CAACW,MAAM,EAAEN,OAAO,CAACM,MAAM;EAAE,GACvDR,IAAI,CAACS,MAAM,GAAG,CAAC,GACdT,IAAI,gBAEJJ,KAAA,CAAAQ,aAAA;IAAME,SAAS,EAAET,MAAM,CAACa;EAAqB,GAAC,QAAO,CAEpD,CACF,CAAC;AAEV;AAQA,MAAMP,YAAoD,GAAG;EAC3DQ,IAAI,EAAE;IACJJ,SAAS,EAAEV,MAAM,CAACe,WAAW;IAC7BJ,MAAM,EAAEX,MAAM,CAACgB,UAAU;IACzBR,KAAK,EAAE;EACT,CAAC;EACDS,SAAS,EAAE;IACTP,SAAS,EAAEV,MAAM,CAACkB,gBAAgB;IAClCP,MAAM,EAAEX,MAAM,CAACmB,eAAe;IAC9BX,KAAK,EAAE;EACT,CAAC;EACDY,MAAM,EAAE;IACNV,SAAS,EAAEV,MAAM,CAACqB,aAAa;IAC/BV,MAAM,EAAEX,MAAM,CAACsB,YAAY;IAC3Bd,KAAK,EAAE;EACT;AACF,CAAC","ignoreList":[]}
|
|
@@ -18,10 +18,10 @@ import { Chat } from "@blueprintjs/icons";
|
|
|
18
18
|
import { getUIMessageText } from "@osdk/aip-core";
|
|
19
19
|
import classNames from "classnames";
|
|
20
20
|
import * as React from "react";
|
|
21
|
-
import styles from "../AipAgentChat.module.css";
|
|
22
21
|
import { useChatAutoScroll } from "../hooks/useChatAutoScroll.js";
|
|
23
22
|
import { AipAgentChatLoader } from "./AipAgentChatLoader.js";
|
|
24
23
|
import { AipAgentChatMessage } from "./AipAgentChatMessage.js";
|
|
24
|
+
import styles from "../AipAgentChat.module.css";
|
|
25
25
|
const DEFAULT_EMPTY_STATE = /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Chat, {
|
|
26
26
|
className: styles.emptyIcon,
|
|
27
27
|
size: 64
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AipAgentChatMessageList.js","names":["Chat","getUIMessageText","classNames","React","
|
|
1
|
+
{"version":3,"file":"AipAgentChatMessageList.js","names":["Chat","getUIMessageText","classNames","React","useChatAutoScroll","AipAgentChatLoader","AipAgentChatMessage","styles","DEFAULT_EMPTY_STATE","createElement","Fragment","className","emptyIcon","size","emptyTitle","AipAgentChatMessageList","messages","isStreaming","enableAutoScroll","renderEmptyState","renderMessage","lastMessage","at","lastMessageTextLength","length","scrollSignal","setContainerRef","isEmpty","showLoader","role","undefined","messageList","empty","ref","map","message","key","id","assistantMessage","bubble","assistantBubble"],"sources":["AipAgentChatMessageList.tsx"],"sourcesContent":["/*\n * Copyright 2026 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { Chat } from \"@blueprintjs/icons\";\nimport { getUIMessageText, type UIMessage } from \"@osdk/aip-core\";\nimport classNames from \"classnames\";\nimport * as React from \"react\";\n\nimport { useChatAutoScroll } from \"../hooks/useChatAutoScroll.js\";\nimport { AipAgentChatLoader } from \"./AipAgentChatLoader.js\";\nimport { AipAgentChatMessage } from \"./AipAgentChatMessage.js\";\n\nimport styles from \"../AipAgentChat.module.css\";\n\nexport interface AipAgentChatMessageListProps {\n messages: ReadonlyArray<UIMessage>;\n isStreaming: boolean;\n enableAutoScroll: boolean;\n className?: string;\n renderEmptyState?: () => React.ReactNode;\n renderMessage?: (message: UIMessage) => React.ReactNode;\n}\n\nconst DEFAULT_EMPTY_STATE: React.ReactNode = (\n <>\n <Chat className={styles.emptyIcon} size={64} />\n <div className={styles.emptyTitle}>Start a conversation</div>\n <div>Type a message below to chat with the assistant.</div>\n </>\n);\n\nexport function AipAgentChatMessageList({\n messages,\n isStreaming,\n enableAutoScroll,\n className,\n renderEmptyState,\n renderMessage,\n}: AipAgentChatMessageListProps): React.ReactElement {\n const lastMessage = messages.at(-1);\n const lastMessageTextLength =\n lastMessage != null ? getUIMessageText(lastMessage).length : 0;\n const scrollSignal = `${messages.length}:${lastMessageTextLength}`;\n\n const setContainerRef = useChatAutoScroll<HTMLDivElement>(\n scrollSignal,\n enableAutoScroll\n );\n\n const isEmpty = messages.length === 0 && !isStreaming;\n const showLoader = isStreaming && lastMessage?.role !== \"assistant\";\n\n return (\n <div\n aria-live={isEmpty ? undefined : \"polite\"}\n className={classNames(\n styles.messageList,\n isEmpty && styles.empty,\n className\n )}\n ref={setContainerRef}\n role={isEmpty ? undefined : \"log\"}\n >\n {isEmpty ? (\n renderEmptyState != null ? (\n renderEmptyState()\n ) : (\n DEFAULT_EMPTY_STATE\n )\n ) : (\n <>\n {messages.map((message) => (\n <React.Fragment key={message.id}>\n {renderMessage != null ? (\n renderMessage(message)\n ) : (\n <AipAgentChatMessage message={message} />\n )}\n </React.Fragment>\n ))}\n {showLoader && (\n <div\n className={classNames(styles.message, styles.assistantMessage)}\n >\n <div\n className={classNames(styles.bubble, styles.assistantBubble)}\n >\n <AipAgentChatLoader />\n </div>\n </div>\n )}\n </>\n )}\n </div>\n );\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;A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,KAAK,WAAW;EAEnE,oBACE1B,KAAA,CAAAM,aAAA;IACE,aAAWkB,OAAO,GAAGG,SAAS,GAAG,QAAS;IAC1CnB,SAAS,EAAET,UAAU,CACnBK,MAAM,CAACwB,WAAW,EAClBJ,OAAO,IAAIpB,MAAM,CAACyB,KAAK,EACvBrB,SACF,CAAE;IACFsB,GAAG,EAAEP,eAAgB;IACrBG,IAAI,EAAEF,OAAO,GAAGG,SAAS,GAAG;EAAM,GAEjCH,OAAO,GACNR,gBAAgB,IAAI,IAAI,GACtBA,gBAAgB,CAAC,CAAC,GAElBX,mBACD,gBAEDL,KAAA,CAAAM,aAAA,CAAAN,KAAA,CAAAO,QAAA,QACGM,QAAQ,CAACkB,GAAG,CAAEC,OAAO,iBACpBhC,KAAA,CAAAM,aAAA,CAACN,KAAK,CAACO,QAAQ;IAAC0B,GAAG,EAAED,OAAO,CAACE;EAAG,GAC7BjB,aAAa,IAAI,IAAI,GACpBA,aAAa,CAACe,OAAO,CAAC,gBAEtBhC,KAAA,CAAAM,aAAA,CAACH,mBAAmB;IAAC6B,OAAO,EAAEA;EAAQ,CAAE,CAE5B,CACjB,CAAC,EACDP,UAAU,iBACTzB,KAAA,CAAAM,aAAA;IACEE,SAAS,EAAET,UAAU,CAACK,MAAM,CAAC4B,OAAO,EAAE5B,MAAM,CAAC+B,gBAAgB;EAAE,gBAE/DnC,KAAA,CAAAM,aAAA;IACEE,SAAS,EAAET,UAAU,CAACK,MAAM,CAACgC,MAAM,EAAEhC,MAAM,CAACiC,eAAe;EAAE,gBAE7DrC,KAAA,CAAAM,aAAA,CAACJ,kBAAkB,MAAE,CAClB,CACF,CAEP,CAED,CAAC;AAEV","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AipAgentChatModelPicker.js","names":["classNames","React","styles","AipAgentChatModelPicker","models","activeModel","onModelChange","disabled","className","handleChange","useCallback","event","target","value","length","createElement","modelPickerLabel","modelPicker","onChange","map","modelName","key"],"sources":["AipAgentChatModelPicker.tsx"],"sourcesContent":["/*\n * Copyright 2026 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport classNames from \"classnames\";\nimport * as React from \"react\";\nimport styles from \"../AipAgentChat.module.css\";\n\nexport interface AipAgentChatModelPickerProps {\n models: ReadonlyArray<string>;\n activeModel: string;\n onModelChange: (model: string) => void;\n disabled?: boolean;\n className?: string;\n}\n\n/**\n * Native-select model picker rendered in the composer footer when the\n * OSDK wrapper is given an `availableModels` list. Operates on Foundry\n * LMS model API names. Renders a read-only label when exactly one model\n * is available so the active model stays visible without offering a\n * dropdown the user can't act on; renders nothing when the list is empty.\n */\nexport function AipAgentChatModelPicker({\n models,\n activeModel,\n onModelChange,\n disabled,\n className,\n}: AipAgentChatModelPickerProps): React.ReactElement | null {\n const handleChange = React.useCallback(\n (event: React.ChangeEvent<HTMLSelectElement>) => {\n onModelChange(event.target.value);\n },\n [onModelChange]
|
|
1
|
+
{"version":3,"file":"AipAgentChatModelPicker.js","names":["classNames","React","styles","AipAgentChatModelPicker","models","activeModel","onModelChange","disabled","className","handleChange","useCallback","event","target","value","length","createElement","modelPickerLabel","modelPicker","onChange","map","modelName","key"],"sources":["AipAgentChatModelPicker.tsx"],"sourcesContent":["/*\n * Copyright 2026 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport classNames from \"classnames\";\nimport * as React from \"react\";\n\nimport styles from \"../AipAgentChat.module.css\";\n\nexport interface AipAgentChatModelPickerProps {\n models: ReadonlyArray<string>;\n activeModel: string;\n onModelChange: (model: string) => void;\n disabled?: boolean;\n className?: string;\n}\n\n/**\n * Native-select model picker rendered in the composer footer when the\n * OSDK wrapper is given an `availableModels` list. Operates on Foundry\n * LMS model API names. Renders a read-only label when exactly one model\n * is available so the active model stays visible without offering a\n * dropdown the user can't act on; renders nothing when the list is empty.\n */\nexport function AipAgentChatModelPicker({\n models,\n activeModel,\n onModelChange,\n disabled,\n className,\n}: AipAgentChatModelPickerProps): React.ReactElement | null {\n const handleChange = React.useCallback(\n (event: React.ChangeEvent<HTMLSelectElement>) => {\n onModelChange(event.target.value);\n },\n [onModelChange]\n );\n\n if (models.length === 0) {\n return null;\n }\n\n if (models.length === 1) {\n return (\n <span className={classNames(styles.modelPickerLabel, className)}>\n Model: {activeModel}\n </span>\n );\n }\n\n return (\n <select\n aria-label=\"Active model\"\n className={classNames(styles.modelPicker, className)}\n disabled={disabled}\n onChange={handleChange}\n value={activeModel}\n >\n {models.map((modelName) => (\n <option key={modelName} value={modelName}>\n {modelName}\n </option>\n ))}\n </select>\n );\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAOA,UAAU,MAAM,YAAY;AACnC,OAAO,KAAKC,KAAK,MAAM,OAAO;AAE9B,OAAOC,MAAM,MAAM,4BAA4B;AAU/C;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,uBAAuBA,CAAC;EACtCC,MAAM;EACNC,WAAW;EACXC,aAAa;EACbC,QAAQ;EACRC;AAC4B,CAAC,EAA6B;EAC1D,MAAMC,YAAY,GAAGR,KAAK,CAACS,WAAW,CACnCC,KAA2C,IAAK;IAC/CL,aAAa,CAACK,KAAK,CAACC,MAAM,CAACC,KAAK,CAAC;EACnC,CAAC,EACD,CAACP,aAAa,CAChB,CAAC;EAED,IAAIF,MAAM,CAACU,MAAM,KAAK,CAAC,EAAE;IACvB,OAAO,IAAI;EACb;EAEA,IAAIV,MAAM,CAACU,MAAM,KAAK,CAAC,EAAE;IACvB,oBACEb,KAAA,CAAAc,aAAA;MAAMP,SAAS,EAAER,UAAU,CAACE,MAAM,CAACc,gBAAgB,EAAER,SAAS;IAAE,GAAC,SACxD,EAACH,WACJ,CAAC;EAEX;EAEA,oBACEJ,KAAA,CAAAc,aAAA;IACE,cAAW,cAAc;IACzBP,SAAS,EAAER,UAAU,CAACE,MAAM,CAACe,WAAW,EAAET,SAAS,CAAE;IACrDD,QAAQ,EAAEA,QAAS;IACnBW,QAAQ,EAAET,YAAa;IACvBI,KAAK,EAAER;EAAY,GAElBD,MAAM,CAACe,GAAG,CAAEC,SAAS,iBACpBnB,KAAA,CAAAc,aAAA;IAAQM,GAAG,EAAED,SAAU;IAACP,KAAK,EAAEO;EAAU,GACtCA,SACK,CACT,CACK,CAAC;AAEb","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useChatAutoScroll.js","names":["React","useChatAutoScroll","signal","enabled","elRef","useRef","cleanupRef","isPinnedRef","setRef","useCallback","el","current","onScroll","distanceFromBottom","scrollHeight","scrollTop","clientHeight","NEAR_BOTTOM_THRESHOLD_PX","addEventListener","passive","removeEventListener","useEffect"],"sources":["useChatAutoScroll.ts"],"sourcesContent":["/*\n * Copyright 2026 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport * as React from \"react\";\n\n/**\n * Keeps a scrollable container pinned to its bottom whenever `signal` changes\n * (typically a string encoding the messages array length and streaming token\n * count).\n *\n * Disengages temporarily once the user scrolls up — pinning resumes when the\n * user scrolls back near the bottom. Returns a callback ref to attach to the\n * scrollable element; the listener follows the element across re-mounts.\n */\nexport function useChatAutoScroll<T extends HTMLElement>(\n signal: string,\n enabled: boolean
|
|
1
|
+
{"version":3,"file":"useChatAutoScroll.js","names":["React","useChatAutoScroll","signal","enabled","elRef","useRef","cleanupRef","isPinnedRef","setRef","useCallback","el","current","onScroll","distanceFromBottom","scrollHeight","scrollTop","clientHeight","NEAR_BOTTOM_THRESHOLD_PX","addEventListener","passive","removeEventListener","useEffect"],"sources":["useChatAutoScroll.ts"],"sourcesContent":["/*\n * Copyright 2026 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport * as React from \"react\";\n\n/**\n * Keeps a scrollable container pinned to its bottom whenever `signal` changes\n * (typically a string encoding the messages array length and streaming token\n * count).\n *\n * Disengages temporarily once the user scrolls up — pinning resumes when the\n * user scrolls back near the bottom. Returns a callback ref to attach to the\n * scrollable element; the listener follows the element across re-mounts.\n */\nexport function useChatAutoScroll<T extends HTMLElement>(\n signal: string,\n enabled: boolean\n): React.RefCallback<T> {\n const elRef = React.useRef<T | null>(null);\n const cleanupRef = React.useRef<(() => void) | null>(null);\n const isPinnedRef = React.useRef<boolean>(true);\n\n const setRef = React.useCallback<React.RefCallback<T>>((el) => {\n cleanupRef.current?.();\n cleanupRef.current = null;\n elRef.current = el;\n if (el == null) {\n return;\n }\n const onScroll = () => {\n const distanceFromBottom =\n el.scrollHeight - el.scrollTop - el.clientHeight;\n isPinnedRef.current = distanceFromBottom <= NEAR_BOTTOM_THRESHOLD_PX;\n };\n el.addEventListener(\"scroll\", onScroll, { passive: true });\n cleanupRef.current = () => el.removeEventListener(\"scroll\", onScroll);\n }, []);\n\n React.useEffect(() => {\n if (!enabled) {\n return;\n }\n const el = elRef.current;\n if (el == null || !isPinnedRef.current) {\n return;\n }\n el.scrollTop = el.scrollHeight;\n }, [signal, enabled]);\n\n return setRef;\n}\n\nconst NEAR_BOTTOM_THRESHOLD_PX = 32;\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO,KAAKA,KAAK,MAAM,OAAO;;AAE9B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,iBAAiBA,CAC/BC,MAAc,EACdC,OAAgB,EACM;EACtB,MAAMC,KAAK,GAAGJ,KAAK,CAACK,MAAM,CAAW,IAAI,CAAC;EAC1C,MAAMC,UAAU,GAAGN,KAAK,CAACK,MAAM,CAAsB,IAAI,CAAC;EAC1D,MAAME,WAAW,GAAGP,KAAK,CAACK,MAAM,CAAU,IAAI,CAAC;EAE/C,MAAMG,MAAM,GAAGR,KAAK,CAACS,WAAW,CAAwBC,EAAE,IAAK;IAC7DJ,UAAU,CAACK,OAAO,GAAG,CAAC;IACtBL,UAAU,CAACK,OAAO,GAAG,IAAI;IACzBP,KAAK,CAACO,OAAO,GAAGD,EAAE;IAClB,IAAIA,EAAE,IAAI,IAAI,EAAE;MACd;IACF;IACA,MAAME,QAAQ,GAAGA,CAAA,KAAM;MACrB,MAAMC,kBAAkB,GACtBH,EAAE,CAACI,YAAY,GAAGJ,EAAE,CAACK,SAAS,GAAGL,EAAE,CAACM,YAAY;MAClDT,WAAW,CAACI,OAAO,GAAGE,kBAAkB,IAAII,wBAAwB;IACtE,CAAC;IACDP,EAAE,CAACQ,gBAAgB,CAAC,QAAQ,EAAEN,QAAQ,EAAE;MAAEO,OAAO,EAAE;IAAK,CAAC,CAAC;IAC1Db,UAAU,CAACK,OAAO,GAAG,MAAMD,EAAE,CAACU,mBAAmB,CAAC,QAAQ,EAAER,QAAQ,CAAC;EACvE,CAAC,EAAE,EAAE,CAAC;EAENZ,KAAK,CAACqB,SAAS,CAAC,MAAM;IACpB,IAAI,CAAClB,OAAO,EAAE;MACZ;IACF;IACA,MAAMO,EAAE,GAAGN,KAAK,CAACO,OAAO;IACxB,IAAID,EAAE,IAAI,IAAI,IAAI,CAACH,WAAW,CAACI,OAAO,EAAE;MACtC;IACF;IACAD,EAAE,CAACK,SAAS,GAAGL,EAAE,CAACI,YAAY;EAChC,CAAC,EAAE,CAACZ,MAAM,EAAEC,OAAO,CAAC,CAAC;EAErB,OAAOK,MAAM;AACf;AAEA,MAAMS,wBAAwB,GAAG,EAAE","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ActionButton.js","names":["Button","classNames","React","styles","ActionButton","memo","forwardRef","variant","appearance","className","rest","ref","createElement","_extends","button","primaryButton","secondaryButton","minimalButton"],"sources":["ActionButton.tsx"],"sourcesContent":["/*\n * Copyright 2025 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { Button } from \"@base-ui/react/button\";\nimport classNames from \"classnames\";\nimport React from \"react\";\nimport styles from \"./ActionButton.module.css\";\n\nexport interface ButtonProps
|
|
1
|
+
{"version":3,"file":"ActionButton.js","names":["Button","classNames","React","styles","ActionButton","memo","forwardRef","variant","appearance","className","rest","ref","createElement","_extends","button","primaryButton","secondaryButton","minimalButton"],"sources":["ActionButton.tsx"],"sourcesContent":["/*\n * Copyright 2025 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { Button } from \"@base-ui/react/button\";\nimport classNames from \"classnames\";\nimport React from \"react\";\n\nimport styles from \"./ActionButton.module.css\";\n\nexport interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {\n variant?: \"primary\" | \"secondary\";\n appearance?: \"default\" | \"minimal\";\n}\n\nexport const ActionButton: React.MemoExoticComponent<\n React.ForwardRefExoticComponent<\n ButtonProps & React.RefAttributes<HTMLButtonElement>\n >\n> = React.memo(\n React.forwardRef<HTMLButtonElement, ButtonProps>(function ActionButton(\n { variant = \"secondary\", appearance = \"default\", className, ...rest },\n ref\n ) {\n return (\n <Button\n ref={ref}\n className={classNames(\n styles.button,\n variant === \"primary\" ? styles.primaryButton : styles.secondaryButton,\n appearance === \"minimal\" && styles.minimalButton,\n className\n )}\n {...rest}\n />\n );\n })\n);\n"],"mappings":";AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA,MAAM,QAAQ,uBAAuB;AAC9C,OAAOC,UAAU,MAAM,YAAY;AACnC,OAAOC,KAAK,MAAM,OAAO;AAEzB,OAAOC,MAAM,MAAM,2BAA2B;AAO9C,OAAO,MAAMC,YAIZ,gBAAGF,KAAK,CAACG,IAAI,cACZH,KAAK,CAACI,UAAU,CAAiC,UAC/C;EAAEC,OAAO,GAAG,WAAW;EAAEC,UAAU,GAAG,SAAS;EAAEC,SAAS;EAAE,GAAGC;AAAK,CAAC,EACrEC,GAAG,EACH;EACA,oBACET,KAAA,CAAAU,aAAA,CAACZ,MAAM,EAAAa,QAAA;IACLF,GAAG,EAAEA,GAAI;IACTF,SAAS,EAAER,UAAU,CACnBE,MAAM,CAACW,MAAM,EACbP,OAAO,KAAK,SAAS,GAAGJ,MAAM,CAACY,aAAa,GAAGZ,MAAM,CAACa,eAAe,EACrER,UAAU,KAAK,SAAS,IAAIL,MAAM,CAACc,aAAa,EAChDR,SACF;EAAE,GACEC,IAAI,CACT,CAAC;AAEN,CAAC,CACH,CAAC","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Callout.js","names":["Error","ErrorIcon","InfoSign","Tick","WarningSign","classNames","React","styles","DEFAULT_ICONS","error","warning","success","info","INTENT_STYLES","Callout","memo","intent","title","children","actions","icon","className","IconComponent","createElement","callout","role","size","body","message"],"sources":["Callout.tsx"],"sourcesContent":["/*\n * Copyright 2026 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {\n Error as ErrorIcon,\n InfoSign,\n Tick,\n WarningSign,\n} from \"@blueprintjs/icons\";\nimport classNames from \"classnames\";\nimport * as React from \"react\";\nimport styles from \"./Callout.module.css\";\n\nexport type CalloutIntent = \"error\" | \"warning\" | \"success\" | \"info\";\n\nexport interface CalloutProps {\n /**\n * Visual intent that determines background, border, and text color.\n */\n intent: CalloutIntent;\n\n /**\n * Optional bold heading displayed above the message content.\n */\n title?: string;\n\n /**\n * Message content rendered inside the callout body.\n */\n children?: React.ReactNode;\n\n /**\n * Optional slot for action buttons (e.g. dismiss, retry) rendered\n * on the trailing edge.\n */\n actions?: React.ReactNode;\n\n /**\n * Override the default intent icon.\n */\n icon?: React.ComponentType<{ size?: number }>;\n\n className?: string;\n}\n\nconst DEFAULT_ICONS: Record<\n CalloutIntent,\n React.ComponentType<{ size?: number }>\n> = {\n error: ErrorIcon,\n warning: WarningSign,\n success: Tick,\n info: InfoSign,\n};\n\nconst INTENT_STYLES: Record<CalloutIntent, string> = {\n error: styles.error,\n warning: styles.warning,\n success: styles.success,\n info: styles.info,\n};\n\n/**\n * A styled alert banner supporting four intent levels with an icon,\n * title, message body, and action slot.\n */\nexport const Callout: React.NamedExoticComponent<CalloutProps> = React.memo(\n function Callout({
|
|
1
|
+
{"version":3,"file":"Callout.js","names":["Error","ErrorIcon","InfoSign","Tick","WarningSign","classNames","React","styles","DEFAULT_ICONS","error","warning","success","info","INTENT_STYLES","Callout","memo","intent","title","children","actions","icon","className","IconComponent","createElement","callout","role","size","body","message"],"sources":["Callout.tsx"],"sourcesContent":["/*\n * Copyright 2026 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {\n Error as ErrorIcon,\n InfoSign,\n Tick,\n WarningSign,\n} from \"@blueprintjs/icons\";\nimport classNames from \"classnames\";\nimport * as React from \"react\";\n\nimport styles from \"./Callout.module.css\";\n\nexport type CalloutIntent = \"error\" | \"warning\" | \"success\" | \"info\";\n\nexport interface CalloutProps {\n /**\n * Visual intent that determines background, border, and text color.\n */\n intent: CalloutIntent;\n\n /**\n * Optional bold heading displayed above the message content.\n */\n title?: string;\n\n /**\n * Message content rendered inside the callout body.\n */\n children?: React.ReactNode;\n\n /**\n * Optional slot for action buttons (e.g. dismiss, retry) rendered\n * on the trailing edge.\n */\n actions?: React.ReactNode;\n\n /**\n * Override the default intent icon.\n */\n icon?: React.ComponentType<{ size?: number }>;\n\n className?: string;\n}\n\nconst DEFAULT_ICONS: Record<\n CalloutIntent,\n React.ComponentType<{ size?: number }>\n> = {\n error: ErrorIcon,\n warning: WarningSign,\n success: Tick,\n info: InfoSign,\n};\n\nconst INTENT_STYLES: Record<CalloutIntent, string> = {\n error: styles.error,\n warning: styles.warning,\n success: styles.success,\n info: styles.info,\n};\n\n/**\n * A styled alert banner supporting four intent levels with an icon,\n * title, message body, and action slot.\n */\nexport const Callout: React.NamedExoticComponent<CalloutProps> = React.memo(\n function Callout({ intent, title, children, actions, icon, className }) {\n const IconComponent = icon ?? DEFAULT_ICONS[intent];\n\n return (\n <div\n aria-live=\"polite\"\n className={classNames(styles.callout, INTENT_STYLES[intent], className)}\n role=\"alert\"\n >\n {IconComponent != null && (\n <span className={styles.icon}>\n <IconComponent size={16} />\n </span>\n )}\n <div className={styles.body}>\n {title != null && <div className={styles.title}>{title}</div>}\n {children != null && <div className={styles.message}>{children}</div>}\n </div>\n {actions != null && <div className={styles.actions}>{actions}</div>}\n </div>\n );\n }\n);\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SACEA,KAAK,IAAIC,SAAS,EAClBC,QAAQ,EACRC,IAAI,EACJC,WAAW,QACN,oBAAoB;AAC3B,OAAOC,UAAU,MAAM,YAAY;AACnC,OAAO,KAAKC,KAAK,MAAM,OAAO;AAE9B,OAAOC,MAAM,MAAM,sBAAsB;AAkCzC,MAAMC,aAGL,GAAG;EACFC,KAAK,EAA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AA;IAAKF,SAAS,EAAEd,MAAM,CAACY;EAAQ,GAAEA,OAAa,CAC/D,CAAC;AAEV,CACF,CAAC","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Checkbox.js","names":["Checkbox","BaseUICheckbox","Cross","Minus","Tick","classnames","React","styles","indeterminate","className","isExcluding","indicatorProps","rest","createElement","Root","_extends","osdkCheckboxRoot","undefined","Indicator","osdkCheckboxIndicator","size"],"sources":["Checkbox.tsx"],"sourcesContent":["/*\n * Copyright 2025 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {\n Checkbox as BaseUICheckbox,\n type CheckboxIndicatorProps,\n type CheckboxRootProps,\n} from \"@base-ui/react/checkbox\";\nimport { Cross, Minus, Tick } from \"@blueprintjs/icons\";\nimport classnames from \"classnames\";\nimport React from \"react\";\nimport styles from \"./Checkbox.module.css\";\n\ninterface CheckboxProps extends Omit<CheckboxRootProps, \"className\"> {\n className?: string;\n isExcluding?: boolean;\n indicatorProps?: Omit<CheckboxIndicatorProps, \"className\"> & {\n className?: string;\n };\n}\n\nexport function Checkbox(\n
|
|
1
|
+
{"version":3,"file":"Checkbox.js","names":["Checkbox","BaseUICheckbox","Cross","Minus","Tick","classnames","React","styles","indeterminate","className","isExcluding","indicatorProps","rest","createElement","Root","_extends","osdkCheckboxRoot","undefined","Indicator","osdkCheckboxIndicator","size"],"sources":["Checkbox.tsx"],"sourcesContent":["/*\n * Copyright 2025 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {\n Checkbox as BaseUICheckbox,\n type CheckboxIndicatorProps,\n type CheckboxRootProps,\n} from \"@base-ui/react/checkbox\";\nimport { Cross, Minus, Tick } from \"@blueprintjs/icons\";\nimport classnames from \"classnames\";\nimport React from \"react\";\n\nimport styles from \"./Checkbox.module.css\";\n\ninterface CheckboxProps extends Omit<CheckboxRootProps, \"className\"> {\n className?: string;\n isExcluding?: boolean;\n indicatorProps?: Omit<CheckboxIndicatorProps, \"className\"> & {\n className?: string;\n };\n}\n\nexport function Checkbox({\n indeterminate,\n className,\n isExcluding,\n indicatorProps,\n ...rest\n}: CheckboxProps): React.ReactElement {\n return (\n <BaseUICheckbox.Root\n className={classnames(styles.osdkCheckboxRoot, className)}\n indeterminate={indeterminate}\n data-excluding={isExcluding || undefined}\n {...rest}\n >\n <BaseUICheckbox.Indicator\n {...indicatorProps}\n className={classnames(\n styles.osdkCheckboxIndicator,\n indicatorProps?.className\n )}\n >\n {/* Color is used as the \"fill\" attribute on the svg */}\n {indeterminate ? (\n <Minus size={16} />\n ) : isExcluding ? (\n <Cross size={16} />\n ) : (\n <Tick size={16} />\n )}\n </BaseUICheckbox.Indicator>\n </BaseUICheckbox.Root>\n );\n}\n"],"mappings":";AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SACEA,QAAQ,IAAIC,cAAc,QAGrB,yBAAyB;AAChC,SAASC,KAAK,EAAEC,KAAK,EAAEC,IAAI,QAAQ,oBAAoB;AACvD,OAAOC,UAAU,MAAM,YAAY;AACnC,OAAOC,KAAK,MAAM,OAAO;AAEzB,OAAOC,MAAM,MAAM,uBAAuB;AAU1C,OAAO,SAASP,QAAQA,CAAC;EACvBQ,aAAa;EACbC,SAAS;EACTC,WAAW;EACXC,cAAc;EACd,GAAGC;AACU,CAAC,EAAsB;EACpC,oBACEN,KAAA,CAAAO,aAAA,CAACZ,cAAc,CAACa,IAAI,EAAAC,QAAA;IAClBN,SAAS,EAAEJ,UAAU,CAACE,MAAM,CAACS,gBAAgB,EAAEP,SAAS,CAAE;IAC1DD,aAAa,EAAEA,aAAc;IAC7B,kBAAgBE,WAAW,IAAIO;EAAU,GACrCL,IAAI,gBAERN,KAAA,CAAAO,aAAA,CAACZ,cAAc,CAACiB,SAAS,EAAAH,QAAA,KACnBJ,cAAc;IAClBF,SAAS,EAAEJ,UAAU,CACnBE,MAAM,CAACY,qBAAqB,EAC5BR,cAAc,EAAEF,SAClB;EAAE,IAGDD,aAAa,gBACZF,KAAA,CAAAO,aAAA,CAACV,KAAK;IAACiB,IAAI,EAAE;EAAG,CAAE,CAAC,GACjBV,WAAW,gBACbJ,KAAA,CAAAO,aAAA,CAACX,KAAK;IAACkB,IAAI,EAAE;EAAG,CAAE,CAAC,gBAEnBd,KAAA,CAAAO,aAAA,CAACT,IAAI;IAACgB,IAAI,EAAE;EAAG,CAAE,CAEK,CACP,CAAC;AAE1B","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Combobox.js","names":["Combobox","BaseUICombobox","CaretDown","Cross","Search","Tick","classnames","React","styles","ComboboxTrigger","className","children","rest","createElement","Trigger","_extends","osdkComboboxTrigger","Fragment","osdkComboboxValueContainer","Value","ComboboxIcon","Icon","osdkComboboxIcon","ComboboxSearchInput","osdkComboboxInputWrapper","osdkComboboxSearchIcon","Input","osdkComboboxInput","ComboboxInput","ComboboxPositioner","Positioner","osdkComboboxPositioner","sideOffset","ComboboxPopup","Popup","osdkComboboxPopup","ComboboxItem","Item","osdkComboboxItem","ComboboxChips","Chips","render","props","ComboboxChip","Chip","osdkComboboxChip","ComboboxChipRemove","ChipRemove","osdkComboboxChipRemove","ComboboxClear","Clear","osdkComboboxClear","ComboboxEmpty","Empty","osdkComboboxEmpty","ComboboxList","List","osdkComboboxList","ComboboxItemIndicator","ItemIndicator","osdkComboboxItemIndicator","keepMounted","size","Root","SearchInput","Portal","Collection"],"sources":["Combobox.tsx"],"sourcesContent":["/*\n * Copyright 2025 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {\n Combobox as BaseUICombobox,\n type ComboboxChipProps,\n type ComboboxChipRemoveProps,\n type ComboboxClearProps,\n type ComboboxIconProps,\n type ComboboxInputProps,\n type ComboboxItemIndicatorProps,\n type ComboboxItemProps,\n type ComboboxListProps,\n type ComboboxPopupProps,\n type ComboboxPositionerProps,\n type ComboboxTriggerProps,\n} from \"@base-ui/react/combobox\";\nimport { CaretDown, Cross, Search, Tick } from \"@blueprintjs/icons\";\nimport classnames from \"classnames\";\nimport React from \"react\";\nimport styles from \"./Combobox.module.css\";\n\ninterface ComboboxTriggerComponentProps\n extends Omit<ComboboxTriggerProps, \"className\">\n{\n className?: string;\n}\n\nfunction ComboboxTrigger({\n className,\n children,\n ...rest\n}: ComboboxTriggerComponentProps): React.ReactElement {\n return (\n <BaseUICombobox.Trigger\n className={classnames(styles.osdkComboboxTrigger, className)}\n {...rest}\n >\n {children ?? (\n <>\n <div className={styles.osdkComboboxValueContainer}>\n <BaseUICombobox.Value />\n </div>\n <ComboboxIcon />\n </>\n )}\n </BaseUICombobox.Trigger>\n );\n}\n\ninterface ComboboxIconComponentProps\n extends Omit<ComboboxIconProps, \"className\">\n{\n className?: string;\n}\n\nfunction ComboboxIcon({\n className,\n children,\n ...rest\n}: ComboboxIconComponentProps): React.ReactElement {\n return (\n <BaseUICombobox.Icon\n className={classnames(styles.osdkComboboxIcon, className)}\n {...rest}\n >\n {children ?? <CaretDown />}\n </BaseUICombobox.Icon>\n );\n}\n\ninterface ComboboxInputComponentProps\n extends Omit<ComboboxInputProps, \"className\">\n{\n className?: string;\n}\n\nfunction ComboboxSearchInput({\n className,\n ...rest\n}: ComboboxInputComponentProps): React.ReactElement {\n return (\n <div className={classnames(styles.osdkComboboxInputWrapper, className)}>\n <Search className={styles.osdkComboboxSearchIcon} />\n <BaseUICombobox.Input className={styles.osdkComboboxInput} {...rest} />\n </div>\n );\n}\n\nfunction ComboboxInput({\n className,\n ...rest\n}: ComboboxInputComponentProps): React.ReactElement {\n return (\n <BaseUICombobox.Input\n className={classnames(styles.osdkComboboxInput, className)}\n {...rest}\n />\n );\n}\n\ninterface ComboboxPositionerComponentProps\n extends Omit<ComboboxPositionerProps, \"className\">\n{\n className?: string;\n}\n\nfunction ComboboxPositioner({\n className,\n children,\n ...rest\n}: ComboboxPositionerComponentProps): React.ReactElement {\n return (\n <BaseUICombobox.Positioner\n className={classnames(styles.osdkComboboxPositioner, className)}\n sideOffset={4}\n {...rest}\n >\n {children}\n </BaseUICombobox.Positioner>\n );\n}\n\ninterface ComboboxPopupComponentProps\n extends Omit<ComboboxPopupProps, \"className\">\n{\n className?: string;\n}\n\nfunction ComboboxPopup({\n className,\n children,\n ...rest\n}: ComboboxPopupComponentProps): React.ReactElement {\n return (\n <BaseUICombobox.Popup\n className={classnames(styles.osdkComboboxPopup, className)}\n {...rest}\n >\n {children}\n </BaseUICombobox.Popup>\n );\n}\n\ninterface ComboboxItemComponentProps\n extends Omit<ComboboxItemProps, \"className\">\n{\n className?: string;\n}\n\nfunction ComboboxItem({\n className,\n children,\n ...rest\n}: ComboboxItemComponentProps): React.ReactElement {\n return (\n <BaseUICombobox.Item\n className={classnames(styles.osdkComboboxItem, className)}\n {...rest}\n >\n {children}\n </BaseUICombobox.Item>\n );\n}\n\nfunction ComboboxChips({\n children,\n className,\n}: {\n children: React.ReactNode;\n className?: string;\n}): React.ReactElement {\n return (\n <BaseUICombobox.Chips\n render={(props) => (\n <div\n {...props}\n className={classnames(styles.osdkComboboxInputWrapper, className)}\n >\n {props.children}\n </div>\n )}\n >\n {children}\n </BaseUICombobox.Chips>\n );\n}\n\ninterface ComboboxChipComponentProps\n extends Omit<ComboboxChipProps, \"className\">\n{\n className?: string;\n}\n\nfunction ComboboxChip({\n className,\n children,\n ...rest\n}: ComboboxChipComponentProps): React.ReactElement {\n return (\n <BaseUICombobox.Chip\n className={classnames(styles.osdkComboboxChip, className)}\n {...rest}\n >\n {children}\n </BaseUICombobox.Chip>\n );\n}\n\ninterface ComboboxChipRemoveComponentProps\n extends Omit<ComboboxChipRemoveProps, \"className\">\n{\n className?: string;\n}\n\nfunction ComboboxChipRemove({\n className,\n ...rest\n}: ComboboxChipRemoveComponentProps): React.ReactElement {\n return (\n <BaseUICombobox.ChipRemove\n className={classnames(styles.osdkComboboxChipRemove, className)}\n aria-label=\"Remove\"\n {...rest}\n >\n <Cross />\n </BaseUICombobox.ChipRemove>\n );\n}\n\ninterface ComboboxClearComponentProps\n extends Omit<ComboboxClearProps, \"className\">\n{\n className?: string;\n}\n\nfunction ComboboxClear({\n className,\n ...rest\n}: ComboboxClearComponentProps): React.ReactElement {\n return (\n <BaseUICombobox.Clear\n className={classnames(styles.osdkComboboxClear, className)}\n aria-label=\"Clear all\"\n {...rest}\n >\n <Cross />\n </BaseUICombobox.Clear>\n );\n}\n\nfunction ComboboxEmpty({\n children,\n className,\n}: {\n children: React.ReactNode;\n className?: string;\n}): React.ReactElement {\n return (\n <BaseUICombobox.Empty\n className={classnames(styles.osdkComboboxEmpty, className)}\n >\n {children}\n </BaseUICombobox.Empty>\n );\n}\n\ninterface ComboboxListComponentProps\n extends Omit<ComboboxListProps, \"className\">\n{\n className?: string;\n}\n\nfunction ComboboxList({\n className,\n children,\n ...rest\n}: ComboboxListComponentProps): React.ReactElement {\n return (\n <BaseUICombobox.List\n className={classnames(styles.osdkComboboxList, className)}\n {...rest}\n >\n {children}\n </BaseUICombobox.List>\n );\n}\n\ninterface ComboboxItemIndicatorComponentProps\n extends Omit<ComboboxItemIndicatorProps, \"className\">\n{\n className?: string;\n}\n\nfunction ComboboxItemIndicator({\n className,\n children,\n ...rest\n}: ComboboxItemIndicatorComponentProps): React.ReactElement {\n return (\n <BaseUICombobox.ItemIndicator\n className={classnames(styles.osdkComboboxItemIndicator, className)}\n keepMounted={true}\n {...rest}\n >\n {children ?? <Tick size={16} />}\n </BaseUICombobox.ItemIndicator>\n );\n}\n\nexport const Combobox: {\n Root: typeof BaseUICombobox.Root;\n Trigger: typeof ComboboxTrigger;\n Icon: typeof ComboboxIcon;\n SearchInput: typeof ComboboxSearchInput;\n Input: typeof ComboboxInput;\n Portal: typeof BaseUICombobox.Portal;\n Positioner: typeof ComboboxPositioner;\n Popup: typeof ComboboxPopup;\n List: typeof ComboboxList;\n Item: typeof ComboboxItem;\n ItemIndicator: typeof ComboboxItemIndicator;\n Collection: typeof BaseUICombobox.Collection;\n Chips: typeof ComboboxChips;\n Chip: typeof ComboboxChip;\n ChipRemove: typeof ComboboxChipRemove;\n Clear: typeof ComboboxClear;\n Empty: typeof ComboboxEmpty;\n Value: typeof BaseUICombobox.Value;\n} = {\n Root: BaseUICombobox.Root,\n Trigger: ComboboxTrigger,\n Icon: ComboboxIcon,\n SearchInput: ComboboxSearchInput,\n Input: ComboboxInput,\n Portal: BaseUICombobox.Portal,\n Positioner: ComboboxPositioner,\n Popup: ComboboxPopup,\n List: ComboboxList,\n Item: ComboboxItem,\n ItemIndicator: ComboboxItemIndicator,\n Collection: BaseUICombobox.Collection,\n Chips: ComboboxChips,\n Chip: ComboboxChip,\n ChipRemove: ComboboxChipRemove,\n Clear: ComboboxClear,\n Empty: ComboboxEmpty,\n Value: BaseUICombobox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AAEL,eAAe;EACxBY,IAAI,EAAED,YAAY;EAClB4C,WAAW,EAAEzC,mBAAmB;EAChCG,KAAK,EAAEE,aAAa;EACpBqC,MAAM,EAAEhE,cAAc,CAACgE,MAAM;EAC7BnC,UAAU,EAAED,kBAAkB;EAC9BK,KAAK,EAAED,aAAa;EACpBuB,IAAI,EAAED,YAAY;EAClBlB,IAAI,EAAED,YAAY;EAClBuB,aAAa,EAAED,qBAAqB;EACpCQ,UAAU,EAAEjE,cAAc,CAACiE,UAAU;EACrC1B,KAAK,EAAED,aAAa;EACpBK,IAAI,EAAED,YAAY;EAClBI,UAAU,EAAED,kBAAkB;EAC9BI,KAAK,EAAED,aAAa;EACpBI,KAAK,EAAED,aAAa;EACpBjC,KAAK,EAAElB,cAAc,CAACkB;AACxB,CAAC","ignoreList":[]}
|
|
1
|
+
{"version":3,"file":"Combobox.js","names":["Combobox","BaseUICombobox","CaretDown","Cross","Search","Tick","classnames","React","styles","ComboboxTrigger","className","children","rest","createElement","Trigger","_extends","osdkComboboxTrigger","Fragment","osdkComboboxValueContainer","Value","ComboboxIcon","Icon","osdkComboboxIcon","ComboboxSearchInput","osdkComboboxInputWrapper","osdkComboboxSearchIcon","Input","osdkComboboxInput","ComboboxInput","ComboboxPositioner","Positioner","osdkComboboxPositioner","sideOffset","ComboboxPopup","Popup","osdkComboboxPopup","ComboboxItem","Item","osdkComboboxItem","ComboboxChips","Chips","render","props","ComboboxChip","Chip","osdkComboboxChip","ComboboxChipRemove","ChipRemove","osdkComboboxChipRemove","ComboboxClear","Clear","osdkComboboxClear","ComboboxEmpty","Empty","osdkComboboxEmpty","ComboboxList","List","osdkComboboxList","ComboboxItemIndicator","ItemIndicator","osdkComboboxItemIndicator","keepMounted","size","Root","SearchInput","Portal","Collection"],"sources":["Combobox.tsx"],"sourcesContent":["/*\n * Copyright 2025 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {\n Combobox as BaseUICombobox,\n type ComboboxChipProps,\n type ComboboxChipRemoveProps,\n type ComboboxClearProps,\n type ComboboxIconProps,\n type ComboboxInputProps,\n type ComboboxItemIndicatorProps,\n type ComboboxItemProps,\n type ComboboxListProps,\n type ComboboxPopupProps,\n type ComboboxPositionerProps,\n type ComboboxTriggerProps,\n} from \"@base-ui/react/combobox\";\nimport { CaretDown, Cross, Search, Tick } from \"@blueprintjs/icons\";\nimport classnames from \"classnames\";\nimport React from \"react\";\n\nimport styles from \"./Combobox.module.css\";\n\ninterface ComboboxTriggerComponentProps extends Omit<\n ComboboxTriggerProps,\n \"className\"\n> {\n className?: string;\n}\n\nfunction ComboboxTrigger({\n className,\n children,\n ...rest\n}: ComboboxTriggerComponentProps): React.ReactElement {\n return (\n <BaseUICombobox.Trigger\n className={classnames(styles.osdkComboboxTrigger, className)}\n {...rest}\n >\n {children ?? (\n <>\n <div className={styles.osdkComboboxValueContainer}>\n <BaseUICombobox.Value />\n </div>\n <ComboboxIcon />\n </>\n )}\n </BaseUICombobox.Trigger>\n );\n}\n\ninterface ComboboxIconComponentProps extends Omit<\n ComboboxIconProps,\n \"className\"\n> {\n className?: string;\n}\n\nfunction ComboboxIcon({\n className,\n children,\n ...rest\n}: ComboboxIconComponentProps): React.ReactElement {\n return (\n <BaseUICombobox.Icon\n className={classnames(styles.osdkComboboxIcon, className)}\n {...rest}\n >\n {children ?? <CaretDown />}\n </BaseUICombobox.Icon>\n );\n}\n\ninterface ComboboxInputComponentProps extends Omit<\n ComboboxInputProps,\n \"className\"\n> {\n className?: string;\n}\n\nfunction ComboboxSearchInput({\n className,\n ...rest\n}: ComboboxInputComponentProps): React.ReactElement {\n return (\n <div className={classnames(styles.osdkComboboxInputWrapper, className)}>\n <Search className={styles.osdkComboboxSearchIcon} />\n <BaseUICombobox.Input className={styles.osdkComboboxInput} {...rest} />\n </div>\n );\n}\n\nfunction ComboboxInput({\n className,\n ...rest\n}: ComboboxInputComponentProps): React.ReactElement {\n return (\n <BaseUICombobox.Input\n className={classnames(styles.osdkComboboxInput, className)}\n {...rest}\n />\n );\n}\n\ninterface ComboboxPositionerComponentProps extends Omit<\n ComboboxPositionerProps,\n \"className\"\n> {\n className?: string;\n}\n\nfunction ComboboxPositioner({\n className,\n children,\n ...rest\n}: ComboboxPositionerComponentProps): React.ReactElement {\n return (\n <BaseUICombobox.Positioner\n className={classnames(styles.osdkComboboxPositioner, className)}\n sideOffset={4}\n {...rest}\n >\n {children}\n </BaseUICombobox.Positioner>\n );\n}\n\ninterface ComboboxPopupComponentProps extends Omit<\n ComboboxPopupProps,\n \"className\"\n> {\n className?: string;\n}\n\nfunction ComboboxPopup({\n className,\n children,\n ...rest\n}: ComboboxPopupComponentProps): React.ReactElement {\n return (\n <BaseUICombobox.Popup\n className={classnames(styles.osdkComboboxPopup, className)}\n {...rest}\n >\n {children}\n </BaseUICombobox.Popup>\n );\n}\n\ninterface ComboboxItemComponentProps extends Omit<\n ComboboxItemProps,\n \"className\"\n> {\n className?: string;\n}\n\nfunction ComboboxItem({\n className,\n children,\n ...rest\n}: ComboboxItemComponentProps): React.ReactElement {\n return (\n <BaseUICombobox.Item\n className={classnames(styles.osdkComboboxItem, className)}\n {...rest}\n >\n {children}\n </BaseUICombobox.Item>\n );\n}\n\nfunction ComboboxChips({\n children,\n className,\n}: {\n children: React.ReactNode;\n className?: string;\n}): React.ReactElement {\n return (\n <BaseUICombobox.Chips\n render={(props) => (\n <div\n {...props}\n className={classnames(styles.osdkComboboxInputWrapper, className)}\n >\n {props.children}\n </div>\n )}\n >\n {children}\n </BaseUICombobox.Chips>\n );\n}\n\ninterface ComboboxChipComponentProps extends Omit<\n ComboboxChipProps,\n \"className\"\n> {\n className?: string;\n}\n\nfunction ComboboxChip({\n className,\n children,\n ...rest\n}: ComboboxChipComponentProps): React.ReactElement {\n return (\n <BaseUICombobox.Chip\n className={classnames(styles.osdkComboboxChip, className)}\n {...rest}\n >\n {children}\n </BaseUICombobox.Chip>\n );\n}\n\ninterface ComboboxChipRemoveComponentProps extends Omit<\n ComboboxChipRemoveProps,\n \"className\"\n> {\n className?: string;\n}\n\nfunction ComboboxChipRemove({\n className,\n ...rest\n}: ComboboxChipRemoveComponentProps): React.ReactElement {\n return (\n <BaseUICombobox.ChipRemove\n className={classnames(styles.osdkComboboxChipRemove, className)}\n aria-label=\"Remove\"\n {...rest}\n >\n <Cross />\n </BaseUICombobox.ChipRemove>\n );\n}\n\ninterface ComboboxClearComponentProps extends Omit<\n ComboboxClearProps,\n \"className\"\n> {\n className?: string;\n}\n\nfunction ComboboxClear({\n className,\n ...rest\n}: ComboboxClearComponentProps): React.ReactElement {\n return (\n <BaseUICombobox.Clear\n className={classnames(styles.osdkComboboxClear, className)}\n aria-label=\"Clear all\"\n {...rest}\n >\n <Cross />\n </BaseUICombobox.Clear>\n );\n}\n\nfunction ComboboxEmpty({\n children,\n className,\n}: {\n children: React.ReactNode;\n className?: string;\n}): React.ReactElement {\n return (\n <BaseUICombobox.Empty\n className={classnames(styles.osdkComboboxEmpty, className)}\n >\n {children}\n </BaseUICombobox.Empty>\n );\n}\n\ninterface ComboboxListComponentProps extends Omit<\n ComboboxListProps,\n \"className\"\n> {\n className?: string;\n}\n\nfunction ComboboxList({\n className,\n children,\n ...rest\n}: ComboboxListComponentProps): React.ReactElement {\n return (\n <BaseUICombobox.List\n className={classnames(styles.osdkComboboxList, className)}\n {...rest}\n >\n {children}\n </BaseUICombobox.List>\n );\n}\n\ninterface ComboboxItemIndicatorComponentProps extends Omit<\n ComboboxItemIndicatorProps,\n \"className\"\n> {\n className?: string;\n}\n\nfunction ComboboxItemIndicator({\n className,\n children,\n ...rest\n}: ComboboxItemIndicatorComponentProps): React.ReactElement {\n return (\n <BaseUICombobox.ItemIndicator\n className={classnames(styles.osdkComboboxItemIndicator, className)}\n keepMounted={true}\n {...rest}\n >\n {children ?? <Tick size={16} />}\n </BaseUICombobox.ItemIndicator>\n );\n}\n\nexport const Combobox: {\n Root: typeof BaseUICombobox.Root;\n Trigger: typeof ComboboxTrigger;\n Icon: typeof ComboboxIcon;\n SearchInput: typeof ComboboxSearchInput;\n Input: typeof ComboboxInput;\n Portal: typeof BaseUICombobox.Portal;\n Positioner: typeof ComboboxPositioner;\n Popup: typeof ComboboxPopup;\n List: typeof ComboboxList;\n Item: typeof ComboboxItem;\n ItemIndicator: typeof ComboboxItemIndicator;\n Collection: typeof BaseUICombobox.Collection;\n Chips: typeof ComboboxChips;\n Chip: typeof ComboboxChip;\n ChipRemove: typeof ComboboxChipRemove;\n Clear: typeof ComboboxClear;\n Empty: typeof ComboboxEmpty;\n Value: typeof BaseUICombobox.Value;\n} = {\n Root: BaseUICombobox.Root,\n Trigger: ComboboxTrigger,\n Icon: ComboboxIcon,\n SearchInput: ComboboxSearchInput,\n Input: ComboboxInput,\n Portal: BaseUICombobox.Portal,\n Positioner: ComboboxPositioner,\n Popup: ComboboxPopup,\n List: ComboboxList,\n Item: ComboboxItem,\n ItemIndicator: ComboboxItemIndicator,\n Collection: BaseUICombobox.Collection,\n Chips: ComboboxChips,\n Chip: ComboboxChip,\n ChipRemove: ComboboxChipRemove,\n Clear: ComboboxClear,\n Empty: ComboboxEmpty,\n Value: BaseUICombobox.Value,\n};\n"],"mappings":";AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SACEA,QAAQ,IAAIC,cAAc,QAYrB,yBAAyB;AAChC,SAASC,SAAS,EAAEC,KAAK,EAAEC,MAAM,EAAEC,IAAI,QAAQ,oBAAoB;AACnE,OAAOC,UAAU,MAAM,YAAY;AACnC,OAAOC,KAAK,MAAM,OAAO;AA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EjE,cAAc,CAACiE,UAAU;EACrC1B,KAAK,EAAED,aAAa;EACpBK,IAAI,EAAED,YAAY;EAClBI,UAAU,EAAED,kBAAkB;EAC9BI,KAAK,EAAED,aAAa;EACpBI,KAAK,EAAED,aAAa;EACpBjC,KAAK,EAAElB,cAAc,CAACkB;AACxB,CAAC","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Dialog.js","names":["Dialog","BaseUIDialog","Cross","classnames","React","usePortalContainer","styles","isOpen","onOpenChange","title","children","footer","className","disablePointerDismissal","portalContainer","createElement","Root","open","Portal","container","Backdrop","backdrop","Popup","popup","header","Title","Close","closeButton","closeIcon","body"],"sources":["Dialog.tsx"],"sourcesContent":["/*\n * Copyright 2025 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { Dialog as BaseUIDialog } from \"@base-ui/react/dialog\";\nimport { Cross } from \"@blueprintjs/icons\";\nimport classnames from \"classnames\";\nimport React from \"react\";\nimport { usePortalContainer } from \"../../shared/PortalContainerContext.js\";\nimport styles from \"./Dialog.module.css\";\n\nexport interface DialogProps {\n isOpen: boolean;\n onOpenChange: (open: boolean) => void;\n title: React.ReactNode;\n children: React.ReactNode;\n footer?: React.ReactNode;\n className?: string;\n disablePointerDismissal?: boolean;\n}\n\nexport function Dialog({\n isOpen,\n onOpenChange,\n title,\n children,\n footer,\n className,\n disablePointerDismissal,\n}: DialogProps): React.ReactElement {\n const portalContainer = usePortalContainer();\n\n return (\n <BaseUIDialog.Root\n open={isOpen}\n onOpenChange={onOpenChange}\n disablePointerDismissal={disablePointerDismissal}\n >\n <BaseUIDialog.Portal container={portalContainer}>\n <BaseUIDialog.Backdrop className={styles.backdrop} />\n <BaseUIDialog.Popup
|
|
1
|
+
{"version":3,"file":"Dialog.js","names":["Dialog","BaseUIDialog","Cross","classnames","React","usePortalContainer","styles","isOpen","onOpenChange","title","children","footer","className","disablePointerDismissal","portalContainer","createElement","Root","open","Portal","container","Backdrop","backdrop","Popup","popup","header","Title","Close","closeButton","closeIcon","body"],"sources":["Dialog.tsx"],"sourcesContent":["/*\n * Copyright 2025 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { Dialog as BaseUIDialog } from \"@base-ui/react/dialog\";\nimport { Cross } from \"@blueprintjs/icons\";\nimport classnames from \"classnames\";\nimport React from \"react\";\n\nimport { usePortalContainer } from \"../../shared/PortalContainerContext.js\";\n\nimport styles from \"./Dialog.module.css\";\n\nexport interface DialogProps {\n isOpen: boolean;\n onOpenChange: (open: boolean) => void;\n title: React.ReactNode;\n children: React.ReactNode;\n footer?: React.ReactNode;\n className?: string;\n disablePointerDismissal?: boolean;\n}\n\nexport function Dialog({\n isOpen,\n onOpenChange,\n title,\n children,\n footer,\n className,\n disablePointerDismissal,\n}: DialogProps): React.ReactElement {\n const portalContainer = usePortalContainer();\n\n return (\n <BaseUIDialog.Root\n open={isOpen}\n onOpenChange={onOpenChange}\n disablePointerDismissal={disablePointerDismissal}\n >\n <BaseUIDialog.Portal container={portalContainer}>\n <BaseUIDialog.Backdrop className={styles.backdrop} />\n <BaseUIDialog.Popup className={classnames(styles.popup, className)}>\n <div className={styles.header}>\n <BaseUIDialog.Title className={styles.title}>\n {title}\n </BaseUIDialog.Title>\n <BaseUIDialog.Close\n className={styles.closeButton}\n aria-label=\"Close dialog\"\n >\n <Cross className={styles.closeIcon} />\n </BaseUIDialog.Close>\n </div>\n <div className={styles.body}>{children}</div>\n {footer != null && <div className={styles.footer}>{footer}</div>}\n </BaseUIDialog.Popup>\n </BaseUIDialog.Portal>\n </BaseUIDialog.Root>\n );\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA,MAAM,IAAIC,YAAY,QAAQ,uBAAuB;AAC9D,SAASC,KAAK,QAAQ,oBAAoB;AAC1C,OAAOC,UAAU,MAAM,YAAY;AACnC,OAAOC,KAAK,MAAM,OAAO;AAEzB,SAASC,kBAAkB,QAAQ,wCAAwC;AAE3E,OAAOC,MAAM,MAAM,qBAAqB;AAYxC,OAAO,SAASN,MAAMA,CAAC;EACrBO,MAAM;EACNC,YAAY;EACZC,KAAK;EACLC,QAAQ;EACRC,MAAM;EACNC,SAAS;EACTC;AACW,CAAC,EAAsB;EAClC,MAAMC,eAAe,GAAGT,kBAAkB,CAAC,CAAC;EAE5C,oBACED,KAAA,CAAAW,aAAA,CAACd,YAAY,CAACe,IAAI;IAChBC,IAAI,EAAEV,MAAO;IACbC,YAAY,EAAEA,YAAa;IAC3BK,uBAAuB,EAAEA;EAAwB,gBAEjDT,KAAA,CAAAW,aAAA,CAACd,YAAY,CAACiB,MAAM;IAACC,SAAS,EAAEL;EAAgB,gBAC9CV,KAAA,CAAAW,aAAA,CAACd,YAAY,CAACmB,QAAQ;IAACR,SAAS,EAAEN,MAAM,CAACe;EAAS,CAAE,CAAC,eACrDjB,KAAA,CAAAW,aAAA,CAACd,YAAY,CAACqB,KAAK;IAACV,SAAS,EAAET,UAAU,CAACG,MAAM,CAACiB,KAAK,EAAEX,SAAS;EAAE,gBACjER,KAAA,CAAAW,aAAA;IAAKH,SAAS,EAAEN,MAAM,CAACkB;EAAO,gBAC5BpB,KAAA,CAAAW,aAAA,CAACd,YAAY,CAACwB,KAAK;IAACb,SAAS,EAAEN,MAAM,CAACG;EAAM,GACzCA,KACiB,CAAC,eACrBL,KAAA,CAAAW,aAAA,CAACd,YAAY,CAACyB,KAAK;IACjBd,SAAS,EAAEN,MAAM,CAACqB,WAAY;IAC9B,cAAW;EAAc,gBAEzBvB,KAAA,CAAAW,aAAA,CAACb,KAAK;IAACU,SAAS,EAAEN,MAAM,CAACsB;EAAU,CAAE,CACnB,CACjB,CAAC,eACNxB,KAAA,CAAAW,aAAA;IAAKH,SAAS,EAAEN,MAAM,CAACuB;EAAK,GAAEnB,QAAc,CAAC,EAC5CC,MAAM,IAAI,IAAI,iBAAIP,KAAA,CAAAW,aAAA;IAAKH,SAAS,EAAEN,MAAM,CAACK;EAAO,GAAEA,MAAY,CAC7C,CACD,CACJ,CAAC;AAExB","ignoreList":[]}
|
|
@@ -138,7 +138,7 @@ const useKeyboardEvents = containerRef => {
|
|
|
138
138
|
}
|
|
139
139
|
|
|
140
140
|
// Only intercept when a drag is active (an item has [data-dragging="true"])
|
|
141
|
-
if (el.querySelector(
|
|
141
|
+
if (el.querySelector('[data-dragging="true"]') == null) {
|
|
142
142
|
return;
|
|
143
143
|
}
|
|
144
144
|
event.stopPropagation();
|