@scality/data-browser-library 1.0.5 → 1.0.7
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/components/__tests__/BucketCreate.test.js +60 -20
- package/dist/components/__tests__/BucketLifecycleFormPage.test.js +72 -0
- package/dist/components/__tests__/BucketList.test.js +19 -7
- package/dist/components/__tests__/BucketNotificationFormPage.test.js +54 -19
- package/dist/components/__tests__/BucketPolicyPage.test.js +5 -0
- package/dist/components/__tests__/BucketReplicationFormPage.test.js +259 -61
- package/dist/components/__tests__/MetadataSearch.test.js +18 -12
- package/dist/components/buckets/BucketLifecycleFormPage.js +50 -3
- package/dist/components/buckets/BucketReplicationFormPage.js +50 -4
- package/dist/components/buckets/__tests__/BucketVersioning.test.js +2 -0
- package/dist/components/objects/ObjectLock/__tests__/EditRetentionButton.test.js +8 -0
- package/dist/components/objects/ObjectLock/__tests__/ObjectLockSettings.test.js +78 -26
- package/dist/config/__tests__/factory.test.js +29 -1
- package/dist/config/factory.d.ts +2 -0
- package/dist/config/factory.js +3 -1
- package/dist/hooks/__tests__/useISVBucketDetection.test.js +22 -1
- package/dist/hooks/useISVBucketDetection.d.ts +1 -0
- package/dist/hooks/useISVBucketDetection.js +5 -3
- package/dist/test/testUtils.d.ts +1 -0
- package/dist/test/testUtils.js +1 -0
- package/dist/utils/constants.d.ts +2 -0
- package/dist/utils/constants.js +2 -1
- package/package.json +4 -3
package/dist/test/testUtils.d.ts
CHANGED
|
@@ -158,6 +158,7 @@ export type MockQueryResult<T> = {
|
|
|
158
158
|
export type ISVBucketStatusMock = {
|
|
159
159
|
isVeeamBucket: boolean;
|
|
160
160
|
isCommvaultBucket: boolean;
|
|
161
|
+
isKastenBucket: boolean;
|
|
161
162
|
isISVManaged: boolean;
|
|
162
163
|
isvApplication: string | undefined;
|
|
163
164
|
isLoading: boolean;
|
package/dist/test/testUtils.js
CHANGED
|
@@ -10,6 +10,8 @@ export declare const VEEAM_OFFICE_365 = "Veeam Backup for Microsoft 365 (v6, v7)
|
|
|
10
10
|
export declare const VEEAM_OFFICE_365_V8 = "Veeam Backup for Microsoft 365 (v8+)";
|
|
11
11
|
/** Generic identifier for Commvault */
|
|
12
12
|
export declare const COMMVAULT_APPLICATION = "Commvault";
|
|
13
|
+
/** Generic identifier for Kasten */
|
|
14
|
+
export declare const KASTEN_APPLICATION = "Kasten";
|
|
13
15
|
export declare const BUCKET_ROUTES: {
|
|
14
16
|
readonly bucketPolicy: (bucketName: string) => string;
|
|
15
17
|
readonly bucketCors: (bucketName: string) => string;
|
package/dist/utils/constants.js
CHANGED
|
@@ -6,6 +6,7 @@ const VEEAM_VBO_APPLICATION = 'Veeam Backup for Microsoft 365';
|
|
|
6
6
|
const VEEAM_OFFICE_365 = 'Veeam Backup for Microsoft 365 (v6, v7)';
|
|
7
7
|
const VEEAM_OFFICE_365_V8 = 'Veeam Backup for Microsoft 365 (v8+)';
|
|
8
8
|
const COMMVAULT_APPLICATION = 'Commvault';
|
|
9
|
+
const KASTEN_APPLICATION = 'Kasten';
|
|
9
10
|
const BUCKET_ROUTES = {
|
|
10
11
|
bucketPolicy: (bucketName)=>`/buckets/${bucketName}/policy`,
|
|
11
12
|
bucketCors: (bucketName)=>`/buckets/${bucketName}/cors`,
|
|
@@ -16,4 +17,4 @@ const BUCKET_ROUTES = {
|
|
|
16
17
|
notificationCreate: (bucketName)=>`/buckets/${bucketName}/notifications/create`,
|
|
17
18
|
notificationEdit: (bucketName, ruleId)=>`/buckets/${bucketName}/notifications/edit/${encodeURIComponent(ruleId)}`
|
|
18
19
|
};
|
|
19
|
-
export { BUCKET_ROUTES, BUCKET_TAG_APPLICATION, BUCKET_TAG_VEEAM_APPLICATION, COMMVAULT_APPLICATION, VEEAM_BACKUP_REPLICATION, VEEAM_IMMUTABLE_POLICY_NAME, VEEAM_OFFICE_365, VEEAM_OFFICE_365_V8, VEEAM_VBO_APPLICATION };
|
|
20
|
+
export { BUCKET_ROUTES, BUCKET_TAG_APPLICATION, BUCKET_TAG_VEEAM_APPLICATION, COMMVAULT_APPLICATION, KASTEN_APPLICATION, VEEAM_BACKUP_REPLICATION, VEEAM_IMMUTABLE_POLICY_NAME, VEEAM_OFFICE_365, VEEAM_OFFICE_365_V8, VEEAM_VBO_APPLICATION };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scality/data-browser-library",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.7",
|
|
4
4
|
"description": "A modular React component library for browsing S3 buckets and objects",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -40,10 +40,11 @@
|
|
|
40
40
|
"react-hook-form": "^7.48.0"
|
|
41
41
|
},
|
|
42
42
|
"peerDependencies": {
|
|
43
|
-
"@scality/core-ui": "0.
|
|
43
|
+
"@scality/core-ui": ">=0.197.0",
|
|
44
44
|
"react": ">=18.0.0",
|
|
45
45
|
"react-dom": ">=18.0.0",
|
|
46
|
-
"react-router
|
|
46
|
+
"react-router": ">=7.1.3",
|
|
47
|
+
"react-router-dom": ">=7.1.3",
|
|
47
48
|
"styled-components": "^5.0.0"
|
|
48
49
|
},
|
|
49
50
|
"devDependencies": {
|