@ukhomeoffice/cop-react-form-renderer 8.0.0 → 8.0.2-alpha
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 +7 -7
- package/dist/index.js +3031 -2776
- package/dist/utils/index.d.ts +3 -5
- package/package.json +16 -13
- package/dist/setupTests.d.ts +0 -14
package/dist/utils/index.d.ts
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
declare const Utils: {
|
|
2
|
-
classBuilder: (block: string, blockModifiers: string | string[] | null | undefined, blockExtra?: string | null) => (element?: string | null, elementModifiers?: string | string[] | null | undefined, elementExtra?: string | null | undefined) => string | undefined;
|
|
3
|
-
cleanHtmlAttributes: (attrs: {
|
|
4
|
-
[
|
|
5
|
-
}, type?: string) => {
|
|
6
|
-
[k: string]: string | number | boolean;
|
|
2
|
+
classBuilder: (block: string, blockModifiers: string | string[] | null | undefined, blockExtra?: string[] | string | null) => (element?: string | null, elementModifiers?: string | string[] | null | undefined, elementExtra?: string[] | string | null | undefined) => string | undefined;
|
|
3
|
+
cleanHtmlAttributes: (attrs: Record<string, unknown>, type?: string) => {
|
|
4
|
+
[k: string]: unknown;
|
|
7
5
|
};
|
|
8
6
|
getMonthName: (month: string, shorthand?: boolean) => string;
|
|
9
7
|
interpolateString: (template: any, variables: any, fallback?: string) => string;
|
package/package.json
CHANGED
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ukhomeoffice/cop-react-form-renderer",
|
|
3
|
-
"version": "8.0.
|
|
4
|
-
"engines": {
|
|
5
|
-
"node": "24.14.1"
|
|
6
|
-
},
|
|
3
|
+
"version": "8.0.2-alpha",
|
|
7
4
|
"scripts": {
|
|
8
5
|
"dev": "vite",
|
|
9
6
|
"build": "tsc -b && vite build",
|
|
@@ -20,12 +17,18 @@
|
|
|
20
17
|
"lib:yalc-publish": "npm run lib:transpile-with-maps && yalc publish --push --force"
|
|
21
18
|
},
|
|
22
19
|
"dependencies": {
|
|
20
|
+
"@testing-library/dom": "10.4.1",
|
|
21
|
+
"@types/trusted-types": "2.0.7",
|
|
22
|
+
"@ukhomeoffice/cop-react-components": "6.0.2",
|
|
23
|
+
"dayjs": "1.11.0",
|
|
24
|
+
"dompurify": "3.4.8",
|
|
23
25
|
"govuk-frontend": "5.9.0",
|
|
24
|
-
"
|
|
25
|
-
"
|
|
26
|
+
"marked": "14.0.0",
|
|
27
|
+
"monaco-editor": "^0.53.0",
|
|
28
|
+
"uuid": "14.0.0",
|
|
29
|
+
"yaml": "2.9.0"
|
|
26
30
|
},
|
|
27
31
|
"peerDependencies": {
|
|
28
|
-
"@ukhomeoffice/cop-react-components": "6.0.0",
|
|
29
32
|
"react": ">=16.14.0 <20",
|
|
30
33
|
"react-dom": ">=16.14.0 <20"
|
|
31
34
|
},
|
|
@@ -44,9 +47,9 @@
|
|
|
44
47
|
"@types/react-dom": "19.2.3",
|
|
45
48
|
"@types/sanitize-html": "2.16.0",
|
|
46
49
|
"@vitejs/plugin-react": "5.1.1",
|
|
47
|
-
"@vitest/browser-playwright": "4.
|
|
48
|
-
"@vitest/coverage-v8": "4.
|
|
49
|
-
"axios": "1.
|
|
50
|
+
"@vitest/browser-playwright": "4.1.8",
|
|
51
|
+
"@vitest/coverage-v8": "4.1.8",
|
|
52
|
+
"axios": "1.17.0",
|
|
50
53
|
"axios-mock-adapter": "2.1.0",
|
|
51
54
|
"better-npm-audit": "3.11.0",
|
|
52
55
|
"cross-env": "10.1.0",
|
|
@@ -74,7 +77,7 @@
|
|
|
74
77
|
"vite-plugin-dts": "4.5.4",
|
|
75
78
|
"vite-plugin-lib-inject-css": "2.2.2",
|
|
76
79
|
"vite-tsconfig-paths": "6.1.1",
|
|
77
|
-
"vitest": "4.
|
|
80
|
+
"vitest": "4.1.8"
|
|
78
81
|
},
|
|
79
82
|
"type": "module",
|
|
80
83
|
"main": "./dist/index.cjs",
|
|
@@ -95,9 +98,9 @@
|
|
|
95
98
|
],
|
|
96
99
|
"repository": {
|
|
97
100
|
"type": "git",
|
|
98
|
-
"url": "https://github.com/UKHomeOffice/cop-react-form-renderer"
|
|
101
|
+
"url": "git+https://github.com/UKHomeOffice/cop-react-form-renderer.git"
|
|
99
102
|
},
|
|
100
103
|
"publishConfig": {
|
|
101
104
|
"@Ali-Baker:registry": "https://npm.pkg.github.com"
|
|
102
105
|
}
|
|
103
|
-
}
|
|
106
|
+
}
|
package/dist/setupTests.d.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { RenderOptions } from '@testing-library/react';
|
|
2
|
-
import { ReactNode } from 'react';
|
|
3
|
-
import { Container } from 'react-dom/client';
|
|
4
|
-
import { HooksContextProvider } from './context';
|
|
5
|
-
import * as React from 'react';
|
|
6
|
-
type RenderOptionsWithHooks = RenderOptions & {
|
|
7
|
-
hooks: React.ComponentProps<typeof HooksContextProvider>["overrides"];
|
|
8
|
-
};
|
|
9
|
-
export declare const renderWithValidation: (ui: ReactNode, options: RenderOptionsWithHooks) => import('@testing-library/react').RenderResult<typeof import("@testing-library/dom/types/queries"), HTMLElement, HTMLElement>;
|
|
10
|
-
export declare const rerenderWithValidation: (rerenderCallback: (children: ReactNode, options: RenderOptionsWithHooks) => void, ui: ReactNode, options: RenderOptionsWithHooks) => void;
|
|
11
|
-
export declare const renderDomWithValidation: (ui: ReactNode, container: Container, options: RenderOptionsWithHooks) => void;
|
|
12
|
-
export declare const renderHookWithProvider: (hook: Function, options: RenderOptionsWithHooks) => import('@testing-library/react').RenderHookResult<any, unknown>;
|
|
13
|
-
export declare const expectObjectLike: <T extends Record<string, unknown>, P extends Partial<T>>(received: T, expected: P) => void;
|
|
14
|
-
export {};
|