Skip to content

Commit

Permalink
chore: ae build
Browse files Browse the repository at this point in the history
  • Loading branch information
matej21 committed Aug 2, 2023
1 parent 2284b2c commit a01cede
Show file tree
Hide file tree
Showing 14 changed files with 3,131 additions and 2,207 deletions.
1,628 changes: 101 additions & 1,527 deletions build/api/admin.api.md

Large diffs are not rendered by default.

852 changes: 176 additions & 676 deletions build/api/binding.api.md

Large diffs are not rendered by default.

107 changes: 107 additions & 0 deletions build/api/react-auto.api.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,107 @@
## API Report File for "@contember/react-auto"

> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
```ts

/// <reference types="react" />

import { ComponentType } from 'react';
import { DataGridContainerPublicProps } from '@contember/react-datagrid-ui';
import { EntityAccessor } from '@contember/react-binding';
import { EntityId } from '@contember/react-binding';
import { MouseEvent as MouseEvent_2 } from 'react';
import { NamedExoticComponent } from 'react';
import { ReactNode } from 'react';
import { Schema } from '@contember/react-binding';
import { SugaredQualifiedEntityList } from '@contember/react-binding';

// @public (undocumented)
export const AutoCell: NamedExoticComponent<AutoCellProps>;

// @public (undocumented)
export type AutoCellProps = {
schema: Schema;
entityName: string;
fieldName: string;
LinkComponent?: LinkComponent;
linkAction?: LinkComponentProps['action'];
};

// @public (undocumented)
export const AutoField: NamedExoticComponent<AutoFieldProps>;

// @public (undocumented)
export type AutoFieldProps = {
schema: Schema;
entityName: string;
fieldName: string;
LinkComponent?: LinkComponent;
excludedEntities?: string[];
};

// @public (undocumented)
export const AutoFields: NamedExoticComponent<AutoFieldsProps>;

// @public (undocumented)
export type AutoFieldsProps = {
LinkComponent?: LinkComponent;
excludedFields?: string[];
excludedEntities?: string[];
};

// @public (undocumented)
export const AutoForm: NamedExoticComponent<AutoFormProps>;

// @public (undocumented)
export type AutoFormProps = {
entity: string;
id?: EntityId;
onCreateSuccess?: EntityAccessor.PersistSuccessHandler | Set<EntityAccessor.PersistSuccessHandler>;
LinkComponent?: LinkComponent;
};

// @public (undocumented)
export const AutoGrid: NamedExoticComponent<AutoGridProps>;

// @public (undocumented)
export type AutoGridProps = DataGridContainerPublicProps & {
entities: SugaredQualifiedEntityList['entities'];
LinkComponent?: LinkComponent;
};

// @public (undocumented)
export const AutoLabel: NamedExoticComponent<AutoLabelProps>;

// @public (undocumented)
export type AutoLabelProps = {
field: string;
LinkComponent?: LinkComponent;
linkAction?: LinkComponentProps['action'];
};

// @public (undocumented)
export interface InnerLinkProps {
// (undocumented)
active: boolean;
// (undocumented)
href: string;
// (undocumented)
onClick: (e?: MouseEvent_2<HTMLAnchorElement>) => void;
}

// @public (undocumented)
export type LinkComponent = ComponentType<LinkComponentProps>;

// @public (undocumented)
export type LinkComponentProps = {
entityName: string;
entityId: string | number;
action: 'edit' | 'view';
Component?: ComponentType<InnerLinkProps>;
children: ReactNode;
};

// (No @packageDocumentation comment for this package)

```
278 changes: 278 additions & 0 deletions build/api/react-binding-ui.api.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,278 @@
## API Report File for "@contember/react-binding-ui"

> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
```ts

import { BoxProps } from '@contember/ui';
import { ButtonProps } from '@contember/ui';
import { ComponentProps } from 'react';
import { ComponentType } from 'react';
import { ElementType } from 'react';
import { EntityAccessor } from '@contember/react-binding';
import type { EntityListAccessor } from '@contember/react-binding';
import type { ErrorAccessor } from '@contember/react-binding';
import { ErrorListProps } from '@contember/ui';
import type { FieldAccessor } from '@contember/react-binding';
import { FieldValue } from '@contember/react-binding';
import type { FunctionComponent } from 'react';
import { HTMLAnchorElementProps } from '@contember/ui';
import { HTMLImageElementProps } from '@contember/ui';
import { HTMLVideoElementProps } from '@contember/ui';
import { IconProps } from '@contember/ui';
import { MemoExoticComponent } from 'react';
import { NamedExoticComponent } from 'react';
import { PersistOptions } from '@contember/react-binding';
import { ReactElement } from 'react';
import { ReactNode } from 'react';
import { SuccessfulPersistResult } from '@contember/react-binding';
import { SugarableRelativeSingleField } from '@contember/react-binding';
import { SugaredFieldProps } from '@contember/react-binding';

// @public (undocumented)
export interface AccessorErrorMessage {
// (undocumented)
message: string;
}

// @public (undocumented)
export type AccessorErrorMessages = [AccessorErrorMessage, ...AccessorErrorMessage[]];

// @public (undocumented)
export function AccessorErrors({ accessor, ...errorListProps }: AccessorErrorsProps): ReactElement | null;

// @public (undocumented)
export interface AccessorErrorsHolder {
// (undocumented)
readonly errors: ErrorAccessor | undefined;
}

// @public (undocumented)
export interface AccessorErrorsProps extends Omit<ErrorListProps, 'errors'> {
// (undocumented)
accessor: FieldAccessor | EntityAccessor | EntityListAccessor;
}

// @public (undocumented)
export interface AddEntityButtonProps {
// (undocumented)
addButtonComponent?: ComponentType<CreateNewEntityButtonProps & any>;
// (undocumented)
addButtonComponentExtraProps?: {};
// (undocumented)
addButtonProps?: CreateNewEntityButtonProps;
// (undocumented)
addButtonText?: ReactNode;
}

// @public (undocumented)
export const BooleanFieldView: FunctionComponent<BooleanFieldViewProps>;

// @public (undocumented)
export type BooleanFieldViewProps = {
field: SugaredFieldProps['field'];
booleanStyle?: 'yesNo' | 'checkCross' | 'oneZero';
format?: (date: boolean) => ReactNode;
} & FieldFallbackViewPublicProps;

// @public (undocumented)
export const CoalesceFieldView: <Persisted extends FieldValue = FieldValue>(props: CoalesceFieldViewProps<Persisted>) => ReactElement;

// @public (undocumented)
export interface CoalesceFieldViewProps<Persisted extends FieldValue = FieldValue> extends FieldFallbackViewPublicProps {
// (undocumented)
fields: (SugarableRelativeSingleField | string)[];
// (undocumented)
format?: (value: Persisted) => ReactNode;
}

// @public (undocumented)
export const CreateNewEntityButton: MemoExoticComponent<({ createNewEntity, iconProps, children, ...buttonProps }: CreateNewEntityButtonProps) => JSX.Element>;

// @public (undocumented)
export type CreateNewEntityButtonProps = ButtonProps & {
createNewEntity: (initialize?: EntityAccessor.BatchUpdatesHandler) => void;
iconProps?: IconProps;
};

// @public (undocumented)
export const DateFieldView: FunctionComponent<DateFieldViewProps>;

// @public (undocumented)
export type DateFieldViewFormattingProps = {
format?: ((date: Date) => ReactNode) | Intl.DateTimeFormatOptions;
locale?: never;
} | {
format?: Intl.DateTimeFormatOptions;
locale: string | string[];
};

// @public (undocumented)
export type DateFieldViewProps = {
field: SugaredFieldProps['field'];
} & DateFieldViewFormattingProps & FieldFallbackViewPublicProps;

// @public
export const DeleteEntityButton: MemoExoticComponent<(props: DeleteEntityButtonProps) => JSX.Element | null>;

// @public (undocumented)
export type DeleteEntityButtonProps = {
immediatePersist?: true;
children?: ReactNode;
} & ButtonProps;

// @public (undocumented)
export const EmptyMessage: MemoExoticComponent<({ children, component, padding, ...rest }: EmptyMessageProps) => JSX.Element>;

// @public (undocumented)
export type EmptyMessageComponentProps = BoxProps & {
children: ReactNode;
};

// @public (undocumented)
export interface EmptyMessageOuterProps {
// (undocumented)
emptyMessage?: ReactNode;
// (undocumented)
emptyMessageComponent?: ComponentType<EmptyMessageComponentProps>;
}

// @public (undocumented)
export type EmptyMessageProps<C extends ElementType = ComponentType<EmptyMessageComponentProps>> = ComponentProps<C> & ComponentProps<C> & {
children: ReactNode;
component?: C;
};

// @public (undocumented)
export type ErrorCodeDictionary = typeof errorCodeDictionary;

// @public (undocumented)
export const errorCodeDictionary: {
errorCodes: {
fieldRequired: string;
notUnique: string;
unknownExecutionError: string;
};
};

// @public (undocumented)
export const FieldFallbackView: FunctionComponent<FieldFallbackViewProps>;

// @public (undocumented)
export interface FieldFallbackViewProps {
// (undocumented)
fallback?: ReactNode | undefined;
// (undocumented)
fallbackStyle?: FieldFallbackViewStyle | undefined;
}

// @public (undocumented)
export type FieldFallbackViewPublicProps = FieldFallbackViewProps;

// @public (undocumented)
export type FieldFallbackViewStyle = 'n/a' | 'nothing' | 'unknown';

// @public (undocumented)
export type FieldViewDictionary = typeof fieldViewDictionary;

// @public (undocumented)
export const fieldViewDictionary: {
fieldView: {
boolean: {
yes: string;
no: string;
};
fallback: {
unknown: string;
notAvailable: string;
};
};
};

// @public (undocumented)
export const FileUrlFieldView: FunctionComponent<FileUrlFieldViewProps>;

// @public (undocumented)
export type FileUrlFieldViewProps = {
fileUrlField: SugaredFieldProps['field'];
} & HTMLAnchorElementProps;

// @public (undocumented)
export const ImageFieldView: <SrcField extends FieldValue = string>(props: ImageFieldViewProps<SrcField>) => ReactElement;

// @public (undocumented)
export type ImageFieldViewProps<SrcField extends FieldValue = string> = {
srcField: SugaredFieldProps['field'];
altField?: SugaredFieldProps['field'];
titleField?: SugaredFieldProps['field'];
formatUrl?: (srcFieldValue: SrcField) => string;
} & FieldFallbackViewPublicProps & Omit<HTMLImageElementProps, 'src'>;

// @public (undocumented)
export const NotFoundWrapper: NamedExoticComponent< {
children: ReactNode;
title?: ReactNode;
}>;

// @public (undocumented)
export type PersistFeedbackDictionary = typeof persistFeedbackDictionary;

// @public (undocumented)
export const persistFeedbackDictionary: {
persistFeedback: {
successMessage: string;
afterPersistErrorMessage: string;
errorMessage: string;
};
};

// @public (undocumented)
export interface PersistWithFeedbackOptions extends PersistOptions {
// (undocumented)
afterPersistErrorDuration?: number;
// (undocumented)
afterPersistErrorMessage?: string;
// (undocumented)
errorDuration?: number;
// (undocumented)
errorMessage?: string;
// (undocumented)
successDuration?: number;
// (undocumented)
successMessage?: string;
}

// @public (undocumented)
export interface SelectEntityButtonProps {
// (undocumented)
selectButtonComponent?: ComponentType<CreateNewEntityButtonProps & any>;
// (undocumented)
selectButtonComponentExtraProps?: {};
// (undocumented)
selectButtonProps?: CreateNewEntityButtonProps;
// (undocumented)
selectButtonText?: ReactNode;
}

// @public (undocumented)
export const useAccessorErrorFormatter: () => (errors: ErrorAccessor.Error[]) => AccessorErrorMessage[];

// @public (undocumented)
export const useAccessorErrors: (errorAccessor: ErrorAccessor.Error[] | undefined) => AccessorErrorMessages | undefined;

// @public (undocumented)
export const usePersistWithFeedback: ({ successMessage, successDuration, errorMessage, errorDuration, afterPersistErrorMessage, afterPersistErrorDuration, ...persistOptions }?: PersistWithFeedbackOptions) => () => Promise<SuccessfulPersistResult>;

// @public (undocumented)
export const VideoFieldView: <SrcField extends FieldValue = string>(props: VideoFieldViewProps<SrcField>) => ReactElement;

// @public (undocumented)
export type VideoFieldViewProps<SrcField extends FieldValue = string> = {
srcField: SugaredFieldProps['field'];
titleField?: SugaredFieldProps['field'];
formatUrl?: (srcFieldValue: SrcField) => string;
} & FieldFallbackViewPublicProps & Omit<HTMLVideoElementProps, 'src'>;

// (No @packageDocumentation comment for this package)

```
Loading

0 comments on commit a01cede

Please sign in to comment.