chore: refactoring how the exports work, should only export the extension

Signed-off-by: blam <ben@blam.sh>
This commit is contained in:
blam
2024-01-23 13:41:54 +01:00
parent e5f8b50ba0
commit f5fc7eeb33
5 changed files with 4 additions and 17 deletions
+2 -6
View File
@@ -210,8 +210,8 @@ export function makeFieldSchemaFromZod<
: never
>;
// @public (undocumented)
export const MultiEntityPickerFieldSchema: FieldSchema<
// @public
export const MultiEntityPickerFieldExtension: FieldExtensionComponent_2<
string[],
{
defaultKind?: string | undefined;
@@ -238,10 +238,6 @@ export const MultiEntityPickerFieldSchema: FieldSchema<
}
>;
// @public
export type MultiEntityPickerUiOptions =
typeof MultiEntityPickerFieldSchema.uiOptionsType;
// @public
export const MyGroupsPickerFieldExtension: FieldExtensionComponent_2<
string,
@@ -47,8 +47,6 @@ export { MultiEntityPickerSchema } from './schema';
/**
* The underlying component that is rendered in the form for the `MultiEntityPicker`
* field extension.
*
* @public
*/
export const MultiEntityPicker = (props: MultiEntityPickerProps) => {
const {
@@ -16,9 +16,6 @@
import { z } from 'zod';
import { makeFieldSchemaFromZod } from '../utils';
/**
* @public
*/
export const entityQueryFilterExpressionSchema = z.record(
z
.string()
@@ -26,9 +23,6 @@ export const entityQueryFilterExpressionSchema = z.record(
.or(z.array(z.string())),
);
/**
* @public
*/
export const MultiEntityPickerFieldSchema = makeFieldSchemaFromZod(
z.array(z.string()),
z.object({
@@ -59,8 +53,6 @@ export const MultiEntityPickerFieldSchema = makeFieldSchemaFromZod(
/**
* The input props that can be specified under `ui:options` for the
* `EntityPicker` field extension.
*
* @public
*/
export type MultiEntityPickerUiOptions =
typeof MultiEntityPickerFieldSchema.uiOptionsType;
@@ -19,5 +19,5 @@ export * from './RepoUrlPicker';
export * from './OwnedEntityPicker';
export * from './EntityTagsPicker';
export * from './MyGroupsPicker';
export * from './MultiEntityPicker';
export { type FieldSchema, makeFieldSchemaFromZod } from './utils';
+1
View File
@@ -29,6 +29,7 @@ export {
OwnedEntityPickerFieldExtension,
MyGroupsPickerFieldExtension,
RepoUrlPickerFieldExtension,
MultiEntityPickerFieldExtension,
ScaffolderPage,
scaffolderPlugin,
} from './plugin';