Skip to content

Commit

Permalink
chore: ae up
Browse files Browse the repository at this point in the history
  • Loading branch information
matej21 committed Apr 19, 2024
1 parent e5e5723 commit 313d762
Show file tree
Hide file tree
Showing 3 changed files with 84 additions and 4 deletions.
2 changes: 1 addition & 1 deletion build/api/interface.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export interface DeleteEntityTriggerProps {
// (undocumented)
children: ReactNode;
// (undocumented)
immediatePersist?: true;
immediatePersist?: boolean;
// (undocumented)
onPersistError?: (result: ErrorPersistResult) => void;
// (undocumented)
Expand Down
76 changes: 76 additions & 0 deletions build/api/react-block-repeater.api.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
## API Report File for "@contember/react-block-repeater"

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

import { Context } from 'react';
import { EntityAccessor } from '@contember/react-binding';
import { JSX as JSX_2 } from 'react/jsx-runtime';
import { NamedExoticComponent } from 'react';
import { ReactElement } from 'react';
import { ReactNode } from 'react';
import { RepeaterAddItemIndex } from '@contember/react-repeater';
import { RepeaterProps } from '@contember/react-repeater';
import { SugaredRelativeSingleField } from '@contember/react-binding';

// @public (undocumented)
export const Block: NamedExoticComponent<BlockProps>;

// @public (undocumented)
export interface BlockProps {
// (undocumented)
children: ReactNode;
// (undocumented)
form?: ReactNode;
// (undocumented)
label?: ReactNode;
// (undocumented)
name: string;
}

// @public (undocumented)
export const BlockRepeater: NamedExoticComponent<BlockRepeaterProps>;

// @public (undocumented)
export const BlockRepeaterAddItemTrigger: ({ preprocess, index, type, ...props }: BlockRepeaterAddItemTriggerProps) => JSX_2.Element;

// @public (undocumented)
export interface BlockRepeaterAddItemTriggerProps {
// (undocumented)
children: ReactElement;
// (undocumented)
index?: RepeaterAddItemIndex;
// (undocumented)
preprocess?: EntityAccessor.BatchUpdatesHandler;
// (undocumented)
type: string;
}

// @internal (undocumented)
export const BlockRepeaterConfigContext: Context< {
discriminatedBy: SugaredRelativeSingleField['field'];
blocks: BlocksMap;
}>;

// @public (undocumented)
export type BlockRepeaterProps = {
sortableBy: RepeaterProps['sortableBy'];
discriminationField: SugaredRelativeSingleField['field'];
} & RepeaterProps;

// @public (undocumented)
export type BlocksMap = Record<string, BlockProps>;

// @public (undocumented)
export const useBlockRepeaterConfig: () => {
discriminatedBy: SugaredRelativeSingleField['field'];
blocks: BlocksMap;
};

// @public (undocumented)
export const useBlockRepeaterCurrentBlock: () => BlockProps | undefined;

// (No @packageDocumentation comment for this package)

```
10 changes: 7 additions & 3 deletions build/api/react-repeater.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,14 @@ export type RepeaterAddItemIndex = number | 'first' | 'last' | undefined;
export type RepeaterAddItemMethod = (index: RepeaterAddItemIndex, preprocess?: EntityAccessor.BatchUpdatesHandler) => void;

// @public (undocumented)
export const RepeaterAddItemTrigger: ({ children, index }: {
export const RepeaterAddItemTrigger: ({ children, index, preprocess }: RepeaterAddItemTriggerProps) => JSX_2.Element;

// @public (undocumented)
export type RepeaterAddItemTriggerProps = {
children: ReactNode;
index: RepeaterAddItemIndex;
}) => JSX_2.Element;
index?: RepeaterAddItemIndex;
preprocess?: EntityAccessor.BatchUpdatesHandler;
};

// @internal (undocumented)
export const RepeaterCurrentEntityContext: Context<EntityAccessor_2>;
Expand Down

0 comments on commit 313d762

Please sign in to comment.