From 0cbc4726aa58ebe3cc25e41d63f1e488e289fb2f Mon Sep 17 00:00:00 2001 From: Johan Persson Date: Fri, 9 Jan 2026 17:35:46 +0100 Subject: [PATCH] feat(ui): export useDefinition hook and types Signed-off-by: Johan Persson --- packages/ui/src/hooks/index.ts | 17 ++++++++++++++ packages/ui/src/hooks/useDefinition/index.ts | 24 ++++++++++++++++++++ 2 files changed, 41 insertions(+) create mode 100644 packages/ui/src/hooks/index.ts create mode 100644 packages/ui/src/hooks/useDefinition/index.ts diff --git a/packages/ui/src/hooks/index.ts b/packages/ui/src/hooks/index.ts new file mode 100644 index 0000000000..b231a4ff93 --- /dev/null +++ b/packages/ui/src/hooks/index.ts @@ -0,0 +1,17 @@ +/* + * Copyright 2025 The Backstage Authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +export * from './useDefinition'; diff --git a/packages/ui/src/hooks/useDefinition/index.ts b/packages/ui/src/hooks/useDefinition/index.ts new file mode 100644 index 0000000000..a180645975 --- /dev/null +++ b/packages/ui/src/hooks/useDefinition/index.ts @@ -0,0 +1,24 @@ +/* + * Copyright 2025 The Backstage Authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +export { useDefinition } from './useDefinition'; +export { defineComponent } from './defineComponent'; +export type { + ComponentConfig, + PropDefConfig, + UseDefinitionOptions, + UseDefinitionResult, +} from './types';