Skip to content

Commit

Permalink
chore: ae up
Browse files Browse the repository at this point in the history
  • Loading branch information
matej21 committed Dec 28, 2023
1 parent c405ae2 commit 82cafc6
Show file tree
Hide file tree
Showing 12 changed files with 428 additions and 593 deletions.
97 changes: 49 additions & 48 deletions build/api/admin.api.md

Large diffs are not rendered by default.

266 changes: 149 additions & 117 deletions build/api/layout.api.md

Large diffs are not rendered by default.

2 changes: 0 additions & 2 deletions build/api/react-auto.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
```ts

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

import { ComponentType } from 'react';
import { DataGridContainerPublicProps } from '@contember/react-datagrid-ui';
import { EntityAccessor } from '@contember/react-binding';
Expand Down
7 changes: 4 additions & 3 deletions build/api/react-binding-ui.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import { HTMLAnchorElementProps } from '@contember/ui';
import { HTMLImageElementProps } from '@contember/ui';
import { HTMLVideoElementProps } from '@contember/ui';
import { IconProps } from '@contember/ui';
import { JSX as JSX_2 } from 'react/jsx-runtime';
import { MemoExoticComponent } from 'react';
import { NamedExoticComponent } from 'react';
import { PersistOptions } from '@contember/react-binding';
Expand Down Expand Up @@ -87,7 +88,7 @@ export interface CoalesceFieldViewProps<Persisted extends FieldValue = FieldValu
}

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

// @public (undocumented)
export type CreateNewEntityButtonProps = ButtonProps & {
Expand All @@ -113,7 +114,7 @@ export type DateFieldViewProps = {
} & DateFieldViewFormattingProps & FieldFallbackViewPublicProps;

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

// @public (undocumented)
export type DeleteEntityButtonProps = {
Expand All @@ -122,7 +123,7 @@ export type DeleteEntityButtonProps = {
} & ButtonProps;

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

// @public (undocumented)
export type EmptyMessageComponentProps = BoxProps & {
Expand Down
23 changes: 12 additions & 11 deletions build/api/react-binding.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import type { GetEntityByKey } from '@contember/binding';
import { GraphQlClientError } from '@contember/react-client';
import type { HasManyRelationMarker } from '@contember/binding';
import type { HasOneRelationMarker } from '@contember/binding';
import { JSX as JSX_2 } from 'react/jsx-runtime';
import { MarkerTreeRoot } from '@contember/binding';
import { NamedExoticComponent } from 'react';
import type { Persist } from '@contember/binding';
Expand All @@ -46,11 +47,11 @@ import type { TreeRootAccessor } from '@contember/binding';
import { TreeRootId } from '@contember/binding';

// @public (undocumented)
export function AccessorProvider(props: EntityProviderProps): JSX.Element;
export function AccessorProvider(props: EntityProviderProps): JSX_2.Element;

// @public (undocumented)
export const AccessorTree: {
({ state, children }: AccessorTreeProps): JSX.Element;
({ state, children }: AccessorTreeProps): JSX_2.Element;
displayName: string;
};

Expand Down Expand Up @@ -103,7 +104,7 @@ export const accessorTreeStateReducer: (previousState: AccessorTreeState, action
export const addEntityAtIndex: (entityList: EntityListAccessor, sortableByField: RelativeSingleField, index: number, preprocess?: EntityAccessor.BatchUpdatesHandler) => void;

// @public (undocumented)
export function BindingOperationsProvider(props: BindingOperationsProviderProps): JSX.Element;
export function BindingOperationsProvider(props: BindingOperationsProviderProps): JSX_2.Element;

// @public (undocumented)
export interface BindingOperationsProviderProps {
Expand All @@ -126,7 +127,7 @@ export type CompleteMarkerProvider<Props extends {} = any, NonStaticPropNames ex
export function Component<Props extends {}>(statelessRender: EnvironmentAwareFunctionComponent<Props>, displayName?: string): NamedExoticComponent<Props>;

// @public (undocumented)
export function Component<Props extends {}, NonStaticPropNames extends keyof Props = never>(statefulRender: EnvironmentAwareFunctionComponent<Props>, staticRender: (props: StaticRenderProviderProps<Props, NonStaticPropNames>, environment: Environment) => ReactElement | null, displayName?: string): NamedExoticComponent<Props>;
export function Component<Props extends {}, NonStaticPropNames extends keyof Props = never>(statefulRender: EnvironmentAwareFunctionComponent<Props>, staticRender: (props: StaticRenderProviderProps<Props, NonStaticPropNames>, environment: Environment) => ReactNode, displayName?: string): NamedExoticComponent<Props>;

// @public (undocumented)
export function Component<Props extends {}, NonStaticPropNames extends keyof Props = never>(statefulRender: EnvironmentAwareFunctionComponent<Props>, markerProvisions: MarkerProvider<Props, NonStaticPropNames>, displayName?: string): NamedExoticComponent<Props>;
Expand Down Expand Up @@ -183,7 +184,7 @@ export interface EntityBaseProps {
}

// @public (undocumented)
export function EntityKeyProvider(props: EntityKeyProviderProps): JSX.Element;
export function EntityKeyProvider(props: EntityKeyProviderProps): JSX_2.Element;

// @public (undocumented)
export interface EntityKeyProviderProps {
Expand Down Expand Up @@ -258,7 +259,7 @@ export type EntitySubTreeProps<EntityProps> = {
} & EntitySubTreeAdditionalProps & (SugaredQualifiedSingleEntity | (SugaredUnconstrainedQualifiedSingleEntity & EntitySubTreeAdditionalCreationProps));

// @public (undocumented)
export function EntityView(props: EntityViewProps): JSX.Element;
export function EntityView(props: EntityViewProps): JSX_2.Element;

// @public (undocumented)
export interface EntityViewProps {
Expand All @@ -271,7 +272,7 @@ export interface EntityViewProps {
// @public (undocumented)
export interface EnvironmentAwareFunctionComponent<P> {
// (undocumented)
(props: PropsWithChildren<P>, environment: Environment): ReactElement<any, any> | null;
(props: PropsWithChildren<P>, environment: Environment): ReactNode;
// (undocumented)
displayName?: string | undefined;
}
Expand All @@ -286,7 +287,7 @@ export interface EnvironmentDeltaProvider<Props extends {} = any> {
}

// @public (undocumented)
export const EnvironmentExtensionProvider: <S, R>(props: EnvironmentWithExtensionProps<S, R>) => ReactElement | null;
export const EnvironmentExtensionProvider: <S, R>(props: EnvironmentWithExtensionProps<S, R>) => ReactNode;

// @public (undocumented)
export const EnvironmentMiddleware: NamedExoticComponent<EnvironmentMiddlewareProps>;
Expand Down Expand Up @@ -463,7 +464,7 @@ export const LabelMiddlewareContext: Context<LabelMiddleware>;
export const LabelMiddlewareProvider: ({ value, children }: {
value: LabelMiddleware;
children: ReactNode;
}) => JSX.Element;
}) => JSX_2.Element;

// @public (undocumented)
export interface LeafMarkerProvider<Props extends {} = any> {
Expand Down Expand Up @@ -546,7 +547,7 @@ export interface StaticRenderProps {
// @public (undocumented)
export interface StaticRenderProvider<Props extends {} = any, NonStaticPropNames extends keyof Props = never> {
// (undocumented)
staticRender: (props: StaticRenderProviderProps<Props, NonStaticPropNames>, environment: Environment) => ReactElement | null;
staticRender: (props: StaticRenderProviderProps<Props, NonStaticPropNames>, environment: Environment) => ReactNode;
}

// @public (undocumented)
Expand All @@ -564,7 +565,7 @@ export interface SugaredFieldProps<Persisted extends FieldValue = FieldValue> ex
}

// @public (undocumented)
export function TreeRootIdProvider(props: TreeRootIdProviderProps): JSX.Element;
export function TreeRootIdProvider(props: TreeRootIdProviderProps): JSX_2.Element;

// @public (undocumented)
export interface TreeRootIdProviderProps {
Expand Down
15 changes: 8 additions & 7 deletions build/api/react-choice-field-ui.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import { DynamicMultiChoiceFieldRendererProps } from '@contember/react-choice-fi
import { DynamicMultipleChoiceFieldProps } from '@contember/react-choice-field';
import { DynamicSingleChoiceFieldProps } from '@contember/react-choice-field';
import { FieldContainerProps } from '@contember/ui';
import { JSX as JSX_2 } from 'react/jsx-runtime';
import { MemoExoticComponent } from 'react';
import type { Props } from 'react-select';
import { PublicCommonReactSelectStylesProps } from '@contember/ui';
Expand Down Expand Up @@ -38,7 +39,7 @@ export const choiceFieldDictionary: {
export const MultiSelectField: ComponentType<MultiSelectFieldProps>;

// @internal (undocumented)
export const MultiSelectFieldInner: MemoExoticComponent<({ currentValues, data, errors, onAdd, onClear, onRemove, reactSelectProps, placeholder, menuZIndex, onMove, onSearch, isLoading, createNewForm: _INTENTIONALLY_OMITTED_createNewForm, onAddNew, ...props }: MultiSelectFieldInnerProps) => JSX.Element>;
export const MultiSelectFieldInner: MemoExoticComponent<({ currentValues, data, errors, onAdd, onClear, onRemove, reactSelectProps, placeholder, menuZIndex, onMove, onSearch, isLoading, createNewForm: _INTENTIONALLY_OMITTED_createNewForm, onAddNew, ...props }: MultiSelectFieldInnerProps) => JSX_2.Element>;

// @public (undocumented)
export type MultiSelectFieldInnerProps = DynamicMultiChoiceFieldRendererProps & MultiSelectFieldRendererPublicProps & {
Expand All @@ -49,15 +50,15 @@ export type MultiSelectFieldInnerProps = DynamicMultiChoiceFieldRendererProps &
export type MultiSelectFieldProps = MultiSelectFieldRendererPublicProps & DynamicMultipleChoiceFieldProps;

// @internal (undocumented)
export const MultiSelectFieldRenderer: MemoExoticComponent<(props: MultiSelectFieldRendererProps) => JSX.Element>;
export const MultiSelectFieldRenderer: MemoExoticComponent<(props: MultiSelectFieldRendererProps) => JSX_2.Element>;

// @public (undocumented)
export type MultiSelectFieldRendererProps = MultiSelectFieldInnerProps & BaseDynamicChoiceField;

// @public (undocumented)
export type MultiSelectFieldRendererPublicProps = Pick<FieldContainerProps, 'description' | 'gap' | 'label' | 'labelDescription' | 'labelPosition' | 'required' | 'size' | 'useLabelElement' | 'style' | 'className'> & PublicCommonReactSelectStylesProps & {
placeholder?: string;
reactSelectProps?: Partial<Props<any>>;
reactSelectProps?: Partial<Props<any, boolean, never>>;
createNewForm?: ReactElement;
};

Expand All @@ -70,7 +71,7 @@ export const RadioField: ComponentType<RadioFieldProps>;
export type RadioFieldProps = RadioFieldRendererPublicProps & (StaticSingleChoiceFieldProps | SimpleDynamicSingleChoiceFieldProps);

// @public (undocumented)
export const RadioFieldRenderer: MemoExoticComponent<(<T = unknown>(props: RadioFieldRendererProps<T>) => JSX.Element)>;
export const RadioFieldRenderer: MemoExoticComponent<(<T = unknown>(props: RadioFieldRendererProps<T>) => JSX_2.Element)>;

// @public (undocumented)
export type RadioFieldRendererProps<T = unknown> = SingleChoiceFieldRendererProps<T> & RadioFieldRendererPublicProps;
Expand All @@ -82,7 +83,7 @@ export type RadioFieldRendererPublicProps = Omit<FieldContainerProps, 'children'
export const SelectField: ComponentType<SelectFieldProps>;

// @public (undocumented)
export const SelectFieldInner: <T = unknown>({ placeholder, allowNull, currentValue, data, errors, menuZIndex, onSelect, onClear, reactSelectProps, onSearch, isLoading, createNewForm: _INTENTIONALLY_OMITTED_createNewForm, onAddNew, ...props }: SelectFieldInnerProps<T>) => JSX.Element;
export const SelectFieldInner: <T = unknown>({ placeholder, allowNull, currentValue, data, errors, menuZIndex, onSelect, onClear, reactSelectProps, onSearch, isLoading, createNewForm: _INTENTIONALLY_OMITTED_createNewForm, onAddNew, ...props }: SelectFieldInnerProps<T>) => JSX_2.Element;

// @public (undocumented)
export type SelectFieldInnerProps<T = unknown> = SingleChoiceFieldRendererProps<T> & SelectFieldRendererPublicProps & {
Expand All @@ -93,7 +94,7 @@ export type SelectFieldInnerProps<T = unknown> = SingleChoiceFieldRendererProps<
export type SelectFieldProps = SelectFieldRendererPublicProps & (StaticSingleChoiceFieldProps | DynamicSingleChoiceFieldProps);

// @internal (undocumented)
export const SelectFieldRenderer: MemoExoticComponent<(<T = unknown>({ createNewForm, ...props }: SelectFieldRendererProps<T>) => JSX.Element)>;
export const SelectFieldRenderer: MemoExoticComponent<(<T = unknown>({ createNewForm, ...props }: SelectFieldRendererProps<T>) => JSX_2.Element)>;

// @public (undocumented)
export type SelectFieldRendererProps<T = unknown> = SelectFieldInnerProps<T> & ChoiceFieldProps;
Expand All @@ -102,7 +103,7 @@ export type SelectFieldRendererProps<T = unknown> = SelectFieldInnerProps<T> & C
export type SelectFieldRendererPublicProps = Omit<FieldContainerProps, 'children' | 'errors'> & PublicCommonReactSelectStylesProps & {
placeholder?: string;
allowNull?: boolean;
reactSelectProps?: Partial<Props<any>>;
reactSelectProps?: Partial<Props<any, boolean, never>>;
createNewForm?: ReactElement;
};

Expand Down
Loading

0 comments on commit 82cafc6

Please sign in to comment.