@aws-amplify/ui-react 4.4.1 → 4.4.2
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/dist/esm/hooks/actions/shared/useTypeCastFields.mjs +1 -1
- package/dist/esm/hooks/actions/useNavigateAction.mjs +1 -1
- package/dist/esm/studio/getOverridesFromVariants.mjs +1 -1
- package/dist/esm/version.mjs +1 -1
- package/dist/index.js +1 -1
- package/dist/internal.js +1 -1
- package/dist/styles.css +1 -0
- package/dist/types/hooks/actions/shared/types.d.ts +2 -2
- package/dist/types/hooks/actions/shared/useTypeCastFields.d.ts +4 -4
- package/dist/types/version.d.ts +1 -1
- package/package.json +3 -3
- /package/dist/types/hooks/actions/{testShared.d.ts → testModels/todo.d.ts} +0 -0
package/dist/styles.css
CHANGED
|
@@ -3237,6 +3237,7 @@ html[dir=rtl] .amplify-field-group__inner-start {
|
|
|
3237
3237
|
}
|
|
3238
3238
|
|
|
3239
3239
|
.amplify-select__icon-wrapper {
|
|
3240
|
+
color: var(--amplify-components-fieldcontrol-color);
|
|
3240
3241
|
align-items: var(--amplify-components-select-icon-wrapper-align-items);
|
|
3241
3242
|
position: var(--amplify-components-select-icon-wrapper-position);
|
|
3242
3243
|
top: var(--amplify-components-select-icon-wrapper-top);
|
|
@@ -8,7 +8,7 @@ import { PersistentModel, PersistentModelConstructor, ModelInit, PersistentModel
|
|
|
8
8
|
declare type ModelFields<Type> = {
|
|
9
9
|
[Property in keyof Type]: string | number | boolean;
|
|
10
10
|
};
|
|
11
|
-
export declare type DataStoreActionFields<Model> = ModelInit<Model, PersistentModelMetaData<Model>> | ModelFields<ModelInit<Model, PersistentModelMetaData<Model>>>;
|
|
11
|
+
export declare type DataStoreActionFields<Model extends PersistentModel> = ModelInit<Model, PersistentModelMetaData<Model>> | ModelFields<ModelInit<Model, PersistentModelMetaData<Model>>>;
|
|
12
12
|
export interface UseDataStoreActionOptions<Model extends PersistentModel> {
|
|
13
13
|
model: PersistentModelConstructor<Model>;
|
|
14
14
|
/**
|
|
@@ -23,5 +23,5 @@ export interface UseDataStoreActionOptions<Model extends PersistentModel> {
|
|
|
23
23
|
*/
|
|
24
24
|
schema?: Schema;
|
|
25
25
|
}
|
|
26
|
-
export declare function isAlreadyTyped<Model>(fields: DataStoreActionFields<Model>, schema
|
|
26
|
+
export declare function isAlreadyTyped<Model extends PersistentModel>(fields: DataStoreActionFields<Model>, schema?: Schema): fields is ModelInit<Model, PersistentModelMetaData<Model>>;
|
|
27
27
|
export {};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { ModelInit, PersistentModelMetaData, Schema } from '@aws-amplify/datastore';
|
|
1
|
+
import { ModelInit, PersistentModel, PersistentModelMetaData, Schema } from '@aws-amplify/datastore';
|
|
2
2
|
import { DataStoreActionFields } from './types';
|
|
3
|
-
interface UseTypeCastFieldsProps<Model> {
|
|
3
|
+
interface UseTypeCastFieldsProps<Model extends PersistentModel> {
|
|
4
4
|
fields: DataStoreActionFields<Model>;
|
|
5
5
|
modelName: string;
|
|
6
|
-
schema
|
|
6
|
+
schema?: Schema;
|
|
7
7
|
}
|
|
8
8
|
declare type UseTypeCastFieldsReturn<Model> = ModelInit<Model, PersistentModelMetaData<Model>> | undefined;
|
|
9
9
|
/**
|
|
@@ -11,5 +11,5 @@ declare type UseTypeCastFieldsReturn<Model> = ModelInit<Model, PersistentModelMe
|
|
|
11
11
|
* datastore based on the schema type
|
|
12
12
|
* @see: See https://docs.aws.amazon.com/appsync/latest/devguide/scalars.html
|
|
13
13
|
*/
|
|
14
|
-
export declare const useTypeCastFields: <Model
|
|
14
|
+
export declare const useTypeCastFields: <Model extends Readonly<Record<string, any>>>({ fields, modelName, schema, }: UseTypeCastFieldsProps<Model>) => ModelInit<Model, PersistentModelMetaData<Model>>;
|
|
15
15
|
export {};
|
package/dist/types/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const VERSION = "4.4.
|
|
1
|
+
export declare const VERSION = "4.4.2";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-amplify/ui-react",
|
|
3
|
-
"version": "4.4.
|
|
3
|
+
"version": "4.4.2",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"module": "dist/esm/index.mjs",
|
|
6
6
|
"exports": {
|
|
@@ -47,8 +47,8 @@
|
|
|
47
47
|
"typecheck": "tsc --noEmit"
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
|
-
"@aws-amplify/ui": "5.5.
|
|
51
|
-
"@aws-amplify/ui-react-core": "2.1.
|
|
50
|
+
"@aws-amplify/ui": "5.5.9",
|
|
51
|
+
"@aws-amplify/ui-react-core": "2.1.17",
|
|
52
52
|
"@radix-ui/react-accordion": "1.0.0",
|
|
53
53
|
"@radix-ui/react-direction": "1.0.0",
|
|
54
54
|
"@radix-ui/react-dropdown-menu": "1.0.0",
|
|
File without changes
|