@aws-amplify/ui 6.7.1 → 6.7.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.
@@ -99,6 +99,11 @@ const darkModeTokens = {
99
99
  secondary: '{colors.neutral.40}',
100
100
  tertiary: '{colors.neutral.20}',
101
101
  },
102
+ shadow: {
103
+ primary: { value: 'hsla(100, 100%, 100%, 0.25)' },
104
+ secondary: { value: 'hsla(100, 100%, 100%, 0.15)' },
105
+ tertiary: { value: 'hsla(100, 100%, 100%, 0.05)' },
106
+ },
102
107
  overlay: {
103
108
  5: 'hsla(0, 0%, 100%, 0.05)',
104
109
  10: 'hsla(0, 0%, 100%, 0.1)',
@@ -55,5 +55,17 @@ const STORAGE_MANAGER_INPUT_BASE = {
55
55
  apis: [StorageAction.UploadData],
56
56
  category: Category.Storage,
57
57
  };
58
+ const STORAGE_BROWSER_INPUT_BASE = {
59
+ apis: [
60
+ StorageAction.UploadData,
61
+ StorageAction.Copy,
62
+ StorageAction.GetUrl,
63
+ StorageAction.List,
64
+ StorageAction.Remove,
65
+ StorageAction.GetDataAccess,
66
+ StorageAction.ListCallerAccessGrants,
67
+ ],
68
+ category: Category.Storage,
69
+ };
58
70
 
59
- export { ACCOUNT_SETTINGS_INPUT_BASE, AI_INPUT_BASE, AUTHENTICATOR_INPUT_BASE, FILE_UPLOADER_BASE_INPUT, IN_APP_MESSAGING_INPUT_BASE, LOCATION_SEARCH_INPUT_BASE, MAP_VIEW_INPUT_BASE, STORAGE_MANAGER_INPUT_BASE };
71
+ export { ACCOUNT_SETTINGS_INPUT_BASE, AI_INPUT_BASE, AUTHENTICATOR_INPUT_BASE, FILE_UPLOADER_BASE_INPUT, IN_APP_MESSAGING_INPUT_BASE, LOCATION_SEARCH_INPUT_BASE, MAP_VIEW_INPUT_BASE, STORAGE_BROWSER_INPUT_BASE, STORAGE_MANAGER_INPUT_BASE };
@@ -1,5 +1,5 @@
1
1
  import { setCustomUserAgent } from '@aws-amplify/core/internals/utils';
2
- import { STORAGE_MANAGER_INPUT_BASE, MAP_VIEW_INPUT_BASE, LOCATION_SEARCH_INPUT_BASE, IN_APP_MESSAGING_INPUT_BASE, FILE_UPLOADER_BASE_INPUT, ACCOUNT_SETTINGS_INPUT_BASE, AUTHENTICATOR_INPUT_BASE, AI_INPUT_BASE } from './constants.mjs';
2
+ import { STORAGE_BROWSER_INPUT_BASE, STORAGE_MANAGER_INPUT_BASE, MAP_VIEW_INPUT_BASE, LOCATION_SEARCH_INPUT_BASE, IN_APP_MESSAGING_INPUT_BASE, FILE_UPLOADER_BASE_INPUT, ACCOUNT_SETTINGS_INPUT_BASE, AUTHENTICATOR_INPUT_BASE, AI_INPUT_BASE } from './constants.mjs';
3
3
  import { noop } from '../utils.mjs';
4
4
 
5
5
  /**
@@ -72,6 +72,13 @@ const setUserAgent = ({ componentName, packageName, version, }) => {
72
72
  });
73
73
  break;
74
74
  }
75
+ case 'StorageBrowser': {
76
+ setCustomUserAgent({
77
+ ...STORAGE_BROWSER_INPUT_BASE,
78
+ additionalDetails: [[componentName], packageData],
79
+ });
80
+ break;
81
+ }
75
82
  }
76
83
  return noop;
77
84
  };
package/dist/index.js CHANGED
@@ -91,6 +91,18 @@ const STORAGE_MANAGER_INPUT_BASE = {
91
91
  apis: [utils.StorageAction.UploadData],
92
92
  category: utils.Category.Storage,
93
93
  };
94
+ const STORAGE_BROWSER_INPUT_BASE = {
95
+ apis: [
96
+ utils.StorageAction.UploadData,
97
+ utils.StorageAction.Copy,
98
+ utils.StorageAction.GetUrl,
99
+ utils.StorageAction.List,
100
+ utils.StorageAction.Remove,
101
+ utils.StorageAction.GetDataAccess,
102
+ utils.StorageAction.ListCallerAccessGrants,
103
+ ],
104
+ category: utils.Category.Storage,
105
+ };
94
106
 
95
107
  /**
96
108
  * Some libraries may not follow Node ES module spec and could be loaded as CommonJS modules,
@@ -416,6 +428,13 @@ const setUserAgent = ({ componentName, packageName, version, }) => {
416
428
  });
417
429
  break;
418
430
  }
431
+ case 'StorageBrowser': {
432
+ utils.setCustomUserAgent({
433
+ ...STORAGE_BROWSER_INPUT_BASE,
434
+ additionalDetails: [[componentName], packageData],
435
+ });
436
+ break;
437
+ }
419
438
  }
420
439
  return noop;
421
440
  };
@@ -9430,6 +9449,11 @@ const darkModeTokens = {
9430
9449
  secondary: '{colors.neutral.40}',
9431
9450
  tertiary: '{colors.neutral.20}',
9432
9451
  },
9452
+ shadow: {
9453
+ primary: { value: 'hsla(100, 100%, 100%, 0.25)' },
9454
+ secondary: { value: 'hsla(100, 100%, 100%, 0.15)' },
9455
+ tertiary: { value: 'hsla(100, 100%, 100%, 0.05)' },
9456
+ },
9433
9457
  overlay: {
9434
9458
  5: 'hsla(0, 0%, 100%, 0.05)',
9435
9459
  10: 'hsla(0, 0%, 100%, 0.1)',
@@ -7,3 +7,4 @@ export declare const IN_APP_MESSAGING_INPUT_BASE: Omit<InAppMessagingUserAgentIn
7
7
  export declare const LOCATION_SEARCH_INPUT_BASE: Omit<GeoUserAgentInput, 'additionalDetails'>;
8
8
  export declare const MAP_VIEW_INPUT_BASE: Omit<GeoUserAgentInput, 'additionalDetails'>;
9
9
  export declare const STORAGE_MANAGER_INPUT_BASE: Omit<StorageUserAgentInput, 'additionalDetails'>;
10
+ export declare const STORAGE_BROWSER_INPUT_BASE: Omit<StorageUserAgentInput, 'additionalDetails'>;
@@ -1,5 +1,5 @@
1
1
  export type PackageName = 'angular' | 'react' | 'react-ai' | 'react-auth' | 'react-geo' | 'react-liveness' | 'react-native' | 'react-native-auth' | 'react-notifications' | 'react-storage' | 'vue';
2
- export type ComponentName = 'AIConversation' | 'Authenticator' | 'ChangePassword' | 'DeleteUser' | 'FaceLivenessDetector' | 'FileUploader' | 'InAppMessaging' | 'LocationSearch' | 'MapView' | 'StorageManager' | 'StorageImage';
2
+ export type ComponentName = 'AIConversation' | 'Authenticator' | 'ChangePassword' | 'DeleteUser' | 'FaceLivenessDetector' | 'FileUploader' | 'InAppMessaging' | 'LocationSearch' | 'MapView' | 'StorageBrowser' | 'StorageManager' | 'StorageImage';
3
3
  export type Version = `${string}.${string}.${string}`;
4
4
  export interface SetUserAgentOptions {
5
5
  componentName: ComponentName;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-amplify/ui",
3
- "version": "6.7.1",
3
+ "version": "6.7.2",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/esm/index.mjs",
6
6
  "exports": {