@rebasepro/cms 0.30.1 → 0.31.0-canary.g902a0ce
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/README.md +8 -8
- package/dist/collection_editor/ConfigControllerProvider.js +25 -22
- package/dist/collection_editor/ConfigControllerProvider.js.map +1 -1
- package/dist/collection_editor/firestore_callee.d.ts +10 -0
- package/dist/collection_editor/firestore_callee.js +15 -0
- package/dist/collection_editor/firestore_callee.js.map +1 -0
- package/dist/collection_editor/firestore_edit.d.ts +62 -0
- package/dist/collection_editor/firestore_edit.js +339 -0
- package/dist/collection_editor/firestore_edit.js.map +1 -0
- package/dist/collection_editor/index.d.ts +2 -3
- package/dist/collection_editor/liveSchemaClient.d.ts +44 -22
- package/dist/collection_editor/liveSchemaClient.js +9 -3
- package/dist/collection_editor/liveSchemaClient.js.map +1 -1
- package/dist/collection_editor/property_column.d.ts +86 -0
- package/dist/collection_editor/property_column.js +719 -0
- package/dist/collection_editor/property_column.js.map +1 -0
- package/dist/collection_editor/serializable_types.d.ts +2 -24
- package/dist/collection_editor/serializable_utils.d.ts +1 -1
- package/dist/collection_editor/serializable_utils.js +2 -1
- package/dist/collection_editor/serializable_utils.js.map +1 -1
- package/dist/collection_editor/split_edit.d.ts +106 -0
- package/dist/collection_editor/split_edit.js +564 -0
- package/dist/collection_editor/split_edit.js.map +1 -0
- package/dist/collection_editor/split_edit_error.d.ts +25 -0
- package/dist/collection_editor/split_edit_error.js +35 -0
- package/dist/collection_editor/split_edit_error.js.map +1 -0
- package/dist/collection_editor/types/collection_editor_controller.d.ts +1 -1
- package/dist/collection_editor/types/config_controller.d.ts +67 -1
- package/dist/collection_editor/ui/collection_editor/CollectionEditorDialog.d.ts +6 -5
- package/dist/collection_editor/ui/collection_editor/CollectionEditorDialog.js +44 -12
- package/dist/collection_editor/ui/collection_editor/CollectionEditorDialog.js.map +1 -1
- package/dist/collection_editor/ui/collection_editor/CollectionPropertiesEditorForm.js +18 -3
- package/dist/collection_editor/ui/collection_editor/CollectionPropertiesEditorForm.js.map +1 -1
- package/dist/collection_editor/ui/collection_editor/CollectionRLSTab.js +94 -55
- package/dist/collection_editor/ui/collection_editor/CollectionRLSTab.js.map +1 -1
- package/dist/collection_editor/ui/collection_editor/CollectionRelationsTab.d.ts +2 -1
- package/dist/collection_editor/ui/collection_editor/DisplaySettingsForm.js.map +1 -1
- package/dist/collection_editor/ui/collection_editor/EnumForm.d.ts +1 -1
- package/dist/collection_editor/ui/collection_editor/EnumForm.js.map +1 -1
- package/dist/collection_editor/ui/collection_editor/GeneralSettingsForm.js +3 -3
- package/dist/collection_editor/ui/collection_editor/GeneralSettingsForm.js.map +1 -1
- package/dist/collection_editor/ui/collection_editor/KanbanConfigSection.js.map +1 -1
- package/dist/collection_editor/ui/collection_editor/PropertyEditView.d.ts +2 -3
- package/dist/collection_editor/ui/collection_editor/PropertyEditView.js +1 -1
- package/dist/collection_editor/ui/collection_editor/PropertyEditView.js.map +1 -1
- package/dist/collection_editor/ui/collection_editor/PropertyFieldPreview.d.ts +1 -1
- package/dist/collection_editor/ui/collection_editor/PropertyFieldPreview.js +1 -1
- package/dist/collection_editor/ui/collection_editor/PropertyFieldPreview.js.map +1 -1
- package/dist/collection_editor/ui/collection_editor/PropertyTree.d.ts +7 -4
- package/dist/collection_editor/ui/collection_editor/PropertyTree.js +15 -5
- package/dist/collection_editor/ui/collection_editor/PropertyTree.js.map +1 -1
- package/dist/collection_editor/ui/collection_editor/SchemaChangeDialog.js +1 -1
- package/dist/collection_editor/ui/collection_editor/SchemaChangeDialog.js.map +1 -1
- package/dist/collection_editor/ui/collection_editor/SchemaEditRefusalView.d.ts +20 -0
- package/dist/collection_editor/ui/collection_editor/SchemaEditRefusalView.js +74 -0
- package/dist/collection_editor/ui/collection_editor/SchemaEditRefusalView.js.map +1 -0
- package/dist/collection_editor/ui/collection_editor/import/CollectionEditorImportDataPreview.d.ts +1 -1
- package/dist/collection_editor/ui/collection_editor/import/CollectionEditorImportDataPreview.js.map +1 -1
- package/dist/collection_editor/ui/collection_editor/import/CollectionEditorImportMapping.js.map +1 -1
- package/dist/collection_editor/ui/collection_editor/import/clean_import_data.d.ts +1 -1
- package/dist/collection_editor/ui/collection_editor/import/clean_import_data.js.map +1 -1
- package/dist/collection_editor/ui/collection_editor/properties/BlockPropertyField.js.map +1 -1
- package/dist/collection_editor/ui/collection_editor/properties/DateTimePropertyField.js.map +1 -1
- package/dist/collection_editor/ui/collection_editor/properties/EnumPropertyField.js +1 -1
- package/dist/collection_editor/ui/collection_editor/properties/EnumPropertyField.js.map +1 -1
- package/dist/collection_editor/ui/collection_editor/properties/MapPropertyField.js.map +1 -1
- package/dist/collection_editor/ui/collection_editor/properties/ReferencePropertyField.js.map +1 -1
- package/dist/collection_editor/ui/collection_editor/properties/RelationPropertyField.js.map +1 -1
- package/dist/collection_editor/ui/collection_editor/properties/RepeatPropertyField.js.map +1 -1
- package/dist/collection_editor/ui/collection_editor/properties/conditions/ConditionsEditor.d.ts +1 -1
- package/dist/collection_editor/ui/collection_editor/properties/conditions/EnumConditionsEditor.d.ts +1 -1
- package/dist/collection_editor/ui/collection_editor/properties/conditions/property_paths.d.ts +1 -1
- package/dist/collection_editor/ui/collection_editor/rlsRuleForm.d.ts +34 -0
- package/dist/collection_editor/ui/collection_editor/rlsRuleForm.js +50 -0
- package/dist/collection_editor/ui/collection_editor/rlsRuleForm.js.map +1 -0
- package/dist/collection_editor/ui/collection_editor/utils/update_property_for_widget.d.ts +1 -2
- package/dist/collection_editor/ui/collection_editor/utils/update_property_for_widget.js.map +1 -1
- package/dist/collection_editor/useDetachRulesConfirmation.d.ts +16 -0
- package/dist/collection_editor/useDetachRulesConfirmation.js +48 -0
- package/dist/collection_editor/useDetachRulesConfirmation.js.map +1 -0
- package/dist/collection_editor/useLiveSchemaEditing.d.ts +2 -2
- package/dist/collection_editor/useLiveSchemaEditing.js +1 -1
- package/dist/collection_editor/useLiveSchemaEditing.js.map +1 -1
- package/dist/collection_editor/useLocalCollectionsConfigController.d.ts +54 -10
- package/dist/collection_editor/useLocalCollectionsConfigController.js +394 -122
- package/dist/collection_editor/useLocalCollectionsConfigController.js.map +1 -1
- package/dist/collection_editor/validateCollectionJson.js.map +1 -1
- package/dist/components/CollectionPanel.d.ts +10 -9
- package/dist/components/CollectionPanel.js +5 -2
- package/dist/components/CollectionPanel.js.map +1 -1
- package/dist/components/CollectionTableBinding/CollectionRowActions.d.ts +1 -2
- package/dist/components/CollectionTableBinding/CollectionRowActions.js.map +1 -1
- package/dist/components/CollectionTableBinding/CollectionTableBinding.js.map +1 -1
- package/dist/components/CollectionTableBinding/CollectionTableBindingProps.d.ts +3 -5
- package/dist/components/CollectionTableBinding/PropertyTableCell.d.ts +2 -2
- package/dist/components/CollectionTableBinding/PropertyTableCell.js.map +1 -1
- package/dist/components/CollectionTableBinding/column_utils.d.ts +1 -1
- package/dist/components/CollectionTableBinding/column_utils.js.map +1 -1
- package/dist/components/CollectionTableBinding/fields/TableMultipleRelationField.d.ts +2 -2
- package/dist/components/CollectionTableBinding/fields/TableMultipleRelationField.js +1 -2
- package/dist/components/CollectionTableBinding/fields/TableMultipleRelationField.js.map +1 -1
- package/dist/components/CollectionTableBinding/fields/TableReferenceField.d.ts +2 -2
- package/dist/components/CollectionTableBinding/fields/TableReferenceField.js +2 -2
- package/dist/components/CollectionTableBinding/fields/TableReferenceField.js.map +1 -1
- package/dist/components/CollectionTableBinding/fields/TableRelationField.d.ts +2 -2
- package/dist/components/CollectionTableBinding/fields/TableRelationField.js +1 -2
- package/dist/components/CollectionTableBinding/fields/TableRelationField.js.map +1 -1
- package/dist/components/CollectionTableBinding/fields/TableRelationSelectorField.d.ts +2 -1
- package/dist/components/CollectionTableBinding/fields/TableRelationSelectorField.js.map +1 -1
- package/dist/components/CollectionTableBinding/fields/TableStorageUpload.d.ts +2 -2
- package/dist/components/CollectionTableBinding/fields/TableStorageUpload.js.map +1 -1
- package/dist/components/CollectionTableBinding/fields/VirtualTableSelect.d.ts +1 -1
- package/dist/components/CollectionTableBinding/fields/VirtualTableSelect.js +1 -1
- package/dist/components/CollectionTableBinding/fields/VirtualTableSelect.js.map +1 -1
- package/dist/components/CollectionTableBinding/internal/common.d.ts +1 -2
- package/dist/components/CollectionTableBinding/internal/common.js.map +1 -1
- package/dist/components/CollectionTableBinding/internal/popup_field/PopupFormField.d.ts +1 -1
- package/dist/components/CollectionTableBinding/internal/popup_field/PopupFormField.js +2 -2
- package/dist/components/CollectionTableBinding/internal/popup_field/PopupFormField.js.map +1 -1
- package/dist/components/CollectionTableBinding/table_bindings.d.ts +2 -2
- package/dist/components/CollectionTableBinding/table_bindings.js.map +1 -1
- package/dist/components/CollectionViewBinding/BoardCardBinding.d.ts +1 -1
- package/dist/components/CollectionViewBinding/BoardCardBinding.js.map +1 -1
- package/dist/components/CollectionViewBinding/CollectionBoardViewBinding.d.ts +1 -2
- package/dist/components/CollectionViewBinding/CollectionBoardViewBinding.js +9 -5
- package/dist/components/CollectionViewBinding/CollectionBoardViewBinding.js.map +1 -1
- package/dist/components/CollectionViewBinding/CollectionCardViewBinding.d.ts +1 -2
- package/dist/components/CollectionViewBinding/CollectionCardViewBinding.js.map +1 -1
- package/dist/components/CollectionViewBinding/CollectionEntityActions.d.ts +1 -1
- package/dist/components/CollectionViewBinding/CollectionEntityActions.js.map +1 -1
- package/dist/components/CollectionViewBinding/CollectionListViewBinding.d.ts +1 -2
- package/dist/components/CollectionViewBinding/CollectionListViewBinding.js +1 -1
- package/dist/components/CollectionViewBinding/CollectionListViewBinding.js.map +1 -1
- package/dist/components/CollectionViewBinding/CollectionToolbar.js +1 -1
- package/dist/components/CollectionViewBinding/CollectionToolbar.js.map +1 -1
- package/dist/components/CollectionViewBinding/CollectionViewActions.js +2 -4
- package/dist/components/CollectionViewBinding/CollectionViewActions.js.map +1 -1
- package/dist/components/CollectionViewBinding/CollectionViewBinding.d.ts +6 -6
- package/dist/components/CollectionViewBinding/CollectionViewBinding.js.map +1 -1
- package/dist/components/CollectionViewBinding/CollectionViewContent.js +1 -2
- package/dist/components/CollectionViewBinding/CollectionViewContent.js.map +1 -1
- package/dist/components/CollectionViewBinding/CollectionViewStartActions.d.ts +1 -1
- package/dist/components/CollectionViewBinding/CollectionViewStartActions.js.map +1 -1
- package/dist/components/CollectionViewBinding/CustomViewHost.d.ts +1 -2
- package/dist/components/CollectionViewBinding/CustomViewHost.js.map +1 -1
- package/dist/components/CollectionViewBinding/EntitiesCount.js +3 -3
- package/dist/components/CollectionViewBinding/EntitiesCount.js.map +1 -1
- package/dist/components/CollectionViewBinding/EntityCardBinding.d.ts +1 -2
- package/dist/components/CollectionViewBinding/EntityCardBinding.js.map +1 -1
- package/dist/components/CollectionViewBinding/EntityIdHeaderWidget.js +1 -1
- package/dist/components/CollectionViewBinding/EntityIdHeaderWidget.js.map +1 -1
- package/dist/components/CollectionViewBinding/FilterPresetsButton.d.ts +1 -2
- package/dist/components/CollectionViewBinding/FilterPresetsButton.js +1 -1
- package/dist/components/CollectionViewBinding/FilterPresetsButton.js.map +1 -1
- package/dist/components/CollectionViewBinding/FiltersButton.d.ts +1 -2
- package/dist/components/CollectionViewBinding/FiltersButton.js.map +1 -1
- package/dist/components/CollectionViewBinding/FiltersDialog.d.ts +1 -1
- package/dist/components/CollectionViewBinding/FiltersDialog.js.map +1 -1
- package/dist/components/CollectionViewBinding/PluginColumnSlots.d.ts +1 -2
- package/dist/components/CollectionViewBinding/PluginColumnSlots.js.map +1 -1
- package/dist/components/CollectionViewBinding/RowActions.d.ts +1 -2
- package/dist/components/CollectionViewBinding/RowActions.js.map +1 -1
- package/dist/components/CollectionViewBinding/SortButton.d.ts +1 -1
- package/dist/components/CollectionViewBinding/SortButton.js.map +1 -1
- package/dist/components/CollectionViewBinding/SplitListView.d.ts +1 -2
- package/dist/components/CollectionViewBinding/SplitListView.js.map +1 -1
- package/dist/components/CollectionViewBinding/hooks/useCollectionInlineEditor.d.ts +1 -2
- package/dist/components/CollectionViewBinding/hooks/useCollectionInlineEditor.js +1 -1
- package/dist/components/CollectionViewBinding/hooks/useCollectionInlineEditor.js.map +1 -1
- package/dist/components/CollectionViewBinding/hooks/useKanbanDragAndDrop.d.ts +1 -2
- package/dist/components/CollectionViewBinding/hooks/useKanbanDragAndDrop.js.map +1 -1
- package/dist/components/CollectionViewBinding/useBoardDataController.d.ts +2 -1
- package/dist/components/CollectionViewBinding/useBoardDataController.js +3 -3
- package/dist/components/CollectionViewBinding/useBoardDataController.js.map +1 -1
- package/dist/components/CollectionViewBinding/useCollectionViewState.d.ts +2 -4
- package/dist/components/CollectionViewBinding/useCollectionViewState.js +14 -19
- package/dist/components/CollectionViewBinding/useCollectionViewState.js.map +1 -1
- package/dist/components/CollectionViewBinding/usePreviewSlots.d.ts +1 -3
- package/dist/components/CollectionViewBinding/usePreviewSlots.js.map +1 -1
- package/dist/components/CollectionViewBinding/useSelectionController.d.ts +1 -2
- package/dist/components/CollectionViewBinding/useSelectionController.js.map +1 -1
- package/dist/components/CollectionsProvider.d.ts +23 -8
- package/dist/components/CollectionsProvider.js +23 -7
- package/dist/components/CollectionsProvider.js.map +1 -1
- package/dist/components/DefaultDrawer.js +1 -1
- package/dist/components/DeleteEntityDialog.d.ts +1 -1
- package/dist/components/DeleteEntityDialog.js +1 -1
- package/dist/components/DeleteEntityDialog.js.map +1 -1
- package/dist/components/DetailViewBinding.js +3 -3
- package/dist/components/DetailViewBinding.js.map +1 -1
- package/dist/components/EditFormActions.js.map +1 -1
- package/dist/components/EditViewBinding.d.ts +2 -1
- package/dist/components/EditViewBinding.js +6 -6
- package/dist/components/EditViewBinding.js.map +1 -1
- package/dist/components/EntityDisplayHeader.d.ts +1 -2
- package/dist/components/EntityDisplayHeader.js.map +1 -1
- package/dist/components/EntityInspector.d.ts +1 -2
- package/dist/components/EntityInspector.js.map +1 -1
- package/dist/components/EntityPreviewBinding.d.ts +1 -1
- package/dist/components/EntityPreviewBinding.js +1 -1
- package/dist/components/EntityPreviewBinding.js.map +1 -1
- package/dist/components/EntityViewBinding.d.ts +1 -1
- package/dist/components/EntityViewBinding.js.map +1 -1
- package/dist/components/EntityViewBody.d.ts +1 -1
- package/dist/components/EntityViewBody.js +3 -4
- package/dist/components/EntityViewBody.js.map +1 -1
- package/dist/components/FieldValue.js +2 -2
- package/dist/components/FieldValue.js.map +1 -1
- package/dist/components/HomePage/ContentHomePage.js +12 -3
- package/dist/components/HomePage/ContentHomePage.js.map +1 -1
- package/dist/components/InlineEntityPreview.d.ts +1 -1
- package/dist/components/InlineEntityPreview.js.map +1 -1
- package/dist/components/PropertyCollectionView.d.ts +2 -2
- package/dist/components/PropertyCollectionView.js.map +1 -1
- package/dist/components/PropertyConfigBadge.js.map +1 -1
- package/dist/components/RebaseCMS.d.ts +22 -3
- package/dist/components/RebaseCMS.js +32 -14
- package/dist/components/RebaseCMS.js.map +1 -1
- package/dist/components/RebaseNavigation.js +106 -31
- package/dist/components/RebaseNavigation.js.map +1 -1
- package/dist/components/RecordDetail.js +4 -1
- package/dist/components/RecordDetail.js.map +1 -1
- package/dist/components/RecordForm.d.ts +5 -5
- package/dist/components/RecordForm.js +5 -2
- package/dist/components/RecordForm.js.map +1 -1
- package/dist/components/ReferenceTable/SelectionTableBinding.d.ts +2 -2
- package/dist/components/ReferenceTable/SelectionTableBinding.js +1 -1
- package/dist/components/ReferenceTable/SelectionTableBinding.js.map +1 -1
- package/dist/components/ReferenceWidget.d.ts +2 -1
- package/dist/components/ReferenceWidget.js +2 -2
- package/dist/components/ReferenceWidget.js.map +1 -1
- package/dist/components/RelationSelector.d.ts +2 -1
- package/dist/components/RelationSelector.js +2 -3
- package/dist/components/RelationSelector.js.map +1 -1
- package/dist/components/SelectableTable/SelectableTable.d.ts +2 -2
- package/dist/components/SelectableTable/SelectableTable.js.map +1 -1
- package/dist/components/SelectableTable/filters/FilterFieldBinding.d.ts +2 -1
- package/dist/components/SelectableTable/filters/FilterFieldBinding.js +3 -3
- package/dist/components/SelectableTable/filters/FilterFieldBinding.js.map +1 -1
- package/dist/components/SelectableTable/filters/ReferenceFilterField.js +2 -2
- package/dist/components/SelectableTable/filters/ReferenceFilterField.js.map +1 -1
- package/dist/components/SelectableTable/filters/RelationFilterField.d.ts +1 -1
- package/dist/components/SelectableTable/filters/RelationFilterField.js +1 -1
- package/dist/components/SelectableTable/filters/RelationFilterField.js.map +1 -1
- package/dist/components/SelectableTable/filters/StringNumberFilterField.d.ts +1 -1
- package/dist/components/SelectableTable/filters/StringNumberFilterField.js.map +1 -1
- package/dist/components/SelectableTable/filters/null_filter.d.ts +1 -3
- package/dist/components/SelectableTable/filters/null_filter.js.map +1 -1
- package/dist/components/SidePanelBinding.js +1 -1
- package/dist/components/SidePanelBinding.js.map +1 -1
- package/dist/components/field_configs.d.ts +1 -2
- package/dist/components/field_configs.js.map +1 -1
- package/dist/components/field_ids.d.ts +1 -1
- package/dist/components/field_ids.js +1 -1
- package/dist/components/field_ids.js.map +1 -1
- package/dist/components/history/EntityHistoryEntry.js.map +1 -1
- package/dist/components/history/EntityHistoryView.d.ts +1 -2
- package/dist/components/history/EntityHistoryView.js +1 -1
- package/dist/components/history/EntityHistoryView.js.map +1 -1
- package/dist/data_export/export/BasicExportAction.d.ts +1 -1
- package/dist/data_export/export/BasicExportAction.js.map +1 -1
- package/dist/data_export/export/ExportCollectionAction.js +2 -2
- package/dist/data_export/export/ExportCollectionAction.js.map +1 -1
- package/dist/data_export/export/additional_fields.d.ts +1 -1
- package/dist/data_export/export/additional_fields.js.map +1 -1
- package/dist/data_export/export/export.d.ts +1 -1
- package/dist/data_export/export/export.js +1 -1
- package/dist/data_export/export/export.js.map +1 -1
- package/dist/data_export/export/fetch_export_data.d.ts +3 -2
- package/dist/data_export/export/fetch_export_data.js.map +1 -1
- package/dist/data_import/components/DataNewPropertiesMapping.d.ts +1 -1
- package/dist/data_import/components/DataNewPropertiesMapping.js.map +1 -1
- package/dist/data_import/components/ImportNewPropertyFieldPreview.d.ts +1 -1
- package/dist/data_import/components/ImportNewPropertyFieldPreview.js.map +1 -1
- package/dist/data_import/hooks/useImportConfig.js.map +1 -1
- package/dist/data_import/import/ImportCollectionAction.d.ts +2 -2
- package/dist/data_import/import/ImportCollectionAction.js.map +1 -1
- package/dist/data_import/types/column_mapping.d.ts +1 -1
- package/dist/data_import/utils/data.d.ts +1 -2
- package/dist/data_import/utils/data.js +1 -2
- package/dist/data_import/utils/data.js.map +1 -1
- package/dist/data_import/utils/get_import_inference_type.d.ts +1 -1
- package/dist/data_import/utils/get_import_inference_type.js.map +1 -1
- package/dist/data_import/utils/id_column.d.ts +1 -1
- package/dist/data_import/utils/id_column.js.map +1 -1
- package/dist/data_import/utils/import_columns.d.ts +1 -1
- package/dist/data_import/utils/import_columns.js.map +1 -1
- package/dist/data_import/utils/save_entities.d.ts +3 -3
- package/dist/data_import/utils/save_entities.js +1 -1
- package/dist/data_import/utils/save_entities.js.map +1 -1
- package/dist/form/EntityForm.js +2 -1
- package/dist/form/EntityForm.js.map +1 -1
- package/dist/form/EntityFormActions.js.map +1 -1
- package/dist/form/EntityFormBinding.js +2 -2
- package/dist/form/EntityFormBinding.js.map +1 -1
- package/dist/form/FormFieldsContext.d.ts +1 -4
- package/dist/form/FormFieldsContext.js +1 -1
- package/dist/form/FormFieldsContext.js.map +1 -1
- package/dist/form/PropertyFieldBinding.js +6 -8
- package/dist/form/PropertyFieldBinding.js.map +1 -1
- package/dist/form/components/FieldBlock.d.ts +1 -2
- package/dist/form/components/FieldBlock.js.map +1 -1
- package/dist/form/components/FieldHelperText.d.ts +1 -1
- package/dist/form/components/FieldHelperText.js.map +1 -1
- package/dist/form/components/FormRail.d.ts +1 -1
- package/dist/form/components/FormRail.js.map +1 -1
- package/dist/form/components/LocalChangesMenu.d.ts +1 -1
- package/dist/form/components/LocalChangesMenu.js.map +1 -1
- package/dist/form/components/StorageItemPreview.d.ts +1 -1
- package/dist/form/components/StorageItemPreview.js.map +1 -1
- package/dist/form/field_bindings/ArrayCustomShapedFieldBinding.d.ts +1 -1
- package/dist/form/field_bindings/ArrayCustomShapedFieldBinding.js +1 -1
- package/dist/form/field_bindings/ArrayCustomShapedFieldBinding.js.map +1 -1
- package/dist/form/field_bindings/ArrayOfReferencesFieldBinding.d.ts +2 -2
- package/dist/form/field_bindings/ArrayOfReferencesFieldBinding.js +2 -2
- package/dist/form/field_bindings/ArrayOfReferencesFieldBinding.js.map +1 -1
- package/dist/form/field_bindings/BinaryFieldBinding.d.ts +1 -1
- package/dist/form/field_bindings/BinaryFieldBinding.js.map +1 -1
- package/dist/form/field_bindings/BlockFieldBinding.d.ts +1 -1
- package/dist/form/field_bindings/BlockFieldBinding.js +1 -1
- package/dist/form/field_bindings/BlockFieldBinding.js.map +1 -1
- package/dist/form/field_bindings/DateTimeFieldBinding.d.ts +1 -1
- package/dist/form/field_bindings/DateTimeFieldBinding.js.map +1 -1
- package/dist/form/field_bindings/GeopointFieldBinding.d.ts +1 -1
- package/dist/form/field_bindings/GeopointFieldBinding.js.map +1 -1
- package/dist/form/field_bindings/KeyValueFieldBinding.d.ts +1 -1
- package/dist/form/field_bindings/KeyValueFieldBinding.js +1 -2
- package/dist/form/field_bindings/KeyValueFieldBinding.js.map +1 -1
- package/dist/form/field_bindings/MapFieldBinding.d.ts +1 -1
- package/dist/form/field_bindings/MapFieldBinding.js.map +1 -1
- package/dist/form/field_bindings/MarkdownEditorFieldBinding.d.ts +1 -1
- package/dist/form/field_bindings/MarkdownEditorFieldBinding.js +1 -1
- package/dist/form/field_bindings/MarkdownEditorFieldBinding.js.map +1 -1
- package/dist/form/field_bindings/MultiSelectFieldBinding.d.ts +1 -1
- package/dist/form/field_bindings/MultiSelectFieldBinding.js +1 -1
- package/dist/form/field_bindings/MultiSelectFieldBinding.js.map +1 -1
- package/dist/form/field_bindings/MultipleRelationFieldBinding.d.ts +1 -1
- package/dist/form/field_bindings/MultipleRelationFieldBinding.js +2 -2
- package/dist/form/field_bindings/MultipleRelationFieldBinding.js.map +1 -1
- package/dist/form/field_bindings/ReadOnlyFieldBinding.d.ts +1 -1
- package/dist/form/field_bindings/ReadOnlyFieldBinding.js.map +1 -1
- package/dist/form/field_bindings/ReferenceFieldBinding.d.ts +1 -1
- package/dist/form/field_bindings/ReferenceFieldBinding.js +2 -2
- package/dist/form/field_bindings/ReferenceFieldBinding.js.map +1 -1
- package/dist/form/field_bindings/RelationFieldBinding.d.ts +1 -1
- package/dist/form/field_bindings/RelationFieldBinding.js +2 -2
- package/dist/form/field_bindings/RelationFieldBinding.js.map +1 -1
- package/dist/form/field_bindings/RepeatFieldBinding.d.ts +1 -1
- package/dist/form/field_bindings/RepeatFieldBinding.js +1 -1
- package/dist/form/field_bindings/RepeatFieldBinding.js.map +1 -1
- package/dist/form/field_bindings/SelectFieldBinding.d.ts +1 -1
- package/dist/form/field_bindings/SelectFieldBinding.js +1 -1
- package/dist/form/field_bindings/SelectFieldBinding.js.map +1 -1
- package/dist/form/field_bindings/StorageUploadFieldBinding.d.ts +2 -2
- package/dist/form/field_bindings/StorageUploadFieldBinding.js.map +1 -1
- package/dist/form/field_bindings/SwitchFieldBinding.d.ts +1 -1
- package/dist/form/field_bindings/SwitchFieldBinding.js.map +1 -1
- package/dist/form/field_bindings/TextFieldBinding.d.ts +1 -1
- package/dist/form/field_bindings/TextFieldBinding.js.map +1 -1
- package/dist/form/field_bindings/UserSelectFieldBinding.d.ts +1 -1
- package/dist/form/field_bindings/UserSelectFieldBinding.js.map +1 -1
- package/dist/form/field_bindings/VectorFieldBinding.d.ts +1 -1
- package/dist/form/field_bindings/VectorFieldBinding.js.map +1 -1
- package/dist/form/form_utils.d.ts +3 -3
- package/dist/form/form_utils.js +1 -2
- package/dist/form/form_utils.js.map +1 -1
- package/dist/form/label_placement.d.ts +1 -2
- package/dist/form/label_placement.js.map +1 -1
- package/dist/form/resolve_cell_property.d.ts +1 -2
- package/dist/form/resolve_cell_property.js +1 -1
- package/dist/form/resolve_cell_property.js.map +1 -1
- package/dist/form/resolve_form_properties.d.ts +2 -2
- package/dist/form/resolve_form_properties.js +1 -1
- package/dist/form/resolve_form_properties.js.map +1 -1
- package/dist/form/useClearRestoreValue.d.ts +1 -1
- package/dist/form/useClearRestoreValue.js.map +1 -1
- package/dist/form/validation.d.ts +2 -2
- package/dist/form/validation.js +1 -1
- package/dist/form/validation.js.map +1 -1
- package/dist/hooks/navigation/compose_collections.d.ts +59 -0
- package/dist/hooks/navigation/compose_collections.js +48 -0
- package/dist/hooks/navigation/compose_collections.js.map +1 -0
- package/dist/hooks/navigation/compose_collections_input.d.ts +8 -0
- package/dist/hooks/navigation/compose_collections_input.js +17 -0
- package/dist/hooks/navigation/compose_collections_input.js.map +1 -0
- package/dist/hooks/navigation/contexts/CollectionRegistryContext.d.ts +1 -1
- package/dist/hooks/navigation/contexts/CollectionRegistryContext.js.map +1 -1
- package/dist/hooks/navigation/registered_collection.d.ts +15 -0
- package/dist/hooks/navigation/registered_collection.js +20 -0
- package/dist/hooks/navigation/registered_collection.js.map +1 -0
- package/dist/hooks/navigation/ui_preferences.d.ts +47 -0
- package/dist/hooks/navigation/ui_preferences.js +179 -0
- package/dist/hooks/navigation/ui_preferences.js.map +1 -0
- package/dist/hooks/navigation/useAsyncResolver.d.ts +8 -1
- package/dist/hooks/navigation/useAsyncResolver.js +9 -3
- package/dist/hooks/navigation/useAsyncResolver.js.map +1 -1
- package/dist/hooks/navigation/useBuildCollectionRegistryController.d.ts +1 -3
- package/dist/hooks/navigation/useBuildCollectionRegistryController.js +3 -3
- package/dist/hooks/navigation/useBuildCollectionRegistryController.js.map +1 -1
- package/dist/hooks/navigation/useBuildNavigationStateController.d.ts +9 -5
- package/dist/hooks/navigation/useBuildNavigationStateController.js +2 -1
- package/dist/hooks/navigation/useBuildNavigationStateController.js.map +1 -1
- package/dist/hooks/navigation/useBuildUrlController.d.ts +1 -1
- package/dist/hooks/navigation/useBuildUrlController.js.map +1 -1
- package/dist/hooks/navigation/useNavigationResolution.js +1 -2
- package/dist/hooks/navigation/useNavigationResolution.js.map +1 -1
- package/dist/hooks/navigation/usePanelTables.d.ts +11 -0
- package/dist/hooks/navigation/usePanelTables.js +33 -0
- package/dist/hooks/navigation/usePanelTables.js.map +1 -0
- package/dist/hooks/navigation/useResolvedCollections.d.ts +8 -3
- package/dist/hooks/navigation/useResolvedCollections.js +3 -2
- package/dist/hooks/navigation/useResolvedCollections.js.map +1 -1
- package/dist/hooks/navigation/useResolvedViews.d.ts +1 -2
- package/dist/hooks/navigation/useResolvedViews.js.map +1 -1
- package/dist/hooks/navigation/useTopLevelNavigation.d.ts +1 -2
- package/dist/hooks/navigation/useTopLevelNavigation.js.map +1 -1
- package/dist/hooks/navigation/user_preferences_overlay.d.ts +21 -0
- package/dist/hooks/navigation/user_preferences_overlay.js +101 -0
- package/dist/hooks/navigation/user_preferences_overlay.js.map +1 -0
- package/dist/hooks/navigation/utils.js +1 -1
- package/dist/hooks/navigation/utils.js.map +1 -1
- package/dist/hooks/useAdminContext.d.ts +1 -2
- package/dist/hooks/useAdminContext.js.map +1 -1
- package/dist/hooks/useBuildSidePanel.d.ts +1 -2
- package/dist/hooks/useBuildSidePanel.js +2 -1
- package/dist/hooks/useBuildSidePanel.js.map +1 -1
- package/dist/hooks/useChildViewSource.d.ts +1 -1
- package/dist/hooks/useChildViewSource.js +1 -1
- package/dist/hooks/useChildViewSource.js.map +1 -1
- package/dist/hooks/useEntityDisplay.d.ts +1 -2
- package/dist/hooks/useEntityDisplay.js +1 -1
- package/dist/hooks/useEntityDisplay.js.map +1 -1
- package/dist/hooks/useEntityDisplayTitle.d.ts +2 -2
- package/dist/hooks/useEntityDisplayTitle.js.map +1 -1
- package/dist/hooks/useHistory.js +1 -1
- package/dist/hooks/useHistory.js.map +1 -1
- package/dist/hooks/useRecordActions.d.ts +1 -2
- package/dist/hooks/useRecordActions.js.map +1 -1
- package/dist/hooks/useReferencePaths.d.ts +21 -7
- package/dist/hooks/useReferencePaths.js +23 -6
- package/dist/hooks/useReferencePaths.js.map +1 -1
- package/dist/hooks/useResolvedNavigationFrom.d.ts +3 -3
- package/dist/hooks/useResolvedNavigationFrom.js +1 -1
- package/dist/hooks/useResolvedNavigationFrom.js.map +1 -1
- package/dist/index.d.ts +11 -0
- package/dist/index.js +8 -2
- package/dist/mcp_view/app_modules.d.ts +2 -2
- package/dist/mcp_view/app_modules.js +4 -4
- package/dist/mcp_view/app_modules.js.map +1 -1
- package/dist/mcp_view/index.d.ts +16 -19
- package/dist/mcp_view/index.js +43 -62
- package/dist/mcp_view/index.js.map +1 -1
- package/dist/mcp_view/payload.d.ts +54 -18
- package/dist/mcp_view/payload.js +49 -24
- package/dist/mcp_view/payload.js.map +1 -1
- package/dist/mcp_view/screen.js +11 -11
- package/dist/mcp_view/screen.js.map +1 -1
- package/dist/mcp_view/tool_driver.d.ts +5 -34
- package/dist/mcp_view/tool_driver.js +17 -16
- package/dist/mcp_view/tool_driver.js.map +1 -1
- package/dist/mcp_view/write_review.d.ts +1 -2
- package/dist/mcp_view/write_review.js +1 -1
- package/dist/mcp_view/write_review.js.map +1 -1
- package/dist/preview/PropertyPreview.d.ts +1 -1
- package/dist/preview/PropertyPreview.js +4 -3
- package/dist/preview/PropertyPreview.js.map +1 -1
- package/dist/preview/components/ArrayEnumPreview.d.ts +1 -1
- package/dist/preview/components/ArrayEnumPreview.js.map +1 -1
- package/dist/preview/components/BooleanPreview.d.ts +1 -1
- package/dist/preview/components/BooleanPreview.js.map +1 -1
- package/dist/preview/components/EnumValuesChip.d.ts +1 -1
- package/dist/preview/components/EnumValuesChip.js +1 -1
- package/dist/preview/components/EnumValuesChip.js.map +1 -1
- package/dist/preview/components/ReferencePreview.d.ts +1 -1
- package/dist/preview/components/ReferencePreview.js.map +1 -1
- package/dist/preview/components/RelationPreview.d.ts +1 -1
- package/dist/preview/components/RelationPreview.js.map +1 -1
- package/dist/preview/components/StorageThumbnail.js +2 -1
- package/dist/preview/components/StorageThumbnail.js.map +1 -1
- package/dist/preview/components/UserPreview.d.ts +1 -1
- package/dist/preview/components/UserPreview.js.map +1 -1
- package/dist/preview/property_previews/ArrayOfMapsPreview.d.ts +1 -1
- package/dist/preview/property_previews/ArrayOfMapsPreview.js.map +1 -1
- package/dist/preview/property_previews/ArrayOfReferencesPreview.d.ts +1 -1
- package/dist/preview/property_previews/ArrayOfReferencesPreview.js.map +1 -1
- package/dist/preview/property_previews/ArrayOfRelationsPreview.d.ts +1 -1
- package/dist/preview/property_previews/ArrayOfRelationsPreview.js +2 -1
- package/dist/preview/property_previews/ArrayOfRelationsPreview.js.map +1 -1
- package/dist/preview/property_previews/ArrayOfStorageComponentsPreview.d.ts +1 -1
- package/dist/preview/property_previews/ArrayOfStorageComponentsPreview.js.map +1 -1
- package/dist/preview/property_previews/ArrayOfStringsPreview.d.ts +1 -1
- package/dist/preview/property_previews/ArrayOfStringsPreview.js.map +1 -1
- package/dist/preview/property_previews/ArrayOneOfPreview.d.ts +1 -1
- package/dist/preview/property_previews/ArrayOneOfPreview.js +1 -1
- package/dist/preview/property_previews/ArrayOneOfPreview.js.map +1 -1
- package/dist/preview/property_previews/ArrayPropertyEnumPreview.d.ts +1 -1
- package/dist/preview/property_previews/ArrayPropertyEnumPreview.js +1 -1
- package/dist/preview/property_previews/ArrayPropertyEnumPreview.js.map +1 -1
- package/dist/preview/property_previews/ArrayPropertyPreview.d.ts +1 -1
- package/dist/preview/property_previews/ArrayPropertyPreview.js +1 -1
- package/dist/preview/property_previews/ArrayPropertyPreview.js.map +1 -1
- package/dist/preview/property_previews/MapPropertyPreview.d.ts +1 -1
- package/dist/preview/property_previews/MapPropertyPreview.js.map +1 -1
- package/dist/preview/property_previews/NumberPropertyPreview.d.ts +1 -1
- package/dist/preview/property_previews/NumberPropertyPreview.js +1 -1
- package/dist/preview/property_previews/NumberPropertyPreview.js.map +1 -1
- package/dist/preview/property_previews/SkeletonPropertyComponent.d.ts +1 -1
- package/dist/preview/property_previews/SkeletonPropertyComponent.js.map +1 -1
- package/dist/preview/property_previews/StringPropertyPreview.d.ts +1 -1
- package/dist/preview/property_previews/StringPropertyPreview.js.map +1 -1
- package/dist/preview/util.d.ts +1 -1
- package/dist/preview/util.js.map +1 -1
- package/dist/routes/RebaseRoute.js +2 -2
- package/dist/routes/RebaseRoute.js.map +1 -1
- package/dist/saved_apps/SavedAppsView.d.ts +1 -1
- package/dist/saved_apps/SavedAppsView.js +1 -1
- package/dist/saved_apps/SavedAppsView.js.map +1 -1
- package/dist/selection/SelectionMenu.d.ts +1 -1
- package/dist/selection/SelectionMenu.js.map +1 -1
- package/dist/selection/resolve_selection.d.ts +3 -3
- package/dist/selection/resolve_selection.js +3 -2
- package/dist/selection/resolve_selection.js.map +1 -1
- package/dist/tables/apply_customization.d.ts +65 -0
- package/dist/tables/apply_customization.js +644 -0
- package/dist/tables/apply_customization.js.map +1 -0
- package/dist/tables/column_property.d.ts +64 -0
- package/dist/tables/column_property.js +549 -0
- package/dist/tables/column_property.js.map +1 -0
- package/dist/tables/customize_table.d.ts +39 -0
- package/dist/tables/customize_table.js +247 -0
- package/dist/tables/customize_table.js.map +1 -0
- package/dist/tables/index.d.ts +12 -0
- package/dist/tables/labels.d.ts +18 -0
- package/dist/tables/labels.js +18 -0
- package/dist/tables/labels.js.map +1 -0
- package/dist/tables/project_table.d.ts +79 -0
- package/dist/tables/project_table.js +148 -0
- package/dist/tables/project_table.js.map +1 -0
- package/dist/tables/relations.d.ts +47 -0
- package/dist/tables/relations.js +112 -0
- package/dist/tables/relations.js.map +1 -0
- package/dist/tables/rls.d.ts +39 -0
- package/dist/tables/rls.js +111 -0
- package/dist/tables/rls.js.map +1 -0
- package/dist/tables/update_record.d.ts +32 -0
- package/dist/tables/update_record.js +40 -0
- package/dist/tables/update_record.js.map +1 -0
- package/dist/types/components/EntityFormActionsProps.d.ts +1 -1
- package/dist/types/components/PropertyPreviewProps.d.ts +2 -2
- package/dist/types/fields.d.ts +2 -2
- package/dist/util/dataControllerAdapter.js.map +1 -1
- package/dist/util/entity_pages.d.ts +2 -1
- package/dist/util/entity_pages.js.map +1 -1
- package/dist/util/find_entities_by_ids.d.ts +2 -2
- package/dist/util/find_entities_by_ids.js +1 -1
- package/dist/util/find_entities_by_ids.js.map +1 -1
- package/dist/util/format_collection_date.d.ts +1 -1
- package/dist/util/format_collection_date.js.map +1 -1
- package/dist/util/identity.d.ts +8 -0
- package/dist/util/identity.js +16 -0
- package/dist/util/identity.js.map +1 -0
- package/dist/util/navigation_utils.js +1 -1
- package/dist/util/navigation_utils.js.map +1 -1
- package/dist/util/previews.js +1 -1
- package/dist/util/previews.js.map +1 -1
- package/dist/util/propertyConfigMapper.d.ts +1 -1
- package/dist/util/propertyConfigMapper.js.map +1 -1
- package/dist/util/property_utils.d.ts +1 -3
- package/dist/util/property_utils.js +1 -1
- package/dist/util/property_utils.js.map +1 -1
- package/dist/util/relations.d.ts +18 -0
- package/dist/util/relations.js +32 -0
- package/dist/util/relations.js.map +1 -0
- package/package.json +12 -10
- package/recipes/README.md +4 -4
- package/recipes/my-preferences.tsx +34 -26
- package/recipes/site-settings.tsx +34 -27
- package/dist/collection_editor/collection_wire.d.ts +0 -13
- package/dist/collection_editor/collection_wire.js +0 -49
- package/dist/collection_editor/collection_wire.js.map +0 -1
- package/dist/collection_editor/useJsonCollectionsConfigController.d.ts +0 -37
- package/dist/collection_editor/useJsonCollectionsConfigController.js +0 -191
- package/dist/collection_editor/useJsonCollectionsConfigController.js.map +0 -1
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import type { CollectionsConfigController } from "./types/config_controller.js";
|
|
2
|
-
import type { JsonCollectionStore } from "./serializable_types.js";
|
|
3
|
-
export interface UseJsonCollectionsConfigControllerOptions {
|
|
4
|
-
/**
|
|
5
|
-
* The store adapter for persisting/loading collections.
|
|
6
|
-
*/
|
|
7
|
-
store: JsonCollectionStore;
|
|
8
|
-
/**
|
|
9
|
-
* If true, the configuration cannot be modified.
|
|
10
|
-
*/
|
|
11
|
-
readOnly?: boolean;
|
|
12
|
-
/**
|
|
13
|
-
* If true, collections will be loaded from the store on mount.
|
|
14
|
-
* Defaults to true.
|
|
15
|
-
*/
|
|
16
|
-
autoLoad?: boolean;
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* A `CollectionsConfigController` implementation that persists collection
|
|
20
|
-
* configurations as JSON via a pluggable `JsonCollectionStore` adapter.
|
|
21
|
-
*
|
|
22
|
-
* Use this when you want to store collection schemas in a database, API,
|
|
23
|
-
* localStorage, or any other JSON-compatible backend — as opposed to the
|
|
24
|
-
* default code-based persistence.
|
|
25
|
-
*
|
|
26
|
-
* @example
|
|
27
|
-
* ```tsx
|
|
28
|
-
* const store: JsonCollectionStore = {
|
|
29
|
-
* load: async () => { const res = await fetch('/api/schemas'); return res.json(); },
|
|
30
|
-
* save: async (slug, data) => { await fetch(`/api/schemas/${slug}`, { method: 'PUT', body: JSON.stringify(data) }); },
|
|
31
|
-
* delete: async (slug) => { await fetch(`/api/schemas/${slug}`, { method: 'DELETE' }); },
|
|
32
|
-
* };
|
|
33
|
-
*
|
|
34
|
-
* const configController = useJsonCollectionsConfigController({ store });
|
|
35
|
-
* ```
|
|
36
|
-
*/
|
|
37
|
-
export declare function useJsonCollectionsConfigController({ store, readOnly, autoLoad, }: UseJsonCollectionsConfigControllerOptions): CollectionsConfigController;
|
|
@@ -1,191 +0,0 @@
|
|
|
1
|
-
import { fromSerializableCollectionConfigs, toSerializableCollectionConfig } from "./serializable_utils.js";
|
|
2
|
-
import { useCallback, useEffect, useMemo, useRef, useState } from "react";
|
|
3
|
-
//#region src/collection_editor/useJsonCollectionsConfigController.tsx
|
|
4
|
-
/**
|
|
5
|
-
* A `CollectionsConfigController` implementation that persists collection
|
|
6
|
-
* configurations as JSON via a pluggable `JsonCollectionStore` adapter.
|
|
7
|
-
*
|
|
8
|
-
* Use this when you want to store collection schemas in a database, API,
|
|
9
|
-
* localStorage, or any other JSON-compatible backend — as opposed to the
|
|
10
|
-
* default code-based persistence.
|
|
11
|
-
*
|
|
12
|
-
* @example
|
|
13
|
-
* ```tsx
|
|
14
|
-
* const store: JsonCollectionStore = {
|
|
15
|
-
* load: async () => { const res = await fetch('/api/schemas'); return res.json(); },
|
|
16
|
-
* save: async (slug, data) => { await fetch(`/api/schemas/${slug}`, { method: 'PUT', body: JSON.stringify(data) }); },
|
|
17
|
-
* delete: async (slug) => { await fetch(`/api/schemas/${slug}`, { method: 'DELETE' }); },
|
|
18
|
-
* };
|
|
19
|
-
*
|
|
20
|
-
* const configController = useJsonCollectionsConfigController({ store });
|
|
21
|
-
* ```
|
|
22
|
-
*/
|
|
23
|
-
function useJsonCollectionsConfigController({ store, readOnly = false, autoLoad = true }) {
|
|
24
|
-
const [collections, setCollections] = useState([]);
|
|
25
|
-
const [loading, setLoading] = useState(autoLoad);
|
|
26
|
-
const [navigationEntries, setNavigationEntries] = useState([]);
|
|
27
|
-
const storeRef = useRef(store);
|
|
28
|
-
storeRef.current = store;
|
|
29
|
-
/**
|
|
30
|
-
* The current collections, readable outside a state updater.
|
|
31
|
-
*
|
|
32
|
-
* Three mutators used to compute their new value inside
|
|
33
|
-
* `setCollections(prev => …)` and persist from in there, which cost them
|
|
34
|
-
* both halves of a save: the promise they returned resolved before the
|
|
35
|
-
* store had answered, so a failed write reached the caller as a success,
|
|
36
|
-
* and a `setState` updater must be pure — under `StrictMode` React invokes
|
|
37
|
-
* it twice, so every one of those saves wrote to the store twice in
|
|
38
|
-
* development. Reading `prev` from a ref lets them do what
|
|
39
|
-
* `updatePropertiesOrder` already did: compute, set, then await.
|
|
40
|
-
*/
|
|
41
|
-
const collectionsRef = useRef([]);
|
|
42
|
-
const applyCollections = useCallback((next) => {
|
|
43
|
-
collectionsRef.current = next;
|
|
44
|
-
setCollections(next);
|
|
45
|
-
}, []);
|
|
46
|
-
useEffect(() => {
|
|
47
|
-
if (!autoLoad) return;
|
|
48
|
-
let cancelled = false;
|
|
49
|
-
(async () => {
|
|
50
|
-
try {
|
|
51
|
-
const [serialized, navEntries] = await Promise.all([storeRef.current.load(), storeRef.current.loadNavigationEntries?.() ?? Promise.resolve([])]);
|
|
52
|
-
if (cancelled) return;
|
|
53
|
-
applyCollections(fromSerializableCollectionConfigs(serialized));
|
|
54
|
-
setNavigationEntries(navEntries);
|
|
55
|
-
} catch (e) {
|
|
56
|
-
console.error("useJsonCollectionsConfigController: failed to load collections", e);
|
|
57
|
-
} finally {
|
|
58
|
-
if (!cancelled) setLoading(false);
|
|
59
|
-
}
|
|
60
|
-
})();
|
|
61
|
-
return () => {
|
|
62
|
-
cancelled = true;
|
|
63
|
-
};
|
|
64
|
-
}, [autoLoad, applyCollections]);
|
|
65
|
-
/**
|
|
66
|
-
* Update local state and persist a collection to the store.
|
|
67
|
-
*/
|
|
68
|
-
const persistCollection = useCallback(async (collection) => {
|
|
69
|
-
const serializable = toSerializableCollectionConfig(collection);
|
|
70
|
-
await storeRef.current.save(collection.slug, serializable);
|
|
71
|
-
}, []);
|
|
72
|
-
/**
|
|
73
|
-
* Find collection by id (slug).
|
|
74
|
-
*/
|
|
75
|
-
const getCollection = useCallback((id) => {
|
|
76
|
-
const found = collections.find((c) => c.slug === id);
|
|
77
|
-
if (found) return found;
|
|
78
|
-
throw new Error(`Collection "${id}" not found`);
|
|
79
|
-
}, [collections]);
|
|
80
|
-
const saveCollection = useCallback(async ({ id, collectionData }) => {
|
|
81
|
-
const collection = collectionData;
|
|
82
|
-
await persistCollection(collection);
|
|
83
|
-
const prev = collectionsRef.current;
|
|
84
|
-
const idx = prev.findIndex((c) => c.slug === id);
|
|
85
|
-
if (idx >= 0) {
|
|
86
|
-
const next = [...prev];
|
|
87
|
-
next[idx] = collection;
|
|
88
|
-
applyCollections(next);
|
|
89
|
-
} else applyCollections([...prev, collection]);
|
|
90
|
-
}, [persistCollection, applyCollections]);
|
|
91
|
-
const updateCollection = useCallback(async ({ id, collectionData, previousId }) => {
|
|
92
|
-
const prev = collectionsRef.current;
|
|
93
|
-
const lookupId = previousId ?? id;
|
|
94
|
-
const idx = prev.findIndex((c) => c.slug === lookupId);
|
|
95
|
-
if (idx < 0) return;
|
|
96
|
-
const merged = {
|
|
97
|
-
...prev[idx],
|
|
98
|
-
...collectionData
|
|
99
|
-
};
|
|
100
|
-
const next = [...prev];
|
|
101
|
-
next[idx] = merged;
|
|
102
|
-
applyCollections(next);
|
|
103
|
-
await persistCollection(merged);
|
|
104
|
-
if (previousId && previousId !== id) await storeRef.current.delete(previousId);
|
|
105
|
-
}, [persistCollection, applyCollections]);
|
|
106
|
-
const deleteCollection = useCallback(async ({ id }) => {
|
|
107
|
-
await storeRef.current.delete(id);
|
|
108
|
-
applyCollections(collectionsRef.current.filter((c) => c.slug !== id));
|
|
109
|
-
}, [applyCollections]);
|
|
110
|
-
const saveProperty = useCallback(async ({ path, propertyKey, property, newPropertiesOrder }) => {
|
|
111
|
-
const prev = collectionsRef.current;
|
|
112
|
-
const idx = prev.findIndex((c) => c.slug === path);
|
|
113
|
-
if (idx < 0) return;
|
|
114
|
-
const collection = { ...prev[idx] };
|
|
115
|
-
collection.properties = {
|
|
116
|
-
...collection.properties,
|
|
117
|
-
[propertyKey]: property
|
|
118
|
-
};
|
|
119
|
-
if (newPropertiesOrder) collection.propertiesOrder = newPropertiesOrder;
|
|
120
|
-
const next = [...prev];
|
|
121
|
-
next[idx] = collection;
|
|
122
|
-
applyCollections(next);
|
|
123
|
-
await persistCollection(next[idx]);
|
|
124
|
-
}, [persistCollection, applyCollections]);
|
|
125
|
-
const deleteProperty = useCallback(async ({ path, propertyKey, newPropertiesOrder }) => {
|
|
126
|
-
const prev = collectionsRef.current;
|
|
127
|
-
const idx = prev.findIndex((c) => c.slug === path);
|
|
128
|
-
if (idx < 0) return;
|
|
129
|
-
const collection = { ...prev[idx] };
|
|
130
|
-
const { [propertyKey]: _removed, ...remaining } = collection.properties;
|
|
131
|
-
collection.properties = remaining;
|
|
132
|
-
if (newPropertiesOrder) collection.propertiesOrder = newPropertiesOrder;
|
|
133
|
-
const next = [...prev];
|
|
134
|
-
next[idx] = collection;
|
|
135
|
-
applyCollections(next);
|
|
136
|
-
await persistCollection(next[idx]);
|
|
137
|
-
}, [persistCollection, applyCollections]);
|
|
138
|
-
const updatePropertiesOrder = useCallback(async ({ collection, newPropertiesOrder }) => {
|
|
139
|
-
const updated = {
|
|
140
|
-
...collection,
|
|
141
|
-
propertiesOrder: newPropertiesOrder
|
|
142
|
-
};
|
|
143
|
-
const prev = collectionsRef.current;
|
|
144
|
-
const idx = prev.findIndex((c) => c.slug === collection.slug);
|
|
145
|
-
if (idx >= 0) {
|
|
146
|
-
const next = [...prev];
|
|
147
|
-
next[idx] = updated;
|
|
148
|
-
applyCollections(next);
|
|
149
|
-
}
|
|
150
|
-
await persistCollection(updated);
|
|
151
|
-
}, [persistCollection, applyCollections]);
|
|
152
|
-
const updateKanbanColumnsOrder = useCallback(async ({ collection, kanbanColumnProperty, newColumnsOrder }) => {}, []);
|
|
153
|
-
const saveNavigationEntriesHandler = useCallback(async (entries) => {
|
|
154
|
-
setNavigationEntries(entries);
|
|
155
|
-
if (storeRef.current.saveNavigationEntries) await storeRef.current.saveNavigationEntries(entries);
|
|
156
|
-
}, []);
|
|
157
|
-
return useMemo(() => ({
|
|
158
|
-
loading,
|
|
159
|
-
readOnly,
|
|
160
|
-
readOnlyReason: readOnly ? "Configuration is read-only." : void 0,
|
|
161
|
-
collections,
|
|
162
|
-
getCollection,
|
|
163
|
-
saveCollection,
|
|
164
|
-
updateCollection,
|
|
165
|
-
deleteCollection,
|
|
166
|
-
saveProperty,
|
|
167
|
-
deleteProperty,
|
|
168
|
-
updatePropertiesOrder,
|
|
169
|
-
updateKanbanColumnsOrder,
|
|
170
|
-
navigationEntries,
|
|
171
|
-
saveNavigationEntries: saveNavigationEntriesHandler
|
|
172
|
-
}), [
|
|
173
|
-
loading,
|
|
174
|
-
readOnly,
|
|
175
|
-
collections,
|
|
176
|
-
getCollection,
|
|
177
|
-
saveCollection,
|
|
178
|
-
updateCollection,
|
|
179
|
-
deleteCollection,
|
|
180
|
-
saveProperty,
|
|
181
|
-
deleteProperty,
|
|
182
|
-
updatePropertiesOrder,
|
|
183
|
-
updateKanbanColumnsOrder,
|
|
184
|
-
navigationEntries,
|
|
185
|
-
saveNavigationEntriesHandler
|
|
186
|
-
]);
|
|
187
|
-
}
|
|
188
|
-
//#endregion
|
|
189
|
-
export { useJsonCollectionsConfigController };
|
|
190
|
-
|
|
191
|
-
//# sourceMappingURL=useJsonCollectionsConfigController.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useJsonCollectionsConfigController.js","names":[],"sources":["../../src/collection_editor/useJsonCollectionsConfigController.tsx"],"sourcesContent":["import { useCallback, useEffect, useMemo, useRef, useState } from \"react\";\nimport type { EngineProperties, Property } from \"@rebasepro/types\";\nimport type { NavigationGroupMapping, AdminCollection } from \"@rebasepro/cms-types\";\nimport type {\n CollectionsConfigController,\n SaveCollectionParams,\n UpdateCollectionParams,\n DeleteCollectionParams,\n SavePropertyParams,\n DeletePropertyParams,\n UpdatePropertiesOrderParams,\n UpdateKanbanColumnsOrderParams,\n} from \"./types/config_controller\";\nimport type { JsonCollectionStore, SerializableCollectionConfig } from \"./serializable_types\";\nimport { toSerializableCollectionConfig, toSerializableProperty, fromSerializableCollectionConfigs } from \"./serializable_utils\";\n\nexport interface UseJsonCollectionsConfigControllerOptions {\n /**\n * The store adapter for persisting/loading collections.\n */\n store: JsonCollectionStore;\n\n /**\n * If true, the configuration cannot be modified.\n */\n readOnly?: boolean;\n\n /**\n * If true, collections will be loaded from the store on mount.\n * Defaults to true.\n */\n autoLoad?: boolean;\n}\n\n/**\n * A `CollectionsConfigController` implementation that persists collection\n * configurations as JSON via a pluggable `JsonCollectionStore` adapter.\n *\n * Use this when you want to store collection schemas in a database, API,\n * localStorage, or any other JSON-compatible backend — as opposed to the\n * default code-based persistence.\n *\n * @example\n * ```tsx\n * const store: JsonCollectionStore = {\n * load: async () => { const res = await fetch('/api/schemas'); return res.json(); },\n * save: async (slug, data) => { await fetch(`/api/schemas/${slug}`, { method: 'PUT', body: JSON.stringify(data) }); },\n * delete: async (slug) => { await fetch(`/api/schemas/${slug}`, { method: 'DELETE' }); },\n * };\n *\n * const configController = useJsonCollectionsConfigController({ store });\n * ```\n */\nexport function useJsonCollectionsConfigController({\n store,\n readOnly = false,\n autoLoad = true,\n}: UseJsonCollectionsConfigControllerOptions): CollectionsConfigController {\n const [collections, setCollections] = useState<AdminCollection[]>([]);\n const [loading, setLoading] = useState(autoLoad);\n const [navigationEntries, setNavigationEntries] = useState<NavigationGroupMapping[]>([]);\n\n // Keep store ref stable to avoid stale closures in callbacks\n const storeRef = useRef(store);\n storeRef.current = store;\n\n /**\n * The current collections, readable outside a state updater.\n *\n * Three mutators used to compute their new value inside\n * `setCollections(prev => …)` and persist from in there, which cost them\n * both halves of a save: the promise they returned resolved before the\n * store had answered, so a failed write reached the caller as a success,\n * and a `setState` updater must be pure — under `StrictMode` React invokes\n * it twice, so every one of those saves wrote to the store twice in\n * development. Reading `prev` from a ref lets them do what\n * `updatePropertiesOrder` already did: compute, set, then await.\n */\n const collectionsRef = useRef<AdminCollection[]>([]);\n const applyCollections = useCallback((next: AdminCollection[]) => {\n collectionsRef.current = next;\n setCollections(next);\n }, []);\n\n // ── Load on mount ─────────────────────────────────────────────────\n useEffect(() => {\n if (!autoLoad) return;\n let cancelled = false;\n\n (async () => {\n try {\n const [serialized, navEntries] = await Promise.all([\n storeRef.current.load(),\n storeRef.current.loadNavigationEntries?.() ?? Promise.resolve([]),\n ]);\n if (cancelled) return;\n // Deserialized as a set: a relation's target is a slug, and a slug only\n // resolves against the other collections it arrived with.\n applyCollections(fromSerializableCollectionConfigs(serialized));\n setNavigationEntries(navEntries);\n } catch (e) {\n console.error(\"useJsonCollectionsConfigController: failed to load collections\", e);\n } finally {\n if (!cancelled) setLoading(false);\n }\n })();\n\n return () => { cancelled = true; };\n // `applyCollections` is `useCallback(…, [])`, so naming it here cannot\n // re-run the mount effect — it is listed because a stable identity is a\n // fact about today's code, not a reason to leave a dependency out.\n }, [autoLoad, applyCollections]);\n\n // ── Helpers ────────────────────────────────────────────────────────\n\n /**\n * Update local state and persist a collection to the store.\n */\n const persistCollection = useCallback(async (collection: AdminCollection) => {\n const serializable = toSerializableCollectionConfig(collection);\n await storeRef.current.save(collection.slug, serializable);\n }, []);\n\n /**\n * Find collection by id (slug).\n */\n const getCollection = useCallback((id: string): AdminCollection => {\n const found = collections.find(c => c.slug === id);\n if (found) return found;\n throw new Error(`Collection \"${id}\" not found`);\n }, [collections]);\n\n // ── CRUD operations ───────────────────────────────────────────────\n\n const saveCollection = useCallback(async <M extends Record<string, unknown>>(\n { id, collectionData }: SaveCollectionParams<M>\n ) => {\n const collection = collectionData as AdminCollection;\n await persistCollection(collection);\n const prev = collectionsRef.current;\n const idx = prev.findIndex(c => c.slug === id);\n if (idx >= 0) {\n const next = [...prev];\n next[idx] = collection;\n applyCollections(next);\n } else {\n applyCollections([...prev, collection]);\n }\n }, [persistCollection, applyCollections]);\n\n const updateCollection = useCallback(async <M extends Record<string, unknown>>(\n { id, collectionData, previousId }: UpdateCollectionParams<M>\n ) => {\n const prev = collectionsRef.current;\n const lookupId = previousId ?? id;\n const idx = prev.findIndex(c => c.slug === lookupId);\n if (idx < 0) return;\n\n const merged = { ...prev[idx], ...collectionData } as AdminCollection;\n const next = [...prev];\n next[idx] = merged;\n applyCollections(next);\n\n await persistCollection(merged);\n\n // If the slug changed, clean up the old entry in the store. After the\n // save, not beside it: dropping the old key first and then failing to\n // write the new one loses the collection outright.\n if (previousId && previousId !== id) {\n await storeRef.current.delete(previousId);\n }\n }, [persistCollection, applyCollections]);\n\n const deleteCollection = useCallback(async ({ id }: DeleteCollectionParams) => {\n await storeRef.current.delete(id);\n applyCollections(collectionsRef.current.filter(c => c.slug !== id));\n }, [applyCollections]);\n\n const saveProperty = useCallback(async ({\n path,\n propertyKey,\n property,\n newPropertiesOrder,\n }: SavePropertyParams) => {\n const prev = collectionsRef.current;\n const idx = prev.findIndex(c => c.slug === path);\n if (idx < 0) return;\n\n const collection = { ...prev[idx] };\n collection.properties = {\n ...collection.properties,\n [propertyKey]: property,\n } as EngineProperties;\n if (newPropertiesOrder) {\n collection.propertiesOrder = newPropertiesOrder as typeof collection.propertiesOrder;\n }\n\n const next = [...prev];\n next[idx] = collection as AdminCollection;\n applyCollections(next);\n\n await persistCollection(next[idx]);\n }, [persistCollection, applyCollections]);\n\n const deleteProperty = useCallback(async ({\n path,\n propertyKey,\n newPropertiesOrder,\n }: DeletePropertyParams) => {\n const prev = collectionsRef.current;\n const idx = prev.findIndex(c => c.slug === path);\n if (idx < 0) return;\n\n const collection = { ...prev[idx] };\n const { [propertyKey]: _removed, ...remaining } = collection.properties;\n collection.properties = remaining;\n if (newPropertiesOrder) {\n collection.propertiesOrder = newPropertiesOrder as typeof collection.propertiesOrder;\n }\n\n const next = [...prev];\n next[idx] = collection as AdminCollection;\n applyCollections(next);\n\n await persistCollection(next[idx]);\n }, [persistCollection, applyCollections]);\n\n const updatePropertiesOrder = useCallback(async ({\n collection,\n newPropertiesOrder,\n }: UpdatePropertiesOrderParams) => {\n const updated = {\n ...collection,\n propertiesOrder: newPropertiesOrder,\n } as AdminCollection;\n\n const prev = collectionsRef.current;\n const idx = prev.findIndex(c => c.slug === collection.slug);\n if (idx >= 0) {\n const next = [...prev];\n next[idx] = updated;\n applyCollections(next);\n }\n\n await persistCollection(updated);\n }, [persistCollection, applyCollections]);\n\n const updateKanbanColumnsOrder = useCallback(async ({\n collection,\n kanbanColumnProperty,\n newColumnsOrder,\n }: UpdateKanbanColumnsOrderParams) => {\n // Kanban column order is stored in the enum order of the column property.\n // For JSON persistence, we store it as-is — the view layer reads enum order.\n // This is a no-op for now; the kanban order is determined by the enum\n // definition on the property itself.\n }, []);\n\n const saveNavigationEntriesHandler = useCallback(async (entries: NavigationGroupMapping[]) => {\n setNavigationEntries(entries);\n if (storeRef.current.saveNavigationEntries) {\n await storeRef.current.saveNavigationEntries(entries);\n }\n }, []);\n\n // ── Return controller ─────────────────────────────────────────────\n return useMemo<CollectionsConfigController>(() => ({\n loading,\n readOnly,\n readOnlyReason: readOnly ? \"Configuration is read-only.\" : undefined,\n collections,\n getCollection,\n saveCollection,\n updateCollection,\n deleteCollection,\n saveProperty,\n deleteProperty,\n updatePropertiesOrder,\n updateKanbanColumnsOrder,\n navigationEntries,\n saveNavigationEntries: saveNavigationEntriesHandler,\n }), [\n loading,\n readOnly,\n collections,\n getCollection,\n saveCollection,\n updateCollection,\n deleteCollection,\n saveProperty,\n deleteProperty,\n updatePropertiesOrder,\n updateKanbanColumnsOrder,\n navigationEntries,\n saveNavigationEntriesHandler,\n ]);\n}\n"],"mappings":"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"}
|