@ukhomeoffice/cop-react-form-renderer 8.0.7-alpha → 8.0.7-alpha.2
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/components/CollectionPage/CollectionPage.d.ts +1 -1
- package/dist/components/CollectionSummary/BannerStrip.d.ts +1 -1
- package/dist/components/CollectionSummary/CollectionSummary.d.ts +1 -1
- package/dist/components/CollectionSummary/Confirmation.d.ts +1 -1
- package/dist/components/CollectionSummary/RenderListView.d.ts +1 -1
- package/dist/components/CollectionSummary/SummaryCard.d.ts +1 -1
- package/dist/components/CollectionSummary/SummaryCardButtons.d.ts +1 -1
- package/dist/components/CollectionSummary/SummaryCardValidationContext.d.ts +1 -1
- package/dist/components/FormComponent/Collection.d.ts +1 -1
- package/dist/components/FormComponent/Container.d.ts +1 -1
- package/dist/components/FormPage/FormPage.d.ts +1 -1
- package/dist/components/FormRenderer/FormRenderer.d.ts +3 -1
- package/dist/components/PageActions/ActionButton.d.ts +1 -1
- package/dist/components/PageActions/PageActions.d.ts +1 -1
- package/dist/components/SummaryList/GroupAction.d.ts +1 -1
- package/dist/components/SummaryList/RowAction.d.ts +1 -1
- package/dist/components/SummaryList/SummaryList.d.ts +1 -1
- package/dist/components/SummaryList/SummaryList.stories.d.ts +1 -1
- package/dist/components/SummaryList/SummaryListHeadingRow.d.ts +1 -1
- package/dist/components/SummaryList/SummaryListHeadingRowWithAction.d.ts +1 -1
- package/dist/components/SummaryList/SummaryListRow.d.ts +1 -1
- package/dist/components/SummaryList/SummaryListTitleRow.d.ts +1 -1
- package/dist/components/TaskList/Task.d.ts +1 -1
- package/dist/components/TaskList/TaskList.d.ts +1 -1
- package/dist/components/TaskList/TaskState.d.ts +1 -1
- package/dist/context/HooksContext/HooksContext.d.ts +1 -1
- package/dist/context/ValidationContext/ValidationContext.d.ts +1 -1
- package/dist/index.cjs +11 -11
- package/dist/index.css +1 -1
- package/dist/index.js +5902 -6656
- package/dist/utils/CheckYourAnswers/getCYARowForGroup.d.ts +1 -1
- package/dist/utils/CheckYourAnswers/getSummaryListRowForDetails.d.ts +1 -1
- package/package.json +17 -19
|
@@ -20,5 +20,5 @@ interface CollectionPageProps {
|
|
|
20
20
|
className?: string;
|
|
21
21
|
submitting?: boolean;
|
|
22
22
|
}
|
|
23
|
-
declare const CollectionPage: ({ page, pages, onCollectionChange, onAction, hashLink, classBlock, classModifiers, className, submitting }: CollectionPageProps) => import(
|
|
23
|
+
declare const CollectionPage: ({ page, pages, onCollectionChange, onAction, hashLink, classBlock, classModifiers, className, submitting }: CollectionPageProps) => import('react/jsx-runtime').JSX.Element | null;
|
|
24
24
|
export default CollectionPage;
|
|
@@ -5,5 +5,5 @@ interface BannerStripProps {
|
|
|
5
5
|
formData?: object;
|
|
6
6
|
classModifiers?: string | string[];
|
|
7
7
|
}
|
|
8
|
-
declare const BannerStrip: ({ id, banners, formData, classModifiers }: BannerStripProps) => import(
|
|
8
|
+
declare const BannerStrip: ({ id, banners, formData, classModifiers }: BannerStripProps) => import('react/jsx-runtime').JSX.Element;
|
|
9
9
|
export default BannerStrip;
|
|
@@ -49,5 +49,5 @@ interface CollectionSummaryProps {
|
|
|
49
49
|
formData: object;
|
|
50
50
|
pages?: object[];
|
|
51
51
|
}
|
|
52
|
-
declare const CollectionSummary: ({ config, formData, onAction, onChange, onTopLevelChange, pages }: CollectionSummaryProps) => import(
|
|
52
|
+
declare const CollectionSummary: ({ config, formData, onAction, onChange, onTopLevelChange, pages }: CollectionSummaryProps) => import('react/jsx-runtime').JSX.Element;
|
|
53
53
|
export default CollectionSummary;
|
|
@@ -11,5 +11,5 @@ interface ConfirmationProps {
|
|
|
11
11
|
onCancel: Function;
|
|
12
12
|
classModifiers?: string | string[];
|
|
13
13
|
}
|
|
14
|
-
declare const Confirmation: ({ id, message, confirmLabel, children, onConfirm, onCancel, classModifiers }: ConfirmationProps) => import(
|
|
14
|
+
declare const Confirmation: ({ id, message, confirmLabel, children, onConfirm, onCancel, classModifiers }: ConfirmationProps) => import('react/jsx-runtime').JSX.Element;
|
|
15
15
|
export default Confirmation;
|
|
@@ -38,5 +38,5 @@ interface RenderListViewProps {
|
|
|
38
38
|
classModifiers?: string | string[];
|
|
39
39
|
optionalFieldPlaceholder?: string;
|
|
40
40
|
}
|
|
41
|
-
declare const RenderListView: ({ id, entryData, config, onFullEdit, onDelete, masterPage, classModifiers, optionalFieldPlaceholder }: RenderListViewProps) => import(
|
|
41
|
+
declare const RenderListView: ({ id, entryData, config, onFullEdit, onDelete, masterPage, classModifiers, optionalFieldPlaceholder }: RenderListViewProps) => import('react/jsx-runtime').JSX.Element;
|
|
42
42
|
export default RenderListView;
|
|
@@ -58,5 +58,5 @@ interface SummaryCardProps {
|
|
|
58
58
|
formData: object;
|
|
59
59
|
hideDetails?: boolean;
|
|
60
60
|
}
|
|
61
|
-
declare const SummaryCard: ({ id, entryData, config, classModifiers, onFullEdit, onDelete, onDuplicate, onQuickEdit, parentCollectionName, childCollections, formData, masterPage, hideDetails, }: SummaryCardProps) => import(
|
|
61
|
+
declare const SummaryCard: ({ id, entryData, config, classModifiers, onFullEdit, onDelete, onDuplicate, onQuickEdit, parentCollectionName, childCollections, formData, masterPage, hideDetails, }: SummaryCardProps) => import('react/jsx-runtime').JSX.Element;
|
|
62
62
|
export default SummaryCard;
|
|
@@ -17,5 +17,5 @@ interface SummaryCardButtonsProps {
|
|
|
17
17
|
actions: SummaryCardAction | SummaryCardAction[];
|
|
18
18
|
formData: any;
|
|
19
19
|
}
|
|
20
|
-
export declare const SummaryCardButtons: ({ id, "data-testid": dataTestId, actions, onFullEdit, entryData, formData, name, autoFocus }: SummaryCardButtonsProps) => import(
|
|
20
|
+
export declare const SummaryCardButtons: ({ id, "data-testid": dataTestId, actions, onFullEdit, entryData, formData, name, autoFocus }: SummaryCardButtonsProps) => import('react/jsx-runtime').JSX.Element;
|
|
21
21
|
export {};
|
|
@@ -5,5 +5,5 @@ interface SummaryCardValidationContextProviderProps {
|
|
|
5
5
|
clearTopLevelErrorsForCard: Function;
|
|
6
6
|
children?: ReactNode;
|
|
7
7
|
}
|
|
8
|
-
declare const SummaryCardValidationContextProvider: ({ entryId, topLevelErrors, clearTopLevelErrorsForCard, children }: SummaryCardValidationContextProviderProps) => import(
|
|
8
|
+
declare const SummaryCardValidationContextProvider: ({ entryId, topLevelErrors, clearTopLevelErrorsForCard, children }: SummaryCardValidationContextProviderProps) => import('react/jsx-runtime').JSX.Element;
|
|
9
9
|
export default SummaryCardValidationContextProvider;
|
|
@@ -35,5 +35,5 @@ interface CollectionProps {
|
|
|
35
35
|
} | object[];
|
|
36
36
|
wrap?: boolean;
|
|
37
37
|
}
|
|
38
|
-
declare const Collection: ({ config, value: _value, formData, onChange, onTopLevelChange, wrap }: CollectionProps) => import(
|
|
38
|
+
declare const Collection: ({ config, value: _value, formData, onChange, onTopLevelChange, wrap }: CollectionProps) => import('react/jsx-runtime').JSX.Element;
|
|
39
39
|
export default Collection;
|
|
@@ -22,5 +22,5 @@ interface ContainerProps {
|
|
|
22
22
|
} | object[];
|
|
23
23
|
wrap?: boolean;
|
|
24
24
|
}
|
|
25
|
-
declare const Container: ({ container, value, formData, onChange, wrap, onTopLevelChange, ...attrs }: ContainerProps) => import(
|
|
25
|
+
declare const Container: ({ container, value, formData, onChange, wrap, onTopLevelChange, ...attrs }: ContainerProps) => import('react/jsx-runtime').JSX.Element;
|
|
26
26
|
export default Container;
|
|
@@ -32,5 +32,5 @@ interface FormPageProps {
|
|
|
32
32
|
}
|
|
33
33
|
/** Renders a page on a form with <Link href="https://ukhomeoffice.github.io/cop-react-components/?path=/docs/d-alert--default-story">COP React components</Link>,
|
|
34
34
|
on the basis of a <Link href="/?path=/docs/json-format-page">JSON</Link> configuration */
|
|
35
|
-
declare const FormPage: ({ page, pages, onAction, onWrapperChange, onTopLevelChange, onChange, hashLink, classBlock, classModifiers, className, submitting, pageId }: FormPageProps) => import(
|
|
35
|
+
declare const FormPage: ({ page, pages, onAction, onWrapperChange, onTopLevelChange, onChange, hashLink, classBlock, classModifiers, className, submitting, pageId }: FormPageProps) => import('react/jsx-runtime').JSX.Element;
|
|
36
36
|
export default FormPage;
|
|
@@ -12,6 +12,7 @@ export interface FormRendererProps {
|
|
|
12
12
|
formStatus?: {
|
|
13
13
|
page?: object;
|
|
14
14
|
};
|
|
15
|
+
[key: string]: unknown;
|
|
15
16
|
};
|
|
16
17
|
hashLink?: boolean;
|
|
17
18
|
hide_title?: boolean;
|
|
@@ -19,6 +20,7 @@ export interface FormRendererProps {
|
|
|
19
20
|
hub?: {
|
|
20
21
|
nonSequential?: boolean;
|
|
21
22
|
sections?: object[];
|
|
23
|
+
format?: string;
|
|
22
24
|
};
|
|
23
25
|
newPageId?: string;
|
|
24
26
|
noChangeAction?: boolean;
|
|
@@ -34,6 +36,6 @@ export interface FormRendererProps {
|
|
|
34
36
|
}
|
|
35
37
|
/** Renders a form with <Link href="https://ukhomeoffice.github.io/cop-react-components/?path=/docs/d-alert--default-story">COP React components</Link>,
|
|
36
38
|
on the basis of a <Link href="/?path=/docs/json-format-form">JSON</Link> that describes which elements are required. */
|
|
37
|
-
declare const FormRenderer: ({ title, titleSize, type, cleanseHiddenData, components, pages, hub, cya, data, hashLink, hooks, classBlock, classModifiers, className, hide_title: hideTitle, summaryListClassModifiers, noChangeAction, newPageId, viewOnly, hideBlankRows }: FormRendererProps) => import(
|
|
39
|
+
declare const FormRenderer: ({ title, titleSize, type, cleanseHiddenData, components, pages, hub, cya, data, hashLink, hooks, classBlock, classModifiers, className, hide_title: hideTitle, summaryListClassModifiers, noChangeAction, newPageId, viewOnly, hideBlankRows }: FormRendererProps) => import('react/jsx-runtime').JSX.Element;
|
|
38
40
|
export declare const DEFAULT_CLASS = "hods-form";
|
|
39
41
|
export default FormRenderer;
|
|
@@ -3,5 +3,5 @@ interface ActionButtonProps {
|
|
|
3
3
|
action: string | object;
|
|
4
4
|
onAction: Function;
|
|
5
5
|
}
|
|
6
|
-
declare const ActionButton: ({ action: _action, onAction, ...attrs }: ActionButtonProps) => import(
|
|
6
|
+
declare const ActionButton: ({ action: _action, onAction, ...attrs }: ActionButtonProps) => import('react/jsx-runtime').JSX.Element | null;
|
|
7
7
|
export default ActionButton;
|
|
@@ -3,5 +3,5 @@ interface PageActionsProps {
|
|
|
3
3
|
onAction: Function;
|
|
4
4
|
}
|
|
5
5
|
/** Renders the buttons at the bottom of a Page */
|
|
6
|
-
declare const PageActions: ({ actions, onAction }: PageActionsProps) => import(
|
|
6
|
+
declare const PageActions: ({ actions, onAction }: PageActionsProps) => import('react/jsx-runtime').JSX.Element | null;
|
|
7
7
|
export default PageActions;
|
|
@@ -8,5 +8,5 @@ export interface GroupActionProps {
|
|
|
8
8
|
};
|
|
9
9
|
};
|
|
10
10
|
}
|
|
11
|
-
declare const GroupAction: ({ group }: GroupActionProps) => import(
|
|
11
|
+
declare const GroupAction: ({ group }: GroupActionProps) => import('react/jsx-runtime').JSX.Element | null;
|
|
12
12
|
export default GroupAction;
|
|
@@ -8,5 +8,5 @@ interface RowActionProps {
|
|
|
8
8
|
};
|
|
9
9
|
};
|
|
10
10
|
}
|
|
11
|
-
declare const RowAction: ({ row }: RowActionProps) => import(
|
|
11
|
+
declare const RowAction: ({ row }: RowActionProps) => import('react/jsx-runtime').JSX.Element | null;
|
|
12
12
|
export default RowAction;
|
|
@@ -24,5 +24,5 @@ export interface SummaryListProps {
|
|
|
24
24
|
}
|
|
25
25
|
/** Renders a list of key-value pairs, most commonly on the **Check your answers** screen, and optionally
|
|
26
26
|
display action links. */
|
|
27
|
-
declare const SummaryList: ({ rows, noChangeAction, noGroupAction, isGroup, classBlock, classModifiers, className, showGroupAction, ...attrs }: SummaryListProps) => import(
|
|
27
|
+
declare const SummaryList: ({ rows, noChangeAction, noGroupAction, isGroup, classBlock, classModifiers, className, showGroupAction, ...attrs }: SummaryListProps) => import('react/jsx-runtime').JSX.Element;
|
|
28
28
|
export default SummaryList;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { StoryObj } from '@storybook/react-vite';
|
|
2
2
|
declare const meta: {
|
|
3
3
|
title: string;
|
|
4
|
-
component: ({ rows, noChangeAction, noGroupAction, isGroup, classBlock, classModifiers, className, showGroupAction, ...attrs }: import('./SummaryList').SummaryListProps) => import(
|
|
4
|
+
component: ({ rows, noChangeAction, noGroupAction, isGroup, classBlock, classModifiers, className, showGroupAction, ...attrs }: import('./SummaryList').SummaryListProps) => import('react/jsx-runtime').JSX.Element;
|
|
5
5
|
tags: string[];
|
|
6
6
|
};
|
|
7
7
|
export default meta;
|
|
@@ -3,5 +3,5 @@ interface SummaryListHeadingRowProps {
|
|
|
3
3
|
size?: string;
|
|
4
4
|
title: string;
|
|
5
5
|
}
|
|
6
|
-
declare const SummaryListHeadingRow: ({ title, size, classes }: SummaryListHeadingRowProps) => import(
|
|
6
|
+
declare const SummaryListHeadingRow: ({ title, size, classes }: SummaryListHeadingRowProps) => import('react/jsx-runtime').JSX.Element;
|
|
7
7
|
export default SummaryListHeadingRow;
|
|
@@ -12,5 +12,5 @@ interface SummaryListHeadingRowWithActionProps {
|
|
|
12
12
|
};
|
|
13
13
|
noChangeAction?: boolean;
|
|
14
14
|
}
|
|
15
|
-
declare const SummaryListHeadingRowWithAction: ({ row, classes, noChangeAction }: SummaryListHeadingRowWithActionProps) => import(
|
|
15
|
+
declare const SummaryListHeadingRowWithAction: ({ row, classes, noChangeAction }: SummaryListHeadingRowWithActionProps) => import('react/jsx-runtime').JSX.Element;
|
|
16
16
|
export default SummaryListHeadingRowWithAction;
|
|
@@ -15,5 +15,5 @@ interface SummaryListRowProps {
|
|
|
15
15
|
};
|
|
16
16
|
showAction?: boolean;
|
|
17
17
|
}
|
|
18
|
-
declare const SummaryListRow: ({ row, classes, showAction }: SummaryListRowProps) => import(
|
|
18
|
+
declare const SummaryListRow: ({ row, classes, showAction }: SummaryListRowProps) => import('react/jsx-runtime').JSX.Element;
|
|
19
19
|
export default SummaryListRow;
|
|
@@ -3,5 +3,5 @@ interface SummaryListTitleRowProps {
|
|
|
3
3
|
title: string;
|
|
4
4
|
classes: ReturnType<typeof Utils.classBuilder>;
|
|
5
5
|
}
|
|
6
|
-
declare const SummaryListTitleRow: ({ title, classes }: SummaryListTitleRowProps) => import(
|
|
6
|
+
declare const SummaryListTitleRow: ({ title, classes }: SummaryListTitleRowProps) => import('react/jsx-runtime').JSX.Element;
|
|
7
7
|
export default SummaryListTitleRow;
|
|
@@ -8,5 +8,5 @@ interface TaskProps {
|
|
|
8
8
|
};
|
|
9
9
|
onClick: Function;
|
|
10
10
|
}
|
|
11
|
-
declare const Task: ({ task, onClick }: TaskProps) => import(
|
|
11
|
+
declare const Task: ({ task, onClick }: TaskProps) => import('react/jsx-runtime').JSX.Element;
|
|
12
12
|
export default Task;
|
|
@@ -36,5 +36,5 @@ interface TaskListProps {
|
|
|
36
36
|
}
|
|
37
37
|
/** Renders a list of tasks along with the current status for each. Each task that is not in the `Cannot start yet` state can be
|
|
38
38
|
selected to navigate to that task */
|
|
39
|
-
declare const TaskList: ({ id, refTitle, refNumber, notes, incompleteTitle, showCompletionOverview, sections, fieldId, onTaskAction, classBlock, classModifiers, className, formData, annotations, ...attrs }: TaskListProps) => import(
|
|
39
|
+
declare const TaskList: ({ id, refTitle, refNumber, notes, incompleteTitle, showCompletionOverview, sections, fieldId, onTaskAction, classBlock, classModifiers, className, formData, annotations, ...attrs }: TaskListProps) => import('react/jsx-runtime').JSX.Element;
|
|
40
40
|
export default TaskList;
|
|
@@ -2,5 +2,5 @@ export declare const DEFAULT_CLASS = "hods-task-list";
|
|
|
2
2
|
interface TaskStateProps {
|
|
3
3
|
state?: string;
|
|
4
4
|
}
|
|
5
|
-
declare const TaskState: ({ state }: TaskStateProps) => import(
|
|
5
|
+
declare const TaskState: ({ state }: TaskStateProps) => import('react/jsx-runtime').JSX.Element;
|
|
6
6
|
export default TaskState;
|
|
@@ -19,5 +19,5 @@ interface HooksContextProviderProps {
|
|
|
19
19
|
onValidate?: Function;
|
|
20
20
|
};
|
|
21
21
|
}
|
|
22
|
-
declare const HooksContextProvider: ({ overrides, children }: HooksContextProviderProps) => import(
|
|
22
|
+
declare const HooksContextProvider: ({ overrides, children }: HooksContextProviderProps) => import('react/jsx-runtime').JSX.Element;
|
|
23
23
|
export default HooksContextProvider;
|
|
@@ -3,5 +3,5 @@ export declare const ValidationContext: import('react').Context<unknown>;
|
|
|
3
3
|
interface ValidationContextProviderProps {
|
|
4
4
|
children?: ReactNode;
|
|
5
5
|
}
|
|
6
|
-
declare const ValidationContextProvider: ({ children }: ValidationContextProviderProps) => import(
|
|
6
|
+
declare const ValidationContextProvider: ({ children }: ValidationContextProviderProps) => import('react/jsx-runtime').JSX.Element;
|
|
7
7
|
export default ValidationContextProvider;
|