From db71189a8c0833589f9a504642c0787f5a5f3cd8 Mon Sep 17 00:00:00 2001 From: Ivan Date: Sat, 25 May 2024 21:41:57 +0200 Subject: [PATCH 1/2] fix: Error in type definition --- components/doc/common/apidoc/index.json | 4 ++-- components/lib/inputtext/inputtext.d.ts | 2 +- package-lock.json | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/components/doc/common/apidoc/index.json b/components/doc/common/apidoc/index.json index fda578fbf5..89de0d3f1c 100644 --- a/components/doc/common/apidoc/index.json +++ b/components/doc/common/apidoc/index.json @@ -30412,7 +30412,7 @@ "name": "value", "optional": true, "readonly": false, - "type": "string", + "type": "null | string", "default": "", "description": "The value of component" }, @@ -31914,7 +31914,7 @@ "name": "value", "optional": true, "readonly": false, - "type": "string", + "type": "null | string", "default": "", "description": "The value of component" }, diff --git a/components/lib/inputtext/inputtext.d.ts b/components/lib/inputtext/inputtext.d.ts index 87df9595e3..b7e07ad18d 100644 --- a/components/lib/inputtext/inputtext.d.ts +++ b/components/lib/inputtext/inputtext.d.ts @@ -102,7 +102,7 @@ export interface InputTextProps extends Omit} event - Browser event diff --git a/package-lock.json b/package-lock.json index 87a63854e3..cef6c89e7e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "primereact", - "version": "10.6.5", + "version": "10.6.6", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "primereact", - "version": "10.6.5", + "version": "10.6.6", "dependencies": { "@docsearch/react": "3.5.2", "chart.js": "4.4.2", From ebad2221c238aa8c7beab1a0b8c849ae5fcd4903 Mon Sep 17 00:00:00 2001 From: Ivan Date: Mon, 27 May 2024 22:10:06 +0200 Subject: [PATCH 2/2] fix: Missing closeButton prop in SidebarPassThroughMethodOptions --- components/doc/common/apidoc/index.json | 9 ++++++++- components/lib/sidebar/sidebar.d.ts | 4 ++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/components/doc/common/apidoc/index.json b/components/doc/common/apidoc/index.json index 89de0d3f1c..42dad1e616 100644 --- a/components/doc/common/apidoc/index.json +++ b/components/doc/common/apidoc/index.json @@ -44884,12 +44884,19 @@ "type": "SidebarPassThroughType>", "description": "Uses to pass attributes to the header's DOM element." }, + { + "name": "closeButton", + "optional": true, + "readonly": false, + "type": "SidebarPassThroughType>", + "description": "Uses to pass attributes to the close button's DOM element." + }, { "name": "closeButtonIcon", "optional": true, "readonly": false, "type": "SidebarPassThroughType>", - "description": "Uses to pass attributes to the close button's DOM element." + "description": "Uses to pass attributes to the close button icon's DOM element." }, { "name": "icons", diff --git a/components/lib/sidebar/sidebar.d.ts b/components/lib/sidebar/sidebar.d.ts index 2738e763d4..55c2ef5fd3 100644 --- a/components/lib/sidebar/sidebar.d.ts +++ b/components/lib/sidebar/sidebar.d.ts @@ -41,6 +41,10 @@ export interface SidebarPassThroughOptions { /** * Uses to pass attributes to the close button's DOM element. */ + closeButton?: SidebarPassThroughType>; + /** + * Uses to pass attributes to the close button icon's DOM element. + */ closeButtonIcon?: SidebarPassThroughType>; /** * Uses to pass attributes to the custom icons content's DOM element.