@rebasepro/cms 0.23.0 → 0.24.1-canary.g56af4a4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/collection_editor/CollectionEditorDialogsContext.js +10 -0
- package/dist/collection_editor/CollectionEditorDialogsContext.js.map +1 -0
- package/dist/collection_editor/ConfigControllerProvider.js +274 -0
- package/dist/collection_editor/ConfigControllerProvider.js.map +1 -0
- package/dist/collection_editor/_cms_internals.d.ts +2 -1
- package/dist/collection_editor/api/generateCollectionApi.js +64 -0
- package/dist/collection_editor/api/generateCollectionApi.js.map +1 -0
- package/dist/collection_editor/collection_wire.d.ts +13 -0
- package/dist/collection_editor/collection_wire.js +49 -0
- package/dist/collection_editor/collection_wire.js.map +1 -0
- package/dist/collection_editor/liveSchemaClient.d.ts +38 -18
- package/dist/collection_editor/liveSchemaClient.js +130 -0
- package/dist/collection_editor/liveSchemaClient.js.map +1 -0
- package/dist/collection_editor/relation_kinds.js +74 -0
- package/dist/collection_editor/relation_kinds.js.map +1 -0
- package/dist/collection_editor/serializable_types.d.ts +6 -1
- package/dist/collection_editor/serializable_utils.js +504 -0
- package/dist/collection_editor/serializable_utils.js.map +1 -0
- package/dist/collection_editor/types/config_controller.d.ts +11 -0
- package/dist/collection_editor/ui/EditorCollectionAction.js +37 -0
- package/dist/collection_editor/ui/EditorCollectionAction.js.map +1 -0
- package/dist/collection_editor/ui/MissingReferenceWidget.js +39 -0
- package/dist/collection_editor/ui/MissingReferenceWidget.js.map +1 -0
- package/dist/collection_editor/ui/collection_editor/AICollectionGeneratorPopover.js +160 -0
- package/dist/collection_editor/ui/collection_editor/AICollectionGeneratorPopover.js.map +1 -0
- package/dist/collection_editor/ui/collection_editor/AIModifiedPathsContext.js +61 -0
- package/dist/collection_editor/ui/collection_editor/AIModifiedPathsContext.js.map +1 -0
- package/dist/collection_editor/ui/collection_editor/CollectionEditorDialog.js +731 -0
- package/dist/collection_editor/ui/collection_editor/CollectionEditorDialog.js.map +1 -0
- package/dist/collection_editor/ui/collection_editor/CollectionEditorWelcomeView.js +220 -0
- package/dist/collection_editor/ui/collection_editor/CollectionEditorWelcomeView.js.map +1 -0
- package/dist/collection_editor/ui/collection_editor/CollectionJsonImportDialog.js +160 -0
- package/dist/collection_editor/ui/collection_editor/CollectionJsonImportDialog.js.map +1 -0
- package/dist/collection_editor/ui/collection_editor/CollectionPropertiesEditorForm.js +394 -0
- package/dist/collection_editor/ui/collection_editor/CollectionPropertiesEditorForm.js.map +1 -0
- package/dist/collection_editor/ui/collection_editor/CollectionRLSTab.js +616 -0
- package/dist/collection_editor/ui/collection_editor/CollectionRLSTab.js.map +1 -0
- package/dist/collection_editor/ui/collection_editor/CollectionStudioView.js +68 -0
- package/dist/collection_editor/ui/collection_editor/CollectionStudioView.js.map +1 -0
- package/dist/collection_editor/ui/collection_editor/CollectionYupValidation.js +11 -0
- package/dist/collection_editor/ui/collection_editor/CollectionYupValidation.js.map +1 -0
- package/dist/collection_editor/ui/collection_editor/CollectionsStudioView.js +148 -0
- package/dist/collection_editor/ui/collection_editor/CollectionsStudioView.js.map +1 -0
- package/dist/collection_editor/ui/collection_editor/DisplaySettingsForm.js +244 -0
- package/dist/collection_editor/ui/collection_editor/DisplaySettingsForm.js.map +1 -0
- package/dist/collection_editor/ui/collection_editor/EnumForm.js +222 -0
- package/dist/collection_editor/ui/collection_editor/EnumForm.js.map +1 -0
- package/dist/collection_editor/ui/collection_editor/GeneralSettingsForm.js +204 -0
- package/dist/collection_editor/ui/collection_editor/GeneralSettingsForm.js.map +1 -0
- package/dist/collection_editor/ui/collection_editor/GetCodeDialog.js +108 -0
- package/dist/collection_editor/ui/collection_editor/GetCodeDialog.js.map +1 -0
- package/dist/collection_editor/ui/collection_editor/KanbanConfigSection.js +163 -0
- package/dist/collection_editor/ui/collection_editor/KanbanConfigSection.js.map +1 -0
- package/dist/collection_editor/ui/collection_editor/LayoutModeSwitch.js +59 -0
- package/dist/collection_editor/ui/collection_editor/LayoutModeSwitch.js.map +1 -0
- package/dist/collection_editor/ui/collection_editor/PropertyEditView.js +640 -0
- package/dist/collection_editor/ui/collection_editor/PropertyEditView.js.map +1 -0
- package/dist/collection_editor/ui/collection_editor/PropertyFieldPreview.js +141 -0
- package/dist/collection_editor/ui/collection_editor/PropertyFieldPreview.js.map +1 -0
- package/dist/collection_editor/ui/collection_editor/PropertyTree.js +210 -0
- package/dist/collection_editor/ui/collection_editor/PropertyTree.js.map +1 -0
- package/dist/collection_editor/ui/collection_editor/RouterCollectionStudioView.js +31 -0
- package/dist/collection_editor/ui/collection_editor/RouterCollectionStudioView.js.map +1 -0
- package/dist/collection_editor/ui/collection_editor/RouterCollectionsStudioView.js +25 -0
- package/dist/collection_editor/ui/collection_editor/RouterCollectionsStudioView.js.map +1 -0
- package/dist/{SchemaChangeDialog-BeP0A4MJ.js → collection_editor/ui/collection_editor/SchemaChangeDialog.js} +73 -69
- package/dist/collection_editor/ui/collection_editor/SchemaChangeDialog.js.map +1 -0
- package/dist/collection_editor/ui/collection_editor/SwitchControl.js +24 -0
- package/dist/collection_editor/ui/collection_editor/SwitchControl.js.map +1 -0
- package/dist/collection_editor/ui/collection_editor/ViewModeSwitch.js +66 -0
- package/dist/collection_editor/ui/collection_editor/ViewModeSwitch.js.map +1 -0
- package/dist/collection_editor/ui/collection_editor/import/CollectionEditorImportDataPreview.js +61 -0
- package/dist/collection_editor/ui/collection_editor/import/CollectionEditorImportDataPreview.js.map +1 -0
- package/dist/collection_editor/ui/collection_editor/import/CollectionEditorImportMapping.js +188 -0
- package/dist/collection_editor/ui/collection_editor/import/CollectionEditorImportMapping.js.map +1 -0
- package/dist/collection_editor/ui/collection_editor/import/clean_import_data.d.ts +12 -0
- package/dist/collection_editor/ui/collection_editor/import/clean_import_data.js +74 -0
- package/dist/collection_editor/ui/collection_editor/import/clean_import_data.js.map +1 -0
- package/dist/collection_editor/ui/collection_editor/properties/BlockPropertyField.js +100 -0
- package/dist/collection_editor/ui/collection_editor/properties/BlockPropertyField.js.map +1 -0
- package/dist/collection_editor/ui/collection_editor/properties/BooleanPropertyField.js +34 -0
- package/dist/collection_editor/ui/collection_editor/properties/BooleanPropertyField.js.map +1 -0
- package/dist/collection_editor/ui/collection_editor/properties/CommonPropertyFields.js +75 -0
- package/dist/collection_editor/ui/collection_editor/properties/CommonPropertyFields.js.map +1 -0
- package/dist/collection_editor/ui/collection_editor/properties/DateTimePropertyField.js +338 -0
- package/dist/collection_editor/ui/collection_editor/properties/DateTimePropertyField.js.map +1 -0
- package/dist/collection_editor/ui/collection_editor/properties/EnumPropertyField.js +83 -0
- package/dist/collection_editor/ui/collection_editor/properties/EnumPropertyField.js.map +1 -0
- package/dist/collection_editor/ui/collection_editor/properties/KeyValuePropertyField.js +15 -0
- package/dist/collection_editor/ui/collection_editor/properties/KeyValuePropertyField.js.map +1 -0
- package/dist/collection_editor/ui/collection_editor/properties/MapPropertyField.js +121 -0
- package/dist/collection_editor/ui/collection_editor/properties/MapPropertyField.js.map +1 -0
- package/dist/collection_editor/ui/collection_editor/properties/MarkdownPropertyField.js +127 -0
- package/dist/collection_editor/ui/collection_editor/properties/MarkdownPropertyField.js.map +1 -0
- package/dist/collection_editor/ui/collection_editor/properties/NumberPropertyField.js +151 -0
- package/dist/collection_editor/ui/collection_editor/properties/NumberPropertyField.js.map +1 -0
- package/dist/collection_editor/ui/collection_editor/properties/ReferencePropertyField.js +77 -0
- package/dist/collection_editor/ui/collection_editor/properties/ReferencePropertyField.js.map +1 -0
- package/dist/collection_editor/ui/collection_editor/properties/RelationPropertyField.js +254 -0
- package/dist/collection_editor/ui/collection_editor/properties/RelationPropertyField.js.map +1 -0
- package/dist/collection_editor/ui/collection_editor/properties/RepeatPropertyField.js +71 -0
- package/dist/collection_editor/ui/collection_editor/properties/RepeatPropertyField.js.map +1 -0
- package/dist/collection_editor/ui/collection_editor/properties/StoragePropertyField.js +356 -0
- package/dist/collection_editor/ui/collection_editor/properties/StoragePropertyField.js.map +1 -0
- package/dist/collection_editor/ui/collection_editor/properties/StringPropertyField.js +173 -0
- package/dist/collection_editor/ui/collection_editor/properties/StringPropertyField.js.map +1 -0
- package/dist/collection_editor/ui/collection_editor/properties/UrlPropertyField.js +79 -0
- package/dist/collection_editor/ui/collection_editor/properties/UrlPropertyField.js.map +1 -0
- package/dist/collection_editor/ui/collection_editor/properties/VectorPropertyField.js +34 -0
- package/dist/collection_editor/ui/collection_editor/properties/VectorPropertyField.js.map +1 -0
- package/dist/collection_editor/ui/collection_editor/properties/advanced/AdvancedPropertyValidation.js +47 -0
- package/dist/collection_editor/ui/collection_editor/properties/advanced/AdvancedPropertyValidation.js.map +1 -0
- package/dist/collection_editor/ui/collection_editor/properties/validation/ArrayPropertyValidation.js +47 -0
- package/dist/collection_editor/ui/collection_editor/properties/validation/ArrayPropertyValidation.js.map +1 -0
- package/dist/collection_editor/ui/collection_editor/properties/validation/GeneralPropertyValidation.js +62 -0
- package/dist/collection_editor/ui/collection_editor/properties/validation/GeneralPropertyValidation.js.map +1 -0
- package/dist/collection_editor/ui/collection_editor/properties/validation/NumberPropertyValidation.js +119 -0
- package/dist/collection_editor/ui/collection_editor/properties/validation/NumberPropertyValidation.js.map +1 -0
- package/dist/collection_editor/ui/collection_editor/properties/validation/StringPropertyValidation.d.ts +10 -0
- package/dist/collection_editor/ui/collection_editor/properties/validation/StringPropertyValidation.js +178 -0
- package/dist/collection_editor/ui/collection_editor/properties/validation/StringPropertyValidation.js.map +1 -0
- package/dist/collection_editor/ui/collection_editor/properties/validation/ValidationPanel.js +23 -0
- package/dist/collection_editor/ui/collection_editor/properties/validation/ValidationPanel.js.map +1 -0
- package/dist/collection_editor/ui/collection_editor/templates/blog_template.js +116 -0
- package/dist/collection_editor/ui/collection_editor/templates/blog_template.js.map +1 -0
- package/dist/collection_editor/ui/collection_editor/templates/pages_template.js +182 -0
- package/dist/collection_editor/ui/collection_editor/templates/pages_template.js.map +1 -0
- package/dist/collection_editor/ui/collection_editor/templates/products_template.js +87 -0
- package/dist/collection_editor/ui/collection_editor/templates/products_template.js.map +1 -0
- package/dist/collection_editor/ui/collection_editor/templates/users_template.js +46 -0
- package/dist/collection_editor/ui/collection_editor/templates/users_template.js.map +1 -0
- package/dist/collection_editor/ui/collection_editor/util.js +20 -0
- package/dist/collection_editor/ui/collection_editor/util.js.map +1 -0
- package/dist/collection_editor/ui/collection_editor/utils/strings.js +2 -0
- package/dist/collection_editor/ui/collection_editor/utils/supported_fields.js +37 -0
- package/dist/collection_editor/ui/collection_editor/utils/supported_fields.js.map +1 -0
- package/dist/collection_editor/ui/collection_editor/utils/update_property_for_widget.js +192 -0
- package/dist/collection_editor/ui/collection_editor/utils/update_property_for_widget.js.map +1 -0
- package/dist/collection_editor/useCollectionEditorController.js +12 -0
- package/dist/collection_editor/useCollectionEditorController.js.map +1 -0
- package/dist/collection_editor/useCollectionsConfigController.js +12 -0
- package/dist/collection_editor/useCollectionsConfigController.js.map +1 -0
- package/dist/collection_editor/useJsonCollectionsConfigController.js +191 -0
- package/dist/collection_editor/useJsonCollectionsConfigController.js.map +1 -0
- package/dist/collection_editor/useLiveSchemaEditing.d.ts +5 -5
- package/dist/collection_editor/useLiveSchemaEditing.js +214 -0
- package/dist/collection_editor/useLiveSchemaEditing.js.map +1 -0
- package/dist/collection_editor/useLocalCollectionsConfigController.d.ts +7 -0
- package/dist/collection_editor/useLocalCollectionsConfigController.js +228 -0
- package/dist/collection_editor/useLocalCollectionsConfigController.js.map +1 -0
- package/dist/collection_editor/useSafeSnackbarController.js +13 -0
- package/dist/collection_editor/useSafeSnackbarController.js.map +1 -0
- package/dist/collection_editor/validateCollectionJson.js +289 -0
- package/dist/collection_editor/validateCollectionJson.js.map +1 -0
- package/dist/collection_editor_ui.js +7 -33
- package/dist/components/AdditionalFieldValue.js +60 -0
- package/dist/components/AdditionalFieldValue.js.map +1 -0
- package/dist/components/AdminModeSyncer.js +41 -0
- package/dist/components/AdminModeSyncer.js.map +1 -0
- package/dist/components/ArrayContainer.d.ts +8 -2
- package/dist/components/ArrayContainer.js +363 -0
- package/dist/components/ArrayContainer.js.map +1 -0
- package/dist/components/ClearFilterSortButton.d.ts +7 -1
- package/dist/components/ClearFilterSortButton.js +33 -0
- package/dist/components/ClearFilterSortButton.js.map +1 -0
- package/dist/components/CollectionEditorDialogs.js +49 -0
- package/dist/components/CollectionEditorDialogs.js.map +1 -0
- package/dist/components/CollectionPanel.js +95 -0
- package/dist/components/CollectionPanel.js.map +1 -0
- package/dist/components/CollectionTableBinding/CollectionRowActions.js +165 -0
- package/dist/components/CollectionTableBinding/CollectionRowActions.js.map +1 -0
- package/dist/components/CollectionTableBinding/CollectionTableBinding.js +329 -0
- package/dist/components/CollectionTableBinding/CollectionTableBinding.js.map +1 -0
- package/dist/components/CollectionTableBinding/PropertyTableCell.js +311 -0
- package/dist/components/CollectionTableBinding/PropertyTableCell.js.map +1 -0
- package/dist/components/CollectionTableBinding/column_utils.js +85 -0
- package/dist/components/CollectionTableBinding/column_utils.js.map +1 -0
- package/dist/components/CollectionTableBinding/fields/CompactEntityCellField.js +45 -0
- package/dist/components/CollectionTableBinding/fields/CompactEntityCellField.js.map +1 -0
- package/dist/components/CollectionTableBinding/fields/TableMultipleRelationField.js +66 -0
- package/dist/components/CollectionTableBinding/fields/TableMultipleRelationField.js.map +1 -0
- package/dist/components/CollectionTableBinding/fields/TableReferenceField.js +86 -0
- package/dist/components/CollectionTableBinding/fields/TableReferenceField.js.map +1 -0
- package/dist/components/CollectionTableBinding/fields/TableRelationField.js +93 -0
- package/dist/components/CollectionTableBinding/fields/TableRelationField.js.map +1 -0
- package/dist/components/CollectionTableBinding/fields/TableRelationSelectorField.js +33 -0
- package/dist/components/CollectionTableBinding/fields/TableRelationSelectorField.js.map +1 -0
- package/dist/components/CollectionTableBinding/fields/TableStorageUpload.js +171 -0
- package/dist/components/CollectionTableBinding/fields/TableStorageUpload.js.map +1 -0
- package/dist/components/CollectionTableBinding/fields/VirtualTableSelect.js +91 -0
- package/dist/components/CollectionTableBinding/fields/VirtualTableSelect.js.map +1 -0
- package/dist/components/CollectionTableBinding/fields/VirtualTableUserSelect.js +36 -0
- package/dist/components/CollectionTableBinding/fields/VirtualTableUserSelect.js.map +1 -0
- package/dist/components/CollectionTableBinding/index.js +6 -0
- package/dist/components/CollectionTableBinding/internal/CollectionTableToolbar.js +50 -0
- package/dist/components/CollectionTableBinding/internal/CollectionTableToolbar.js.map +1 -0
- package/dist/components/CollectionTableBinding/internal/EntityTableCell.d.ts +2 -0
- package/dist/components/CollectionTableBinding/internal/EntityTableCell.js +223 -0
- package/dist/components/CollectionTableBinding/internal/EntityTableCell.js.map +1 -0
- package/dist/components/CollectionTableBinding/internal/EntityTableCellActions.js +58 -0
- package/dist/components/CollectionTableBinding/internal/EntityTableCellActions.js.map +1 -0
- package/dist/components/CollectionTableBinding/internal/TableCellOpener.js +53 -0
- package/dist/components/CollectionTableBinding/internal/TableCellOpener.js.map +1 -0
- package/dist/components/CollectionTableBinding/internal/common.js +40 -0
- package/dist/components/CollectionTableBinding/internal/common.js.map +1 -0
- package/dist/components/CollectionTableBinding/internal/popup_field/PopupFormField.js +270 -0
- package/dist/components/CollectionTableBinding/internal/popup_field/PopupFormField.js.map +1 -0
- package/dist/components/CollectionTableBinding/internal/popup_field/useDraggable.js +68 -0
- package/dist/components/CollectionTableBinding/internal/popup_field/useDraggable.js.map +1 -0
- package/dist/components/CollectionTableBinding/internal/popup_field/useWindowSize.js +24 -0
- package/dist/components/CollectionTableBinding/internal/popup_field/useWindowSize.js.map +1 -0
- package/dist/components/CollectionTableBinding/table_bindings.js +306 -0
- package/dist/components/CollectionTableBinding/table_bindings.js.map +1 -0
- package/dist/components/CollectionViewBinding/BoardCardBinding.js +160 -0
- package/dist/components/CollectionViewBinding/BoardCardBinding.js.map +1 -0
- package/dist/components/CollectionViewBinding/CollectionBoardViewBinding.js +471 -0
- package/dist/components/CollectionViewBinding/CollectionBoardViewBinding.js.map +1 -0
- package/dist/components/CollectionViewBinding/CollectionCardViewBinding.js +108 -0
- package/dist/components/CollectionViewBinding/CollectionCardViewBinding.js.map +1 -0
- package/dist/components/CollectionViewBinding/CollectionListViewBinding.js +988 -0
- package/dist/components/CollectionViewBinding/CollectionListViewBinding.js.map +1 -0
- package/dist/components/CollectionViewBinding/CollectionViewActions.d.ts +6 -1
- package/dist/components/CollectionViewBinding/CollectionViewActions.js +146 -0
- package/dist/components/CollectionViewBinding/CollectionViewActions.js.map +1 -0
- package/dist/components/CollectionViewBinding/CollectionViewBinding.d.ts +5 -2
- package/dist/components/CollectionViewBinding/CollectionViewBinding.js +1209 -0
- package/dist/components/CollectionViewBinding/CollectionViewBinding.js.map +1 -0
- package/dist/components/CollectionViewBinding/CollectionViewStartActions.js +133 -0
- package/dist/components/CollectionViewBinding/CollectionViewStartActions.js.map +1 -0
- package/dist/components/CollectionViewBinding/EntityCardBinding.js +133 -0
- package/dist/components/CollectionViewBinding/EntityCardBinding.js.map +1 -0
- package/dist/components/CollectionViewBinding/FilterPresetsButton.js +203 -0
- package/dist/components/CollectionViewBinding/FilterPresetsButton.js.map +1 -0
- package/dist/components/CollectionViewBinding/FiltersDialog.d.ts +5 -0
- package/dist/components/CollectionViewBinding/FiltersDialog.js +148 -0
- package/dist/components/CollectionViewBinding/FiltersDialog.js.map +1 -0
- package/dist/components/CollectionViewBinding/SearchExplanation.js +86 -0
- package/dist/components/CollectionViewBinding/SearchExplanation.js.map +1 -0
- package/dist/components/CollectionViewBinding/SearchHighlight.js +262 -0
- package/dist/components/CollectionViewBinding/SearchHighlight.js.map +1 -0
- package/dist/components/CollectionViewBinding/SlotValue.js +117 -0
- package/dist/components/CollectionViewBinding/SlotValue.js.map +1 -0
- package/dist/components/CollectionViewBinding/SortButton.js +214 -0
- package/dist/components/CollectionViewBinding/SortButton.js.map +1 -0
- package/dist/components/CollectionViewBinding/SplitListCloseButton.js +41 -0
- package/dist/components/CollectionViewBinding/SplitListCloseButton.js.map +1 -0
- package/dist/components/CollectionViewBinding/SplitListShowButton.js +29 -0
- package/dist/components/CollectionViewBinding/SplitListShowButton.js.map +1 -0
- package/dist/components/CollectionViewBinding/SplitListView.js +311 -0
- package/dist/components/CollectionViewBinding/SplitListView.js.map +1 -0
- package/dist/components/CollectionViewBinding/SplitViewContext.js +21 -0
- package/dist/components/CollectionViewBinding/SplitViewContext.js.map +1 -0
- package/dist/components/CollectionViewBinding/ViewModeToggle.js +150 -0
- package/dist/components/CollectionViewBinding/ViewModeToggle.js.map +1 -0
- package/dist/components/CollectionViewBinding/hooks/useCollectionInlineEditor.js +49 -0
- package/dist/components/CollectionViewBinding/hooks/useCollectionInlineEditor.js.map +1 -0
- package/dist/components/CollectionViewBinding/hooks/useKanbanDragAndDrop.js +122 -0
- package/dist/components/CollectionViewBinding/hooks/useKanbanDragAndDrop.js.map +1 -0
- package/dist/components/CollectionViewBinding/useBoardDataController.js +530 -0
- package/dist/components/CollectionViewBinding/useBoardDataController.js.map +1 -0
- package/dist/components/CollectionViewBinding/usePreviewSlots.d.ts +4 -1
- package/dist/components/CollectionViewBinding/usePreviewSlots.js +384 -0
- package/dist/components/CollectionViewBinding/usePreviewSlots.js.map +1 -0
- package/dist/components/CollectionViewBinding/useSelectionController.js +104 -0
- package/dist/components/CollectionViewBinding/useSelectionController.js.map +1 -0
- package/dist/components/CollectionViewBinding/utils.js +21 -0
- package/dist/components/CollectionViewBinding/utils.js.map +1 -0
- package/dist/components/DefaultAppBar.js +179 -0
- package/dist/components/DefaultAppBar.js.map +1 -0
- package/dist/components/DefaultDrawer.js +364 -0
- package/dist/components/DefaultDrawer.js.map +1 -0
- package/dist/components/DeleteEntityDialog.js +256 -0
- package/dist/components/DeleteEntityDialog.js.map +1 -0
- package/dist/components/DetailViewBinding.js +504 -0
- package/dist/components/DetailViewBinding.js.map +1 -0
- package/dist/components/DrawerNavigationGroup.js +74 -0
- package/dist/components/DrawerNavigationGroup.js.map +1 -0
- package/dist/components/DrawerNavigationItem.d.ts +8 -0
- package/dist/components/DrawerNavigationItem.js +45 -0
- package/dist/components/DrawerNavigationItem.js.map +1 -0
- package/dist/components/EditFormActions.js +210 -0
- package/dist/components/EditFormActions.js.map +1 -0
- package/dist/components/EditViewBinding.d.ts +7 -1
- package/dist/components/EditViewBinding.js +802 -0
- package/dist/components/EditViewBinding.js.map +1 -0
- package/dist/components/EntityDisplayHeader.js +139 -0
- package/dist/components/EntityDisplayHeader.js.map +1 -0
- package/dist/components/EntityIdentityBar.d.ts +29 -4
- package/dist/components/EntityIdentityBar.js +364 -0
- package/dist/components/EntityIdentityBar.js.map +1 -0
- package/dist/components/EntityInspector.js +96 -0
- package/dist/components/EntityInspector.js.map +1 -0
- package/dist/components/EntityPreviewBinding.js +282 -0
- package/dist/components/EntityPreviewBinding.js.map +1 -0
- package/dist/components/EntityPreviewNesting.js +53 -0
- package/dist/components/EntityPreviewNesting.js.map +1 -0
- package/dist/components/EntityViewBinding.js +246 -0
- package/dist/components/EntityViewBinding.js.map +1 -0
- package/dist/components/FieldCaption.js +17 -0
- package/dist/components/FieldCaption.js.map +1 -0
- package/dist/components/HomePage/ContentHomePage.js +326 -0
- package/dist/components/HomePage/ContentHomePage.js.map +1 -0
- package/dist/components/HomePage/FavouritesView.js +44 -0
- package/dist/components/HomePage/FavouritesView.js.map +1 -0
- package/dist/components/HomePage/HomePageDnD.js +436 -0
- package/dist/components/HomePage/HomePageDnD.js.map +1 -0
- package/dist/components/HomePage/NavigationCard.js +59 -0
- package/dist/components/HomePage/NavigationCard.js.map +1 -0
- package/dist/components/HomePage/NavigationCardBinding.js +70 -0
- package/dist/components/HomePage/NavigationCardBinding.js.map +1 -0
- package/dist/components/HomePage/NavigationGroup.js +98 -0
- package/dist/components/HomePage/NavigationGroup.js.map +1 -0
- package/dist/components/HomePage/RenameGroupDialog.js +89 -0
- package/dist/components/HomePage/RenameGroupDialog.js.map +1 -0
- package/dist/components/InlineEntityPreview.js +116 -0
- package/dist/components/InlineEntityPreview.js.map +1 -0
- package/dist/{JsonPreviewBinding-v0w3H0fp.js → components/JsonPreviewBinding.js} +2 -2
- package/dist/components/JsonPreviewBinding.js.map +1 -0
- package/dist/components/NavigationLoadingErrorView.d.ts +16 -0
- package/dist/components/NavigationLoadingErrorView.js +27 -0
- package/dist/components/NavigationLoadingErrorView.js.map +1 -0
- package/dist/components/PickerTrigger.js +27 -0
- package/dist/components/PickerTrigger.js.map +1 -0
- package/dist/components/PropertyCollectionView.js +215 -0
- package/dist/components/PropertyCollectionView.js.map +1 -0
- package/dist/components/PropertyConfigBadge.js +19 -0
- package/dist/components/PropertyConfigBadge.js.map +1 -0
- package/dist/components/PropertyKeyHint.js +58 -0
- package/dist/components/PropertyKeyHint.js.map +1 -0
- package/dist/components/RebaseAuthGate.js +35 -0
- package/dist/components/RebaseAuthGate.js.map +1 -0
- package/dist/components/RebaseCMS.js +44 -0
- package/dist/components/RebaseCMS.js.map +1 -0
- package/dist/components/RebaseLayout.js +59 -0
- package/dist/components/RebaseLayout.js.map +1 -0
- package/dist/components/RebaseNavigation.js +211 -0
- package/dist/components/RebaseNavigation.js.map +1 -0
- package/dist/components/RebaseRouteDefs.js +96 -0
- package/dist/components/RebaseRouteDefs.js.map +1 -0
- package/dist/components/RebaseShell.js +50 -0
- package/dist/components/RebaseShell.js.map +1 -0
- package/dist/components/ReferenceTable/SelectionTableBinding.js +224 -0
- package/dist/components/ReferenceTable/SelectionTableBinding.js.map +1 -0
- package/dist/components/ReferenceWidget.js +100 -0
- package/dist/components/ReferenceWidget.js.map +1 -0
- package/dist/components/RelationSelector.js +625 -0
- package/dist/components/RelationSelector.js.map +1 -0
- package/dist/components/SearchIconsView.js +52 -0
- package/dist/components/SearchIconsView.js.map +1 -0
- package/dist/components/SelectableTable/SelectableTable.d.ts +1 -1
- package/dist/components/SelectableTable/SelectableTable.js +158 -0
- package/dist/components/SelectableTable/SelectableTable.js.map +1 -0
- package/dist/components/SelectableTable/SelectableTableContext.js +8 -0
- package/dist/components/SelectableTable/SelectableTableContext.js.map +1 -0
- package/dist/components/SelectableTable/SelectionStore.js +29 -0
- package/dist/components/SelectableTable/SelectionStore.js.map +1 -0
- package/dist/components/SelectableTable/filters/BooleanFilterField.js +28 -0
- package/dist/components/SelectableTable/filters/BooleanFilterField.js.map +1 -0
- package/dist/components/SelectableTable/filters/DateTimeFilterField.d.ts +2 -1
- package/dist/components/SelectableTable/filters/DateTimeFilterField.js +93 -0
- package/dist/components/SelectableTable/filters/DateTimeFilterField.js.map +1 -0
- package/dist/components/SelectableTable/filters/FilterFieldBinding.js +132 -0
- package/dist/components/SelectableTable/filters/FilterFieldBinding.js.map +1 -0
- package/dist/components/SelectableTable/filters/ReferenceFilterField.js +157 -0
- package/dist/components/SelectableTable/filters/ReferenceFilterField.js.map +1 -0
- package/dist/components/SelectableTable/filters/RelationFilterField.js +169 -0
- package/dist/components/SelectableTable/filters/RelationFilterField.js.map +1 -0
- package/dist/components/SelectableTable/filters/StringNumberFilterField.js +181 -0
- package/dist/components/SelectableTable/filters/StringNumberFilterField.js.map +1 -0
- package/dist/components/SelectableTable/filters/null_filter.js +36 -0
- package/dist/components/SelectableTable/filters/null_filter.js.map +1 -0
- package/dist/components/SideDialogs.js +149 -0
- package/dist/components/SideDialogs.js.map +1 -0
- package/dist/components/SidePanelBinding.js +287 -0
- package/dist/components/SidePanelBinding.js.map +1 -0
- package/dist/components/SidePanelProvider.js +69 -0
- package/dist/components/SidePanelProvider.js.map +1 -0
- package/dist/components/UserSelector.d.ts +2 -0
- package/dist/components/UserSelector.js +418 -0
- package/dist/components/UserSelector.js.map +1 -0
- package/dist/components/admin/CreationResultDialog.js +118 -0
- package/dist/components/admin/CreationResultDialog.js.map +1 -0
- package/dist/components/app/AppBar.js +14 -0
- package/dist/components/app/AppBar.js.map +1 -0
- package/dist/components/app/Drawer.js +26 -0
- package/dist/components/app/Drawer.js.map +1 -0
- package/dist/components/app/Scaffold.js +229 -0
- package/dist/components/app/Scaffold.js.map +1 -0
- package/dist/components/app/useApp.js +24 -0
- package/dist/components/app/useApp.js.map +1 -0
- package/dist/components/common/ActionMenuLabel.d.ts +15 -0
- package/dist/components/common/ActionMenuLabel.js +30 -0
- package/dist/components/common/ActionMenuLabel.js.map +1 -0
- package/dist/components/common/default_entity_actions.d.ts +37 -0
- package/dist/components/common/default_entity_actions.js +590 -0
- package/dist/components/common/default_entity_actions.js.map +1 -0
- package/dist/components/drawer_expansion.d.ts +25 -0
- package/dist/components/drawer_expansion.js +44 -0
- package/dist/components/drawer_expansion.js.map +1 -0
- package/dist/components/field_configs.d.ts +2 -2
- package/dist/components/field_configs.js +431 -0
- package/dist/components/field_configs.js.map +1 -0
- package/dist/components/field_ids.d.ts +11 -0
- package/dist/components/field_ids.js +58 -0
- package/dist/components/field_ids.js.map +1 -0
- package/dist/components/history/EntityHistoryEntry.js +151 -0
- package/dist/components/history/EntityHistoryEntry.js.map +1 -0
- package/dist/components/history/EntityHistoryView.js +157 -0
- package/dist/components/history/EntityHistoryView.js.map +1 -0
- package/dist/components/history/UserChip.js +21 -0
- package/dist/components/history/UserChip.js.map +1 -0
- package/dist/components/history/index.js +4 -0
- package/dist/components/lazy_record_views.d.ts +10 -0
- package/dist/components/lazy_record_views.js +57 -0
- package/dist/components/lazy_record_views.js.map +1 -0
- package/dist/contexts/BreacrumbsContext.js +28 -0
- package/dist/contexts/BreacrumbsContext.js.map +1 -0
- package/dist/contexts/EditorAIControllerContext.d.ts +18 -0
- package/dist/contexts/EditorAIControllerContext.js +29 -0
- package/dist/contexts/EditorAIControllerContext.js.map +1 -0
- package/dist/contexts/SideDialogsControllerContext.js +7 -0
- package/dist/contexts/SideDialogsControllerContext.js.map +1 -0
- package/dist/data_export/export/BasicExportAction.js +151 -0
- package/dist/data_export/export/BasicExportAction.js.map +1 -0
- package/dist/data_export/export/ExportCollectionAction.js +297 -0
- package/dist/data_export/export/ExportCollectionAction.js.map +1 -0
- package/dist/data_export/export/additional_fields.js +40 -0
- package/dist/data_export/export/additional_fields.js.map +1 -0
- package/dist/data_export/export/export.d.ts +35 -0
- package/dist/data_export/export/export.js +400 -0
- package/dist/data_export/export/export.js.map +1 -0
- package/dist/data_export/export/fetch_export_data.d.ts +17 -7
- package/dist/data_export/export/fetch_export_data.js +67 -0
- package/dist/data_export/export/fetch_export_data.js.map +1 -0
- package/dist/data_export/export/index.d.ts +4 -2
- package/dist/data_export/export/index.js +5 -0
- package/dist/data_import/components/DataNewPropertiesMapping.js +207 -0
- package/dist/data_import/components/DataNewPropertiesMapping.js.map +1 -0
- package/dist/data_import/components/ImportConversionProblems.d.ts +11 -0
- package/dist/data_import/components/ImportConversionProblems.js +89 -0
- package/dist/data_import/components/ImportConversionProblems.js.map +1 -0
- package/dist/data_import/components/ImportFileUpload.js +43 -0
- package/dist/data_import/components/ImportFileUpload.js.map +1 -0
- package/dist/data_import/components/ImportNewPropertyFieldPreview.js +42 -0
- package/dist/data_import/components/ImportNewPropertyFieldPreview.js.map +1 -0
- package/dist/data_import/components/ImportSaveInProgress.js +105 -0
- package/dist/data_import/components/ImportSaveInProgress.js.map +1 -0
- package/dist/data_import/components/index.d.ts +1 -0
- package/dist/data_import/hooks/useImportConfig.js +34 -0
- package/dist/data_import/hooks/useImportConfig.js.map +1 -0
- package/dist/{import-TCgkTVlS.js → data_import/import/ImportCollectionAction.js} +84 -92
- package/dist/data_import/import/ImportCollectionAction.js.map +1 -0
- package/dist/data_import/import/index.js +2 -0
- package/dist/data_import/utils/csv.js +146 -0
- package/dist/data_import/utils/csv.js.map +1 -0
- package/dist/data_import/utils/data.d.ts +81 -4
- package/dist/data_import/utils/data.js +366 -0
- package/dist/data_import/utils/data.js.map +1 -0
- package/dist/data_import/utils/file_headers.js +32 -0
- package/dist/data_import/utils/file_headers.js.map +1 -0
- package/dist/data_import/utils/file_to_json.js +149 -0
- package/dist/data_import/utils/file_to_json.js.map +1 -0
- package/dist/data_import/utils/get_import_inference_type.js +14 -0
- package/dist/data_import/utils/get_import_inference_type.js.map +1 -0
- package/dist/data_import/utils/id_column.js +27 -0
- package/dist/data_import/utils/id_column.js.map +1 -0
- package/dist/data_import/utils/import_columns.d.ts +48 -0
- package/dist/data_import/utils/import_columns.js +92 -0
- package/dist/data_import/utils/import_columns.js.map +1 -0
- package/dist/data_import/utils/save_entities.d.ts +33 -4
- package/dist/data_import/utils/save_entities.js +244 -0
- package/dist/data_import/utils/save_entities.js.map +1 -0
- package/dist/data_import/utils/transforms.js +83 -0
- package/dist/data_import/utils/transforms.js.map +1 -0
- package/dist/editor/components/SlashCommandMenu.js +497 -0
- package/dist/editor/components/SlashCommandMenu.js.map +1 -0
- package/dist/editor/components/editor-bubble-item.js +24 -0
- package/dist/editor/components/editor-bubble-item.js.map +1 -0
- package/dist/editor/components/editor-bubble.js +97 -0
- package/dist/editor/components/editor-bubble.js.map +1 -0
- package/dist/editor/components/image-bubble.js +148 -0
- package/dist/editor/components/image-bubble.js.map +1 -0
- package/dist/editor/components/table-bubble.js +406 -0
- package/dist/editor/components/table-bubble.js.map +1 -0
- package/dist/editor/editor.d.ts +7 -1
- package/dist/editor/editor.js +423 -0
- package/dist/editor/editor.js.map +1 -0
- package/dist/editor/extensions/HighlightDecorationExtension.js +74 -0
- package/dist/editor/extensions/HighlightDecorationExtension.js.map +1 -0
- package/dist/editor/extensions/Image.d.ts +28 -1
- package/dist/editor/extensions/Image.js +160 -0
- package/dist/editor/extensions/Image.js.map +1 -0
- package/dist/editor/extensions/TextLoadingDecorationExtension.js +82 -0
- package/dist/editor/extensions/TextLoadingDecorationExtension.js.map +1 -0
- package/dist/editor/extensions/clipboard.js +63 -0
- package/dist/editor/extensions/clipboard.js.map +1 -0
- package/dist/editor/extensions/drag-and-drop.js +354 -0
- package/dist/editor/extensions/drag-and-drop.js.map +1 -0
- package/dist/editor/hooks/useProseMirror.d.ts +4 -1
- package/dist/editor/hooks/useProseMirror.js +101 -0
- package/dist/editor/hooks/useProseMirror.js.map +1 -0
- package/dist/editor/hooks/useProseMirrorContext.js +11 -0
- package/dist/editor/hooks/useProseMirrorContext.js.map +1 -0
- package/dist/editor/markdown.js +154 -0
- package/dist/editor/markdown.js.map +1 -0
- package/dist/editor/nodeViews/ImageComponent.js +35 -0
- package/dist/editor/nodeViews/ImageComponent.js.map +1 -0
- package/dist/editor/nodeViews/ReactNodeView.js +57 -0
- package/dist/editor/nodeViews/ReactNodeView.js.map +1 -0
- package/dist/editor/nodeViews/TaskItemComponent.js +29 -0
- package/dist/editor/nodeViews/TaskItemComponent.js.map +1 -0
- package/dist/editor/nodeViews/index.js +21 -0
- package/dist/editor/nodeViews/index.js.map +1 -0
- package/dist/editor/plugins/index.js +54 -0
- package/dist/editor/plugins/index.js.map +1 -0
- package/dist/editor/plugins/inputrules.js +54 -0
- package/dist/editor/plugins/inputrules.js.map +1 -0
- package/dist/editor/plugins/placeholderPlugin.js +38 -0
- package/dist/editor/plugins/placeholderPlugin.js.map +1 -0
- package/dist/editor/plugins/slashCommandPlugin.js +40 -0
- package/dist/editor/plugins/slashCommandPlugin.js.map +1 -0
- package/dist/editor/sanitize-html.js +190 -0
- package/dist/editor/sanitize-html.js.map +1 -0
- package/dist/{markdown-CCqp8ibf.js → editor/schema.js} +2 -159
- package/dist/editor/schema.js.map +1 -0
- package/dist/editor/selectors/link-selector.js +118 -0
- package/dist/editor/selectors/link-selector.js.map +1 -0
- package/dist/editor/selectors/node-selector.js +118 -0
- package/dist/editor/selectors/node-selector.js.map +1 -0
- package/dist/editor/selectors/text-buttons.js +71 -0
- package/dist/editor/selectors/text-buttons.js.map +1 -0
- package/dist/editor/utils/prosemirror-utils.js +92 -0
- package/dist/editor/utils/prosemirror-utils.js.map +1 -0
- package/dist/editor/utils/remove_classes.js +16 -0
- package/dist/editor/utils/remove_classes.js.map +1 -0
- package/dist/editor.js +1 -3085
- package/dist/form/EntityForm.js +734 -0
- package/dist/form/EntityForm.js.map +1 -0
- package/dist/form/EntityFormActions.js +101 -0
- package/dist/form/EntityFormActions.js.map +1 -0
- package/dist/form/EntityFormBinding.js +257 -0
- package/dist/form/EntityFormBinding.js.map +1 -0
- package/dist/form/PropertyFieldBinding.js +298 -0
- package/dist/form/PropertyFieldBinding.js.map +1 -0
- package/dist/form/components/ErrorFocus.js +33 -0
- package/dist/form/components/ErrorFocus.js.map +1 -0
- package/dist/form/components/FieldBlock.js +118 -0
- package/dist/form/components/FieldBlock.js.map +1 -0
- package/dist/form/components/FieldHelperText.js +56 -0
- package/dist/form/components/FieldHelperText.js.map +1 -0
- package/dist/form/components/FormRail.js +118 -0
- package/dist/form/components/FormRail.js.map +1 -0
- package/dist/form/components/FormSections.js +63 -0
- package/dist/form/components/FormSections.js.map +1 -0
- package/dist/form/components/LabelWithIcon.js +29 -0
- package/dist/form/components/LabelWithIcon.js.map +1 -0
- package/dist/form/components/LocalChangesMenu.js +127 -0
- package/dist/form/components/LocalChangesMenu.js.map +1 -0
- package/dist/form/components/StorageItemPreview.js +46 -0
- package/dist/form/components/StorageItemPreview.js.map +1 -0
- package/dist/form/components/StorageUploadProgress.js +84 -0
- package/dist/form/components/StorageUploadProgress.js.map +1 -0
- package/dist/form/components/useRailVisible.js +43 -0
- package/dist/form/components/useRailVisible.js.map +1 -0
- package/dist/form/field_bindings/ArrayCustomShapedFieldBinding.js +84 -0
- package/dist/form/field_bindings/ArrayCustomShapedFieldBinding.js.map +1 -0
- package/dist/form/field_bindings/ArrayOfReferencesFieldBinding.js +125 -0
- package/dist/form/field_bindings/ArrayOfReferencesFieldBinding.js.map +1 -0
- package/dist/form/field_bindings/BinaryFieldBinding.js +135 -0
- package/dist/form/field_bindings/BinaryFieldBinding.js.map +1 -0
- package/dist/form/field_bindings/BlockFieldBinding.js +164 -0
- package/dist/form/field_bindings/BlockFieldBinding.js.map +1 -0
- package/dist/form/field_bindings/DateTimeFieldBinding.js +47 -0
- package/dist/form/field_bindings/DateTimeFieldBinding.js.map +1 -0
- package/dist/form/field_bindings/GeopointFieldBinding.js +148 -0
- package/dist/form/field_bindings/GeopointFieldBinding.js.map +1 -0
- package/dist/form/field_bindings/KeyValueFieldBinding.js +450 -0
- package/dist/form/field_bindings/KeyValueFieldBinding.js.map +1 -0
- package/dist/form/field_bindings/MapFieldBinding.js +77 -0
- package/dist/form/field_bindings/MapFieldBinding.js.map +1 -0
- package/dist/form/field_bindings/MarkdownEditorFieldBinding.js +215 -0
- package/dist/form/field_bindings/MarkdownEditorFieldBinding.js.map +1 -0
- package/dist/form/field_bindings/MultiSelectFieldBinding.js +88 -0
- package/dist/form/field_bindings/MultiSelectFieldBinding.js.map +1 -0
- package/dist/form/field_bindings/MultipleRelationFieldBinding.js +118 -0
- package/dist/form/field_bindings/MultipleRelationFieldBinding.js.map +1 -0
- package/dist/form/field_bindings/ReadOnlyFieldBinding.js +52 -0
- package/dist/form/field_bindings/ReadOnlyFieldBinding.js.map +1 -0
- package/dist/form/field_bindings/ReferenceFieldBinding.js +99 -0
- package/dist/form/field_bindings/ReferenceFieldBinding.js.map +1 -0
- package/dist/form/field_bindings/RelationFieldBinding.js +135 -0
- package/dist/form/field_bindings/RelationFieldBinding.js.map +1 -0
- package/dist/form/field_bindings/RepeatFieldBinding.js +103 -0
- package/dist/form/field_bindings/RepeatFieldBinding.js.map +1 -0
- package/dist/form/field_bindings/SelectFieldBinding.js +80 -0
- package/dist/form/field_bindings/SelectFieldBinding.js.map +1 -0
- package/dist/form/field_bindings/StorageUploadFieldBinding.js +266 -0
- package/dist/form/field_bindings/StorageUploadFieldBinding.js.map +1 -0
- package/dist/form/field_bindings/SwitchFieldBinding.js +41 -0
- package/dist/form/field_bindings/SwitchFieldBinding.js.map +1 -0
- package/dist/form/field_bindings/TextFieldBinding.js +114 -0
- package/dist/form/field_bindings/TextFieldBinding.js.map +1 -0
- package/dist/form/field_bindings/UserSelectFieldBinding.js +48 -0
- package/dist/form/field_bindings/UserSelectFieldBinding.js.map +1 -0
- package/dist/form/field_bindings/VectorFieldBinding.js +147 -0
- package/dist/form/field_bindings/VectorFieldBinding.js.map +1 -0
- package/dist/form/form_keyboard_scope.d.ts +26 -0
- package/dist/form/form_keyboard_scope.js +39 -0
- package/dist/form/form_keyboard_scope.js.map +1 -0
- package/dist/form/form_uploads.d.ts +24 -0
- package/dist/form/form_uploads.js +31 -0
- package/dist/form/form_uploads.js.map +1 -0
- package/dist/form/form_utils.d.ts +48 -0
- package/dist/form/form_utils.js +280 -0
- package/dist/form/form_utils.js.map +1 -0
- package/dist/form/resolve_cell_property.d.ts +32 -0
- package/dist/form/resolve_cell_property.js +80 -0
- package/dist/form/resolve_cell_property.js.map +1 -0
- package/dist/form/resolve_form_properties.d.ts +27 -0
- package/dist/form/resolve_form_properties.js +78 -0
- package/dist/form/resolve_form_properties.js.map +1 -0
- package/dist/form/useClearRestoreValue.js +27 -0
- package/dist/form/useClearRestoreValue.js.map +1 -0
- package/dist/form/useUndoableDiscard.js +36 -0
- package/dist/form/useUndoableDiscard.js.map +1 -0
- package/dist/form/validation.d.ts +20 -0
- package/dist/form/validation.js +416 -0
- package/dist/form/validation.js.map +1 -0
- package/dist/hooks/navigation/contexts/CollectionRegistryContext.js +22 -0
- package/dist/hooks/navigation/contexts/CollectionRegistryContext.js.map +1 -0
- package/dist/hooks/navigation/contexts/NavigationStateContext.js +15 -0
- package/dist/hooks/navigation/contexts/NavigationStateContext.js.map +1 -0
- package/dist/hooks/navigation/contexts/UrlContext.js +22 -0
- package/dist/hooks/navigation/contexts/UrlContext.js.map +1 -0
- package/dist/hooks/navigation/useAsyncResolver.js +68 -0
- package/dist/hooks/navigation/useAsyncResolver.js.map +1 -0
- package/dist/hooks/navigation/useBuildCollectionRegistryController.js +141 -0
- package/dist/hooks/navigation/useBuildCollectionRegistryController.js.map +1 -0
- package/dist/hooks/navigation/useBuildNavigationStateController.js +77 -0
- package/dist/hooks/navigation/useBuildNavigationStateController.js.map +1 -0
- package/dist/hooks/navigation/useBuildUrlController.js +57 -0
- package/dist/hooks/navigation/useBuildUrlController.js.map +1 -0
- package/dist/hooks/navigation/useNavigationResolution.js +177 -0
- package/dist/hooks/navigation/useNavigationResolution.js.map +1 -0
- package/dist/hooks/navigation/useResolvedCollections.js +56 -0
- package/dist/hooks/navigation/useResolvedCollections.js.map +1 -0
- package/dist/hooks/navigation/useResolvedViews.js +94 -0
- package/dist/hooks/navigation/useResolvedViews.js.map +1 -0
- package/dist/hooks/navigation/useTopLevelNavigation.js +162 -0
- package/dist/hooks/navigation/useTopLevelNavigation.js.map +1 -0
- package/dist/hooks/navigation/utils.js +125 -0
- package/dist/hooks/navigation/utils.js.map +1 -0
- package/dist/hooks/useAdminContext.js +45 -0
- package/dist/hooks/useAdminContext.js.map +1 -0
- package/dist/hooks/useBreadcrumbsController.js +17 -0
- package/dist/hooks/useBreadcrumbsController.js.map +1 -0
- package/dist/hooks/useBuildSideDialogsController.js +96 -0
- package/dist/hooks/useBuildSideDialogsController.js.map +1 -0
- package/dist/hooks/useBuildSidePanel.js +208 -0
- package/dist/hooks/useBuildSidePanel.js.map +1 -0
- package/dist/hooks/useChildViewSource.js +41 -0
- package/dist/hooks/useChildViewSource.js.map +1 -0
- package/dist/hooks/useEntityDisplay.js +136 -0
- package/dist/hooks/useEntityDisplay.js.map +1 -0
- package/dist/hooks/useEntityDisplayTitle.js +34 -0
- package/dist/hooks/useEntityDisplayTitle.js.map +1 -0
- package/dist/hooks/useHistory.js +137 -0
- package/dist/hooks/useHistory.js.map +1 -0
- package/dist/hooks/useRecordActions.d.ts +28 -6
- package/dist/hooks/useRecordActions.js +108 -0
- package/dist/hooks/useRecordActions.js.map +1 -0
- package/dist/hooks/useReferencePaths.d.ts +21 -0
- package/dist/hooks/useReferencePaths.js +32 -0
- package/dist/hooks/useReferencePaths.js.map +1 -0
- package/dist/hooks/useResolvedNavigationFrom.js +83 -0
- package/dist/hooks/useResolvedNavigationFrom.js.map +1 -0
- package/dist/hooks/useResolvedUsers.js +109 -0
- package/dist/hooks/useResolvedUsers.js.map +1 -0
- package/dist/hooks/useSelectionDialog.js +53 -0
- package/dist/hooks/useSelectionDialog.js.map +1 -0
- package/dist/hooks/useSideDialogsController.js +8 -0
- package/dist/hooks/useSideDialogsController.js.map +1 -0
- package/dist/hooks/useSidePanel.js +15 -0
- package/dist/hooks/useSidePanel.js.map +1 -0
- package/dist/hooks/useStorageReferenceResolver.d.ts +25 -0
- package/dist/hooks/useStorageReferenceResolver.js +49 -0
- package/dist/hooks/useStorageReferenceResolver.js.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +149 -3793
- package/dist/preview/PropertyPreview.js +260 -0
- package/dist/preview/PropertyPreview.js.map +1 -0
- package/dist/preview/compact_text.js +52 -0
- package/dist/preview/compact_text.js.map +1 -0
- package/dist/preview/components/ArrayEnumPreview.js +24 -0
- package/dist/preview/components/ArrayEnumPreview.js.map +1 -0
- package/dist/preview/components/BooleanPreview.js +25 -0
- package/dist/preview/components/BooleanPreview.js.map +1 -0
- package/dist/preview/components/DatePreview.d.ts +3 -2
- package/dist/preview/components/DatePreview.js +87 -0
- package/dist/preview/components/DatePreview.js.map +1 -0
- package/dist/preview/components/EmptyValue.js +13 -0
- package/dist/preview/components/EmptyValue.js.map +1 -0
- package/dist/preview/components/EnumValuesChip.js +26 -0
- package/dist/preview/components/EnumValuesChip.js.map +1 -0
- package/dist/preview/components/ImagePreview.d.ts +7 -1
- package/dist/preview/components/ImagePreview.js +112 -0
- package/dist/preview/components/ImagePreview.js.map +1 -0
- package/dist/preview/components/InlineEntityListPreview.js +31 -0
- package/dist/preview/components/InlineEntityListPreview.js.map +1 -0
- package/dist/preview/components/ReferencePreview.js +162 -0
- package/dist/preview/components/ReferencePreview.js.map +1 -0
- package/dist/preview/components/RelationPreview.js +196 -0
- package/dist/preview/components/RelationPreview.js.map +1 -0
- package/dist/preview/components/StorageMarkdown.d.ts +11 -0
- package/dist/preview/components/StorageMarkdown.js +49 -0
- package/dist/preview/components/StorageMarkdown.js.map +1 -0
- package/dist/preview/components/StorageThumbnail.js +183 -0
- package/dist/preview/components/StorageThumbnail.js.map +1 -0
- package/dist/preview/components/UrlComponentPreview.d.ts +3 -1
- package/dist/preview/components/UrlComponentPreview.js +88 -0
- package/dist/preview/components/UrlComponentPreview.js.map +1 -0
- package/dist/preview/components/UserPreview.js +30 -0
- package/dist/preview/components/UserPreview.js.map +1 -0
- package/dist/preview/components/date_fns_locales.js +124 -0
- package/dist/preview/components/date_fns_locales.js.map +1 -0
- package/dist/preview/components/storageRenditions.d.ts +10 -0
- package/dist/preview/components/storageRenditions.js +93 -0
- package/dist/preview/components/storageRenditions.js.map +1 -0
- package/dist/preview/property_previews/ArrayOfMapsPreview.js +44 -0
- package/dist/preview/property_previews/ArrayOfMapsPreview.js.map +1 -0
- package/dist/preview/property_previews/ArrayOfReferencesPreview.js +48 -0
- package/dist/preview/property_previews/ArrayOfReferencesPreview.js.map +1 -0
- package/dist/preview/property_previews/ArrayOfRelationsPreview.js +50 -0
- package/dist/preview/property_previews/ArrayOfRelationsPreview.js.map +1 -0
- package/dist/preview/property_previews/ArrayOfStorageComponentsPreview.js +30 -0
- package/dist/preview/property_previews/ArrayOfStorageComponentsPreview.js.map +1 -0
- package/dist/preview/property_previews/ArrayOfStringsPreview.js +42 -0
- package/dist/preview/property_previews/ArrayOfStringsPreview.js.map +1 -0
- package/dist/preview/property_previews/ArrayOneOfPreview.js +47 -0
- package/dist/preview/property_previews/ArrayOneOfPreview.js.map +1 -0
- package/dist/preview/property_previews/ArrayPropertyEnumPreview.js +25 -0
- package/dist/preview/property_previews/ArrayPropertyEnumPreview.js.map +1 -0
- package/dist/preview/property_previews/ArrayPropertyPreview.js +48 -0
- package/dist/preview/property_previews/ArrayPropertyPreview.js.map +1 -0
- package/dist/preview/property_previews/MapPropertyPreview.js +137 -0
- package/dist/preview/property_previews/MapPropertyPreview.js.map +1 -0
- package/dist/preview/property_previews/NumberPropertyPreview.js +34 -0
- package/dist/preview/property_previews/NumberPropertyPreview.js.map +1 -0
- package/dist/preview/property_previews/SkeletonPropertyComponent.js +151 -0
- package/dist/preview/property_previews/SkeletonPropertyComponent.js.map +1 -0
- package/dist/preview/property_previews/StringPropertyPreview.js +49 -0
- package/dist/preview/property_previews/StringPropertyPreview.js.map +1 -0
- package/dist/preview/util.d.ts +8 -3
- package/dist/{util-CC0ozHoD.js → preview/util.js} +13 -6
- package/dist/preview/util.js.map +1 -0
- package/dist/routes/CustomViewRoute.js +26 -0
- package/dist/routes/CustomViewRoute.js.map +1 -0
- package/dist/routes/RebaseRoute.js +311 -0
- package/dist/routes/RebaseRoute.js.map +1 -0
- package/dist/selection/SelectionMenu.js +90 -0
- package/dist/selection/SelectionMenu.js.map +1 -0
- package/dist/selection/resolve_selection.js +79 -0
- package/dist/selection/resolve_selection.js.map +1 -0
- package/dist/util/caller_scopes.d.ts +15 -0
- package/dist/util/caller_scopes.js +25 -0
- package/dist/util/caller_scopes.js.map +1 -0
- package/dist/util/collection_open_mode.d.ts +20 -0
- package/dist/util/collection_open_mode.js +32 -0
- package/dist/util/collection_open_mode.js.map +1 -0
- package/dist/util/dataControllerAdapter.js +65 -0
- package/dist/util/dataControllerAdapter.js.map +1 -0
- package/dist/util/entity_actions.d.ts +42 -1
- package/dist/util/entity_actions.js +77 -0
- package/dist/util/entity_actions.js.map +1 -0
- package/dist/util/entity_pages.d.ts +37 -3
- package/dist/util/entity_pages.js +71 -0
- package/dist/util/entity_pages.js.map +1 -0
- package/dist/util/find_entities_by_ids.d.ts +23 -0
- package/dist/util/find_entities_by_ids.js +55 -0
- package/dist/util/find_entities_by_ids.js.map +1 -0
- package/dist/util/fit_inline_actions.d.ts +20 -0
- package/dist/util/fit_inline_actions.js +40 -0
- package/dist/util/fit_inline_actions.js.map +1 -0
- package/dist/util/format_collection_date.d.ts +29 -0
- package/dist/util/format_collection_date.js +60 -0
- package/dist/util/format_collection_date.js.map +1 -0
- package/dist/util/map_with_concurrency.js +46 -0
- package/dist/util/map_with_concurrency.js.map +1 -0
- package/dist/util/navigation_utils.js +44 -0
- package/dist/util/navigation_utils.js.map +1 -0
- package/dist/util/number_format.js +33 -0
- package/dist/util/number_format.js.map +1 -0
- package/dist/util/previews.js +71 -0
- package/dist/util/previews.js.map +1 -0
- package/dist/util/propertyConfigMapper.js +83 -0
- package/dist/util/propertyConfigMapper.js.map +1 -0
- package/dist/util/property_utils.js +141 -0
- package/dist/util/property_utils.js.map +1 -0
- package/dist/util/resolutions.js +55 -0
- package/dist/util/resolutions.js.map +1 -0
- package/dist/util/view_constants.js +35 -0
- package/dist/util/view_constants.js.map +1 -0
- package/dist/util/view_mode.js +112 -0
- package/dist/util/view_mode.js.map +1 -0
- package/package.json +13 -9
- package/dist/CollectionEditorDialog-DLHCka00.js +0 -3630
- package/dist/CollectionEditorDialog-DLHCka00.js.map +0 -1
- package/dist/JsonPreviewBinding-v0w3H0fp.js.map +0 -1
- package/dist/PropertyEditView-_pu5hzZn.js +0 -3837
- package/dist/PropertyEditView-_pu5hzZn.js.map +0 -1
- package/dist/RouterCollectionsStudioView-ChPNl_uU.js +0 -212
- package/dist/RouterCollectionsStudioView-ChPNl_uU.js.map +0 -1
- package/dist/SchemaChangeDialog-BeP0A4MJ.js.map +0 -1
- package/dist/collection_editor/ui/CollectionViewHeaderAction.d.ts +0 -13
- package/dist/collection_editor/ui/PropertyAddColumnComponent.d.ts +0 -8
- package/dist/collection_editor_ui.js.map +0 -1
- package/dist/editor.js.map +0 -1
- package/dist/export-4bJWdlDK.js +0 -520
- package/dist/export-4bJWdlDK.js.map +0 -1
- package/dist/history-BElrZ5Rw.js +0 -313
- package/dist/history-BElrZ5Rw.js.map +0 -1
- package/dist/import-TCgkTVlS.js.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/markdown-CCqp8ibf.js.map +0 -1
- package/dist/rolldown-runtime-D7D4PA-g.js +0 -13
- package/dist/util-CC0ozHoD.js.map +0 -1
- package/dist/util-DybQBkug.js +0 -26390
- package/dist/util-DybQBkug.js.map +0 -1
|
@@ -0,0 +1,616 @@
|
|
|
1
|
+
import { useCollectionsConfigController } from "../../useCollectionsConfigController.js";
|
|
2
|
+
import { useEffect, useMemo, useState } from "react";
|
|
3
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
4
|
+
import { Button, Chip, CircularProgress, Container, Dialog, DialogActions, DialogContent, DialogTitle, IconButton, KeyIcon, MultiSelect, MultiSelectItem, Paper, Select, SelectItem, TextField, Tooltip, Trash2Icon, Typography, cls, defaultBorderMixin, iconSize } from "@rebasepro/ui";
|
|
5
|
+
import { getGeneratedPolicyNames, getTableName, policyToSecurityRule } from "@rebasepro/common";
|
|
6
|
+
import { useRebaseContext, useTranslation } from "@rebasepro/app";
|
|
7
|
+
import { useFormex } from "@rebasepro/forms";
|
|
8
|
+
import { RLS_ROLES_SQL, RLS_UID_SQL, isPostgresCollectionConfig } from "@rebasepro/types";
|
|
9
|
+
import { getPolicyNamesForRule } from "@rebasepro/utils";
|
|
10
|
+
//#region src/collection_editor/ui/collection_editor/CollectionRLSTab.tsx
|
|
11
|
+
/**
|
|
12
|
+
* Validates and double-quotes a SQL identifier to prevent injection.
|
|
13
|
+
* Only allows safe Postgres identifiers (letters, digits, underscores).
|
|
14
|
+
* Throws if the identifier contains unsafe characters.
|
|
15
|
+
*/
|
|
16
|
+
function sanitizeSqlIdentifier(name) {
|
|
17
|
+
if (!/^[a-zA-Z_][a-zA-Z0-9_]*$/.test(name)) throw new Error(`Invalid SQL identifier: "${name}". Only letters, digits, and underscores are allowed.`);
|
|
18
|
+
return `"${name}"`;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* `pg_policies` reports the operation and the permissive flag in upper case;
|
|
22
|
+
* `SecurityRule` names them in lower case. These two used to be `.toLowerCase()`
|
|
23
|
+
* assigned straight into a `SecurityRule`, which typechecks only against a
|
|
24
|
+
* `string` field — and this file declared its own local `SecurityRule` with
|
|
25
|
+
* `operation?: string`, so it did. Against the real type it does not: an
|
|
26
|
+
* unrecognised `cmd` would have been written into the collection as a policy
|
|
27
|
+
* operation that compiles to nothing.
|
|
28
|
+
*/
|
|
29
|
+
function toSecurityOperation(cmd) {
|
|
30
|
+
switch (cmd) {
|
|
31
|
+
case "SELECT": return "select";
|
|
32
|
+
case "INSERT": return "insert";
|
|
33
|
+
case "UPDATE": return "update";
|
|
34
|
+
case "DELETE": return "delete";
|
|
35
|
+
case "ALL": return "all";
|
|
36
|
+
default: return;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
function toSecurityMode(permissive) {
|
|
40
|
+
if (!permissive) return void 0;
|
|
41
|
+
return permissive === "RESTRICTIVE" ? "restrictive" : "permissive";
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Build a rule from what the inline editor saved. Its `roles` are application
|
|
45
|
+
* roles; a live policy's are its `TO` list, which `policyToSecurityRule` reads.
|
|
46
|
+
*
|
|
47
|
+
* The WITH CHECK is kept whether or not there is a USING: every INSERT-only
|
|
48
|
+
* policy has only a check, and a roles-only rule with no roles compiles to
|
|
49
|
+
* `WITH CHECK (false)`, which stops every insert.
|
|
50
|
+
*/
|
|
51
|
+
function toSecurityRule(policy) {
|
|
52
|
+
return {
|
|
53
|
+
name: policy.policyname ?? "",
|
|
54
|
+
operation: toSecurityOperation(policy.cmd),
|
|
55
|
+
mode: toSecurityMode(policy.permissive),
|
|
56
|
+
roles: policy.roles ? [...policy.roles] : void 0,
|
|
57
|
+
...policy.qual ? { using: policy.qual } : {},
|
|
58
|
+
...policy.with_check ? { withCheck: policy.with_check } : {}
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* The rule with what the editor changed, and nothing else.
|
|
63
|
+
*
|
|
64
|
+
* The editor shows a rule as a policy — name, command, mode, application roles
|
|
65
|
+
* and raw USING / WITH CHECK — and has no field for `ownerField`, `access`, a
|
|
66
|
+
* structured `condition`, `operations` (it shows them as ALL) or `pgRoles`.
|
|
67
|
+
* The rule used to be rebuilt from the form, which dropped all of them:
|
|
68
|
+
* renaming an owner rule saved a roles-only rule with no roles, which compiles
|
|
69
|
+
* to `USING (false)`. So a field is only written when it differs from what the
|
|
70
|
+
* editor was opened with. A condition typed in replaces the rule's condition
|
|
71
|
+
* whole — the forms are exclusive.
|
|
72
|
+
*
|
|
73
|
+
* Studio's RLS editor does the same in `policyRules.ts`; there the editor's
|
|
74
|
+
* roles are the policy's `TO` list, `pgRoles`, and here they are `roles`.
|
|
75
|
+
*/
|
|
76
|
+
function editedRule(rule, original, edited) {
|
|
77
|
+
const next = toSecurityRule(edited);
|
|
78
|
+
const result = { ...rule };
|
|
79
|
+
if ((edited.policyname ?? "") !== original.policyname) if (next.name) result.name = next.name;
|
|
80
|
+
else delete result.name;
|
|
81
|
+
if (edited.cmd !== original.cmd) {
|
|
82
|
+
delete result.operations;
|
|
83
|
+
result.operation = next.operation;
|
|
84
|
+
}
|
|
85
|
+
if (edited.permissive !== original.permissive) result.mode = next.mode;
|
|
86
|
+
if (!sameRoles(edited.roles, original.roles)) if (next.roles && next.roles.length > 0) result.roles = next.roles;
|
|
87
|
+
else delete result.roles;
|
|
88
|
+
if ((edited.qual || null) !== (original.qual || null) || (edited.with_check || null) !== (original.with_check || null)) {
|
|
89
|
+
delete result.ownerField;
|
|
90
|
+
delete result.access;
|
|
91
|
+
delete result.condition;
|
|
92
|
+
delete result.check;
|
|
93
|
+
delete result.using;
|
|
94
|
+
delete result.withCheck;
|
|
95
|
+
if (next.using) result.using = next.using;
|
|
96
|
+
if (next.withCheck) result.withCheck = next.withCheck;
|
|
97
|
+
}
|
|
98
|
+
return result;
|
|
99
|
+
}
|
|
100
|
+
function sameRoles(a, b) {
|
|
101
|
+
const left = [...a ?? []].sort();
|
|
102
|
+
const right = [...b ?? []].sort();
|
|
103
|
+
return left.length === right.length && left.every((role, i) => role === right[i]);
|
|
104
|
+
}
|
|
105
|
+
function CollectionRLSTab() {
|
|
106
|
+
const { t } = useTranslation();
|
|
107
|
+
const { values, setFieldValue } = useFormex();
|
|
108
|
+
const [editing, setEditing] = useState(null);
|
|
109
|
+
const { readOnly, readOnlyReason } = useCollectionsConfigController();
|
|
110
|
+
const readOnlyTitle = readOnlyReason || "This backend does not accept collection edits.";
|
|
111
|
+
const rules = values.securityRules || [];
|
|
112
|
+
const { databaseAdmin } = useRebaseContext();
|
|
113
|
+
const [dbPolicies, setDbPolicies] = useState([]);
|
|
114
|
+
const [isLoadingDb, setIsLoadingDb] = useState(false);
|
|
115
|
+
const tableName = getTableName(values);
|
|
116
|
+
const schemaName = isPostgresCollectionConfig(values) && values.schema ? values.schema : "public";
|
|
117
|
+
useEffect(() => {
|
|
118
|
+
const fetchLivePolicies = async () => {
|
|
119
|
+
if (!tableName || !databaseAdmin?.executeSql) return;
|
|
120
|
+
setIsLoadingDb(true);
|
|
121
|
+
try {
|
|
122
|
+
const rawTableName = sanitizeSqlIdentifier(tableName).slice(1, -1);
|
|
123
|
+
const sql = `
|
|
124
|
+
SELECT policyname, permissive, roles, cmd, qual, with_check
|
|
125
|
+
FROM pg_policies
|
|
126
|
+
WHERE schemaname = '${sanitizeSqlIdentifier(schemaName).slice(1, -1)}' AND tablename = '${rawTableName}';
|
|
127
|
+
`;
|
|
128
|
+
const result = await databaseAdmin.executeSql(sql);
|
|
129
|
+
const extractRows = (res) => {
|
|
130
|
+
if (res && typeof res === "object" && "rows" in res && Array.isArray(res.rows)) return res.rows;
|
|
131
|
+
if (Array.isArray(res)) return res;
|
|
132
|
+
return [];
|
|
133
|
+
};
|
|
134
|
+
const policies = extractRows(result).map((p) => {
|
|
135
|
+
let parsedRoles = [];
|
|
136
|
+
const r = p.roles || p.ROLES;
|
|
137
|
+
if (Array.isArray(r)) parsedRoles = r;
|
|
138
|
+
else if (typeof r === "string") parsedRoles = r.replace(/^{|}$/g, "").split(",").map((s) => s.trim());
|
|
139
|
+
return {
|
|
140
|
+
policyname: p.policyname || p.POLICYNAME || "",
|
|
141
|
+
tablename: tableName,
|
|
142
|
+
permissive: p.permissive || p.PERMISSIVE || "PERMISSIVE",
|
|
143
|
+
roles: parsedRoles,
|
|
144
|
+
cmd: p.cmd || p.CMD || "ALL",
|
|
145
|
+
qual: p.qual || p.QUAL || null,
|
|
146
|
+
with_check: p.with_check || p.WITH_CHECK || null
|
|
147
|
+
};
|
|
148
|
+
});
|
|
149
|
+
setDbPolicies(policies);
|
|
150
|
+
} catch (e) {
|
|
151
|
+
console.error("Failed to fetch DB policies", e);
|
|
152
|
+
} finally {
|
|
153
|
+
setIsLoadingDb(false);
|
|
154
|
+
}
|
|
155
|
+
};
|
|
156
|
+
fetchLivePolicies();
|
|
157
|
+
}, [
|
|
158
|
+
databaseAdmin,
|
|
159
|
+
tableName,
|
|
160
|
+
schemaName
|
|
161
|
+
]);
|
|
162
|
+
/**
|
|
163
|
+
* Application roles available to `SecurityRule.roles`.
|
|
164
|
+
*
|
|
165
|
+
* Deliberately NOT `fetchAvailableRoles` — that returns native pg_roles
|
|
166
|
+
* (postgres, rebase_user, …), which can never satisfy an application-role
|
|
167
|
+
* condition.
|
|
168
|
+
*/
|
|
169
|
+
const [availableRoles, setAvailableRoles] = useState([]);
|
|
170
|
+
const [rolesUnavailable, setRolesUnavailable] = useState(false);
|
|
171
|
+
useEffect(() => {
|
|
172
|
+
let mounted = true;
|
|
173
|
+
const fetchRoles = async () => {
|
|
174
|
+
if (!databaseAdmin?.fetchApplicationRoles) {
|
|
175
|
+
if (mounted) setRolesUnavailable(true);
|
|
176
|
+
return;
|
|
177
|
+
}
|
|
178
|
+
try {
|
|
179
|
+
const fetched = await databaseAdmin.fetchApplicationRoles();
|
|
180
|
+
if (mounted) {
|
|
181
|
+
setAvailableRoles(fetched);
|
|
182
|
+
setRolesUnavailable(false);
|
|
183
|
+
}
|
|
184
|
+
} catch (e) {
|
|
185
|
+
console.error("Failed to fetch application roles", e);
|
|
186
|
+
if (mounted) setRolesUnavailable(true);
|
|
187
|
+
}
|
|
188
|
+
};
|
|
189
|
+
fetchRoles();
|
|
190
|
+
return () => {
|
|
191
|
+
mounted = false;
|
|
192
|
+
};
|
|
193
|
+
}, [databaseAdmin]);
|
|
194
|
+
const generatedPolicyNames = useMemo(() => {
|
|
195
|
+
if (!tableName) return /* @__PURE__ */ new Set();
|
|
196
|
+
return getGeneratedPolicyNames(values);
|
|
197
|
+
}, [tableName, values]);
|
|
198
|
+
const unmappedPolicies = dbPolicies.filter((dp) => !generatedPolicyNames.has(dp.policyname));
|
|
199
|
+
const handleSave = (newPolicy) => {
|
|
200
|
+
if (!editing) return;
|
|
201
|
+
const newRules = editing === "new" ? [...rules, toSecurityRule(newPolicy)] : rules.map((r, i) => i === editing.index ? editedRule(r, editing.policy, newPolicy) : r);
|
|
202
|
+
setFieldValue("securityRules", newRules);
|
|
203
|
+
setEditing(null);
|
|
204
|
+
};
|
|
205
|
+
return /* @__PURE__ */ jsx("div", {
|
|
206
|
+
className: "overflow-auto my-auto",
|
|
207
|
+
children: /* @__PURE__ */ jsxs(Container, {
|
|
208
|
+
maxWidth: "4xl",
|
|
209
|
+
className: "flex flex-col gap-4 p-8 m-auto",
|
|
210
|
+
children: [/* @__PURE__ */ jsxs("div", {
|
|
211
|
+
className: "w-full flex flex-col",
|
|
212
|
+
children: [
|
|
213
|
+
/* @__PURE__ */ jsxs("div", {
|
|
214
|
+
className: "flex items-center justify-between mb-8",
|
|
215
|
+
children: [/* @__PURE__ */ jsx(Typography, {
|
|
216
|
+
variant: "h5",
|
|
217
|
+
children: "Row Level Security"
|
|
218
|
+
}), /* @__PURE__ */ jsx(Tooltip, {
|
|
219
|
+
title: readOnly ? readOnlyTitle : void 0,
|
|
220
|
+
children: /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(Button, {
|
|
221
|
+
variant: "filled",
|
|
222
|
+
color: "neutral",
|
|
223
|
+
disabled: readOnly,
|
|
224
|
+
onClick: () => setEditing("new"),
|
|
225
|
+
children: "CREATE POLICY"
|
|
226
|
+
}) })
|
|
227
|
+
})]
|
|
228
|
+
}),
|
|
229
|
+
rules.length === 0 ? /* @__PURE__ */ jsx("div", {
|
|
230
|
+
className: "flex-grow flex items-center justify-center text-text-disabled py-12",
|
|
231
|
+
children: /* @__PURE__ */ jsx(Typography, {
|
|
232
|
+
variant: "body2",
|
|
233
|
+
children: "No RLS policies defined for this collection."
|
|
234
|
+
})
|
|
235
|
+
}) : /* @__PURE__ */ jsx("div", {
|
|
236
|
+
className: "flex flex-col gap-3",
|
|
237
|
+
children: rules.map((rule, index) => /* @__PURE__ */ jsxs(Paper, {
|
|
238
|
+
className: "p-4 border border-transparent hover:border-surface-200 dark:hover:border-surface-700 rounded-lg flex flex-col sm:flex-row sm:items-center justify-between gap-4 transition-colors bg-surface-card shadow-sm",
|
|
239
|
+
children: [/* @__PURE__ */ jsxs("div", {
|
|
240
|
+
className: "flex flex-col gap-1.5 min-w-0",
|
|
241
|
+
children: [/* @__PURE__ */ jsxs("div", {
|
|
242
|
+
className: "flex items-center gap-2",
|
|
243
|
+
children: [/* @__PURE__ */ jsx(KeyIcon, {
|
|
244
|
+
size: iconSize.smallest,
|
|
245
|
+
className: "text-text-disabled dark:text-text-disabled-dark shrink-0"
|
|
246
|
+
}), /* @__PURE__ */ jsx(Typography, {
|
|
247
|
+
variant: "subtitle2",
|
|
248
|
+
className: "truncate",
|
|
249
|
+
children: rule.name || (tableName ? getPolicyNamesForRule(rule, tableName).join(", ") : "Unnamed policy")
|
|
250
|
+
})]
|
|
251
|
+
}), /* @__PURE__ */ jsxs("div", {
|
|
252
|
+
className: "flex gap-2 text-xs pl-6 overflow-x-auto hide-scrollbar",
|
|
253
|
+
children: [/* @__PURE__ */ jsxs(Chip, {
|
|
254
|
+
size: "small",
|
|
255
|
+
className: "bg-surface-raised text-text-secondary border-none",
|
|
256
|
+
children: ["Action: ", rule.operation || "ALL"]
|
|
257
|
+
}), /* @__PURE__ */ jsxs(Chip, {
|
|
258
|
+
size: "small",
|
|
259
|
+
className: "bg-surface-raised text-text-secondary border-none",
|
|
260
|
+
children: ["Roles: ", Array.isArray(rule.roles) ? rule.roles.join(", ") : rule.roles]
|
|
261
|
+
})]
|
|
262
|
+
})]
|
|
263
|
+
}), /* @__PURE__ */ jsxs("div", {
|
|
264
|
+
className: "flex items-center gap-1 sm:gap-2 shrink-0",
|
|
265
|
+
children: [/* @__PURE__ */ jsx(Button, {
|
|
266
|
+
size: "small",
|
|
267
|
+
variant: "text",
|
|
268
|
+
disabled: readOnly,
|
|
269
|
+
onClick: () => setEditing({
|
|
270
|
+
index,
|
|
271
|
+
policy: {
|
|
272
|
+
policyname: rule.name ?? "",
|
|
273
|
+
tablename: tableName || "your_table",
|
|
274
|
+
permissive: (rule.mode || "permissive").toUpperCase(),
|
|
275
|
+
cmd: (rule.operation || "ALL").toUpperCase(),
|
|
276
|
+
roles: [...rule.roles ?? []],
|
|
277
|
+
qual: rule.using || null,
|
|
278
|
+
with_check: rule.withCheck || null
|
|
279
|
+
}
|
|
280
|
+
}),
|
|
281
|
+
children: "EDIT"
|
|
282
|
+
}), /* @__PURE__ */ jsx(IconButton, {
|
|
283
|
+
"aria-label": t("delete"),
|
|
284
|
+
size: "small",
|
|
285
|
+
disabled: readOnly,
|
|
286
|
+
onClick: () => {
|
|
287
|
+
setFieldValue("securityRules", rules.filter((_r, i) => i !== index));
|
|
288
|
+
},
|
|
289
|
+
children: /* @__PURE__ */ jsx(Trash2Icon, {
|
|
290
|
+
size: iconSize.smallest,
|
|
291
|
+
className: "text-text-secondary dark:text-text-secondary-dark hover:text-red-500 dark:hover:text-red-500 transition-colors"
|
|
292
|
+
})
|
|
293
|
+
})]
|
|
294
|
+
})]
|
|
295
|
+
}, `${index}:${rule.name ?? ""}`))
|
|
296
|
+
}),
|
|
297
|
+
isLoadingDb && unmappedPolicies.length === 0 && /* @__PURE__ */ jsx("div", {
|
|
298
|
+
className: "flex justify-center mt-8",
|
|
299
|
+
children: /* @__PURE__ */ jsx(CircularProgress, { size: "small" })
|
|
300
|
+
}),
|
|
301
|
+
!isLoadingDb && unmappedPolicies.length > 0 && /* @__PURE__ */ jsxs("div", {
|
|
302
|
+
className: "mt-12 flex flex-col gap-4",
|
|
303
|
+
children: [
|
|
304
|
+
/* @__PURE__ */ jsx(Typography, {
|
|
305
|
+
variant: "h6",
|
|
306
|
+
className: "text-text-secondary",
|
|
307
|
+
children: "Unmapped Database Policies"
|
|
308
|
+
}),
|
|
309
|
+
/* @__PURE__ */ jsx(Typography, {
|
|
310
|
+
variant: "body2",
|
|
311
|
+
className: "text-text-secondary opacity-80 -mt-2",
|
|
312
|
+
children: "These policies exist in your Postgres database but are not mapped to this collection's codebase configuration."
|
|
313
|
+
}),
|
|
314
|
+
/* @__PURE__ */ jsx("div", {
|
|
315
|
+
className: "flex flex-col gap-3",
|
|
316
|
+
children: unmappedPolicies.map((dp) => /* @__PURE__ */ jsxs(Paper, {
|
|
317
|
+
className: "p-4 border border-orange-200 dark:border-orange-900/50 bg-orange-50/50 dark:bg-orange-900/10 rounded-lg flex flex-col sm:flex-row sm:items-center justify-between gap-4 transition-colors",
|
|
318
|
+
children: [/* @__PURE__ */ jsxs("div", {
|
|
319
|
+
className: "flex flex-col gap-1.5 min-w-0",
|
|
320
|
+
children: [/* @__PURE__ */ jsxs("div", {
|
|
321
|
+
className: "flex items-center gap-2",
|
|
322
|
+
children: [
|
|
323
|
+
/* @__PURE__ */ jsx(KeyIcon, {
|
|
324
|
+
size: iconSize.smallest,
|
|
325
|
+
className: "text-orange-500 shrink-0"
|
|
326
|
+
}),
|
|
327
|
+
/* @__PURE__ */ jsx(Typography, {
|
|
328
|
+
variant: "subtitle2",
|
|
329
|
+
className: "truncate",
|
|
330
|
+
children: dp.policyname
|
|
331
|
+
}),
|
|
332
|
+
/* @__PURE__ */ jsx(Tooltip, {
|
|
333
|
+
title: "This policy is live in the database but missing from your codebase schema.",
|
|
334
|
+
children: /* @__PURE__ */ jsx("div", {
|
|
335
|
+
className: "px-1.5 py-0.5 rounded text-[10px] uppercase bg-orange-500/10 text-orange-600 border border-orange-500/20 shrink-0",
|
|
336
|
+
children: "DB Only"
|
|
337
|
+
})
|
|
338
|
+
})
|
|
339
|
+
]
|
|
340
|
+
}), /* @__PURE__ */ jsxs("div", {
|
|
341
|
+
className: "flex gap-2 text-xs pl-6 overflow-x-auto hide-scrollbar",
|
|
342
|
+
children: [/* @__PURE__ */ jsxs(Chip, {
|
|
343
|
+
size: "small",
|
|
344
|
+
className: "bg-surface-card text-text-secondary border-none",
|
|
345
|
+
children: ["Action: ", dp.cmd || "ALL"]
|
|
346
|
+
}), /* @__PURE__ */ jsxs(Chip, {
|
|
347
|
+
size: "small",
|
|
348
|
+
className: "bg-surface-card text-text-secondary border-none",
|
|
349
|
+
children: ["Roles: ", Array.isArray(dp.roles) ? dp.roles.join(", ") : dp.roles]
|
|
350
|
+
})]
|
|
351
|
+
})]
|
|
352
|
+
}), /* @__PURE__ */ jsx("div", {
|
|
353
|
+
className: "flex items-center gap-1 sm:gap-2 shrink-0",
|
|
354
|
+
children: /* @__PURE__ */ jsx(Tooltip, {
|
|
355
|
+
title: readOnly ? readOnlyTitle : void 0,
|
|
356
|
+
children: /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(Button, {
|
|
357
|
+
size: "small",
|
|
358
|
+
variant: "outlined",
|
|
359
|
+
color: "primary",
|
|
360
|
+
disabled: readOnly,
|
|
361
|
+
onClick: () => {
|
|
362
|
+
const rule = policyToSecurityRule(dp);
|
|
363
|
+
setFieldValue("securityRules", [...rules, rule]);
|
|
364
|
+
},
|
|
365
|
+
children: "Import to codebase"
|
|
366
|
+
}) })
|
|
367
|
+
})
|
|
368
|
+
})]
|
|
369
|
+
}, dp.policyname))
|
|
370
|
+
})
|
|
371
|
+
]
|
|
372
|
+
})
|
|
373
|
+
]
|
|
374
|
+
}), /* @__PURE__ */ jsx(Dialog, {
|
|
375
|
+
open: !!editing,
|
|
376
|
+
onOpenChange: (open) => !open && setEditing(null),
|
|
377
|
+
maxWidth: "4xl",
|
|
378
|
+
children: editing && /* @__PURE__ */ jsx(InlinePolicyEditor, {
|
|
379
|
+
policy: editing === "new" ? void 0 : editing.policy,
|
|
380
|
+
table: tableName || "your_table",
|
|
381
|
+
schema: schemaName,
|
|
382
|
+
availableRoles,
|
|
383
|
+
rolesUnavailable,
|
|
384
|
+
onSave: handleSave,
|
|
385
|
+
onCancel: () => setEditing(null)
|
|
386
|
+
})
|
|
387
|
+
})]
|
|
388
|
+
})
|
|
389
|
+
});
|
|
390
|
+
}
|
|
391
|
+
var COMMAND_OPTIONS = [
|
|
392
|
+
"ALL",
|
|
393
|
+
"SELECT",
|
|
394
|
+
"INSERT",
|
|
395
|
+
"UPDATE",
|
|
396
|
+
"DELETE"
|
|
397
|
+
];
|
|
398
|
+
function InlinePolicyEditor({ policy, table, schema, availableRoles, rolesUnavailable, onSave, onCancel }) {
|
|
399
|
+
const { t } = useTranslation();
|
|
400
|
+
const [name, setName] = useState(policy?.policyname || "");
|
|
401
|
+
const [behavior, setBehavior] = useState(policy?.permissive || "PERMISSIVE");
|
|
402
|
+
const [command, setCommand] = useState(policy?.cmd || "ALL");
|
|
403
|
+
const [roles, setRoles] = useState(policy?.roles ? Array.isArray(policy.roles) ? policy.roles : [policy.roles] : []);
|
|
404
|
+
const [customRole, setCustomRole] = useState("");
|
|
405
|
+
const [usingExpr, setUsingExpr] = useState(policy?.qual || "");
|
|
406
|
+
const [checkExpr, setCheckExpr] = useState(policy?.with_check || "");
|
|
407
|
+
const showCheck = command === "ALL" || command === "INSERT" || command === "UPDATE";
|
|
408
|
+
/**
|
|
409
|
+
* Roles offered in the dropdown: those in use in the project, plus any the
|
|
410
|
+
* rule already carries. The union matters — application roles are derived
|
|
411
|
+
* from what users hold, so a role that is referenced here but assigned to
|
|
412
|
+
* nobody would otherwise vanish from its own policy on the next save.
|
|
413
|
+
*/
|
|
414
|
+
const roleOptions = useMemo(() => Array.from(/* @__PURE__ */ new Set([...availableRoles, ...roles])).sort(), [availableRoles, roles]);
|
|
415
|
+
const addCustomRole = () => {
|
|
416
|
+
const trimmed = customRole.trim();
|
|
417
|
+
if (!trimmed || roles.includes(trimmed)) {
|
|
418
|
+
setCustomRole("");
|
|
419
|
+
return;
|
|
420
|
+
}
|
|
421
|
+
setRoles([...roles, trimmed]);
|
|
422
|
+
setCustomRole("");
|
|
423
|
+
};
|
|
424
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
425
|
+
/* @__PURE__ */ jsxs(DialogTitle, {
|
|
426
|
+
variant: "h6",
|
|
427
|
+
children: [policy ? "Edit Policy" : "Create Policy", /* @__PURE__ */ jsxs("div", {
|
|
428
|
+
className: "text-sm font-normal text-text-secondary dark:text-text-secondary-dark tracking-wide mt-1",
|
|
429
|
+
children: ["Define RLS rules for ", /* @__PURE__ */ jsxs("span", {
|
|
430
|
+
className: "font-mono text-primary bg-primary-bg px-1 py-0.5 rounded",
|
|
431
|
+
children: [
|
|
432
|
+
schema,
|
|
433
|
+
".",
|
|
434
|
+
table
|
|
435
|
+
]
|
|
436
|
+
})]
|
|
437
|
+
})]
|
|
438
|
+
}),
|
|
439
|
+
/* @__PURE__ */ jsx(DialogContent, {
|
|
440
|
+
className: "p-4 md:p-6 border-t dark:border-surface-700 bg-surface-sheet",
|
|
441
|
+
includeMargin: false,
|
|
442
|
+
children: /* @__PURE__ */ jsxs(Paper, {
|
|
443
|
+
className: cls("p-4 md:p-6 flex flex-col gap-6 bg-surface-card border-none sm:border-solid rounded-none sm:rounded-xl", defaultBorderMixin),
|
|
444
|
+
children: [
|
|
445
|
+
/* @__PURE__ */ jsxs("div", {
|
|
446
|
+
className: "grid grid-cols-1 md:grid-cols-2 gap-4",
|
|
447
|
+
children: [/* @__PURE__ */ jsxs("div", {
|
|
448
|
+
className: "flex flex-col gap-1.5",
|
|
449
|
+
children: [/* @__PURE__ */ jsx(Typography, {
|
|
450
|
+
variant: "caption",
|
|
451
|
+
className: "uppercase tracking-wider text-text-secondary",
|
|
452
|
+
children: t("studio_policy_name")
|
|
453
|
+
}), /* @__PURE__ */ jsx(TextField, {
|
|
454
|
+
"aria-label": t("studio_policy_name"),
|
|
455
|
+
value: name,
|
|
456
|
+
onChange: (e) => setName(e.target.value),
|
|
457
|
+
placeholder: "e.g. allow_read_all"
|
|
458
|
+
})]
|
|
459
|
+
}), /* @__PURE__ */ jsxs("div", {
|
|
460
|
+
className: "flex flex-col gap-1.5",
|
|
461
|
+
children: [/* @__PURE__ */ jsx(Typography, {
|
|
462
|
+
variant: "caption",
|
|
463
|
+
className: "uppercase tracking-wider text-text-secondary",
|
|
464
|
+
children: "Behavior"
|
|
465
|
+
}), /* @__PURE__ */ jsxs(Select, {
|
|
466
|
+
value: behavior,
|
|
467
|
+
onValueChange: (val) => setBehavior(val),
|
|
468
|
+
position: "item-aligned",
|
|
469
|
+
children: [/* @__PURE__ */ jsx(SelectItem, {
|
|
470
|
+
value: "PERMISSIVE",
|
|
471
|
+
children: "Permissive"
|
|
472
|
+
}), /* @__PURE__ */ jsx(SelectItem, {
|
|
473
|
+
value: "RESTRICTIVE",
|
|
474
|
+
children: "Restrictive"
|
|
475
|
+
})]
|
|
476
|
+
})]
|
|
477
|
+
})]
|
|
478
|
+
}),
|
|
479
|
+
/* @__PURE__ */ jsxs("div", {
|
|
480
|
+
className: "flex flex-col gap-1.5",
|
|
481
|
+
children: [/* @__PURE__ */ jsx(Typography, {
|
|
482
|
+
variant: "caption",
|
|
483
|
+
className: "uppercase tracking-wider text-text-secondary",
|
|
484
|
+
children: "Command"
|
|
485
|
+
}), /* @__PURE__ */ jsx("div", {
|
|
486
|
+
className: "flex flex-wrap gap-1.5",
|
|
487
|
+
children: COMMAND_OPTIONS.map((cmd) => /* @__PURE__ */ jsx(Button, {
|
|
488
|
+
size: "small",
|
|
489
|
+
variant: command === cmd ? "filled" : "text",
|
|
490
|
+
color: "neutral",
|
|
491
|
+
onClick: () => setCommand(cmd),
|
|
492
|
+
children: cmd
|
|
493
|
+
}, cmd))
|
|
494
|
+
})]
|
|
495
|
+
}),
|
|
496
|
+
/* @__PURE__ */ jsxs("div", {
|
|
497
|
+
className: "flex flex-col gap-1.5",
|
|
498
|
+
children: [
|
|
499
|
+
/* @__PURE__ */ jsx(Typography, {
|
|
500
|
+
variant: "caption",
|
|
501
|
+
className: "uppercase tracking-wider text-text-secondary",
|
|
502
|
+
children: "Application Roles"
|
|
503
|
+
}),
|
|
504
|
+
/* @__PURE__ */ jsxs(Typography, {
|
|
505
|
+
variant: "caption",
|
|
506
|
+
className: "text-text-secondary opacity-80 -mt-1",
|
|
507
|
+
children: [
|
|
508
|
+
"Roles held by users of this project, matched via ",
|
|
509
|
+
/* @__PURE__ */ jsx("span", {
|
|
510
|
+
className: "font-mono",
|
|
511
|
+
children: RLS_ROLES_SQL
|
|
512
|
+
}),
|
|
513
|
+
". These are not PostgreSQL roles — leave empty to apply the policy to everyone."
|
|
514
|
+
]
|
|
515
|
+
}),
|
|
516
|
+
roleOptions.length > 0 && /* @__PURE__ */ jsx(MultiSelect, {
|
|
517
|
+
size: "small",
|
|
518
|
+
value: roles,
|
|
519
|
+
onValueChange: setRoles,
|
|
520
|
+
placeholder: "Select roles",
|
|
521
|
+
children: roleOptions.map((r) => /* @__PURE__ */ jsx(MultiSelectItem, {
|
|
522
|
+
value: r,
|
|
523
|
+
children: r
|
|
524
|
+
}, r))
|
|
525
|
+
}),
|
|
526
|
+
rolesUnavailable && roleOptions.length === 0 && /* @__PURE__ */ jsx(Typography, {
|
|
527
|
+
variant: "caption",
|
|
528
|
+
className: "text-text-secondary opacity-80",
|
|
529
|
+
children: "Could not load the project's roles — enter them manually below."
|
|
530
|
+
}),
|
|
531
|
+
!rolesUnavailable && roleOptions.length === 0 && /* @__PURE__ */ jsx(Typography, {
|
|
532
|
+
variant: "caption",
|
|
533
|
+
className: "text-text-secondary opacity-80",
|
|
534
|
+
children: "No roles are assigned to any user yet — enter one manually below."
|
|
535
|
+
}),
|
|
536
|
+
/* @__PURE__ */ jsxs("div", {
|
|
537
|
+
className: "flex gap-2 items-center",
|
|
538
|
+
children: [/* @__PURE__ */ jsx(TextField, {
|
|
539
|
+
size: "small",
|
|
540
|
+
"aria-label": "Add a custom role",
|
|
541
|
+
value: customRole,
|
|
542
|
+
onChange: (e) => setCustomRole(e.target.value),
|
|
543
|
+
onKeyDown: (e) => {
|
|
544
|
+
if (e.key === "Enter") {
|
|
545
|
+
e.preventDefault();
|
|
546
|
+
addCustomRole();
|
|
547
|
+
}
|
|
548
|
+
},
|
|
549
|
+
placeholder: "Add a role not listed, e.g. editor"
|
|
550
|
+
}), /* @__PURE__ */ jsx(Button, {
|
|
551
|
+
size: "small",
|
|
552
|
+
variant: "outlined",
|
|
553
|
+
color: "neutral",
|
|
554
|
+
disabled: !customRole.trim(),
|
|
555
|
+
onClick: addCustomRole,
|
|
556
|
+
children: "Add"
|
|
557
|
+
})]
|
|
558
|
+
})
|
|
559
|
+
]
|
|
560
|
+
}),
|
|
561
|
+
command !== "INSERT" && /* @__PURE__ */ jsxs("div", {
|
|
562
|
+
className: "flex flex-col gap-1.5",
|
|
563
|
+
children: [/* @__PURE__ */ jsx(Typography, {
|
|
564
|
+
variant: "caption",
|
|
565
|
+
className: "uppercase tracking-wider text-text-secondary",
|
|
566
|
+
children: t("studio_policy_using_expr")
|
|
567
|
+
}), /* @__PURE__ */ jsx(TextField, {
|
|
568
|
+
"aria-label": t("studio_policy_using_expr"),
|
|
569
|
+
value: usingExpr,
|
|
570
|
+
onChange: (e) => setUsingExpr(e.target.value),
|
|
571
|
+
placeholder: `e.g. ${RLS_UID_SQL} = uid`
|
|
572
|
+
})]
|
|
573
|
+
}),
|
|
574
|
+
showCheck && /* @__PURE__ */ jsxs("div", {
|
|
575
|
+
className: "flex flex-col gap-1.5",
|
|
576
|
+
children: [/* @__PURE__ */ jsx(Typography, {
|
|
577
|
+
variant: "caption",
|
|
578
|
+
className: "uppercase tracking-wider text-text-secondary",
|
|
579
|
+
children: t("studio_policy_check_expr")
|
|
580
|
+
}), /* @__PURE__ */ jsx(TextField, {
|
|
581
|
+
"aria-label": t("studio_policy_check_expr"),
|
|
582
|
+
value: checkExpr,
|
|
583
|
+
onChange: (e) => setCheckExpr(e.target.value),
|
|
584
|
+
placeholder: `e.g. ${RLS_UID_SQL} = uid`
|
|
585
|
+
})]
|
|
586
|
+
})
|
|
587
|
+
]
|
|
588
|
+
})
|
|
589
|
+
}),
|
|
590
|
+
/* @__PURE__ */ jsxs(DialogActions, { children: [/* @__PURE__ */ jsx(Button, {
|
|
591
|
+
size: "small",
|
|
592
|
+
variant: "text",
|
|
593
|
+
color: "neutral",
|
|
594
|
+
onClick: onCancel,
|
|
595
|
+
children: "Cancel"
|
|
596
|
+
}), /* @__PURE__ */ jsx(Button, {
|
|
597
|
+
size: "small",
|
|
598
|
+
variant: "filled",
|
|
599
|
+
color: "primary",
|
|
600
|
+
disabled: !name,
|
|
601
|
+
onClick: () => onSave({
|
|
602
|
+
policyname: name,
|
|
603
|
+
permissive: behavior,
|
|
604
|
+
cmd: command,
|
|
605
|
+
roles,
|
|
606
|
+
qual: usingExpr,
|
|
607
|
+
with_check: showCheck ? checkExpr : null
|
|
608
|
+
}),
|
|
609
|
+
children: "Save"
|
|
610
|
+
})] })
|
|
611
|
+
] });
|
|
612
|
+
}
|
|
613
|
+
//#endregion
|
|
614
|
+
export { CollectionRLSTab };
|
|
615
|
+
|
|
616
|
+
//# sourceMappingURL=CollectionRLSTab.js.map
|