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 1a3c0d343775ef635827df2ef0e72538c55b93ca Mon Sep 17 00:00:00 2001 From: Ivan Date: Sun, 26 May 2024 17:16:43 +0200 Subject: [PATCH 2/2] fix: Types in CalendarPassThroughOptions --- components/doc/common/apidoc/index.json | 8 ++++---- components/lib/calendar/calendar.d.ts | 18 ++++++++---------- 2 files changed, 12 insertions(+), 14 deletions(-) diff --git a/components/doc/common/apidoc/index.json b/components/doc/common/apidoc/index.json index 89de0d3f1c..1de4a3fb2f 100644 --- a/components/doc/common/apidoc/index.json +++ b/components/doc/common/apidoc/index.json @@ -7120,14 +7120,14 @@ "name": "input", "optional": true, "readonly": false, - "type": "InputTextPassThroughOptions", + "type": "CalendarPassThroughType>", "description": "Uses to pass attributes to the InputText component." }, { "name": "dropdownButton", "optional": true, "readonly": false, - "type": "ButtonPassThroughOptions", + "type": "CalendarPassThroughType>", "description": "Uses to pass attributes to the Button component." }, { @@ -7463,14 +7463,14 @@ "name": "todayButton", "optional": true, "readonly": false, - "type": "ButtonPassThroughOptions", + "type": "CalendarPassThroughType>", "description": "Uses to pass attributes to the Button component." }, { "name": "clearButton", "optional": true, "readonly": false, - "type": "ButtonPassThroughOptions", + "type": "CalendarPassThroughType>", "description": "Uses to pass attributes to the Button component." }, { diff --git a/components/lib/calendar/calendar.d.ts b/components/lib/calendar/calendar.d.ts index 278b7fd79d..c86cd60b41 100644 --- a/components/lib/calendar/calendar.d.ts +++ b/components/lib/calendar/calendar.d.ts @@ -9,10 +9,8 @@ */ import * as React from 'react'; import { CSSTransitionProps as ReactCSSTransitionProps } from 'react-transition-group/CSSTransition'; -import { ButtonPassThroughOptions } from '../button/button'; import { ComponentHooks } from '../componentbase/componentbase'; import { CSSTransitionProps } from '../csstransition'; -import { InputTextPassThroughOptions } from '../inputtext/inputtext'; import { PassThroughOptions } from '../passthrough'; import { TooltipOptions } from '../tooltip/tooltipoptions'; import { FormEvent, Nullable } from '../ts-helpers'; @@ -41,14 +39,14 @@ export interface CalendarPassThroughOptions { root?: CalendarPassThroughType>; /** * Uses to pass attributes to the InputText component. - * @see {@link InputTextPassThroughOptions} + * @see {@link CalendarPassThroughType} */ - input?: InputTextPassThroughOptions; + input?: CalendarPassThroughType>; /** * Uses to pass attributes to the Button component. - * @see {@link ButtonPassThroughOptions} + * @see {@link CalendarPassThroughType} */ - dropdownButton?: ButtonPassThroughOptions; + dropdownButton?: CalendarPassThroughType>; /** * Uses to pass attributes to the panel's DOM element. */ @@ -239,14 +237,14 @@ export interface CalendarPassThroughOptions { buttonbar?: CalendarPassThroughType>; /** * Uses to pass attributes to the Button component. - * @see {@link ButtonPassThroughOptions} + * @see {@link CalendarPassThroughType} */ - todayButton?: ButtonPassThroughOptions; + todayButton?: CalendarPassThroughType>; /** * Uses to pass attributes to the Button component. - * @see {@link ButtonPassThroughOptions} + * @see {@link CalendarPassThroughType} */ - clearButton?: ButtonPassThroughOptions; + clearButton?: CalendarPassThroughType>; /** * Uses to pass attributes to the select's DOM element. */