0.2.7 • Published 5 months ago

@coupage/react v0.2.7

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months ago

@coupage/react

The Coupage package for React provides a small set of components that enable extension integration capabilities.

Components

The ExtensionProvider enables the use of a global extensibility configuration that is transparently shared with all ExtensionPoint instances.

function ExtensionProvider(props: {
    children: ReactElement | ReactElement[];
    dependencies: Record<string, unknown>;
    nonce?: string;
    resources: Resources;
});

The ExtensionPoint displays all relevant extension contributions in a particular part of a host application.

function ExtensionPoint<T>(props: {
    children: (props: T) => ReactElement;
    fallback?: ReactElement;
    filter?: (definition: T) => boolean;
    name: string;
    sort?: (a: T, b: T) => number;
});

The ExtensionComponent handles the loading of the primary functionality of a particular extension.

function ExtensionComponent(props: { fallback?: ReactElement; name: string });
0.2.7

5 months ago

0.2.6

11 months ago

0.2.5

1 year ago

0.2.4

2 years ago

0.2.1

2 years ago

0.2.0

2 years ago

0.2.3

2 years ago

0.2.2

2 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago