northants-design-system 2.3.0 → 3.1.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/README.md +1 -1
- package/build/index.js +5871 -4509
- package/build/index.js.map +1 -1
- package/build/index.mjs.js +5854 -4510
- package/build/index.mjs.js.map +1 -1
- package/build/library/slices/BlockLinks/BlockLinks.d.ts +4 -0
- package/build/library/slices/BlockLinks/BlockLinks.test.d.ts +1 -0
- package/build/library/slices/BlockLinks/BlockLinks.types.d.ts +40 -0
- package/build/library/slices/LinkBlock/LinkBlock.d.ts +4 -0
- package/build/library/slices/LinkBlock/LinkBlock.test.d.ts +1 -0
- package/build/library/slices/LinkBlock/LinkBlock.types.d.ts +36 -0
- package/build/library/structure/CludoNewsSearch/CludoNewsDateSearch.d.ts +6 -0
- package/build/library/structure/CludoNewsSearch/CludoNewsResultCount.d.ts +3 -0
- package/build/library/structure/CludoNewsSearch/CludoNewsSearch.d.ts +4 -0
- package/build/library/structure/CludoNewsSearch/CludoNewsSearch.test.d.ts +1 -0
- package/build/library/structure/CludoNewsSearch/CludoNewsSearch.types.d.ts +18 -0
- package/build/library/structure/CludoNewsSearch/CludoNewsSort.d.ts +3 -0
- package/build/library/structure/PageStructures.d.ts +2 -1
- package/build/library/structure/WebChatAssistant/WebChatAssistant.d.ts +4 -0
- package/build/library/structure/WebChatAssistant/WebChatAssistant.test.d.ts +1 -0
- package/build/library/structure/WebChatAssistant/WebChatAssistant.types.d.ts +24 -0
- package/build/library/structure/WebChatAssistant/useWs.d.ts +1 -0
- package/package.json +28 -27
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
export interface BlockLinksProps {
|
|
2
|
+
/**
|
|
3
|
+
* The title for the link block
|
|
4
|
+
*/
|
|
5
|
+
title?: string | null;
|
|
6
|
+
/**
|
|
7
|
+
* An array of links
|
|
8
|
+
*/
|
|
9
|
+
links: BlockLink[];
|
|
10
|
+
/**
|
|
11
|
+
* The optional alt text
|
|
12
|
+
*/
|
|
13
|
+
imageAltText?: string | null;
|
|
14
|
+
/**
|
|
15
|
+
* The optional small image url
|
|
16
|
+
*/
|
|
17
|
+
imageSmall?: string | null;
|
|
18
|
+
/**
|
|
19
|
+
* The optional large image url
|
|
20
|
+
*/
|
|
21
|
+
imageLarge?: string | null;
|
|
22
|
+
}
|
|
23
|
+
export interface BlockLink {
|
|
24
|
+
/**
|
|
25
|
+
* Unique identifier for the block link
|
|
26
|
+
*/
|
|
27
|
+
id: string;
|
|
28
|
+
/**
|
|
29
|
+
* The url for the link
|
|
30
|
+
*/
|
|
31
|
+
url: string;
|
|
32
|
+
/**
|
|
33
|
+
* The text for the link
|
|
34
|
+
*/
|
|
35
|
+
title: string;
|
|
36
|
+
/**
|
|
37
|
+
* The optional summary text to describe the link
|
|
38
|
+
*/
|
|
39
|
+
summary?: string | null;
|
|
40
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
export interface LinkBlockProps {
|
|
2
|
+
/**
|
|
3
|
+
* The title for the link block
|
|
4
|
+
*/
|
|
5
|
+
title?: string;
|
|
6
|
+
/**
|
|
7
|
+
* An array of links
|
|
8
|
+
*/
|
|
9
|
+
links: BlockLink[];
|
|
10
|
+
/**
|
|
11
|
+
* The optional alt text
|
|
12
|
+
*/
|
|
13
|
+
imageAltText?: string | null;
|
|
14
|
+
/**
|
|
15
|
+
* The optional small image url
|
|
16
|
+
*/
|
|
17
|
+
imageSmall?: string | null;
|
|
18
|
+
/**
|
|
19
|
+
* The optional large image url
|
|
20
|
+
*/
|
|
21
|
+
imageLarge?: string | null;
|
|
22
|
+
}
|
|
23
|
+
export interface BlockLink {
|
|
24
|
+
/**
|
|
25
|
+
* The url for the link
|
|
26
|
+
*/
|
|
27
|
+
url: string;
|
|
28
|
+
/**
|
|
29
|
+
* The text for the link
|
|
30
|
+
*/
|
|
31
|
+
title: string;
|
|
32
|
+
/**
|
|
33
|
+
* The optional summary text to describe the link
|
|
34
|
+
*/
|
|
35
|
+
summary?: string | null;
|
|
36
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export interface CludoNewsSearchProps {
|
|
2
|
+
/**
|
|
3
|
+
* The optional search term
|
|
4
|
+
*/
|
|
5
|
+
searchTerm?: string;
|
|
6
|
+
/**
|
|
7
|
+
* The cludo customer Id
|
|
8
|
+
*/
|
|
9
|
+
customerId: number;
|
|
10
|
+
/**
|
|
11
|
+
* The cludo engine Id
|
|
12
|
+
*/
|
|
13
|
+
engineId: number;
|
|
14
|
+
/**
|
|
15
|
+
* Optional first article date to work out the start year
|
|
16
|
+
*/
|
|
17
|
+
firstArticleDate?: string;
|
|
18
|
+
}
|
|
@@ -46,4 +46,5 @@ import ServicesLinksList from './ServicesLinksList/ServicesLinksList';
|
|
|
46
46
|
import SignpostLinks from './SignpostLinks/SignpostLinks';
|
|
47
47
|
import SkipToMainContent from './SkipToMainContent/SkipToMainContent';
|
|
48
48
|
import Summary from './Summary/Summary';
|
|
49
|
-
|
|
49
|
+
import WebChatAssistant from './WebChatAssistant/WebChatAssistant';
|
|
50
|
+
export { AccessibleLinks, AlertBanner, AlertBannerService, BackLink, Breadcrumbs, CludoSearch, ConsultationList, Contents, ContentsNavigation, CookieBanner, DisplayDate, EventList, Footer, FullWidthContainer, Header, HeroImage, HomeHero, MaxWidthContainer, MemorialHero, NewsArticleDate, NewsArticleFeaturedBlock, NewsArticleFilterAccordion, NewsArticleImage, NewsArticleList, NewsArticleListHeader, NewsArticleOldBanner, PhaseBanner, PageMain, PageSidebar, PageTitle, PageWithSidebarContainer, PageWrapper, PromoBanner, PromoBlock, PromoTabs, PromoTabsDisplay, PromotedServicesTabs, RateThisPage, Searchbar, SearchResultsList, SectionLinks, SectionLinksMobileContents, SectionLinksSidebar, ServiceLinksBoxed, ServicesLinksList, SignpostLinks, SkipToMainContent, Summary, WebChatAssistant, };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export interface WebChatAssistantProps {
|
|
2
|
+
/**
|
|
3
|
+
* The chatbot endpoint url
|
|
4
|
+
*/
|
|
5
|
+
endpointUrl: string;
|
|
6
|
+
/**
|
|
7
|
+
* Optional starting message text
|
|
8
|
+
*/
|
|
9
|
+
startMessage?: string;
|
|
10
|
+
}
|
|
11
|
+
export interface WebChatMessageProps {
|
|
12
|
+
/**
|
|
13
|
+
* The message text
|
|
14
|
+
*/
|
|
15
|
+
text: string;
|
|
16
|
+
/**
|
|
17
|
+
* The sender of the message
|
|
18
|
+
*/
|
|
19
|
+
sender: 'user' | 'bot';
|
|
20
|
+
/**
|
|
21
|
+
* Is the message a chunk?
|
|
22
|
+
*/
|
|
23
|
+
isChunk?: boolean;
|
|
24
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useWs: (url: string) => any[];
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "northants-design-system",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.1.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Design system for West & North Northamptonshire Councils, two unitary councils encompassing Wellingborough, Corby, Daventry, East Northants, Kettering, Northampton, Northamptonshire County and South Northants.",
|
|
6
6
|
"main": "build/index.js",
|
|
7
7
|
"engines": {
|
|
8
|
-
"node": ">=
|
|
8
|
+
"node": ">=24"
|
|
9
9
|
},
|
|
10
10
|
"repository": {
|
|
11
11
|
"type": "git",
|
|
@@ -31,7 +31,8 @@
|
|
|
31
31
|
"storybook:export": "storybook build",
|
|
32
32
|
"generate": "node ./util/create-component",
|
|
33
33
|
"prepublishOnly": "npm run build",
|
|
34
|
-
"dev": "npm run storybook"
|
|
34
|
+
"dev": "npm run storybook",
|
|
35
|
+
"lint": "eslint ./src"
|
|
35
36
|
},
|
|
36
37
|
"keywords": [
|
|
37
38
|
"React",
|
|
@@ -46,8 +47,8 @@
|
|
|
46
47
|
"@cludosearch/cludo-search-components": "^1.0.59",
|
|
47
48
|
"@googlemaps/react-wrapper": ">=1.1.35",
|
|
48
49
|
"axios": "^1",
|
|
49
|
-
"react": "19.
|
|
50
|
-
"react-dom": "19.
|
|
50
|
+
"react": "^19.2.3",
|
|
51
|
+
"react-dom": "^19.2.3",
|
|
51
52
|
"react-hook-form": "^7.5",
|
|
52
53
|
"styled-components": "^6.1.1"
|
|
53
54
|
},
|
|
@@ -56,22 +57,24 @@
|
|
|
56
57
|
},
|
|
57
58
|
"overrides": {
|
|
58
59
|
"react-hook-recaptcha": {
|
|
59
|
-
"react": "19.
|
|
60
|
+
"react": "^19.2.3"
|
|
60
61
|
}
|
|
61
62
|
},
|
|
62
63
|
"devDependencies": {
|
|
63
64
|
"@cludosearch/cludo-search-components": "^1.0.59",
|
|
64
|
-
"@
|
|
65
|
+
"@eslint-react/eslint-plugin": "^5.7.4",
|
|
66
|
+
"@eslint/js": "^10.0.1",
|
|
67
|
+
"@etchteam/storybook-addon-status": "^8.0.0",
|
|
65
68
|
"@googlemaps/react-wrapper": "^1.1.35",
|
|
66
69
|
"@googlemaps/typescript-guards": "^2.0.3",
|
|
67
|
-
"@rollup/plugin-commonjs": "^
|
|
70
|
+
"@rollup/plugin-commonjs": "^29.0.0",
|
|
68
71
|
"@rollup/plugin-json": "^6",
|
|
69
72
|
"@rollup/plugin-node-resolve": "^16",
|
|
70
|
-
"@storybook/addon-a11y": "^
|
|
71
|
-
"@storybook/addon-docs": "^
|
|
72
|
-
"@storybook/addon-links": "^
|
|
73
|
-
"@storybook/addon-webpack5-compiler-swc": "^
|
|
74
|
-
"@storybook/react-webpack5": "^
|
|
73
|
+
"@storybook/addon-a11y": "^10.4.1",
|
|
74
|
+
"@storybook/addon-docs": "^10.4.1",
|
|
75
|
+
"@storybook/addon-links": "^10.4.1",
|
|
76
|
+
"@storybook/addon-webpack5-compiler-swc": "^4.0.3",
|
|
77
|
+
"@storybook/react-webpack5": "^10.4.1",
|
|
75
78
|
"@swc/core": "^1.4.11",
|
|
76
79
|
"@swc/jest": "^0.2.36",
|
|
77
80
|
"@testing-library/dom": "^10.4.0",
|
|
@@ -80,44 +83,42 @@
|
|
|
80
83
|
"@types/google.maps": "^3.50.5",
|
|
81
84
|
"@types/jest": "^30.0.0",
|
|
82
85
|
"@types/jest-axe": "^3.5.9",
|
|
83
|
-
"@types/react": "19.
|
|
84
|
-
"@types/react-dom": "19.
|
|
86
|
+
"@types/react": "^19.2.3",
|
|
87
|
+
"@types/react-dom": "^19.2.3",
|
|
85
88
|
"@typescript-eslint/eslint-plugin": "^8.0",
|
|
86
89
|
"@typescript-eslint/parser": "^8.0",
|
|
87
90
|
"axios": "^1",
|
|
88
91
|
"colors": "^1.4.0",
|
|
89
92
|
"dayjs": "^1.10.7",
|
|
90
|
-
"eslint": "^
|
|
91
|
-
"eslint-
|
|
92
|
-
"
|
|
93
|
-
"eslint-plugin-jsx-a11y": "^6.5.1",
|
|
94
|
-
"eslint-plugin-react": "^7.28.0",
|
|
95
|
-
"eslint-plugin-react-hooks": "^5.0",
|
|
96
|
-
"eslint-plugin-storybook": "^9.0.17",
|
|
93
|
+
"eslint": "^10.0",
|
|
94
|
+
"eslint-plugin-storybook": "10.4.1",
|
|
95
|
+
"globals": "^17.6.0",
|
|
97
96
|
"identity-obj-proxy": "^3.0.0",
|
|
98
97
|
"jest": "^29.7.0",
|
|
99
98
|
"jest-axe": "^10.0.0",
|
|
100
99
|
"jest-environment-jsdom": "^29.3.1",
|
|
101
100
|
"jsuri": "^1.3.1",
|
|
102
|
-
"react": "19.
|
|
103
|
-
"react-dom": "19.
|
|
101
|
+
"react": "^19.2.3",
|
|
102
|
+
"react-dom": "^19.2.3",
|
|
104
103
|
"react-hook-form": "^7.50.1",
|
|
105
104
|
"rollup": "^4",
|
|
106
105
|
"rollup-plugin-copy": "^3.4.0",
|
|
107
106
|
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
108
107
|
"rollup-plugin-postcss": "^4.0.2",
|
|
109
108
|
"rollup-plugin-svg": "^2.0.0",
|
|
110
|
-
"rollup-plugin-typescript2": "^0.
|
|
111
|
-
"storybook": "^
|
|
109
|
+
"rollup-plugin-typescript2": "^0.37",
|
|
110
|
+
"storybook": "^10.4.1",
|
|
112
111
|
"styled-components": "^6.1.1",
|
|
113
112
|
"ts-jest": "^29",
|
|
114
113
|
"typescript": "^5.0.0",
|
|
114
|
+
"typescript-eslint": "^8.59.2",
|
|
115
115
|
"webpack": "^5.69.0"
|
|
116
116
|
},
|
|
117
117
|
"dependencies": {
|
|
118
118
|
"core-js": "^3.20.2",
|
|
119
119
|
"downshift": "^9.0",
|
|
120
|
-
"html-react-parser": "^
|
|
120
|
+
"html-react-parser": "^6",
|
|
121
|
+
"marked": "^18.0.5",
|
|
121
122
|
"react-hook-form": "^7.5",
|
|
122
123
|
"react-hook-recaptcha": "^2.0.1",
|
|
123
124
|
"react-qr-code": "^2.0.11",
|