@rebasepro/studio 0.0.1-canary.f81da60 → 0.0.1-canary.fc811d7
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/LICENSE +17 -109
- package/README.md +73 -140
- package/dist/ApiExplorer-B9M9-uy_.js +963 -0
- package/dist/ApiExplorer-B9M9-uy_.js.map +1 -0
- package/dist/ApiKeysView-Dbe5cXkS.js +684 -0
- package/dist/ApiKeysView-Dbe5cXkS.js.map +1 -0
- package/dist/AuthSimulationSelector-Bougd521.js +56 -0
- package/dist/AuthSimulationSelector-Bougd521.js.map +1 -0
- package/dist/BackupsView-DNS6LdVg.js +227 -0
- package/dist/BackupsView-DNS6LdVg.js.map +1 -0
- package/dist/BranchesView-DH0qnU9J.js +460 -0
- package/dist/BranchesView-DH0qnU9J.js.map +1 -0
- package/dist/CronJobsView-B59i3Mis.js +500 -0
- package/dist/CronJobsView-B59i3Mis.js.map +1 -0
- package/dist/JSEditor-Etgw9-Cw.js +1569 -0
- package/dist/JSEditor-Etgw9-Cw.js.map +1 -0
- package/dist/LogsExplorer-J4xfsuv3.js +206 -0
- package/dist/LogsExplorer-J4xfsuv3.js.map +1 -0
- package/dist/MonacoEditor-D0_QljcX.js +246 -0
- package/dist/MonacoEditor-D0_QljcX.js.map +1 -0
- package/dist/RLSEditor-Cgv_kUVW.js +1546 -0
- package/dist/RLSEditor-Cgv_kUVW.js.map +1 -0
- package/dist/SQLEditor-ZZsy1Mk6.js +1964 -0
- package/dist/SQLEditor-ZZsy1Mk6.js.map +1 -0
- package/dist/SchemaVisualizer-D01DzU-f.js +1068 -0
- package/dist/SchemaVisualizer-D01DzU-f.js.map +1 -0
- package/dist/StorageView-UvyM2xdW.js +1423 -0
- package/dist/StorageView-UvyM2xdW.js.map +1 -0
- package/dist/{studio/src/components → components}/ApiExplorer/ApiExplorer.d.ts +2 -1
- package/dist/{studio/src/components → components}/ApiExplorer/EndpointDetail.d.ts +2 -1
- package/dist/{studio/src/components → components}/ApiExplorer/TryItPanel.d.ts +2 -1
- package/dist/{studio/src/components → components}/ApiExplorer/parseSpec.d.ts +1 -1
- package/dist/{studio/src/components → components}/ApiExplorer/types.d.ts +3 -3
- package/dist/components/ApiKeys/ApiKeysView.d.ts +2 -0
- package/dist/{studio/src/components → components}/AuthSimulationSelector.d.ts +3 -2
- package/dist/components/Backups/BackupsView.d.ts +2 -0
- package/dist/components/Branches/BranchesView.d.ts +2 -0
- package/dist/components/CronJobs/CronJobsView.d.ts +2 -0
- package/dist/components/JSEditor/JSEditor.d.ts +2 -0
- package/dist/{studio/src/components → components}/JSEditor/JSEditorSidebar.d.ts +2 -1
- package/dist/{studio/src/components → components}/JSEditor/JSMonacoEditor.d.ts +2 -1
- package/dist/components/LogsExplorer/LogsExplorer.d.ts +2 -0
- package/dist/{studio/src/components → components}/RLSEditor/PolicyEditor.d.ts +2 -1
- package/dist/{studio/src/components → components}/RLSEditor/RLSEditor.d.ts +2 -7
- package/dist/{studio/src/components → components}/SQLEditor/MonacoEditor.d.ts +2 -1
- package/dist/{studio/src/components → components}/SQLEditor/SQLEditor.d.ts +2 -1
- package/dist/{studio/src/components → components}/SQLEditor/SQLEditorSidebar.d.ts +2 -1
- package/dist/{studio/src/components → components}/SQLEditor/SchemaBrowser.d.ts +2 -1
- package/dist/{studio/src/components → components}/SchemaVisualizer/RelationEdge.d.ts +1 -1
- package/dist/components/SchemaVisualizer/SchemaVisualizer.d.ts +3 -0
- package/dist/{studio/src/components → components}/SchemaVisualizer/TableNode.d.ts +1 -1
- package/dist/{studio/src/components → components}/SchemaVisualizer/schema-visualizer.utils.d.ts +0 -8
- package/dist/{studio/src/components → components}/SchemaVisualizer/useSchemaGraph.d.ts +2 -2
- package/dist/components/StorageView/StorageView.d.ts +2 -0
- package/dist/{studio/src/components → components}/StudioHomePage.d.ts +1 -1
- package/dist/{studio/src/index.d.ts → index.d.ts} +2 -2
- package/dist/index.es.js +744 -720
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +11478 -9395
- package/dist/index.umd.js.map +1 -1
- package/dist/utils/pgColumnToProperty.d.ts +6 -0
- package/dist/{studio/src/utils → utils}/sql_utils.d.ts +3 -3
- package/package.json +32 -24
- package/src/components/ApiExplorer/ApiExplorer.tsx +4 -4
- package/src/components/ApiExplorer/EndpointDetail.tsx +11 -3
- package/src/components/ApiExplorer/TryItPanel.tsx +38 -30
- package/src/components/ApiExplorer/parseSpec.ts +3 -3
- package/src/components/ApiExplorer/types.ts +3 -3
- package/src/components/ApiKeys/ApiKeysView.tsx +580 -0
- package/src/components/AuthSimulationSelector.tsx +2 -3
- package/src/components/Backups/BackupsView.tsx +185 -0
- package/src/components/Branches/BranchesView.tsx +28 -7
- package/src/components/CronJobs/CronJobsView.tsx +48 -6
- package/src/components/JSEditor/JSEditor.tsx +76 -47
- package/src/components/JSEditor/JSEditorSidebar.tsx +15 -5
- package/src/components/JSEditor/JSMonacoEditor.tsx +46 -50
- package/src/components/LogsExplorer/LogsExplorer.tsx +189 -0
- package/src/components/RLSEditor/PolicyEditor.tsx +21 -4
- package/src/components/RLSEditor/RLSEditor.tsx +394 -150
- package/src/components/RebaseStudio.tsx +30 -3
- package/src/components/SQLEditor/MonacoEditor.tsx +1 -1
- package/src/components/SQLEditor/SQLEditor.tsx +180 -93
- package/src/components/SQLEditor/SQLEditorSidebar.tsx +2 -3
- package/src/components/SQLEditor/SchemaBrowser.tsx +18 -6
- package/src/components/SchemaVisualizer/SchemaVisualizer.tsx +8 -8
- package/src/components/SchemaVisualizer/TableNode.tsx +1 -1
- package/src/components/SchemaVisualizer/schema-visualizer.utils.ts +3 -3
- package/src/components/SchemaVisualizer/useSchemaGraph.ts +13 -13
- package/src/components/StorageView/StorageView.tsx +107 -20
- package/src/components/StudioHomePage.tsx +196 -98
- package/src/index.ts +4 -4
- package/src/utils/parseSpec.test.ts +295 -0
- package/src/utils/pgColumnToProperty.test.ts +1 -0
- package/src/utils/pgColumnToProperty.ts +54 -20
- package/src/utils/sql_utils.test.ts +6 -6
- package/src/utils/sql_utils.ts +4 -4
- package/dist/ApiExplorer-DHVmWYfK.js +0 -1053
- package/dist/ApiExplorer-DHVmWYfK.js.map +0 -1
- package/dist/AuthSimulationSelector-CM488Eei.js +0 -106
- package/dist/AuthSimulationSelector-CM488Eei.js.map +0 -1
- package/dist/BranchesView-DcHZtvXo.js +0 -292
- package/dist/BranchesView-DcHZtvXo.js.map +0 -1
- package/dist/CronJobsView-CijCToeK.js +0 -456
- package/dist/CronJobsView-CijCToeK.js.map +0 -1
- package/dist/JSEditor-CSHA0t_O.js +0 -1308
- package/dist/JSEditor-CSHA0t_O.js.map +0 -1
- package/dist/MonacoEditor-CMYEjiRf.js +0 -161
- package/dist/MonacoEditor-CMYEjiRf.js.map +0 -1
- package/dist/RLSEditor-BzDjqo6w.js +0 -1872
- package/dist/RLSEditor-BzDjqo6w.js.map +0 -1
- package/dist/SQLEditor-Cr9Kg_Qg.js +0 -1780
- package/dist/SQLEditor-Cr9Kg_Qg.js.map +0 -1
- package/dist/SchemaVisualizer-BGpmzyXT.js +0 -1069
- package/dist/SchemaVisualizer-BGpmzyXT.js.map +0 -1
- package/dist/StorageView-BYoslzBR.js +0 -870
- package/dist/StorageView-BYoslzBR.js.map +0 -1
- package/dist/common/src/collections/CollectionRegistry.d.ts +0 -56
- package/dist/common/src/collections/index.d.ts +0 -1
- package/dist/common/src/data/buildRebaseData.d.ts +0 -14
- package/dist/common/src/index.d.ts +0 -3
- package/dist/common/src/util/builders.d.ts +0 -57
- package/dist/common/src/util/callbacks.d.ts +0 -6
- package/dist/common/src/util/collections.d.ts +0 -11
- package/dist/common/src/util/common.d.ts +0 -2
- package/dist/common/src/util/conditions.d.ts +0 -26
- package/dist/common/src/util/entities.d.ts +0 -58
- package/dist/common/src/util/enums.d.ts +0 -3
- package/dist/common/src/util/index.d.ts +0 -16
- package/dist/common/src/util/navigation_from_path.d.ts +0 -34
- package/dist/common/src/util/navigation_utils.d.ts +0 -20
- package/dist/common/src/util/parent_references_from_path.d.ts +0 -6
- package/dist/common/src/util/paths.d.ts +0 -14
- package/dist/common/src/util/permissions.d.ts +0 -5
- package/dist/common/src/util/references.d.ts +0 -2
- package/dist/common/src/util/relations.d.ts +0 -22
- package/dist/common/src/util/resolutions.d.ts +0 -72
- package/dist/common/src/util/storage.d.ts +0 -24
- package/dist/core/src/components/AIIcon.d.ts +0 -16
- package/dist/core/src/components/ConfirmationDialog.d.ts +0 -9
- package/dist/core/src/components/Debug/UIReferenceView.d.ts +0 -1
- package/dist/core/src/components/Debug/UIStyleGuide.d.ts +0 -1
- package/dist/core/src/components/ErrorTooltip.d.ts +0 -2
- package/dist/core/src/components/ErrorView.d.ts +0 -21
- package/dist/core/src/components/LanguageToggle.d.ts +0 -1
- package/dist/core/src/components/LoginView/LoginView.d.ts +0 -68
- package/dist/core/src/components/LoginView/index.d.ts +0 -2
- package/dist/core/src/components/NotFoundPage.d.ts +0 -1
- package/dist/core/src/components/RebaseAuth.d.ts +0 -10
- package/dist/core/src/components/RebaseLogo.d.ts +0 -7
- package/dist/core/src/components/UnsavedChangesDialog.d.ts +0 -9
- package/dist/core/src/components/UserDisplay.d.ts +0 -7
- package/dist/core/src/components/UserSelectPopover.d.ts +0 -62
- package/dist/core/src/components/UserSettingsView.d.ts +0 -1
- package/dist/core/src/components/common/index.d.ts +0 -6
- package/dist/core/src/components/common/table_height.d.ts +0 -5
- package/dist/core/src/components/common/types.d.ts +0 -63
- package/dist/core/src/components/common/useColumnsIds.d.ts +0 -9
- package/dist/core/src/components/common/useDataTableController.d.ts +0 -45
- package/dist/core/src/components/common/useDebouncedData.d.ts +0 -9
- package/dist/core/src/components/common/useScrollRestoration.d.ts +0 -14
- package/dist/core/src/components/index.d.ts +0 -16
- package/dist/core/src/contexts/AdminModeController.d.ts +0 -4
- package/dist/core/src/contexts/AnalyticsContext.d.ts +0 -3
- package/dist/core/src/contexts/AuthControllerContext.d.ts +0 -3
- package/dist/core/src/contexts/CustomizationControllerContext.d.ts +0 -3
- package/dist/core/src/contexts/DataDriverContext.d.ts +0 -3
- package/dist/core/src/contexts/DatabaseAdminContext.d.ts +0 -3
- package/dist/core/src/contexts/DialogsProvider.d.ts +0 -4
- package/dist/core/src/contexts/EffectiveRoleController.d.ts +0 -4
- package/dist/core/src/contexts/InternalUserManagementContext.d.ts +0 -3
- package/dist/core/src/contexts/ModeController.d.ts +0 -4
- package/dist/core/src/contexts/RebaseClientInstanceContext.d.ts +0 -6
- package/dist/core/src/contexts/RebaseDataContext.d.ts +0 -3
- package/dist/core/src/contexts/SnackbarProvider.d.ts +0 -2
- package/dist/core/src/contexts/StorageSourceContext.d.ts +0 -3
- package/dist/core/src/contexts/UserConfigurationPersistenceContext.d.ts +0 -3
- package/dist/core/src/contexts/index.d.ts +0 -13
- package/dist/core/src/core/PluginLifecycleManager.d.ts +0 -17
- package/dist/core/src/core/PluginProviderStack.d.ts +0 -21
- package/dist/core/src/core/Rebase.d.ts +0 -14
- package/dist/core/src/core/RebaseProps.d.ts +0 -136
- package/dist/core/src/core/RebaseRouter.d.ts +0 -4
- package/dist/core/src/core/RebaseRoutes.d.ts +0 -17
- package/dist/core/src/core/index.d.ts +0 -4
- package/dist/core/src/hooks/ApiConfigContext.d.ts +0 -24
- package/dist/core/src/hooks/data/delete.d.ts +0 -31
- package/dist/core/src/hooks/data/save.d.ts +0 -34
- package/dist/core/src/hooks/data/useCollectionFetch.d.ts +0 -51
- package/dist/core/src/hooks/data/useData.d.ts +0 -13
- package/dist/core/src/hooks/data/useDataOrder.d.ts +0 -12
- package/dist/core/src/hooks/data/useEntityFetch.d.ts +0 -38
- package/dist/core/src/hooks/data/useRelationSelector.d.ts +0 -52
- package/dist/core/src/hooks/data/useUserSelector.d.ts +0 -31
- package/dist/core/src/hooks/index.d.ts +0 -37
- package/dist/core/src/hooks/useAdminModeController.d.ts +0 -19
- package/dist/core/src/hooks/useAnalyticsController.d.ts +0 -5
- package/dist/core/src/hooks/useAuthController.d.ts +0 -11
- package/dist/core/src/hooks/useAuthSubscription.d.ts +0 -2
- package/dist/core/src/hooks/useBackendStorageSource.d.ts +0 -30
- package/dist/core/src/hooks/useBridgeRegistration.d.ts +0 -18
- package/dist/core/src/hooks/useBrowserTitleAndIcon.d.ts +0 -6
- package/dist/core/src/hooks/useBuildAdminModeController.d.ts +0 -6
- package/dist/core/src/hooks/useBuildEffectiveRoleController.d.ts +0 -8
- package/dist/core/src/hooks/useBuildLocalConfigurationPersistence.d.ts +0 -2
- package/dist/core/src/hooks/useBuildModeController.d.ts +0 -6
- package/dist/core/src/hooks/useClipboard.d.ts +0 -57
- package/dist/core/src/hooks/useCollapsedGroups.d.ts +0 -12
- package/dist/core/src/hooks/useCustomizationController.d.ts +0 -11
- package/dist/core/src/hooks/useDialogsController.d.ts +0 -11
- package/dist/core/src/hooks/useEffectiveRoleController.d.ts +0 -7
- package/dist/core/src/hooks/useInternalUserManagementController.d.ts +0 -12
- package/dist/core/src/hooks/useLargeLayout.d.ts +0 -1
- package/dist/core/src/hooks/useModeController.d.ts +0 -19
- package/dist/core/src/hooks/usePermissions.d.ts +0 -12
- package/dist/core/src/hooks/useRebaseClient.d.ts +0 -5
- package/dist/core/src/hooks/useRebaseContext.d.ts +0 -11
- package/dist/core/src/hooks/useRebaseRegistry.d.ts +0 -34
- package/dist/core/src/hooks/useSlot.d.ts +0 -18
- package/dist/core/src/hooks/useSnackbarController.d.ts +0 -20
- package/dist/core/src/hooks/useStorageSource.d.ts +0 -7
- package/dist/core/src/hooks/useStudioBridge.d.ts +0 -91
- package/dist/core/src/hooks/useTranslation.d.ts +0 -17
- package/dist/core/src/hooks/useUnsavedChangesDialog.d.ts +0 -12
- package/dist/core/src/hooks/useUserConfigurationPersistence.d.ts +0 -8
- package/dist/core/src/hooks/useValidateAuthenticator.d.ts +0 -21
- package/dist/core/src/i18n/RebaseI18nProvider.d.ts +0 -33
- package/dist/core/src/index.d.ts +0 -15
- package/dist/core/src/internal/common.d.ts +0 -3
- package/dist/core/src/internal/useRestoreScroll.d.ts +0 -6
- package/dist/core/src/locales/de.d.ts +0 -2
- package/dist/core/src/locales/en.d.ts +0 -10
- package/dist/core/src/locales/es.d.ts +0 -10
- package/dist/core/src/locales/fr.d.ts +0 -2
- package/dist/core/src/locales/hi.d.ts +0 -2
- package/dist/core/src/locales/it.d.ts +0 -2
- package/dist/core/src/locales/pt.d.ts +0 -7
- package/dist/core/src/util/constants.d.ts +0 -1
- package/dist/core/src/util/createFormexStub.d.ts +0 -2
- package/dist/core/src/util/entity_cache.d.ts +0 -27
- package/dist/core/src/util/enums.d.ts +0 -5
- package/dist/core/src/util/icon_list.d.ts +0 -5
- package/dist/core/src/util/icon_synonyms.d.ts +0 -1
- package/dist/core/src/util/icons.d.ts +0 -20
- package/dist/core/src/util/index.d.ts +0 -10
- package/dist/core/src/util/previews.d.ts +0 -4
- package/dist/core/src/util/useStorageUploadController.d.ts +0 -38
- package/dist/core/src/util/useTraceUpdate.d.ts +0 -2
- package/dist/formex/src/Field.d.ts +0 -52
- package/dist/formex/src/Formex.d.ts +0 -7
- package/dist/formex/src/index.d.ts +0 -5
- package/dist/formex/src/types.d.ts +0 -40
- package/dist/formex/src/useCreateFormex.d.ts +0 -14
- package/dist/formex/src/utils.d.ts +0 -16
- package/dist/studio/src/components/Branches/BranchesView.d.ts +0 -1
- package/dist/studio/src/components/CronJobs/CronJobsView.d.ts +0 -1
- package/dist/studio/src/components/JSEditor/JSEditor.d.ts +0 -1
- package/dist/studio/src/components/SchemaVisualizer/SchemaVisualizer.d.ts +0 -2
- package/dist/studio/src/components/SchemaVisualizer/index.d.ts +0 -5
- package/dist/studio/src/components/StorageView/StorageView.d.ts +0 -1
- package/dist/studio/src/utils/entities.d.ts +0 -0
- package/dist/studio/src/utils/pgColumnToProperty.d.ts +0 -6
- package/dist/types/src/controllers/analytics_controller.d.ts +0 -7
- package/dist/types/src/controllers/auth.d.ts +0 -119
- package/dist/types/src/controllers/client.d.ts +0 -170
- package/dist/types/src/controllers/collection_registry.d.ts +0 -46
- package/dist/types/src/controllers/customization_controller.d.ts +0 -60
- package/dist/types/src/controllers/data.d.ts +0 -168
- package/dist/types/src/controllers/data_driver.d.ts +0 -195
- package/dist/types/src/controllers/database_admin.d.ts +0 -11
- package/dist/types/src/controllers/dialogs_controller.d.ts +0 -36
- package/dist/types/src/controllers/effective_role.d.ts +0 -4
- package/dist/types/src/controllers/email.d.ts +0 -34
- package/dist/types/src/controllers/index.d.ts +0 -18
- package/dist/types/src/controllers/local_config_persistence.d.ts +0 -20
- package/dist/types/src/controllers/navigation.d.ts +0 -213
- package/dist/types/src/controllers/registry.d.ts +0 -54
- package/dist/types/src/controllers/side_dialogs_controller.d.ts +0 -67
- package/dist/types/src/controllers/side_entity_controller.d.ts +0 -90
- package/dist/types/src/controllers/snackbar.d.ts +0 -24
- package/dist/types/src/controllers/storage.d.ts +0 -171
- package/dist/types/src/index.d.ts +0 -4
- package/dist/types/src/rebase_context.d.ts +0 -105
- package/dist/types/src/types/backend.d.ts +0 -536
- package/dist/types/src/types/backend_hooks.d.ts +0 -187
- package/dist/types/src/types/builders.d.ts +0 -15
- package/dist/types/src/types/chips.d.ts +0 -5
- package/dist/types/src/types/collections.d.ts +0 -857
- package/dist/types/src/types/cron.d.ts +0 -102
- package/dist/types/src/types/data_source.d.ts +0 -64
- package/dist/types/src/types/entities.d.ts +0 -145
- package/dist/types/src/types/entity_actions.d.ts +0 -98
- package/dist/types/src/types/entity_callbacks.d.ts +0 -173
- package/dist/types/src/types/entity_link_builder.d.ts +0 -7
- package/dist/types/src/types/entity_overrides.d.ts +0 -10
- package/dist/types/src/types/entity_views.d.ts +0 -59
- package/dist/types/src/types/export_import.d.ts +0 -21
- package/dist/types/src/types/formex.d.ts +0 -40
- package/dist/types/src/types/index.d.ts +0 -25
- package/dist/types/src/types/locales.d.ts +0 -4
- package/dist/types/src/types/modify_collections.d.ts +0 -5
- package/dist/types/src/types/plugins.d.ts +0 -282
- package/dist/types/src/types/properties.d.ts +0 -1148
- package/dist/types/src/types/property_config.d.ts +0 -70
- package/dist/types/src/types/relations.d.ts +0 -336
- package/dist/types/src/types/slots.d.ts +0 -262
- package/dist/types/src/types/translations.d.ts +0 -874
- package/dist/types/src/types/user_management_delegate.d.ts +0 -121
- package/dist/types/src/types/websockets.d.ts +0 -78
- package/dist/types/src/users/index.d.ts +0 -2
- package/dist/types/src/users/roles.d.ts +0 -22
- package/dist/types/src/users/user.d.ts +0 -46
- package/dist/ui/src/components/Alert.d.ts +0 -12
- package/dist/ui/src/components/Autocomplete.d.ts +0 -21
- package/dist/ui/src/components/Avatar.d.ts +0 -11
- package/dist/ui/src/components/Badge.d.ts +0 -8
- package/dist/ui/src/components/BooleanSwitch.d.ts +0 -14
- package/dist/ui/src/components/BooleanSwitchWithLabel.d.ts +0 -17
- package/dist/ui/src/components/Button.d.ts +0 -14
- package/dist/ui/src/components/Card.d.ts +0 -9
- package/dist/ui/src/components/CenteredView.d.ts +0 -9
- package/dist/ui/src/components/Checkbox.d.ts +0 -13
- package/dist/ui/src/components/Chip.d.ts +0 -26
- package/dist/ui/src/components/CircularProgress.d.ts +0 -5
- package/dist/ui/src/components/CircularProgressCenter.d.ts +0 -11
- package/dist/ui/src/components/Collapse.d.ts +0 -9
- package/dist/ui/src/components/ColorPicker.d.ts +0 -30
- package/dist/ui/src/components/Container.d.ts +0 -8
- package/dist/ui/src/components/DateTimeField.d.ts +0 -24
- package/dist/ui/src/components/DebouncedTextField.d.ts +0 -2
- package/dist/ui/src/components/Dialog.d.ts +0 -39
- package/dist/ui/src/components/DialogActions.d.ts +0 -7
- package/dist/ui/src/components/DialogContent.d.ts +0 -7
- package/dist/ui/src/components/DialogTitle.d.ts +0 -10
- package/dist/ui/src/components/ErrorBoundary.d.ts +0 -11
- package/dist/ui/src/components/ExpandablePanel.d.ts +0 -12
- package/dist/ui/src/components/FileUpload.d.ts +0 -23
- package/dist/ui/src/components/IconButton.d.ts +0 -12
- package/dist/ui/src/components/InfoLabel.d.ts +0 -5
- package/dist/ui/src/components/InputLabel.d.ts +0 -11
- package/dist/ui/src/components/Label.d.ts +0 -7
- package/dist/ui/src/components/LoadingButton.d.ts +0 -7
- package/dist/ui/src/components/Markdown.d.ts +0 -10
- package/dist/ui/src/components/Menu.d.ts +0 -23
- package/dist/ui/src/components/Menubar.d.ts +0 -80
- package/dist/ui/src/components/MultiSelect.d.ts +0 -48
- package/dist/ui/src/components/Paper.d.ts +0 -6
- package/dist/ui/src/components/Popover.d.ts +0 -24
- package/dist/ui/src/components/RadioGroup.d.ts +0 -28
- package/dist/ui/src/components/ResizablePanels.d.ts +0 -18
- package/dist/ui/src/components/SearchBar.d.ts +0 -22
- package/dist/ui/src/components/Select.d.ts +0 -43
- package/dist/ui/src/components/Separator.d.ts +0 -5
- package/dist/ui/src/components/Sheet.d.ts +0 -22
- package/dist/ui/src/components/Skeleton.d.ts +0 -6
- package/dist/ui/src/components/Slider.d.ts +0 -21
- package/dist/ui/src/components/Table.d.ts +0 -34
- package/dist/ui/src/components/Tabs.d.ts +0 -19
- package/dist/ui/src/components/TextField.d.ts +0 -58
- package/dist/ui/src/components/TextareaAutosize.d.ts +0 -43
- package/dist/ui/src/components/ToggleButtonGroup.d.ts +0 -30
- package/dist/ui/src/components/Tooltip.d.ts +0 -19
- package/dist/ui/src/components/Typography.d.ts +0 -36
- package/dist/ui/src/components/VirtualTable/VirtualTable.d.ts +0 -11
- package/dist/ui/src/components/VirtualTable/VirtualTableCell.d.ts +0 -21
- package/dist/ui/src/components/VirtualTable/VirtualTableHeader.d.ts +0 -29
- package/dist/ui/src/components/VirtualTable/VirtualTableHeaderRow.d.ts +0 -2
- package/dist/ui/src/components/VirtualTable/VirtualTableProps.d.ts +0 -243
- package/dist/ui/src/components/VirtualTable/VirtualTableRow.d.ts +0 -3
- package/dist/ui/src/components/VirtualTable/index.d.ts +0 -3
- package/dist/ui/src/components/VirtualTable/types.d.ts +0 -38
- package/dist/ui/src/components/common/SelectInputLabel.d.ts +0 -5
- package/dist/ui/src/components/index.d.ts +0 -53
- package/dist/ui/src/hooks/PortalContainerContext.d.ts +0 -31
- package/dist/ui/src/hooks/index.d.ts +0 -6
- package/dist/ui/src/hooks/useDebounceCallback.d.ts +0 -1
- package/dist/ui/src/hooks/useDebounceValue.d.ts +0 -1
- package/dist/ui/src/hooks/useDebouncedCallback.d.ts +0 -1
- package/dist/ui/src/hooks/useInjectStyles.d.ts +0 -7
- package/dist/ui/src/hooks/useOutsideAlerter.d.ts +0 -5
- package/dist/ui/src/icons/GitHubIcon.d.ts +0 -2
- package/dist/ui/src/icons/HandleIcon.d.ts +0 -1
- package/dist/ui/src/icons/Icon.d.ts +0 -20
- package/dist/ui/src/icons/cool_icon_keys.d.ts +0 -1
- package/dist/ui/src/icons/icon_keys.d.ts +0 -1
- package/dist/ui/src/icons/index.d.ts +0 -6
- package/dist/ui/src/index.d.ts +0 -5
- package/dist/ui/src/styles.d.ts +0 -12
- package/dist/ui/src/util/chip_colors.d.ts +0 -4
- package/dist/ui/src/util/cls.d.ts +0 -2
- package/dist/ui/src/util/debounce.d.ts +0 -10
- package/dist/ui/src/util/hash.d.ts +0 -1
- package/dist/ui/src/util/index.d.ts +0 -4
- package/dist/ui/src/util/key_to_icon_component.d.ts +0 -1
- package/src/components/SchemaVisualizer/index.ts +0 -5
- package/src/utils/entities.ts +0 -2
- package/src/vite-env.d.ts +0 -1
- /package/dist/{studio/src/components → components}/RLSEditor/index.d.ts +0 -0
- /package/dist/{studio/src/components → components}/RebaseStudio.d.ts +0 -0
- /package/dist/{studio/src/components → components}/SQLEditor/ExplainVisualizer.d.ts +0 -0
package/LICENSE
CHANGED
|
@@ -1,114 +1,22 @@
|
|
|
1
|
-
|
|
1
|
+
MIT License
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Copyright (c) 2026 Rebase
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
data_export
|
|
12
|
-
data_export
|
|
13
|
-
editor
|
|
14
|
-
rebase_cloud
|
|
15
|
-
schema_inference
|
|
16
|
-
user_management
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
17
11
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
you may not use the Licensed Work for a CMS Data Enhancement
|
|
21
|
-
Service.
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
22
14
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
28
22
|
|
|
29
|
-
Change Date: Four years from the date the Licensed Work is published.
|
|
30
|
-
|
|
31
|
-
Change License: MIT
|
|
32
|
-
|
|
33
|
-
For information about alternative licensing arrangements for the Software,
|
|
34
|
-
please visit: https://rebase.pro
|
|
35
|
-
|
|
36
|
-
Notice
|
|
37
|
-
|
|
38
|
-
The Business Source License (this document, or the “License”) is not an Open
|
|
39
|
-
Source license. However, the Licensed Work will eventually be made available
|
|
40
|
-
under an Open Source License, as stated in this License.
|
|
41
|
-
|
|
42
|
-
License text copyright (c) 2017 MariaDB Corporation Ab, All Rights Reserved.
|
|
43
|
-
“Business Source License” is a trademark of MariaDB Corporation Ab.
|
|
44
|
-
|
|
45
|
-
-----------------------------------------------------------------------------
|
|
46
|
-
|
|
47
|
-
Business Source License 1.1
|
|
48
|
-
|
|
49
|
-
Terms
|
|
50
|
-
|
|
51
|
-
The Licensor hereby grants you the right to copy, modify, create derivative
|
|
52
|
-
works, redistribute, and make non-production use of the Licensed Work. The
|
|
53
|
-
Licensor may make an Additional Use Grant, above, permitting limited
|
|
54
|
-
production use.
|
|
55
|
-
|
|
56
|
-
Effective on the Change Date, or the fourth anniversary of the first publicly
|
|
57
|
-
available distribution of a specific version of the Licensed Work under this
|
|
58
|
-
License, whichever comes first, the Licensor hereby grants you rights under
|
|
59
|
-
the terms of the Change License, and the rights granted in the paragraph
|
|
60
|
-
above terminate.
|
|
61
|
-
|
|
62
|
-
If your use of the Licensed Work does not comply with the requirements
|
|
63
|
-
currently in effect as described in this License, you must purchase a
|
|
64
|
-
commercial license from the Licensor, its affiliated entities, or authorized
|
|
65
|
-
resellers, or you must refrain from using the Licensed Work.
|
|
66
|
-
|
|
67
|
-
All copies of the original and modified Licensed Work, and derivative works
|
|
68
|
-
of the Licensed Work, are subject to this License. This License applies
|
|
69
|
-
separately for each version of the Licensed Work and the Change Date may vary
|
|
70
|
-
for each version of the Licensed Work released by Licensor.
|
|
71
|
-
|
|
72
|
-
You must conspicuously display this License on each original or modified copy
|
|
73
|
-
of the Licensed Work. If you receive the Licensed Work in original or
|
|
74
|
-
modified form from a third party, the terms and conditions set forth in this
|
|
75
|
-
License apply to your use of that work.
|
|
76
|
-
|
|
77
|
-
Any use of the Licensed Work in violation of this License will automatically
|
|
78
|
-
terminate your rights under this License for the current and all other
|
|
79
|
-
versions of the Licensed Work.
|
|
80
|
-
|
|
81
|
-
This License does not grant you any right in any trademark or logo of
|
|
82
|
-
Licensor or its affiliates (provided that you may use a trademark or logo of
|
|
83
|
-
Licensor as expressly required by this License).
|
|
84
|
-
|
|
85
|
-
TO THE EXTENT PERMITTED BY APPLICABLE LAW, THE LICENSED WORK IS PROVIDED ON
|
|
86
|
-
AN “AS IS” BASIS. LICENSOR HEREBY DISCLAIMS ALL WARRANTIES AND CONDITIONS,
|
|
87
|
-
EXPRESS OR IMPLIED, INCLUDING (WITHOUT LIMITATION) WARRANTIES OF
|
|
88
|
-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, AND
|
|
89
|
-
TITLE.
|
|
90
|
-
|
|
91
|
-
MariaDB hereby grants you permission to use this License’s text to license
|
|
92
|
-
your works, and to refer to it using the trademark “Business Source License”,
|
|
93
|
-
as long as you comply with the Covenants of Licensor below.
|
|
94
|
-
|
|
95
|
-
Covenants of Licensor
|
|
96
|
-
|
|
97
|
-
In consideration of the right to use this License’s text and the “Business
|
|
98
|
-
Source License” name and trademark, Licensor covenants to MariaDB, and to all
|
|
99
|
-
other recipients of the licensed work to be provided by Licensor:
|
|
100
|
-
|
|
101
|
-
1. To specify as the Change License the GPL Version 2.0 or any later version,
|
|
102
|
-
or a license that is compatible with GPL Version 2.0 or a later version,
|
|
103
|
-
where “compatible” means that software provided under the Change License can
|
|
104
|
-
be included in a program with software provided under GPL Version 2.0 or a
|
|
105
|
-
later version. Licensor may specify additional Change Licenses without
|
|
106
|
-
limitation.
|
|
107
|
-
|
|
108
|
-
2. To either: (a) specify an additional grant of rights to use that does not
|
|
109
|
-
impose any additional restriction on the right granted in this License, as
|
|
110
|
-
the Additional Use Grant; or (b) insert the text “None”.
|
|
111
|
-
|
|
112
|
-
3. To specify a Change Date.
|
|
113
|
-
|
|
114
|
-
4. Not to modify this License in any other way.
|
package/README.md
CHANGED
|
@@ -1,159 +1,92 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @rebasepro/studio
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
collection editor that allows you to create, edit, and delete collections without writing code.
|
|
3
|
+
Developer tools layer for Rebase — provides 9 lazy-loaded tools (SQL Console, JS Console, RLS Editor, Storage, Cron Jobs, Schema Visualizer, Branches, API Explorer, Logs Explorer) plus a customizable home page.
|
|
5
4
|
|
|
6
5
|
## Installation
|
|
7
6
|
|
|
8
7
|
```bash
|
|
9
|
-
|
|
10
|
-
# or
|
|
11
|
-
yarn add @rebasepro/collection_editor
|
|
8
|
+
pnpm add @rebasepro/studio
|
|
12
9
|
```
|
|
13
10
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
##
|
|
23
|
-
|
|
24
|
-
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
// Define permissions for collection operations
|
|
65
|
-
configPermissions: ({ user }) => ({
|
|
66
|
-
createCollections: user.roles?.includes("admin") ?? false,
|
|
67
|
-
editCollections: user.roles?.includes("admin") ?? false,
|
|
68
|
-
deleteCollections: user.roles?.includes("admin") ?? false
|
|
69
|
-
}),
|
|
70
|
-
|
|
71
|
-
// Prevent these group names from being used
|
|
72
|
-
reservedGroups: ["admin", "system"],
|
|
73
|
-
|
|
74
|
-
// Optional custom view to add to the editor
|
|
75
|
-
extraView: {
|
|
76
|
-
View: MyCustomView,
|
|
77
|
-
icon: <CustomIcon />
|
|
78
|
-
},
|
|
79
|
-
|
|
80
|
-
// Function to infer collection structure from existing data
|
|
81
|
-
collectionInference: async ({ path }) => {
|
|
82
|
-
// Return inferred schema based on data at path
|
|
83
|
-
},
|
|
84
|
-
|
|
85
|
-
// Function to get sample data for a collection
|
|
86
|
-
getData: async (path, parentPaths) => {
|
|
87
|
-
// Return sample data for the specified path
|
|
88
|
-
},
|
|
89
|
-
|
|
90
|
-
// Track collection editor events
|
|
91
|
-
onAnalyticsEvent: (event, params) => {
|
|
92
|
-
console.log("Collection editor event:", event, params);
|
|
93
|
-
},
|
|
94
|
-
|
|
95
|
-
// Include introduction widget when no collections exist
|
|
96
|
-
includeIntroView: true
|
|
97
|
-
}}
|
|
98
|
-
/>
|
|
11
|
+
### Peer Dependencies
|
|
12
|
+
|
|
13
|
+
- `react` >= 19.0.0
|
|
14
|
+
- `react-dom` >= 19.0.0
|
|
15
|
+
- `react-router` ^7.0.0
|
|
16
|
+
- `react-router-dom` ^7.0.0
|
|
17
|
+
- `@rebasepro/admin` (optional)
|
|
18
|
+
|
|
19
|
+
## What This Package Does
|
|
20
|
+
|
|
21
|
+
`@rebasepro/studio` registers a set of developer tools into the Rebase CMS. The `<RebaseStudio>` component renders nothing visible — it declaratively registers tool views into the Rebase registry. Each tool (Monaco-based editors, xyflow graph, etc.) is lazy-loaded so it stays out of the initial bundle.
|
|
22
|
+
|
|
23
|
+
## Available Tools
|
|
24
|
+
|
|
25
|
+
| Slug | Name | Group | Description |
|
|
26
|
+
|---|---|---|---|
|
|
27
|
+
| `sql` | SQL Console | Database | Execute raw SQL queries |
|
|
28
|
+
| `js` | JS Console | Compute | Run JavaScript in a live sandbox |
|
|
29
|
+
| `rls` | RLS Policies | Database | Configure Row Level Security |
|
|
30
|
+
| `storage` | Storage | Storage | Browse and manage files |
|
|
31
|
+
| `cron` | Cron Jobs | Compute | Monitor scheduled tasks |
|
|
32
|
+
| `schema-visualizer` | Schema Visualizer | Database | Interactive database ERD |
|
|
33
|
+
| `branches` | Branches | Database | Create and manage database branches |
|
|
34
|
+
| `api` | API Explorer | API | Interactive API docs and testing |
|
|
35
|
+
| `logs` | Logs Explorer | Database | Real-time system and query logs |
|
|
36
|
+
|
|
37
|
+
All 9 tools are enabled by default. The `schema` tool (collection editor) is auto-injected by the CMS when `collectionEditor` is enabled — it is **not** registered here.
|
|
38
|
+
|
|
39
|
+
## Key Exports
|
|
40
|
+
|
|
41
|
+
| Export | Type | Description |
|
|
42
|
+
|---|---|---|
|
|
43
|
+
| `RebaseStudio` | Component | Main entry point — registers tools into the Rebase registry |
|
|
44
|
+
| `StudioHomePage` | Component | Default home page with tool cards and SDK quick-start snippet |
|
|
45
|
+
| `StudioBridgeProvider` | Component | Re-exported from `@rebasepro/app` |
|
|
46
|
+
| `StudioBridgeContext` | Context | Re-exported from `@rebasepro/app` |
|
|
47
|
+
| `useStudioCollectionRegistry` | Hook | Access the collection registry |
|
|
48
|
+
| `useStudioSidePanelController` | Hook | Control the side snapshot panel |
|
|
49
|
+
| `useStudioUrlController` | Hook | URL state management |
|
|
50
|
+
| `useStudioNavigationState` | Hook | Navigation state |
|
|
51
|
+
| `useStudioBreadcrumbs` | Hook | Breadcrumb management |
|
|
52
|
+
| `StudioBridge` | Type | Bridge interface type |
|
|
53
|
+
| `BreadcrumbEntry` | Type | Single breadcrumb item |
|
|
54
|
+
| `BreadcrumbsController` | Type | Breadcrumb controller interface |
|
|
55
|
+
|
|
56
|
+
Individual tools (e.g. `SQLEditor`, `SchemaVisualizer`) are **not** re-exported from the barrel to preserve code splitting. Use deep imports if needed:
|
|
57
|
+
|
|
58
|
+
```typescript
|
|
59
|
+
import { SQLEditor } from "@rebasepro/studio/components/SQLEditor/SQLEditor";
|
|
99
60
|
```
|
|
100
61
|
|
|
101
|
-
##
|
|
102
|
-
|
|
103
|
-
You can combine collections defined in code with those created in the UI:
|
|
62
|
+
## Quick Start
|
|
104
63
|
|
|
105
64
|
```tsx
|
|
106
|
-
import {
|
|
107
|
-
|
|
65
|
+
import { RebaseStudio } from "@rebasepro/studio";
|
|
108
66
|
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
const codeCollections = [productsCollection, ordersCollection];
|
|
112
|
-
|
|
113
|
-
// Merge with collections from the editor UI
|
|
114
|
-
return mergeCollections(codeCollections, collectionConfigController.collections ?? []);
|
|
115
|
-
}, [collectionConfigController.collections]);
|
|
67
|
+
// Inside your Rebase app — enable all 9 tools (default)
|
|
68
|
+
<RebaseStudio />
|
|
116
69
|
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
// Other options
|
|
120
|
-
});
|
|
121
|
-
```
|
|
122
|
-
|
|
123
|
-
## Firestore Configuration Controller
|
|
124
|
-
|
|
125
|
-
To persist collections in Firestore:
|
|
70
|
+
// Or pick specific tools
|
|
71
|
+
<RebaseStudio tools={["sql", "rls", "storage", "api"]} />
|
|
126
72
|
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
firebaseApp,
|
|
130
|
-
|
|
131
|
-
// Optional: specify where to save configs (default: "__REBASE/config/collections")
|
|
132
|
-
configPath: "custom/config/path",
|
|
133
|
-
|
|
134
|
-
// Optional: define permissions for collections
|
|
135
|
-
permissions: ({ user }) => ({
|
|
136
|
-
// Your permissions logic
|
|
137
|
-
}),
|
|
138
|
-
|
|
139
|
-
// Optional: custom property configurations
|
|
140
|
-
propertyConfigs: [
|
|
141
|
-
// Custom property types
|
|
142
|
-
]
|
|
143
|
-
});
|
|
73
|
+
// Custom home page
|
|
74
|
+
<RebaseStudio homePage={<MyCustomHomePage />} />
|
|
144
75
|
```
|
|
145
76
|
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
- Collections created through the editor are stored in Firestore and loaded dynamically
|
|
149
|
-
- The plugin automatically adds UI elements for creating and managing collections
|
|
150
|
-
- For a complete solution, consider using alongside other plugins like data import/export
|
|
77
|
+
### StudioHomePage Props
|
|
151
78
|
|
|
152
|
-
|
|
79
|
+
| Prop | Type | Description |
|
|
80
|
+
|---|---|---|
|
|
81
|
+
| `additionalActions` | `ReactNode` | Extra actions in the top-right area |
|
|
82
|
+
| `additionalChildrenStart` | `ReactNode` | Content before the tool grid |
|
|
83
|
+
| `additionalChildrenEnd` | `ReactNode` | Content after the tool grid |
|
|
84
|
+
| `sections` | `HomePageSection[]` | Extra sections appended to the page |
|
|
85
|
+
| `hiddenGroups` | `string[]` | Groups to hide from the home page |
|
|
153
86
|
|
|
154
|
-
|
|
87
|
+
## Related Packages
|
|
155
88
|
|
|
156
|
-
-
|
|
157
|
-
-
|
|
158
|
-
-
|
|
159
|
-
-
|
|
89
|
+
- `@rebasepro/app` — Bridge, registry, and navigation primitives
|
|
90
|
+
- `@rebasepro/ui` — Component library used by Studio tools
|
|
91
|
+
- `@rebasepro/admin` — The CMS layer (optional peer dep)
|
|
92
|
+
- `@rebasepro/types` — Shared type definitions
|