From 95b202065b2d6b83880981443756d427220c472c Mon Sep 17 00:00:00 2001 From: David Roper Date: Wed, 19 Aug 2026 12:11:36 -0400 Subject: [PATCH 1/3] chore: adjust form types package and lockfile --- package.json | 2 +- pnpm-lock.yaml | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index ad52312..4e0352f 100644 --- a/package.json +++ b/package.json @@ -99,7 +99,7 @@ "dependencies": { "@base-ui/react": "^1.6.0", "@douglasneuroinformatics/libjs": "^3.2.1", - "@douglasneuroinformatics/libui-form-types": "^1.1.0", + "@douglasneuroinformatics/libui-form-types": "^1.4.0", "@radix-ui/react-accordion": "^1.2.3", "@radix-ui/react-alert-dialog": "^1.1.6", "@radix-ui/react-avatar": "^1.1.3", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 22a9db7..50b4b11 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -14,8 +14,8 @@ importers: specifier: ^3.2.1 version: 3.2.1(neverthrow@8.2.0)(zod@3.25.76) '@douglasneuroinformatics/libui-form-types': - specifier: ^1.1.0 - version: 1.1.0(@types/react@19.2.17) + specifier: ^1.4.0 + version: 1.4.0(@types/react@19.2.17) '@radix-ui/react-accordion': specifier: ^1.2.3 version: 1.2.14(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(react-dom@19.2.7(react@19.2.7))(react@19.2.7) @@ -506,9 +506,9 @@ packages: neverthrow: ^8.2.0 zod: ^3.25.67 || 4.x - '@douglasneuroinformatics/libui-form-types@1.1.0': + '@douglasneuroinformatics/libui-form-types@1.4.0': resolution: - { integrity: sha512-Jnc04kQArUK6tMcv7+snOymj3YwwLaahwXpsDKCqOm/nS/ki0O6sbSyVZvh2VoN3aC0cYefEehSs5Hb+h/K/vA== } + { integrity: sha512-XspWaw0fAXqn6Mm6CHm3mAlV/4H7sKo2dSZYiZFsFGR8x47Mu1Rgd8EZ8tv07UBx6a8vRxzIbqbrqU3htIcv4Q== } peerDependencies: '@types/react': 19.x peerDependenciesMeta: @@ -6841,7 +6841,7 @@ snapshots: type-fest: 4.41.0 zod: 3.25.76 - '@douglasneuroinformatics/libui-form-types@1.1.0(@types/react@19.2.17)': + '@douglasneuroinformatics/libui-form-types@1.4.0(@types/react@19.2.17)': dependencies: type-fest: 4.41.0 optionalDependencies: From 59ccc90d29e5b24632ebf1fea142e0ce19f91b40 Mon Sep 17 00:00:00 2001 From: David Roper Date: Wed, 19 Aug 2026 12:13:09 -0400 Subject: [PATCH 2/3] feat: remove substitute comment and code for generatePassword method --- .../Form/StringField/StringFieldPassword.tsx | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/src/components/Form/StringField/StringFieldPassword.tsx b/src/components/Form/StringField/StringFieldPassword.tsx index 1d1a4c0..40744a8 100644 --- a/src/components/Form/StringField/StringFieldPassword.tsx +++ b/src/components/Form/StringField/StringFieldPassword.tsx @@ -15,16 +15,7 @@ import type { BaseFieldComponentProps } from '../types.ts'; export type PasswordStrengthValue = 0 | 1 | 2 | 3 | 4; export type StringFieldPasswordProps = BaseFieldComponentProps & - Extract & { - /** - * A function used to generate a passphrase for this field. When provided, a button is rendered - * in the input that fills the field with the returned value and reveals it. - * - * Declared here rather than coming from `StringFormField`, and should be removed once the - * form types package publishes it on the password variant. - */ - generatePassword?: (this: void) => string; - }; + Extract; export const StringFieldPassword = ({ calculateStrength, From ef77c81f614c9ab3b47e7359708deb89e4d32587 Mon Sep 17 00:00:00 2001 From: David Roper Date: Wed, 19 Aug 2026 12:13:54 -0400 Subject: [PATCH 3/3] feat: remove custom comment and code for allowCustomValue flag in combobox --- .../Form/StringField/StringFieldComboBox.tsx | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/src/components/Form/StringField/StringFieldComboBox.tsx b/src/components/Form/StringField/StringFieldComboBox.tsx index d425dbe..aa0be24 100644 --- a/src/components/Form/StringField/StringFieldComboBox.tsx +++ b/src/components/Form/StringField/StringFieldComboBox.tsx @@ -11,17 +11,7 @@ import type { BaseFieldComponentProps } from '../types.ts'; type ComboBoxItem = { label: string; value: T }; export type StringFieldComboBoxProps = Simplify< - BaseFieldComponentProps & - Extract, { options: object }> & { - /** - * Whether text that does not match any option may be entered. When enabled, text that does not - * resolve to an option is committed as the value instead of being discarded when the popup - * closes. Note that such a value is not a key of `options`, so the validation schema for this - * field must accept arbitrary strings. - * @default false - */ - allowCustomValue?: boolean; - } + BaseFieldComponentProps & Extract, { variant: 'combobox' }> >; export const StringFieldComboBox = ({