stratosphere-ui 2.3.1 → 3.0.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "stratosphere-ui",
3
- "version": "2.3.1",
3
+ "version": "3.0.0",
4
4
  "description": "React component library for all Stratosphere Labs user interfaces",
5
5
  "type": "module",
6
6
  "files": [
@@ -97,7 +97,6 @@
97
97
  "react": "^18.2.0",
98
98
  "react-dom": "^18.2.0",
99
99
  "react-hook-form": "^7.53.2",
100
- "react-router-dom": "^6.28.0",
101
100
  "tailwind-scrollbar": "^3.1.0",
102
101
  "tailwindcss": "^3.4.14",
103
102
  "ts-node": "^10.9.2",
@@ -112,7 +111,6 @@
112
111
  "daisyui": "^5.0.0",
113
112
  "react": "^18.0.0",
114
113
  "react-hook-form": "^7.0.0",
115
- "react-router-dom": "^6.0.0",
116
114
  "zod": "^3.0.0"
117
115
  },
118
116
  "optionalDependencies": {
@@ -1,10 +0,0 @@
1
- import { DefaultValues, FieldPath, FieldPathValues, FieldValues, UseFormProps, UseFormReturn } from 'react-hook-form';
2
- import { NavigateOptions } from 'react-router-dom';
3
- export type QueryParamValues<FormValues extends FieldValues> = Partial<Record<keyof FormValues, string | null>>;
4
- export interface UseFormWithQueryParamsOptions<FormValues extends FieldValues = FieldValues, FieldNames extends readonly FieldPath<FormValues>[] = readonly FieldPath<FormValues>[], FormContext = any> extends Omit<UseFormProps<FormValues, FormContext>, 'defaultValues'> {
5
- getDefaultValues: (searchParamValues: QueryParamValues<FormValues>) => DefaultValues<FormValues>;
6
- getSearchParams: (formValues: FieldPathValues<FormValues, FieldNames>) => Record<string, string> | ((prev: URLSearchParams) => Record<string, string>);
7
- includeKeys: readonly [...FieldNames];
8
- navigateOptions?: NavigateOptions;
9
- }
10
- export declare const useFormWithQueryParams: <FormValues extends FieldValues = FieldValues, FieldNames extends readonly FieldPath<FormValues>[] = readonly FieldPath<FormValues>[], FormContext = any, TransformedValues extends FieldValues | undefined = undefined>({ getDefaultValues, getSearchParams, includeKeys, navigateOptions, ...useFormOptions }: UseFormWithQueryParamsOptions<FormValues, FieldNames, FormContext>) => UseFormReturn<FormValues, FormContext, TransformedValues>;