Skip to content

Commit

Permalink
feat!: update to react v18
Browse files Browse the repository at this point in the history
chore: configure semantic release to run on next/x.y.z branches

BREAKING CHANGE: drop support for @zextras/carbonio-design-system < 7
BREAKING CHANGE: update to react v18 and drop support to v17

Co-authored-by: Cataldo Mazzilli <cm@zextras.com>
Refs: PREV-101 (#79)
  • Loading branch information
beawar and CMazzilli authored Jun 28, 2024
1 parent ac28aac commit 0aad416
Show file tree
Hide file tree
Showing 12 changed files with 18,662 additions and 925 deletions.
22 changes: 11 additions & 11 deletions docs/api/carbonio-ui-preview.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,17 @@ Description
</th></tr></thead>
<tbody><tr><td>

[PreviewManager({ children })](./carbonio-ui-preview.previewmanager.md)


</td><td>

The manager for showing multiple previews. From within it, the PreviewsManagerContext give access to the functions to initialize and open the previews of different items.


</td></tr>
<tr><td>

[usePreview()](./carbonio-ui-preview.usepreview.md)


Expand Down Expand Up @@ -144,17 +155,6 @@ Main component for rendering the preview of an image
Main component for the preview of a pdf


</td></tr>
<tr><td>

[PreviewManager](./carbonio-ui-preview.previewmanager.md)


</td><td>

The manager for showing multiple previews. From within it, the PreviewsManagerContext give access to the functions to initialize and open the previews of different items.


</td></tr>
<tr><td>

Expand Down
44 changes: 42 additions & 2 deletions docs/api/carbonio-ui-preview.previewmanager.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,52 @@

[Home](./index.md) &gt; [@zextras/carbonio-ui-preview](./carbonio-ui-preview.md) &gt; [PreviewManager](./carbonio-ui-preview.previewmanager.md)

## PreviewManager variable
## PreviewManager() function

The manager for showing multiple previews. From within it, the PreviewsManagerContext give access to the functions to initialize and open the previews of different items.

**Signature:**

```typescript
PreviewManager: React.FC
PreviewManager: ({ children }: {
children: React.ReactNode;
}) => React.JSX.Element
```

## Parameters

<table><thead><tr><th>

Parameter


</th><th>

Type


</th><th>

Description


</th></tr></thead>
<tbody><tr><td>

{ children }


</td><td>

{ children: React.ReactNode; }


</td><td>


</td></tr>
</tbody></table>
**Returns:**

React.JSX.Element

4 changes: 3 additions & 1 deletion etc/carbonio-ui-preview.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,9 @@ export type PreviewItem = ((MakeOptional<Omit<ImagePreviewProps, 'show'>, 'onClo
};

// @public
export const PreviewManager: React_2.FC;
export const PreviewManager: ({ children }: {
children: React_2.ReactNode;
}) => React_2.JSX.Element;

// @public (undocumented)
export interface PreviewManagerContextType {
Expand Down
Loading

0 comments on commit 0aad416

Please sign in to comment.