@nodeblocks/frontend-list-organization-block 0.2.3 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +1 -1
- package/dist/index.d.ts +578 -2
- package/dist/index.esm.js +1 -1
- package/package.json +17 -4
- package/dist/context.d.ts +0 -51
- package/dist/context.d.ts.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/lib.d.ts +0 -103
- package/dist/lib.d.ts.map +0 -1
- package/dist/list-organizations.d.ts +0 -51
- package/dist/list-organizations.d.ts.map +0 -1
- package/dist/types.d.ts +0 -16
- package/dist/types.d.ts.map +0 -1
package/dist/lib.d.ts
DELETED
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
import { ComponentProps, FunctionComponent, ReactElement, ReactNode } from 'react';
|
|
2
|
-
/**
|
|
3
|
-
* The function to be passed into a block component as `children` to selectively override default blocks, or just a `ReactNode`.
|
|
4
|
-
*
|
|
5
|
-
* @example
|
|
6
|
-
* <Block>
|
|
7
|
-
* {({ defaultBlocks: { header, ...defaultBlocks }, defaultBlockOrder }) => ({
|
|
8
|
-
* blocks: {
|
|
9
|
-
* ...defaultBlocks,
|
|
10
|
-
* header: {
|
|
11
|
-
* ...header,
|
|
12
|
-
* props: {
|
|
13
|
-
* ...header.props,
|
|
14
|
-
* label: "Custom Label"
|
|
15
|
-
* }
|
|
16
|
-
* },
|
|
17
|
-
* subheader: <CustomComponent />
|
|
18
|
-
* },
|
|
19
|
-
* blockOrder: ["header", "subheader", "body", "footer"]
|
|
20
|
-
* })}
|
|
21
|
-
* </Block>
|
|
22
|
-
*/
|
|
23
|
-
export type BlocksOverride<DefaultBlocks, CustomBlocks> = (({ defaultBlocks, defaultBlockOrder, }: {
|
|
24
|
-
defaultBlocks: DefaultBlocks;
|
|
25
|
-
defaultBlockOrder: readonly (keyof DefaultBlocks)[];
|
|
26
|
-
}) => {
|
|
27
|
-
blocks: Partial<DefaultBlocks> & CustomBlocks;
|
|
28
|
-
blockOrder: readonly (keyof DefaultBlocks)[] | readonly (keyof CustomBlocks)[];
|
|
29
|
-
}) | ReactNode;
|
|
30
|
-
/**
|
|
31
|
-
* Creates a strongly typed `defaultBlocks` object, allowing for types to propagate into block override objects.
|
|
32
|
-
*
|
|
33
|
-
* @param components - A map of default block keys to component functions.
|
|
34
|
-
*
|
|
35
|
-
* @example
|
|
36
|
-
* const defaultBlocks = createDefaultBlocks({
|
|
37
|
-
* title: Title,
|
|
38
|
-
* description: Description,
|
|
39
|
-
* form: Form,
|
|
40
|
-
* });
|
|
41
|
-
*/
|
|
42
|
-
export declare function createDefaultBlocks<T extends Record<string, FunctionComponent<any>>>(components: T): {
|
|
43
|
-
[K in keyof T]: ReactElement<ComponentProps<T[K]>, T[K]>;
|
|
44
|
-
};
|
|
45
|
-
/**
|
|
46
|
-
* A component for rendering {@link BlocksOverride|`BlocksOverride`} results.
|
|
47
|
-
* Exposes the evaluated `blocks` and `blockOrder` as arguments to the `children` function.
|
|
48
|
-
*
|
|
49
|
-
* @param props
|
|
50
|
-
* @param props.blocksOverride - The {@link BlocksOverride|`BlocksOverride`} (i.e. `children` of outer component).
|
|
51
|
-
* @param props.defaultBlocks - The default blocks of outer component.
|
|
52
|
-
* @param props.children - A function returning the JSX to render.
|
|
53
|
-
*
|
|
54
|
-
* @example
|
|
55
|
-
* <BlocksOverrideComponent
|
|
56
|
-
* defaultBlocks={defaultFormBlocks}
|
|
57
|
-
* blocksOverride={children}
|
|
58
|
-
* >
|
|
59
|
-
* {({ blocks, blockOrder }) =>
|
|
60
|
-
* blockOrder.map((key) => (
|
|
61
|
-
* <Fragment key={String(key)}>{blocks[key]}</Fragment>
|
|
62
|
-
* ))
|
|
63
|
-
* }
|
|
64
|
-
* </BlocksOverrideComponent>
|
|
65
|
-
*/
|
|
66
|
-
export declare function BlocksOverrideComponent<DefaultBlocks extends Record<string, ReactNode>, CustomBlocks extends Record<string, ReactNode>>({ blocksOverride, defaultBlocks, defaultBlockOrder, children, }: {
|
|
67
|
-
blocksOverride: BlocksOverride<DefaultBlocks, CustomBlocks>;
|
|
68
|
-
defaultBlocks: DefaultBlocks;
|
|
69
|
-
defaultBlockOrder: (keyof DefaultBlocks)[];
|
|
70
|
-
children: ({ blocks, blockOrder, }: {
|
|
71
|
-
blocks: Partial<DefaultBlocks> & Partial<CustomBlocks>;
|
|
72
|
-
blockOrder: readonly (keyof DefaultBlocks | keyof CustomBlocks)[];
|
|
73
|
-
}) => ReactNode;
|
|
74
|
-
}): ReactNode;
|
|
75
|
-
type MergeKeepingRequired<A, B> = Omit<A, keyof B> & {
|
|
76
|
-
[K in keyof A & keyof B]-?: undefined extends B[K] ? A[K] : B[K];
|
|
77
|
-
} & {
|
|
78
|
-
[K in Exclude<keyof B, keyof A>]: B[K];
|
|
79
|
-
};
|
|
80
|
-
export declare function merge<A extends Record<PropertyKey, any>, B extends Record<PropertyKey, any>>(a: A, b: B): MergeKeepingRequired<A, B>;
|
|
81
|
-
type ClassName = string | ClassName[] | undefined | null;
|
|
82
|
-
/**
|
|
83
|
-
* Utility function to join class names together, ignoring undefined or nil values.
|
|
84
|
-
* @param classes - The class names to join.
|
|
85
|
-
* @returns The joined class names.
|
|
86
|
-
*/
|
|
87
|
-
export declare function classNames(...classes: ClassName[]): string;
|
|
88
|
-
/**
|
|
89
|
-
* Omits the given string keys from `source`.
|
|
90
|
-
*
|
|
91
|
-
* Usage:
|
|
92
|
-
* omit(obj, "a", "b")
|
|
93
|
-
*/
|
|
94
|
-
export declare function omit<T extends object, const Keys extends readonly string[]>(source: T, ...keys: Keys): Omit<T, Extract<Keys[number], keyof T>>;
|
|
95
|
-
/**
|
|
96
|
-
* Picks the given keys out of `source` into a new object.
|
|
97
|
-
*
|
|
98
|
-
* Usage:
|
|
99
|
-
* pick(obj, "a", "b")
|
|
100
|
-
*/
|
|
101
|
-
export declare function pick<T extends object, K extends PropertyKey>(source: T, ...keys: K[]): Pick<T, Extract<K, keyof T>>;
|
|
102
|
-
export {};
|
|
103
|
-
//# sourceMappingURL=lib.d.ts.map
|
package/dist/lib.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"lib.d.ts","sourceRoot":"","sources":["../src/lib.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAiB,iBAAiB,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElG;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,MAAM,MAAM,cAAc,CAAC,aAAa,EAAE,YAAY,IAClD,CAAC,CAAC,EACA,aAAa,EACb,iBAAiB,GAClB,EAAE;IACD,aAAa,EAAE,aAAa,CAAC;IAC7B,iBAAiB,EAAE,SAAS,CAAC,MAAM,aAAa,CAAC,EAAE,CAAC;CACrD,KAAK;IACJ,MAAM,EAAE,OAAO,CAAC,aAAa,CAAC,GAAG,YAAY,CAAC;IAE9C,UAAU,EAAE,SAAS,CAAC,MAAM,aAAa,CAAC,EAAE,GAAG,SAAS,CAAC,MAAM,YAAY,CAAC,EAAE,CAAC;CAChF,CAAC,GACF,SAAS,CAAC;AAEd;;;;;;;;;;;GAWG;AACH,wBAAgB,mBAAmB,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,iBAAiB,CAAC,GAAG,CAAC,CAAC,EAClF,UAAU,EAAE,CAAC,GACZ;KACA,CAAC,IAAI,MAAM,CAAC,GAAG,YAAY,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;CACzD,CAMA;AAED;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,uBAAuB,CACrC,aAAa,SAAS,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,EAC/C,YAAY,SAAS,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,EAC9C,EACA,cAAc,EACd,aAAa,EACb,iBAAiB,EACjB,QAAQ,GACT,EAAE;IACD,cAAc,E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KAAK,CAAC,IAAI,SAAS,SAAS,MAAM,EAAE,EACzE,MAAM,EAAE,CAAC,EACT,GAAG,IAAI,EAAE,IAAI,GACZ,IAAI,CAAC,CAAC,EAAE,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC,CAAC,CAAC,CAQzC;AAED;;;;;GAKG;AACH,wBAAgB,IAAI,CAAC,CAAC,SAAS,MAAM,EAAE,CAAC,SAAS,WAAW,EAAE,MAAM,EAAE,CAAC,EAAE,GAAG,IAAI,EAAE,CAAC,EAAE,GAAG,IAAI,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,CAAC,CAWnH"}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { Stack, TabsProps, TypographyProps } from '@mui/material';
|
|
2
|
-
import { ComponentProps, ReactNode } from 'react';
|
|
3
|
-
import { ListOrganizationsContextValue } from './context';
|
|
4
|
-
import { BlocksOverride } from './lib';
|
|
5
|
-
export interface ListOrganizationsRowData {
|
|
6
|
-
id: string;
|
|
7
|
-
createdAt: string;
|
|
8
|
-
name: string;
|
|
9
|
-
joinDate: string;
|
|
10
|
-
auditStatus: string;
|
|
11
|
-
}
|
|
12
|
-
export type TabData = {
|
|
13
|
-
key?: string;
|
|
14
|
-
label: string;
|
|
15
|
-
isDisabled?: boolean;
|
|
16
|
-
subtitle?: string;
|
|
17
|
-
};
|
|
18
|
-
export interface PaginationProps {
|
|
19
|
-
/** Custom class to give the html component */
|
|
20
|
-
className?: string;
|
|
21
|
-
/** Currently selected page in the pagination. Pages are counted from 1. */
|
|
22
|
-
currentPage: number;
|
|
23
|
-
/** Callback when the page is changed */
|
|
24
|
-
onPageChange: (page: number) => void;
|
|
25
|
-
/** Total number of pages in the pagination. */
|
|
26
|
-
totalPages: number;
|
|
27
|
-
}
|
|
28
|
-
declare const ListOrganizations: {
|
|
29
|
-
<CustomBlocks extends Record<string, ReactNode> = {}>({ sx, spacing, className, children, ...props }: Omit<ComponentProps<typeof Stack>, "children"> & Required<Pick<ListOrganizationsContextValue, "labels" | "onSearchFieldChange" | "onActionClick" | "onNavigate" | "onRowActionClick" | "data" | "rowHref" | "tabs" | "listOrganizationsTitle">> & Partial<Pick<ListOrganizationsContextValue, "isLoading" | "pagination" | "currentTab" | "onTabChange">> & {
|
|
30
|
-
children?: BlocksOverride<typeof defaultBlocks, CustomBlocks>;
|
|
31
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
32
|
-
Title(props: Partial<TypographyProps & Pick<ListOrganizationsContextValue, "listOrganizationsTitle">>): import("react/jsx-runtime").JSX.Element;
|
|
33
|
-
Action(props: Partial<ComponentProps<typeof Stack> & Pick<ListOrganizationsContextValue, "onActionClick" | "onSearchFieldChange" | "labels">>): import("react/jsx-runtime").JSX.Element;
|
|
34
|
-
Header(props: Partial<ComponentProps<typeof Stack>>): import("react/jsx-runtime").JSX.Element;
|
|
35
|
-
Loader(props: Partial<ComponentProps<typeof Stack>>): import("react/jsx-runtime").JSX.Element;
|
|
36
|
-
Content(props: Partial<ComponentProps<typeof Stack> & Pick<ListOrganizationsContextValue, "isLoading">>): import("react/jsx-runtime").JSX.Element;
|
|
37
|
-
Tabs<Tabs extends TabData[]>({ className, ...props }: Partial<Omit<TabsProps, "value" | "onChange" | "variant"> & Pick<ListOrganizationsContextValue<Tabs>, "tabs" | "currentTab" | "onTabChange">>): import("react/jsx-runtime").JSX.Element | null;
|
|
38
|
-
Table<Tabs extends TabData[]>(props: Partial<ComponentProps<typeof Stack> & Pick<ListOrganizationsContextValue<Tabs>, "labels" | "data" | "rowHref" | "onNavigate" | "onRowActionClick" | "pagination">>): import("react/jsx-runtime").JSX.Element | null;
|
|
39
|
-
};
|
|
40
|
-
declare const defaultBlocks: {
|
|
41
|
-
title: import("react").ReactElement<Partial<import("@mui/material").TypographyOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "p" | "style" | "color" | "left" | "right" | "children" | "className" | "classes" | "border" | "borderTop" | "borderRight" | "borderBottom" | "borderLeft" | "borderColor" | "borderRadius" | "display" | "displayPrint" | "overflow" | "textOverflow" | "visibility" | "whiteSpace" | "flexBasis" | "flexDirection" | "flexWrap" | "justifyContent" | "alignItems" | "alignContent" | "order" | "flex" | "flexGrow" | "flexShrink" | "alignSelf" | "justifyItems" | "justifySelf" | "gap" | "columnGap" | "rowGap" | "gridColumn" | "gridRow" | "gridAutoFlow" | "gridAutoColumns" | "gridAutoRows" | "gridTemplateColumns" | "gridTemplateRows" | "gridTemplateAreas" | "gridArea" | "bgcolor" | "zIndex" | "position" | "top" | "bottom" | "boxShadow" | "width" | "maxWidth" | "minWidth" | "height" | "maxHeight" | "minHeight" | "boxSizing" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "my" | "pt" | "pr" | "pb" | "pl" | "px" | "py" | "margin" | "marginTop" | "marginRight" | "marginBottom" | "marginLeft" | "marginX" | "marginY" | "marginInline" | "marginInlineStart" | "marginInlineEnd" | "marginBlock" | "marginBlockStart" | "marginBlockEnd" | "padding" | "paddingTop" | "paddingRight" | "paddingBottom" | "paddingLeft" | "paddingX" | "paddingY" | "paddingInline" | "paddingInlineStart" | "paddingInlineEnd" | "paddingBlock" | "paddingBlockStart" | "paddingBlockEnd" | "typography" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "lineHeight" | "textAlign" | "textTransform" | "sx" | "align" | "gutterBottom" | "noWrap" | "paragraph" | "variant" | "variantMapping"> & {
|
|
42
|
-
component?: React.ElementType;
|
|
43
|
-
} & Pick<ListOrganizationsContextValue, "listOrganizationsTitle">>, (props: Partial<TypographyProps & Pick<ListOrganizationsContextValue, "listOrganizationsTitle">>) => import("react/jsx-runtime").JSX.Element>;
|
|
44
|
-
action: import("react").ReactElement<Partial<import("@mui/material").StackOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import("@mui/material/OverridableComponent").CommonProps | keyof import("@mui/material").StackOwnProps> & Pick<ListOrganizationsContextValue, "labels" | "onSearchFieldChange" | "onActionClick">>, (props: Partial<ComponentProps<typeof Stack> & Pick<ListOrganizationsContextValue, "onActionClick" | "onSearchFieldChange" | "labels">>) => import("react/jsx-runtime").JSX.Element>;
|
|
45
|
-
header: import("react").ReactElement<Partial<import("@mui/material").StackOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import("@mui/material/OverridableComponent").CommonProps | keyof import("@mui/material").StackOwnProps>>, (props: Partial<ComponentProps<typeof Stack>>) => import("react/jsx-runtime").JSX.Element>;
|
|
46
|
-
content: import("react").ReactElement<Partial<import("@mui/material").StackOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import("@mui/material/OverridableComponent").CommonProps | keyof import("@mui/material").StackOwnProps> & Pick<ListOrganizationsContextValue, "isLoading">>, (props: Partial<ComponentProps<typeof Stack> & Pick<ListOrganizationsContextValue, "isLoading">>) => import("react/jsx-runtime").JSX.Element>;
|
|
47
|
-
tabs: import("react").ReactElement<Partial<Omit<TabsProps, "onChange" | "variant" | "value"> & Pick<ListOrganizationsContextValue<TabData[]>, "tabs" | "currentTab" | "onTabChange">>, <Tabs extends TabData[]>({ className, ...props }: Partial<Omit<TabsProps, "value" | "onChange" | "variant"> & Pick<ListOrganizationsContextValue<Tabs>, "tabs" | "currentTab" | "onTabChange">>) => import("react/jsx-runtime").JSX.Element | null>;
|
|
48
|
-
table: import("react").ReactElement<Partial<import("@mui/material").StackOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import("@mui/material/OverridableComponent").CommonProps | keyof import("@mui/material").StackOwnProps> & Pick<ListOrganizationsContextValue<TabData[]>, "data" | "labels" | "onNavigate" | "onRowActionClick" | "rowHref" | "pagination">>, <Tabs extends TabData[]>(props: Partial<ComponentProps<typeof Stack> & Pick<ListOrganizationsContextValue<Tabs>, "labels" | "data" | "rowHref" | "onNavigate" | "onRowActionClick" | "pagination">>) => import("react/jsx-runtime").JSX.Element | null>;
|
|
49
|
-
};
|
|
50
|
-
export default ListOrganizations;
|
|
51
|
-
//# sourceMappingURL=list-organizations.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"list-organizations.d.ts","sourceRoot":"","sources":["../src/list-organizations.tsx"],"names":[],"mappings":"AAAA,OAAO,EAKL,KAAK,EAIL,SAAS,EAUT,eAAe,EAEhB,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,cAAc,EAAY,SAAS,EAAE,MAAM,OAAO,CAAC;AAC5D,OAAO,EACL,6BAA6B,EAI9B,MAAM,WAAW,CAAC;AACnB,OAAO,EAAE,cAAc,EAA+E,MAAM,OAAO,CAAC;AAIpH,MAAM,WAAW,wBAAwB;IACvC,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,MAAM,OAAO,GAAG;IACpB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,MAAM,WAAW,eAAe;IAC9B,8CAA8C;IAC9C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,2EAA2E;IAC3E,WAAW,EAAE,MAAM,CAAC;IACpB,wCAAwC;IACxC,YAAY,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAA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O,CACZ,cAAc,CAAC,OAAO,KAAK,CAAC,GAC1B,IAAI,CACF,6BAA6B,CAAC,IAAI,CAAC,EACnC,QAAQ,GAAG,MAAM,GAAG,SAAS,GAAG,YAAY,GAAG,kBAAkB,GAAG,YAAY,CACjF,CACJ;CApNF,CAAC;AAoYF,QAAA,MAAM,aAAa;;;gFAjYV,OAAO,CAAC,eAAe,GAAG,IAAI,CAAC,6BAA6B,EAAE,wBAAwB,CAAC,CAAC;8cAoBxF,OAAO,CACZ,cAAc,CAAC,OAAO,KAAK,CAAC,GAC1B,IAAI,CAAC,6BAA6B,EAAE,eAAe,GAAG,qBAAqB,GAAG,QAAQ,CAAC,CAC1F;oXA4DgC,OAAO,CAAC,cAAc,CAAC,OAAO,KAAK,CAAC,CAAC;waAuC/D,OAAO,CAAC,cAAc,CAAC,OAAO,KAAK,CAAC,GAAG,IAAI,CAAC,6BAA6B,EAAE,WAAW,CAAC,CAAC;4LAyBvE,IAAI,SAAS,OAAO,EAAE,2BAG7C,OAAO,CACR,IAAI,CAAC,SAAS,EAAE,OAAO,GAAG,UAAU,GAAG,SAAS,CAAC,GAC/C,IAAI,CAAC,6BAA6B,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,YAAY,GAAG,aAAa,CAAC,CACnF;+eAiD0B,IAAI,SAAS,OAAO,EAAE,SACxC,OAAO,CACZ,cAAc,CAAC,OAAO,KAAK,CAAC,GAC1B,IAAI,CACF,6BAA6B,CAAC,IAAI,CAAC,EACnC,QAAQ,GAAG,MAAM,GAAG,SAAS,GAAG,YAAY,GAAG,kBAAkB,GAAG,YAAY,CACjF,CACJ;CAuLD,CAAC;AAEH,eAAe,iBAAiB,CAAC"}
|
package/dist/types.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
export type Blocks<T extends Record<string, ReactNode> = {}> = {
|
|
3
|
-
[k: string]: ReactNode;
|
|
4
|
-
} & T;
|
|
5
|
-
export type BlocksOverride<T extends Record<string, any> = {}> = (inputs: {
|
|
6
|
-
defaultBlocks: {
|
|
7
|
-
[k: string]: ReactNode;
|
|
8
|
-
};
|
|
9
|
-
blockOrder?: string[];
|
|
10
|
-
} & T) => {
|
|
11
|
-
blocks?: {
|
|
12
|
-
[k: string]: ReactNode;
|
|
13
|
-
};
|
|
14
|
-
blockOrder?: string[];
|
|
15
|
-
};
|
|
16
|
-
//# sourceMappingURL=types.d.ts.map
|
package/dist/types.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC,MAAM,MAAM,MAAM,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,EAAE,IAAI;IAC7D,CAAC,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACxB,GAAG,CAAC,CAAC;AAEN,MAAM,MAAM,cAAc,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,EAAE,IAAI,CAC/D,MAAM,EAAE;IACN,aAAa,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;KAAE,CAAC;IAC1C,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;CACvB,GAAG,CAAC,KACF;IAAE,MAAM,CAAC,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;KAAE,CAAC;IAAC,UAAU,CAAC,EAAE,MAAM,EAAE,CAAA;CAAE,CAAC"}
|