@strapi/admin 4.16.2 → 4.18.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/index.d.ts +1 -1
- package/index.js +1 -1
- package/package.json +55 -41
- package/strapi-server.js +3 -3
- package/dist/_chunks/AuthenticatedApp-342bf22f.js +0 -1476
- package/dist/_chunks/AuthenticatedApp-342bf22f.js.map +0 -1
- package/dist/_chunks/AuthenticatedApp-bb31f306.mjs +0 -1450
- package/dist/_chunks/AuthenticatedApp-bb31f306.mjs.map +0 -1
- package/dist/_chunks/DragLayer-bff96835.mjs +0 -44
- package/dist/_chunks/DragLayer-bff96835.mjs.map +0 -1
- package/dist/_chunks/DragLayer-f07eee6c.js +0 -43
- package/dist/_chunks/DragLayer-f07eee6c.js.map +0 -1
- package/dist/_chunks/HomePage-0c7717c0.mjs +0 -49
- package/dist/_chunks/HomePage-0c7717c0.mjs.map +0 -1
- package/dist/_chunks/HomePage-175f79c7.js +0 -49
- package/dist/_chunks/HomePage-175f79c7.js.map +0 -1
- package/dist/_chunks/HomePage-246cc590.mjs +0 -542
- package/dist/_chunks/HomePage-246cc590.mjs.map +0 -1
- package/dist/_chunks/HomePage-6ff9e578.js +0 -563
- package/dist/_chunks/HomePage-6ff9e578.js.map +0 -1
- package/dist/_chunks/InstalledPluginsPage-170aff77.mjs +0 -134
- package/dist/_chunks/InstalledPluginsPage-170aff77.mjs.map +0 -1
- package/dist/_chunks/InstalledPluginsPage-3ae5dbb6.js +0 -153
- package/dist/_chunks/InstalledPluginsPage-3ae5dbb6.js.map +0 -1
- package/dist/_chunks/InternalErrorPage-040dc993.mjs +0 -41
- package/dist/_chunks/InternalErrorPage-040dc993.mjs.map +0 -1
- package/dist/_chunks/InternalErrorPage-d0e51ac2.js +0 -41
- package/dist/_chunks/InternalErrorPage-d0e51ac2.js.map +0 -1
- package/dist/_chunks/Layout-4b3e434a.js +0 -92
- package/dist/_chunks/Layout-4b3e434a.js.map +0 -1
- package/dist/_chunks/Layout-72fa2ace.mjs +0 -90
- package/dist/_chunks/Layout-72fa2ace.mjs.map +0 -1
- package/dist/_chunks/LimitsModal-203482b8.js +0 -84
- package/dist/_chunks/LimitsModal-203482b8.js.map +0 -1
- package/dist/_chunks/LimitsModal-da04700e.mjs +0 -82
- package/dist/_chunks/LimitsModal-da04700e.mjs.map +0 -1
- package/dist/_chunks/Login-576bbc11.js +0 -64
- package/dist/_chunks/Login-576bbc11.js.map +0 -1
- package/dist/_chunks/Login-d627bb0a.mjs +0 -62
- package/dist/_chunks/Login-d627bb0a.mjs.map +0 -1
- package/dist/_chunks/MarketplacePage-1cbfa8fd.mjs +0 -1011
- package/dist/_chunks/MarketplacePage-1cbfa8fd.mjs.map +0 -1
- package/dist/_chunks/MarketplacePage-e7cd973b.js +0 -1035
- package/dist/_chunks/MarketplacePage-e7cd973b.js.map +0 -1
- package/dist/_chunks/ProfilePage-52844daa.js +0 -665
- package/dist/_chunks/ProfilePage-52844daa.js.map +0 -1
- package/dist/_chunks/ProfilePage-ef400907.mjs +0 -642
- package/dist/_chunks/ProfilePage-ef400907.mjs.map +0 -1
- package/dist/_chunks/SSOProviders-62bfad92.mjs +0 -58
- package/dist/_chunks/SSOProviders-62bfad92.mjs.map +0 -1
- package/dist/_chunks/SSOProviders-b395a4e6.js +0 -59
- package/dist/_chunks/SSOProviders-b395a4e6.js.map +0 -1
- package/dist/_chunks/SalesPage-4a0a68fb.js +0 -51
- package/dist/_chunks/SalesPage-4a0a68fb.js.map +0 -1
- package/dist/_chunks/SalesPage-56bf9463.mjs +0 -48
- package/dist/_chunks/SalesPage-56bf9463.mjs.map +0 -1
- package/dist/_chunks/SalesPage-66f9ea32.js +0 -51
- package/dist/_chunks/SalesPage-66f9ea32.js.map +0 -1
- package/dist/_chunks/SalesPage-d0cdc1a7.js +0 -48
- package/dist/_chunks/SalesPage-d0cdc1a7.js.map +0 -1
- package/dist/_chunks/SalesPage-f9597ae7.mjs +0 -51
- package/dist/_chunks/SalesPage-f9597ae7.mjs.map +0 -1
- package/dist/_chunks/SalesPage-fceedf48.mjs +0 -51
- package/dist/_chunks/SalesPage-fceedf48.mjs.map +0 -1
- package/dist/_chunks/ar-21279f4c.js +0 -936
- package/dist/_chunks/ar-21279f4c.js.map +0 -1
- package/dist/_chunks/ar-62e5e2b3.mjs +0 -936
- package/dist/_chunks/ar-62e5e2b3.mjs.map +0 -1
- package/dist/_chunks/build-1026ce7c.mjs +0 -68
- package/dist/_chunks/build-1026ce7c.mjs.map +0 -1
- package/dist/_chunks/build-d99bcc06.js +0 -68
- package/dist/_chunks/build-d99bcc06.js.map +0 -1
- package/dist/_chunks/ca-d05fb350.js +0 -724
- package/dist/_chunks/ca-d05fb350.js.map +0 -1
- package/dist/_chunks/ca-e99de225.mjs +0 -724
- package/dist/_chunks/ca-e99de225.mjs.map +0 -1
- package/dist/_chunks/colors-c24a54f0.js +0 -33
- package/dist/_chunks/colors-c24a54f0.js.map +0 -1
- package/dist/_chunks/colors-e7489dd4.mjs +0 -34
- package/dist/_chunks/colors-e7489dd4.mjs.map +0 -1
- package/dist/_chunks/constants-2a8f4e41.mjs +0 -11
- package/dist/_chunks/constants-2a8f4e41.mjs.map +0 -1
- package/dist/_chunks/constants-40ffa931.js +0 -11
- package/dist/_chunks/constants-40ffa931.js.map +0 -1
- package/dist/_chunks/constants-4aca55b6.js +0 -85
- package/dist/_chunks/constants-4aca55b6.js.map +0 -1
- package/dist/_chunks/constants-64899732.js +0 -30
- package/dist/_chunks/constants-64899732.js.map +0 -1
- package/dist/_chunks/constants-6c68e9a0.js +0 -229
- package/dist/_chunks/constants-6c68e9a0.js.map +0 -1
- package/dist/_chunks/constants-6ecddc43.mjs +0 -111
- package/dist/_chunks/constants-6ecddc43.mjs.map +0 -1
- package/dist/_chunks/constants-74b8a935.mjs +0 -52
- package/dist/_chunks/constants-74b8a935.mjs.map +0 -1
- package/dist/_chunks/constants-7596f6f3.js +0 -132
- package/dist/_chunks/constants-7596f6f3.js.map +0 -1
- package/dist/_chunks/constants-8092eeb5.mjs +0 -59
- package/dist/_chunks/constants-8092eeb5.mjs.map +0 -1
- package/dist/_chunks/constants-85da8cc4.js +0 -58
- package/dist/_chunks/constants-85da8cc4.js.map +0 -1
- package/dist/_chunks/constants-a6fd64fc.mjs +0 -80
- package/dist/_chunks/constants-a6fd64fc.mjs.map +0 -1
- package/dist/_chunks/constants-a92ce583.mjs +0 -7
- package/dist/_chunks/constants-a92ce583.mjs.map +0 -1
- package/dist/_chunks/constants-ae0b83df.mjs +0 -227
- package/dist/_chunks/constants-ae0b83df.mjs.map +0 -1
- package/dist/_chunks/constants-c1f1f698.mjs +0 -85
- package/dist/_chunks/constants-c1f1f698.mjs.map +0 -1
- package/dist/_chunks/constants-d3dd8ed6.mjs +0 -7
- package/dist/_chunks/constants-d3dd8ed6.mjs.map +0 -1
- package/dist/_chunks/constants-d5d67ca8.js +0 -6
- package/dist/_chunks/constants-d5d67ca8.js.map +0 -1
- package/dist/_chunks/constants-da2542a3.js +0 -6
- package/dist/_chunks/constants-da2542a3.js.map +0 -1
- package/dist/_chunks/constants-ddd2d586.js +0 -82
- package/dist/_chunks/constants-ddd2d586.js.map +0 -1
- package/dist/_chunks/constants-def33545.mjs +0 -30
- package/dist/_chunks/constants-def33545.mjs.map +0 -1
- package/dist/_chunks/constants-e05f06d4.js +0 -52
- package/dist/_chunks/constants-e05f06d4.js.map +0 -1
- package/dist/_chunks/cs-2fa881a2.mjs +0 -291
- package/dist/_chunks/cs-2fa881a2.mjs.map +0 -1
- package/dist/_chunks/cs-eee75b10.js +0 -291
- package/dist/_chunks/cs-eee75b10.js.map +0 -1
- package/dist/_chunks/de-28f8bc28.mjs +0 -716
- package/dist/_chunks/de-28f8bc28.mjs.map +0 -1
- package/dist/_chunks/de-976cc986.js +0 -716
- package/dist/_chunks/de-976cc986.js.map +0 -1
- package/dist/_chunks/develop-72394876.mjs +0 -61
- package/dist/_chunks/develop-72394876.mjs.map +0 -1
- package/dist/_chunks/develop-da585b1e.js +0 -61
- package/dist/_chunks/develop-da585b1e.js.map +0 -1
- package/dist/_chunks/dk-0b759a56.mjs +0 -634
- package/dist/_chunks/dk-0b759a56.mjs.map +0 -1
- package/dist/_chunks/dk-6189917e.js +0 -634
- package/dist/_chunks/dk-6189917e.js.map +0 -1
- package/dist/_chunks/edit-29bdf5d6.js +0 -50
- package/dist/_chunks/edit-29bdf5d6.js.map +0 -1
- package/dist/_chunks/edit-923cefa0.mjs +0 -32
- package/dist/_chunks/edit-923cefa0.mjs.map +0 -1
- package/dist/_chunks/en-0e9e9327.js +0 -1022
- package/dist/_chunks/en-0e9e9327.js.map +0 -1
- package/dist/_chunks/en-e728accb.mjs +0 -1022
- package/dist/_chunks/en-e728accb.mjs.map +0 -1
- package/dist/_chunks/es-18b29db2.mjs +0 -796
- package/dist/_chunks/es-18b29db2.mjs.map +0 -1
- package/dist/_chunks/es-3ee0992a.js +0 -796
- package/dist/_chunks/es-3ee0992a.js.map +0 -1
- package/dist/_chunks/eu-8fd773c2.mjs +0 -832
- package/dist/_chunks/eu-8fd773c2.mjs.map +0 -1
- package/dist/_chunks/eu-be749f31.js +0 -832
- package/dist/_chunks/eu-be749f31.js.map +0 -1
- package/dist/_chunks/formatAPIErrors-b599cf27.js +0 -20
- package/dist/_chunks/formatAPIErrors-b599cf27.js.map +0 -1
- package/dist/_chunks/formatAPIErrors-db6ed675.mjs +0 -21
- package/dist/_chunks/formatAPIErrors-db6ed675.mjs.map +0 -1
- package/dist/_chunks/fr-29c84e1f.js +0 -762
- package/dist/_chunks/fr-29c84e1f.js.map +0 -1
- package/dist/_chunks/fr-f37df086.mjs +0 -762
- package/dist/_chunks/fr-f37df086.mjs.map +0 -1
- package/dist/_chunks/gu-377a4b46.js +0 -623
- package/dist/_chunks/gu-377a4b46.js.map +0 -1
- package/dist/_chunks/gu-69f0e13a.mjs +0 -623
- package/dist/_chunks/gu-69f0e13a.mjs.map +0 -1
- package/dist/_chunks/he-aec27352.js +0 -326
- package/dist/_chunks/he-aec27352.js.map +0 -1
- package/dist/_chunks/he-bd769d7e.mjs +0 -326
- package/dist/_chunks/he-bd769d7e.mjs.map +0 -1
- package/dist/_chunks/hi-1bdc7a46.js +0 -722
- package/dist/_chunks/hi-1bdc7a46.js.map +0 -1
- package/dist/_chunks/hi-d397a24b.mjs +0 -722
- package/dist/_chunks/hi-d397a24b.mjs.map +0 -1
- package/dist/_chunks/hu-e2c05f40.js +0 -832
- package/dist/_chunks/hu-e2c05f40.js.map +0 -1
- package/dist/_chunks/hu-eb88bd0c.mjs +0 -832
- package/dist/_chunks/hu-eb88bd0c.mjs.map +0 -1
- package/dist/_chunks/id-586df3a2.js +0 -448
- package/dist/_chunks/id-586df3a2.js.map +0 -1
- package/dist/_chunks/id-f47699e6.mjs +0 -448
- package/dist/_chunks/id-f47699e6.mjs.map +0 -1
- package/dist/_chunks/index-10a05917.mjs +0 -51
- package/dist/_chunks/index-10a05917.mjs.map +0 -1
- package/dist/_chunks/index-115d317b.mjs +0 -244
- package/dist/_chunks/index-115d317b.mjs.map +0 -1
- package/dist/_chunks/index-171715e4.js +0 -697
- package/dist/_chunks/index-171715e4.js.map +0 -1
- package/dist/_chunks/index-176cc121.mjs +0 -469
- package/dist/_chunks/index-176cc121.mjs.map +0 -1
- package/dist/_chunks/index-1bac5263.js +0 -338
- package/dist/_chunks/index-1bac5263.js.map +0 -1
- package/dist/_chunks/index-200c5a6a.js +0 -51
- package/dist/_chunks/index-200c5a6a.js.map +0 -1
- package/dist/_chunks/index-215b5421.mjs +0 -51
- package/dist/_chunks/index-215b5421.mjs.map +0 -1
- package/dist/_chunks/index-23401c29.js +0 -418
- package/dist/_chunks/index-23401c29.js.map +0 -1
- package/dist/_chunks/index-242c859c.js +0 -335
- package/dist/_chunks/index-242c859c.js.map +0 -1
- package/dist/_chunks/index-26fcb3ca.mjs +0 -1432
- package/dist/_chunks/index-26fcb3ca.mjs.map +0 -1
- package/dist/_chunks/index-28dd9303.mjs +0 -51
- package/dist/_chunks/index-28dd9303.mjs.map +0 -1
- package/dist/_chunks/index-296c14bf.mjs +0 -362
- package/dist/_chunks/index-296c14bf.mjs.map +0 -1
- package/dist/_chunks/index-2de06c32.js +0 -51
- package/dist/_chunks/index-2de06c32.js.map +0 -1
- package/dist/_chunks/index-2eb69b5d.mjs +0 -399
- package/dist/_chunks/index-2eb69b5d.mjs.map +0 -1
- package/dist/_chunks/index-2f61e3ae.js +0 -585
- package/dist/_chunks/index-2f61e3ae.js.map +0 -1
- package/dist/_chunks/index-308b73ba.mjs +0 -60
- package/dist/_chunks/index-308b73ba.mjs.map +0 -1
- package/dist/_chunks/index-34e41e15.js +0 -134
- package/dist/_chunks/index-34e41e15.js.map +0 -1
- package/dist/_chunks/index-38115cde.js +0 -66
- package/dist/_chunks/index-38115cde.js.map +0 -1
- package/dist/_chunks/index-383efae4.mjs +0 -55
- package/dist/_chunks/index-383efae4.mjs.map +0 -1
- package/dist/_chunks/index-3b426575.js +0 -47
- package/dist/_chunks/index-3b426575.js.map +0 -1
- package/dist/_chunks/index-47af1603.js +0 -253
- package/dist/_chunks/index-47af1603.js.map +0 -1
- package/dist/_chunks/index-49b7e6ff.mjs +0 -1266
- package/dist/_chunks/index-49b7e6ff.mjs.map +0 -1
- package/dist/_chunks/index-4d9b2cb9.js +0 -47
- package/dist/_chunks/index-4d9b2cb9.js.map +0 -1
- package/dist/_chunks/index-4de70b5d.js +0 -3404
- package/dist/_chunks/index-4de70b5d.js.map +0 -1
- package/dist/_chunks/index-59b1f604.js +0 -380
- package/dist/_chunks/index-59b1f604.js.map +0 -1
- package/dist/_chunks/index-5a5217e0.mjs +0 -308
- package/dist/_chunks/index-5a5217e0.mjs.map +0 -1
- package/dist/_chunks/index-5da07c41.js +0 -418
- package/dist/_chunks/index-5da07c41.js.map +0 -1
- package/dist/_chunks/index-600cb5dd.js +0 -51
- package/dist/_chunks/index-600cb5dd.js.map +0 -1
- package/dist/_chunks/index-608d8d10.mjs +0 -393
- package/dist/_chunks/index-608d8d10.mjs.map +0 -1
- package/dist/_chunks/index-74812118.mjs +0 -53
- package/dist/_chunks/index-74812118.mjs.map +0 -1
- package/dist/_chunks/index-7d578921.js +0 -847
- package/dist/_chunks/index-7d578921.js.map +0 -1
- package/dist/_chunks/index-8109fa91.mjs +0 -676
- package/dist/_chunks/index-8109fa91.mjs.map +0 -1
- package/dist/_chunks/index-82c7a120.js +0 -15401
- package/dist/_chunks/index-82c7a120.js.map +0 -1
- package/dist/_chunks/index-83d53962.js +0 -62
- package/dist/_chunks/index-83d53962.js.map +0 -1
- package/dist/_chunks/index-88298941.js +0 -54
- package/dist/_chunks/index-88298941.js.map +0 -1
- package/dist/_chunks/index-8933483b.mjs +0 -3374
- package/dist/_chunks/index-8933483b.mjs.map +0 -1
- package/dist/_chunks/index-91df57b1.mjs +0 -826
- package/dist/_chunks/index-91df57b1.mjs.map +0 -1
- package/dist/_chunks/index-973c363e.mjs +0 -63
- package/dist/_chunks/index-973c363e.mjs.map +0 -1
- package/dist/_chunks/index-989bbeec.mjs +0 -232
- package/dist/_chunks/index-989bbeec.mjs.map +0 -1
- package/dist/_chunks/index-9910dda4.js +0 -55
- package/dist/_chunks/index-9910dda4.js.map +0 -1
- package/dist/_chunks/index-9afb163a.js +0 -418
- package/dist/_chunks/index-9afb163a.js.map +0 -1
- package/dist/_chunks/index-9f61bef8.js +0 -51
- package/dist/_chunks/index-9f61bef8.js.map +0 -1
- package/dist/_chunks/index-ab31623a.mjs +0 -273
- package/dist/_chunks/index-ab31623a.mjs.map +0 -1
- package/dist/_chunks/index-ac85118a.mjs +0 -47
- package/dist/_chunks/index-ac85118a.mjs.map +0 -1
- package/dist/_chunks/index-ad8e55c0.mjs +0 -866
- package/dist/_chunks/index-ad8e55c0.mjs.map +0 -1
- package/dist/_chunks/index-aedeaf5a.js +0 -311
- package/dist/_chunks/index-aedeaf5a.js.map +0 -1
- package/dist/_chunks/index-bbac142a.js +0 -125
- package/dist/_chunks/index-bbac142a.js.map +0 -1
- package/dist/_chunks/index-bd18f803.mjs +0 -15320
- package/dist/_chunks/index-bd18f803.mjs.map +0 -1
- package/dist/_chunks/index-c8b8a2ee.mjs +0 -359
- package/dist/_chunks/index-c8b8a2ee.mjs.map +0 -1
- package/dist/_chunks/index-c97f5820.js +0 -1456
- package/dist/_chunks/index-c97f5820.js.map +0 -1
- package/dist/_chunks/index-cb6a72d2.mjs +0 -127
- package/dist/_chunks/index-cb6a72d2.mjs.map +0 -1
- package/dist/_chunks/index-cbc7c054.js +0 -266
- package/dist/_chunks/index-cbc7c054.js.map +0 -1
- package/dist/_chunks/index-ce5995cd.mjs +0 -132
- package/dist/_chunks/index-ce5995cd.mjs.map +0 -1
- package/dist/_chunks/index-d1152896.js +0 -294
- package/dist/_chunks/index-d1152896.js.map +0 -1
- package/dist/_chunks/index-d1dd825b.js +0 -365
- package/dist/_chunks/index-d1dd825b.js.map +0 -1
- package/dist/_chunks/index-d2d9df41.mjs +0 -270
- package/dist/_chunks/index-d2d9df41.mjs.map +0 -1
- package/dist/_chunks/index-d3e1fd86.js +0 -490
- package/dist/_chunks/index-d3e1fd86.js.map +0 -1
- package/dist/_chunks/index-d4517ac4.mjs +0 -582
- package/dist/_chunks/index-d4517ac4.mjs.map +0 -1
- package/dist/_chunks/index-d49fa655.js +0 -873
- package/dist/_chunks/index-d49fa655.js.map +0 -1
- package/dist/_chunks/index-d6694cab.mjs +0 -125
- package/dist/_chunks/index-d6694cab.mjs.map +0 -1
- package/dist/_chunks/index-e117c643.mjs +0 -55
- package/dist/_chunks/index-e117c643.mjs.map +0 -1
- package/dist/_chunks/index-e1b90981.mjs +0 -314
- package/dist/_chunks/index-e1b90981.mjs.map +0 -1
- package/dist/_chunks/index-e24df0bf.js +0 -403
- package/dist/_chunks/index-e24df0bf.js.map +0 -1
- package/dist/_chunks/index-e2d2f58e.mjs +0 -47
- package/dist/_chunks/index-e2d2f58e.mjs.map +0 -1
- package/dist/_chunks/index-e369d741.mjs +0 -383
- package/dist/_chunks/index-e369d741.mjs.map +0 -1
- package/dist/_chunks/index-e79b2b9e.mjs +0 -338
- package/dist/_chunks/index-e79b2b9e.mjs.map +0 -1
- package/dist/_chunks/index-ea18ff22.mjs +0 -51
- package/dist/_chunks/index-ea18ff22.mjs.map +0 -1
- package/dist/_chunks/index-eb67694f.mjs +0 -261
- package/dist/_chunks/index-eb67694f.mjs.map +0 -1
- package/dist/_chunks/index-ed3696ec.js +0 -272
- package/dist/_chunks/index-ed3696ec.js.map +0 -1
- package/dist/_chunks/index-ee1ea38b.js +0 -129
- package/dist/_chunks/index-ee1ea38b.js.map +0 -1
- package/dist/_chunks/index-efc967f5.js +0 -55
- package/dist/_chunks/index-efc967f5.js.map +0 -1
- package/dist/_chunks/index-fc700e52.js +0 -263
- package/dist/_chunks/index-fc700e52.js.map +0 -1
- package/dist/_chunks/index-fd4e5616.mjs +0 -412
- package/dist/_chunks/index-fd4e5616.mjs.map +0 -1
- package/dist/_chunks/index-ffd2f664.js +0 -1337
- package/dist/_chunks/index-ffd2f664.js.map +0 -1
- package/dist/_chunks/it-4006227c.mjs +0 -459
- package/dist/_chunks/it-4006227c.mjs.map +0 -1
- package/dist/_chunks/it-9c4295f1.js +0 -459
- package/dist/_chunks/it-9c4295f1.js.map +0 -1
- package/dist/_chunks/ja-db43ca3d.mjs +0 -633
- package/dist/_chunks/ja-db43ca3d.mjs.map +0 -1
- package/dist/_chunks/ja-eb74520f.js +0 -633
- package/dist/_chunks/ja-eb74520f.js.map +0 -1
- package/dist/_chunks/ko-18e71df4.js +0 -631
- package/dist/_chunks/ko-18e71df4.js.map +0 -1
- package/dist/_chunks/ko-a7826e25.mjs +0 -631
- package/dist/_chunks/ko-a7826e25.mjs.map +0 -1
- package/dist/_chunks/ml-90131768.mjs +0 -722
- package/dist/_chunks/ml-90131768.mjs.map +0 -1
- package/dist/_chunks/ml-c5199364.js +0 -722
- package/dist/_chunks/ml-c5199364.js.map +0 -1
- package/dist/_chunks/ms-bc514df6.js +0 -342
- package/dist/_chunks/ms-bc514df6.js.map +0 -1
- package/dist/_chunks/ms-f4f16a83.mjs +0 -342
- package/dist/_chunks/ms-f4f16a83.mjs.map +0 -1
- package/dist/_chunks/nl-887ce2c3.mjs +0 -828
- package/dist/_chunks/nl-887ce2c3.mjs.map +0 -1
- package/dist/_chunks/nl-f1aedbe2.js +0 -828
- package/dist/_chunks/nl-f1aedbe2.js.map +0 -1
- package/dist/_chunks/no-ec6c2927.js +0 -310
- package/dist/_chunks/no-ec6c2927.js.map +0 -1
- package/dist/_chunks/no-f0b02541.mjs +0 -310
- package/dist/_chunks/no-f0b02541.mjs.map +0 -1
- package/dist/_chunks/pl-9be86414.js +0 -721
- package/dist/_chunks/pl-9be86414.js.map +0 -1
- package/dist/_chunks/pl-9ccd35d9.mjs +0 -721
- package/dist/_chunks/pl-9ccd35d9.mjs.map +0 -1
- package/dist/_chunks/pt-4fcc08f1.js +0 -296
- package/dist/_chunks/pt-4fcc08f1.js.map +0 -1
- package/dist/_chunks/pt-8acb6ac1.mjs +0 -296
- package/dist/_chunks/pt-8acb6ac1.mjs.map +0 -1
- package/dist/_chunks/pt-BR-d43239e3.js +0 -794
- package/dist/_chunks/pt-BR-d43239e3.js.map +0 -1
- package/dist/_chunks/pt-BR-fd73cb13.mjs +0 -794
- package/dist/_chunks/pt-BR-fd73cb13.mjs.map +0 -1
- package/dist/_chunks/ru-9aad40c5.mjs +0 -993
- package/dist/_chunks/ru-9aad40c5.mjs.map +0 -1
- package/dist/_chunks/ru-c0293425.js +0 -993
- package/dist/_chunks/ru-c0293425.js.map +0 -1
- package/dist/_chunks/sa-6bf4c20e.mjs +0 -722
- package/dist/_chunks/sa-6bf4c20e.mjs.map +0 -1
- package/dist/_chunks/sa-8ffb7ca7.js +0 -722
- package/dist/_chunks/sa-8ffb7ca7.js.map +0 -1
- package/dist/_chunks/schema-260fec28.js +0 -514
- package/dist/_chunks/schema-260fec28.js.map +0 -1
- package/dist/_chunks/schema-6bd8bd85.mjs +0 -490
- package/dist/_chunks/schema-6bd8bd85.mjs.map +0 -1
- package/dist/_chunks/sk-58d31b17.mjs +0 -690
- package/dist/_chunks/sk-58d31b17.mjs.map +0 -1
- package/dist/_chunks/sk-a9308737.js +0 -690
- package/dist/_chunks/sk-a9308737.js.map +0 -1
- package/dist/_chunks/sv-0f5ffd1e.js +0 -827
- package/dist/_chunks/sv-0f5ffd1e.js.map +0 -1
- package/dist/_chunks/sv-d80ad633.mjs +0 -827
- package/dist/_chunks/sv-d80ad633.mjs.map +0 -1
- package/dist/_chunks/th-a53bbf7a.js +0 -430
- package/dist/_chunks/th-a53bbf7a.js.map +0 -1
- package/dist/_chunks/th-e72c6a22.mjs +0 -430
- package/dist/_chunks/th-e72c6a22.mjs.map +0 -1
- package/dist/_chunks/tr-b84a68b0.js +0 -785
- package/dist/_chunks/tr-b84a68b0.js.map +0 -1
- package/dist/_chunks/tr-e35ecfe8.mjs +0 -785
- package/dist/_chunks/tr-e35ecfe8.mjs.map +0 -1
- package/dist/_chunks/uk-de367ec1.mjs +0 -343
- package/dist/_chunks/uk-de367ec1.mjs.map +0 -1
- package/dist/_chunks/uk-e5226227.js +0 -343
- package/dist/_chunks/uk-e5226227.js.map +0 -1
- package/dist/_chunks/useAdminRolePermissions-603a2709.mjs +0 -2322
- package/dist/_chunks/useAdminRolePermissions-603a2709.mjs.map +0 -1
- package/dist/_chunks/useAdminRolePermissions-cb1a3ee2.js +0 -2337
- package/dist/_chunks/useAdminRolePermissions-cb1a3ee2.js.map +0 -1
- package/dist/_chunks/useAdminRoles-68d5d608.js +0 -62
- package/dist/_chunks/useAdminRoles-68d5d608.js.map +0 -1
- package/dist/_chunks/useAdminRoles-7ab5d521.mjs +0 -44
- package/dist/_chunks/useAdminRoles-7ab5d521.mjs.map +0 -1
- package/dist/_chunks/useAdminUsers-05d6b26a.js +0 -61
- package/dist/_chunks/useAdminUsers-05d6b26a.js.map +0 -1
- package/dist/_chunks/useAdminUsers-09f86a58.mjs +0 -43
- package/dist/_chunks/useAdminUsers-09f86a58.mjs.map +0 -1
- package/dist/_chunks/useContentTypes-53b449bb.mjs +0 -67
- package/dist/_chunks/useContentTypes-53b449bb.mjs.map +0 -1
- package/dist/_chunks/useContentTypes-7da293cc.js +0 -85
- package/dist/_chunks/useContentTypes-7da293cc.js.map +0 -1
- package/dist/_chunks/useDebounce-4712871e.js +0 -35
- package/dist/_chunks/useDebounce-4712871e.js.map +0 -1
- package/dist/_chunks/useDebounce-9364f340.mjs +0 -17
- package/dist/_chunks/useDebounce-9364f340.mjs.map +0 -1
- package/dist/_chunks/useLicenseLimitNotification-1fd756fa.mjs +0 -80
- package/dist/_chunks/useLicenseLimitNotification-1fd756fa.mjs.map +0 -1
- package/dist/_chunks/useLicenseLimitNotification-8a4d7fc1.js +0 -100
- package/dist/_chunks/useLicenseLimitNotification-8a4d7fc1.js.map +0 -1
- package/dist/_chunks/useLicenseLimits-13a102d3.mjs +0 -31
- package/dist/_chunks/useLicenseLimits-13a102d3.mjs.map +0 -1
- package/dist/_chunks/useLicenseLimits-81ef3cce.js +0 -49
- package/dist/_chunks/useLicenseLimits-81ef3cce.js.map +0 -1
- package/dist/_chunks/useReviewWorkflows-799e0305.js +0 -59
- package/dist/_chunks/useReviewWorkflows-799e0305.js.map +0 -1
- package/dist/_chunks/useReviewWorkflows-9e6b8986.mjs +0 -41
- package/dist/_chunks/useReviewWorkflows-9e6b8986.mjs.map +0 -1
- package/dist/_chunks/validateWorkflow-5693ea2d.js +0 -1124
- package/dist/_chunks/validateWorkflow-5693ea2d.js.map +0 -1
- package/dist/_chunks/validateWorkflow-7a2b6ab8.mjs +0 -1101
- package/dist/_chunks/validateWorkflow-7a2b6ab8.mjs.map +0 -1
- package/dist/_chunks/vi-096bccbb.mjs +0 -298
- package/dist/_chunks/vi-096bccbb.mjs.map +0 -1
- package/dist/_chunks/vi-c5fabb75.js +0 -298
- package/dist/_chunks/vi-c5fabb75.js.map +0 -1
- package/dist/_chunks/zh-24f618cb.js +0 -836
- package/dist/_chunks/zh-24f618cb.js.map +0 -1
- package/dist/_chunks/zh-Hans-35d2c374.js +0 -957
- package/dist/_chunks/zh-Hans-35d2c374.js.map +0 -1
- package/dist/_chunks/zh-Hans-ccf4be4b.mjs +0 -957
- package/dist/_chunks/zh-Hans-ccf4be4b.mjs.map +0 -1
- package/dist/_chunks/zh-ba29b2e1.mjs +0 -836
- package/dist/_chunks/zh-ba29b2e1.mjs.map +0 -1
- package/dist/admin/index.js +0 -34
- package/dist/admin/index.js.map +0 -1
- package/dist/admin/index.mjs +0 -34
- package/dist/admin/index.mjs.map +0 -1
- package/dist/admin/src/App.d.ts +0 -6
- package/dist/admin/src/StrapiApp.d.ts +0 -140
- package/dist/admin/src/components/AuthenticatedApp.d.ts +0 -2
- package/dist/admin/src/components/ConfigurationProvider.d.ts +0 -11
- package/dist/admin/src/components/DefaultDocument.d.ts +0 -5
- package/dist/admin/src/components/DragLayer.d.ts +0 -10
- package/dist/admin/src/components/GuidedTour/Homepage.d.ts +0 -2
- package/dist/admin/src/components/GuidedTour/Modal.d.ts +0 -2
- package/dist/admin/src/components/GuidedTour/Ornaments.d.ts +0 -13
- package/dist/admin/src/components/GuidedTour/Provider.d.ts +0 -6
- package/dist/admin/src/components/GuidedTour/constants.d.ts +0 -165
- package/dist/admin/src/components/LanguageProvider.d.ts +0 -19
- package/dist/admin/src/components/LeftMenu.d.ts +0 -5
- package/dist/admin/src/components/NoJavascript.d.ts +0 -7
- package/dist/admin/src/components/NpsSurvey.d.ts +0 -17
- package/dist/admin/src/components/Onboarding.d.ts +0 -2
- package/dist/admin/src/components/PluginsInitializer.d.ts +0 -5
- package/dist/admin/src/components/PrivateRoute.d.ts +0 -8
- package/dist/admin/src/components/Providers.d.ts +0 -13
- package/dist/admin/src/components/RBACProvider.d.ts +0 -27
- package/dist/admin/src/components/Theme.d.ts +0 -6
- package/dist/admin/src/components/ThemeToggleProvider.d.ts +0 -12
- package/dist/admin/src/components/UnauthenticatedLogo.d.ts +0 -2
- package/dist/admin/src/constants.d.ts +0 -195
- package/dist/admin/src/content-manager/components/BlocksInput/BlocksContent.d.ts +0 -5
- package/dist/admin/src/content-manager/components/BlocksInput/BlocksEditor.d.ts +0 -34
- package/dist/admin/src/content-manager/components/BlocksInput/BlocksInput.d.ts +0 -18
- package/dist/admin/src/content-manager/components/BlocksInput/BlocksToolbar.d.ts +0 -2
- package/dist/admin/src/content-manager/components/BlocksInput/hooks/useBlocksStore.d.ts +0 -32
- package/dist/admin/src/content-manager/components/BlocksInput/hooks/useModifiersStore.d.ts +0 -20
- package/dist/admin/src/content-manager/components/BlocksInput/plugins/withLinks.d.ts +0 -8
- package/dist/admin/src/content-manager/components/BlocksInput/plugins/withStrapiSchema.d.ts +0 -8
- package/dist/admin/src/content-manager/components/BlocksInput/tests/mock-schema.d.ts +0 -2
- package/dist/admin/src/content-manager/components/BlocksInput/utils/links.d.ts +0 -10
- package/dist/admin/src/content-manager/components/BlocksInput/utils/types.d.ts +0 -6
- package/dist/admin/src/contexts/admin.d.ts +0 -14
- package/dist/admin/src/contexts/apiTokenPermissions.d.ts +0 -36
- package/dist/admin/src/contexts/configuration.d.ts +0 -27
- package/dist/admin/src/contexts/themeToggle.d.ts +0 -22
- package/dist/admin/src/core/apis/Components.d.ts +0 -10
- package/dist/admin/src/core/apis/CustomFields.d.ts +0 -8
- package/dist/admin/src/core/apis/Fields.d.ts +0 -10
- package/dist/admin/src/core/apis/Middlewares.d.ts +0 -9
- package/dist/admin/src/core/apis/Plugin.d.ts +0 -19
- package/dist/admin/src/core/apis/Reducers.d.ts +0 -10
- package/dist/admin/src/core/store/configure.d.ts +0 -29
- package/dist/admin/src/core/store/hooks.d.ts +0 -37
- package/dist/admin/src/core/utils/basename.d.ts +0 -1
- package/dist/admin/src/core/utils/createHook.d.ts +0 -10
- package/dist/admin/src/hooks/__mocks__/useAdminUsers.d.ts +0 -2
- package/dist/admin/src/hooks/__mocks__/useContentTypes.d.ts +0 -2
- package/dist/admin/src/hooks/__mocks__/useSettingsMenu.d.ts +0 -2
- package/dist/admin/src/hooks/useAdminRoles.d.ts +0 -13
- package/dist/admin/src/hooks/useAdminUsers.d.ts +0 -19
- package/dist/admin/src/hooks/useContentTypes.d.ts +0 -7
- package/dist/admin/src/hooks/useDebounce.d.ts +0 -1
- package/dist/admin/src/hooks/useEnterprise.d.ts +0 -8
- package/dist/admin/src/hooks/useInjectReducer.d.ts +0 -10
- package/dist/admin/src/hooks/useLicenseLimitNotification.d.ts +0 -1
- package/dist/admin/src/hooks/useMenu.d.ts +0 -9
- package/dist/admin/src/hooks/useSettingsMenu.d.ts +0 -24
- package/dist/admin/src/index.d.ts +0 -3
- package/dist/admin/src/layouts/AppLayout.d.ts +0 -7
- package/dist/admin/src/layouts/UnauthenticatedLayout.d.ts +0 -11
- package/dist/admin/src/pages/Admin.d.ts +0 -7
- package/dist/admin/src/pages/Auth/AuthPage.d.ts +0 -6
- package/dist/admin/src/pages/Auth/components/FieldActionWrapper.d.ts +0 -3
- package/dist/admin/src/pages/Auth/components/ForgotPassword.d.ts +0 -3
- package/dist/admin/src/pages/Auth/components/ForgotPasswordSuccess.d.ts +0 -2
- package/dist/admin/src/pages/Auth/components/Login.d.ts +0 -8
- package/dist/admin/src/pages/Auth/components/Oops.d.ts +0 -2
- package/dist/admin/src/pages/Auth/components/Register.d.ts +0 -7
- package/dist/admin/src/pages/Auth/components/ResetPassword.d.ts +0 -3
- package/dist/admin/src/pages/Auth/constants.d.ts +0 -14
- package/dist/admin/src/pages/HomePage.d.ts +0 -3
- package/dist/admin/src/pages/InstalledPluginsPage.d.ts +0 -3
- package/dist/admin/src/pages/InternalErrorPage.d.ts +0 -7
- package/dist/admin/src/pages/Marketplace/MarketplacePage.d.ts +0 -19
- package/dist/admin/src/pages/Marketplace/components/NpmPackageCard.d.ts +0 -13
- package/dist/admin/src/pages/Marketplace/components/NpmPackagesFilters.d.ts +0 -13
- package/dist/admin/src/pages/Marketplace/components/NpmPackagesGrid.d.ts +0 -13
- package/dist/admin/src/pages/Marketplace/components/OfflineLayout.d.ts +0 -2
- package/dist/admin/src/pages/Marketplace/components/PageHeader.d.ts +0 -8
- package/dist/admin/src/pages/Marketplace/components/SortSelect.d.ts +0 -51
- package/dist/admin/src/pages/Marketplace/hooks/__mocks__/useNavigatorOnline.d.ts +0 -1
- package/dist/admin/src/pages/Marketplace/hooks/useMarketplaceData.d.ts +0 -92
- package/dist/admin/src/pages/Marketplace/hooks/useNavigatorOnline.d.ts +0 -5
- package/dist/admin/src/pages/NotFoundPage.d.ts +0 -1
- package/dist/admin/src/pages/ProfilePage.d.ts +0 -2
- package/dist/admin/src/pages/SettingsPage/hooks/useRegenerate.d.ts +0 -4
- package/dist/admin/src/pages/SettingsPage/pages/Roles/EditPage/hooks/usePermissionsDataManager.d.ts +0 -24
- package/dist/admin/src/pages/SettingsPage/pages/Roles/hooks/__mocks__/useAdminRolePermissions.d.ts +0 -2
- package/dist/admin/src/pages/SettingsPage/pages/Roles/hooks/useAdminRolePermissions.d.ts +0 -11
- package/dist/admin/src/pages/SettingsPage/utils/makeUniqueRoutes.d.ts +0 -6
- package/dist/admin/src/pages/UseCasePage.d.ts +0 -8
- package/dist/admin/src/reducer.d.ts +0 -21
- package/dist/admin/src/render.d.ts +0 -10
- package/dist/admin/src/selectors.d.ts +0 -21
- package/dist/admin/src/shared/components/InjectionZone.d.ts +0 -53
- package/dist/admin/src/shared/hooks/__mocks__/useInjectionZone.d.ts +0 -1
- package/dist/admin/src/shared/hooks/useInjectionZone.d.ts +0 -2
- package/dist/admin/src/translations/languageNativeNames.d.ts +0 -36
- package/dist/admin/src/types/permissions.d.ts +0 -17
- package/dist/admin/src/utils/createRoute.d.ts +0 -6
- package/dist/admin/src/utils/formatAPIErrors.d.ts +0 -6
- package/dist/admin/src/utils/getFullName.d.ts +0 -1
- package/dist/admin/src/utils/hashAdminUserEmail.d.ts +0 -6
- package/dist/cli.js +0 -48
- package/dist/cli.js.map +0 -1
- package/dist/cli.mjs +0 -48
- package/dist/cli.mjs.map +0 -1
- package/dist/ee/admin/src/constants.d.ts +0 -55
- package/dist/ee/admin/src/hooks/useLicenseLimitNotification.d.ts +0 -1
- package/dist/ee/admin/src/pages/AuthPage/components/Login.d.ts +0 -3
- package/dist/ee/admin/src/pages/AuthPage/components/Providers.d.ts +0 -2
- package/dist/ee/admin/src/pages/AuthPage/components/SSOProviders.d.ts +0 -8
- package/dist/ee/admin/src/pages/AuthPage/constants.d.ts +0 -3
- package/dist/ee/admin/src/pages/AuthResponse.d.ts +0 -2
- package/dist/ee/admin/src/pages/HomePage.d.ts +0 -1
- package/dist/shared/contracts/admin.d.ts +0 -23
- package/dist/shared/contracts/authentication.d.ts +0 -126
- package/dist/shared/contracts/providers.d.ts +0 -34
- package/dist/shared/contracts/roles.d.ts +0 -52
- package/dist/shared/contracts/shared.d.ts +0 -39
- package/dist/shared/contracts/user.d.ts +0 -40
- package/dist/shared/contracts/users.d.ts +0 -52
- package/dist/shared/schema.d.ts +0 -7
- package/ee/server/bootstrap.js +0 -41
- package/ee/server/config/admin-actions.js +0 -72
- package/ee/server/constants/default-stages.json +0 -18
- package/ee/server/constants/default-workflow.json +0 -3
- package/ee/server/constants/webhookEvents.js +0 -5
- package/ee/server/constants/workflows.js +0 -33
- package/ee/server/content-types/index.js +0 -9
- package/ee/server/content-types/workflow/index.js +0 -41
- package/ee/server/content-types/workflow-stage/index.js +0 -51
- package/ee/server/controllers/__tests__/stages.test.js +0 -174
- package/ee/server/controllers/admin.js +0 -50
- package/ee/server/controllers/audit-logs.js +0 -24
- package/ee/server/controllers/authentication/constants.js +0 -11
- package/ee/server/controllers/authentication/index.js +0 -11
- package/ee/server/controllers/authentication/middlewares.js +0 -117
- package/ee/server/controllers/authentication/utils.js +0 -23
- package/ee/server/controllers/authentication.js +0 -64
- package/ee/server/controllers/index.js +0 -12
- package/ee/server/controllers/role.js +0 -64
- package/ee/server/controllers/user.js +0 -110
- package/ee/server/controllers/workflows/assignees/index.js +0 -44
- package/ee/server/controllers/workflows/index.js +0 -188
- package/ee/server/controllers/workflows/stages/index.js +0 -189
- package/ee/server/destroy.js +0 -12
- package/ee/server/index.js +0 -11
- package/ee/server/middlewares/__tests__/review-workflows.test.js +0 -40
- package/ee/server/middlewares/review-workflows.js +0 -40
- package/ee/server/migrations/audit-logs-table.js +0 -45
- package/ee/server/migrations/review-workflows-content-types.js +0 -29
- package/ee/server/migrations/review-workflows-deleted-ct-in-workflows.js +0 -39
- package/ee/server/migrations/review-workflows-stage-attribute.js +0 -49
- package/ee/server/migrations/review-workflows-stages-color.js +0 -20
- package/ee/server/migrations/review-workflows-stages-roles.js +0 -68
- package/ee/server/migrations/review-workflows-workflow-name.js +0 -28
- package/ee/server/register.js +0 -40
- package/ee/server/routes/audit-logs.js +0 -43
- package/ee/server/routes/index.js +0 -8
- package/ee/server/routes/license-limit.js +0 -29
- package/ee/server/routes/review-workflows.js +0 -164
- package/ee/server/routes/sso.js +0 -69
- package/ee/server/routes/utils.js +0 -15
- package/ee/server/services/__tests__/assignees.test.js +0 -76
- package/ee/server/services/__tests__/audit-logs.test.js +0 -300
- package/ee/server/services/__tests__/passport.test.js +0 -95
- package/ee/server/services/__tests__/review-workflows-validation.test.js +0 -100
- package/ee/server/services/__tests__/review-workflows.test.js +0 -163
- package/ee/server/services/__tests__/sso.test.js +0 -117
- package/ee/server/services/__tests__/stages.test.js +0 -275
- package/ee/server/services/__tests__/workflows.test.js +0 -203
- package/ee/server/services/audit-logs.js +0 -236
- package/ee/server/services/auth.js +0 -75
- package/ee/server/services/index.js +0 -18
- package/ee/server/services/passport/provider-registry.js +0 -27
- package/ee/server/services/passport/sso.js +0 -37
- package/ee/server/services/passport.js +0 -46
- package/ee/server/services/review-workflows/__tests__/entity-service-decorator.test.js +0 -211
- package/ee/server/services/review-workflows/assignees.js +0 -54
- package/ee/server/services/review-workflows/entity-service-decorator.js +0 -101
- package/ee/server/services/review-workflows/metrics/__tests__/weekly-metrics.test.js +0 -65
- package/ee/server/services/review-workflows/metrics/index.js +0 -56
- package/ee/server/services/review-workflows/metrics/weekly-metrics.js +0 -76
- package/ee/server/services/review-workflows/review-workflows.js +0 -133
- package/ee/server/services/review-workflows/stage-permissions.js +0 -60
- package/ee/server/services/review-workflows/stages.js +0 -384
- package/ee/server/services/review-workflows/validation.js +0 -68
- package/ee/server/services/review-workflows/workflows/__tests__/content-types.test.js +0 -146
- package/ee/server/services/review-workflows/workflows/content-types.js +0 -89
- package/ee/server/services/review-workflows/workflows/index.js +0 -237
- package/ee/server/services/role.js +0 -24
- package/ee/server/services/seat-enforcement.js +0 -114
- package/ee/server/services/user.js +0 -234
- package/ee/server/utils/__tests__/persisted-tables.test.js +0 -38
- package/ee/server/utils/__tests__/sso-lock.test.js +0 -84
- package/ee/server/utils/index.js +0 -8
- package/ee/server/utils/persisted-tables.js +0 -139
- package/ee/server/utils/review-workflows.js +0 -39
- package/ee/server/utils/sso-lock.js +0 -42
- package/ee/server/validation/audit-logs.js +0 -18
- package/ee/server/validation/authentication.js +0 -36
- package/ee/server/validation/review-workflows.js +0 -92
- package/ee/server/validation/role.js +0 -68
- package/ee/server/validation/user.js +0 -27
- package/ee/strapi-server.js +0 -3
- package/server/bootstrap.js +0 -101
- package/server/config/admin-actions.js +0 -216
- package/server/config/admin-conditions.js +0 -26
- package/server/config/email-templates/forgot-password.js +0 -25
- package/server/config/index.js +0 -9
- package/server/config/settings.js +0 -9
- package/server/content-types/Permission.js +0 -64
- package/server/content-types/Role.js +0 -59
- package/server/content-types/User.js +0 -112
- package/server/content-types/api-token-permission.js +0 -36
- package/server/content-types/api-token.js +0 -76
- package/server/content-types/index.js +0 -11
- package/server/content-types/transfer-token-permission.js +0 -36
- package/server/content-types/transfer-token.js +0 -66
- package/server/controllers/__tests__/admin.test.js +0 -106
- package/server/controllers/__tests__/api-token.test.js +0 -496
- package/server/controllers/__tests__/content-api.test.js +0 -173
- package/server/controllers/__tests__/permission.test.js +0 -200
- package/server/controllers/__tests__/role.test.js +0 -201
- package/server/controllers/__tests__/transfer/token.test.js +0 -520
- package/server/controllers/__tests__/user.test.js +0 -326
- package/server/controllers/admin.js +0 -151
- package/server/controllers/api-token.js +0 -135
- package/server/controllers/authenticated-user.js +0 -52
- package/server/controllers/authentication.js +0 -172
- package/server/controllers/content-api.js +0 -15
- package/server/controllers/formatters/conditions.js +0 -12
- package/server/controllers/formatters/format-actions-by-sections.js +0 -40
- package/server/controllers/formatters/index.js +0 -9
- package/server/controllers/index.js +0 -14
- package/server/controllers/permission.js +0 -45
- package/server/controllers/role.js +0 -198
- package/server/controllers/transfer/index.js +0 -13
- package/server/controllers/transfer/runner.js +0 -28
- package/server/controllers/transfer/token.js +0 -131
- package/server/controllers/user.js +0 -141
- package/server/controllers/webhooks.js +0 -132
- package/server/destroy.js +0 -10
- package/server/domain/action/__tests__/action-domain.test.js +0 -230
- package/server/domain/action/__tests__/action-provider.test.js +0 -376
- package/server/domain/action/index.js +0 -142
- package/server/domain/action/provider.js +0 -83
- package/server/domain/condition/__tests__/condition-domain.test.js +0 -122
- package/server/domain/condition/__tests__/condition-provider.test.js +0 -156
- package/server/domain/condition/index.js +0 -92
- package/server/domain/condition/provider.js +0 -42
- package/server/domain/permission/__tests__/permission-domain.test.js +0 -285
- package/server/domain/permission/index.js +0 -156
- package/server/domain/user.js +0 -28
- package/server/index.js +0 -26
- package/server/middlewares/data-transfer.js +0 -29
- package/server/middlewares/index.js +0 -8
- package/server/middlewares/rateLimit.js +0 -47
- package/server/policies/hasPermissions.js +0 -38
- package/server/policies/index.js +0 -7
- package/server/policies/isAuthenticatedAdmin.js +0 -5
- package/server/policies/isTelemetryEnabled.js +0 -16
- package/server/register.js +0 -19
- package/server/routes/admin.js +0 -71
- package/server/routes/api-tokens.js +0 -70
- package/server/routes/authentication.js +0 -57
- package/server/routes/content-api.js +0 -20
- package/server/routes/index.js +0 -28
- package/server/routes/permissions.js +0 -20
- package/server/routes/roles.js +0 -107
- package/server/routes/serve-admin-panel.js +0 -71
- package/server/routes/transfer.js +0 -102
- package/server/routes/users.js +0 -88
- package/server/routes/webhooks.js +0 -81
- package/server/services/__tests__/action.test.js +0 -98
- package/server/services/__tests__/api-token.test.js +0 -980
- package/server/services/__tests__/auth.test.js +0 -319
- package/server/services/__tests__/content-type.test.js +0 -405
- package/server/services/__tests__/metrics.test.js +0 -65
- package/server/services/__tests__/passport.test.js +0 -90
- package/server/services/__tests__/permission.test.js +0 -177
- package/server/services/__tests__/permissions-manager-sanitize.test.js +0 -117
- package/server/services/__tests__/permissions-manager-validate.test.js +0 -119
- package/server/services/__tests__/permissions-manager.test.js +0 -318
- package/server/services/__tests__/permissions.section-builder.section.test.js +0 -136
- package/server/services/__tests__/project-settings.test.js +0 -397
- package/server/services/__tests__/role.test.js +0 -970
- package/server/services/__tests__/token.test.js +0 -217
- package/server/services/__tests__/transfer/token.test.js +0 -878
- package/server/services/__tests__/user.test.js +0 -786
- package/server/services/action.js +0 -35
- package/server/services/api-token.js +0 -453
- package/server/services/auth.js +0 -117
- package/server/services/condition.js +0 -14
- package/server/services/constants.js +0 -37
- package/server/services/content-type.js +0 -208
- package/server/services/index.js +0 -18
- package/server/services/metrics.js +0 -44
- package/server/services/passport/local-strategy.js +0 -28
- package/server/services/passport.js +0 -45
- package/server/services/permission/engine.js +0 -85
- package/server/services/permission/permissions-manager/index.js +0 -53
- package/server/services/permission/permissions-manager/query-builders.js +0 -72
- package/server/services/permission/permissions-manager/sanitize.js +0 -286
- package/server/services/permission/permissions-manager/validate.js +0 -218
- package/server/services/permission/queries.js +0 -190
- package/server/services/permission/sections-builder/builder.js +0 -84
- package/server/services/permission/sections-builder/handlers.js +0 -156
- package/server/services/permission/sections-builder/index.js +0 -50
- package/server/services/permission/sections-builder/section.js +0 -71
- package/server/services/permission/sections-builder/utils.js +0 -26
- package/server/services/permission.js +0 -33
- package/server/services/project-settings.js +0 -174
- package/server/services/role.js +0 -471
- package/server/services/token.js +0 -70
- package/server/services/transfer/index.js +0 -7
- package/server/services/transfer/permission.js +0 -22
- package/server/services/transfer/token.js +0 -449
- package/server/services/transfer/utils.js +0 -38
- package/server/services/user.js +0 -363
- package/server/strategies/__tests__/admin.test.js +0 -118
- package/server/strategies/__tests__/api-token.test.js +0 -364
- package/server/strategies/admin.js +0 -52
- package/server/strategies/api-token.js +0 -140
- package/server/strategies/data-transfer.js +0 -113
- package/server/strategies/index.js +0 -26
- package/server/utils/index.d.ts +0 -25
- package/server/utils/index.js +0 -9
- package/server/validation/__tests__/common-functions.test.js +0 -54
- package/server/validation/action-provider.js +0 -67
- package/server/validation/api-tokens.js +0 -32
- package/server/validation/authentication/forgot-password.js +0 -14
- package/server/validation/authentication/index.js +0 -19
- package/server/validation/authentication/register.js +0 -45
- package/server/validation/authentication/renew-token.js +0 -7
- package/server/validation/authentication/reset-password.js +0 -15
- package/server/validation/common-functions/check-fields-are-correctly-nested.js +0 -28
- package/server/validation/common-functions/check-fields-dont-have-duplicates.js +0 -17
- package/server/validation/common-functions/index.js +0 -9
- package/server/validation/common-validators.js +0 -209
- package/server/validation/permission.js +0 -53
- package/server/validation/policies/hasPermissions.js +0 -27
- package/server/validation/project-settings.js +0 -48
- package/server/validation/role.js +0 -59
- package/server/validation/transfer/index.js +0 -5
- package/server/validation/transfer/token.js +0 -42
- package/server/validation/user.js +0 -65
package/server/utils/index.d.ts
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import * as role from '../services/role';
|
|
2
|
-
import * as user from '../services/user';
|
|
3
|
-
import * as permission from '../services/permission';
|
|
4
|
-
import * as contentType from '../services/content-type';
|
|
5
|
-
import * as metrics from '../services/metrics';
|
|
6
|
-
import * as token from '../services/token';
|
|
7
|
-
import * as auth from '../services/auth';
|
|
8
|
-
import * as apiToken from '../services/api-token';
|
|
9
|
-
import * as projectSettings from '../services/project-settings';
|
|
10
|
-
import * as transfer from '../services/transfer';
|
|
11
|
-
|
|
12
|
-
type S = {
|
|
13
|
-
role: typeof role;
|
|
14
|
-
user: typeof user;
|
|
15
|
-
permission: typeof permission;
|
|
16
|
-
'content-type': typeof contentType;
|
|
17
|
-
token: typeof token;
|
|
18
|
-
auth: typeof auth;
|
|
19
|
-
metrics: typeof metrics;
|
|
20
|
-
'api-token': typeof apiToken;
|
|
21
|
-
'project-settings': typeof projectSettings;
|
|
22
|
-
transfer: typeof transfer;
|
|
23
|
-
};
|
|
24
|
-
|
|
25
|
-
export function getService<T extends keyof S>(name: T): S[T];
|
package/server/utils/index.js
DELETED
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
const {
|
|
4
|
-
checkFieldsAreCorrectlyNested,
|
|
5
|
-
checkFieldsDontHaveDuplicates,
|
|
6
|
-
} = require('../common-functions');
|
|
7
|
-
|
|
8
|
-
describe('Common validation functions', () => {
|
|
9
|
-
describe('checkFieldsAreCorrectlyNested', () => {
|
|
10
|
-
const tests = [
|
|
11
|
-
[['name'], true],
|
|
12
|
-
[['name', 'description'], true],
|
|
13
|
-
[['name.firstname'], true],
|
|
14
|
-
[['name.firstname', 'name.lastname'], true],
|
|
15
|
-
[['name.firstname.french'], true],
|
|
16
|
-
[['name.firstname.french', 'firstname'], true],
|
|
17
|
-
[['name.firstname.french', 'french'], true],
|
|
18
|
-
[['name.firstname.french', 'firstname.french'], true],
|
|
19
|
-
[['name', 'name.firstname'], false],
|
|
20
|
-
[['name', 'name.firstname.french'], false],
|
|
21
|
-
[['name.firstname', 'name.firstname.french'], false],
|
|
22
|
-
[['address', 'addresses'], true],
|
|
23
|
-
[[], true],
|
|
24
|
-
[undefined, true],
|
|
25
|
-
[null, true],
|
|
26
|
-
['', false],
|
|
27
|
-
[3, false],
|
|
28
|
-
];
|
|
29
|
-
|
|
30
|
-
test.each(tests)('%p to be %p', (fields, expectedResult) => {
|
|
31
|
-
const result = checkFieldsAreCorrectlyNested(fields);
|
|
32
|
-
expect(result).toBe(expectedResult);
|
|
33
|
-
});
|
|
34
|
-
});
|
|
35
|
-
|
|
36
|
-
describe('checkFieldsDontHaveDuplicates', () => {
|
|
37
|
-
const tests = [
|
|
38
|
-
[['name'], true],
|
|
39
|
-
[['name', 'description'], true],
|
|
40
|
-
[['name', 'description', 'name'], false],
|
|
41
|
-
[['name.firstname', 'name.lastname'], true],
|
|
42
|
-
[[], true],
|
|
43
|
-
[undefined, true],
|
|
44
|
-
[null, true],
|
|
45
|
-
['', false],
|
|
46
|
-
[3, false],
|
|
47
|
-
];
|
|
48
|
-
|
|
49
|
-
test.each(tests)('%p to be %p', (fields, expectedResult) => {
|
|
50
|
-
const result = checkFieldsDontHaveDuplicates(fields);
|
|
51
|
-
expect(result).toBe(expectedResult);
|
|
52
|
-
});
|
|
53
|
-
});
|
|
54
|
-
});
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
const { yup, validateYupSchemaSync } = require('@strapi/utils');
|
|
4
|
-
const validators = require('./common-validators');
|
|
5
|
-
|
|
6
|
-
const registerProviderActionSchema = yup
|
|
7
|
-
.array()
|
|
8
|
-
.required()
|
|
9
|
-
.of(
|
|
10
|
-
yup
|
|
11
|
-
.object()
|
|
12
|
-
.shape({
|
|
13
|
-
uid: yup
|
|
14
|
-
.string()
|
|
15
|
-
.matches(
|
|
16
|
-
/^[a-z]([a-z|.|-]+)[a-z]$/,
|
|
17
|
-
(v) => `${v.path}: The id can only contain lowercase letters, dots and hyphens.`
|
|
18
|
-
)
|
|
19
|
-
.required(),
|
|
20
|
-
section: yup.string().oneOf(['contentTypes', 'plugins', 'settings', 'internal']).required(),
|
|
21
|
-
pluginName: yup.mixed().when('section', {
|
|
22
|
-
is: 'plugins',
|
|
23
|
-
then: validators.isAPluginName.required(),
|
|
24
|
-
otherwise: validators.isAPluginName,
|
|
25
|
-
}),
|
|
26
|
-
subjects: yup.mixed().when('section', {
|
|
27
|
-
is: 'contentTypes',
|
|
28
|
-
then: yup.array().of(yup.string()).required(),
|
|
29
|
-
otherwise: yup
|
|
30
|
-
.mixed()
|
|
31
|
-
.oneOf([undefined], 'subjects should only be defined for the "contentTypes" section'),
|
|
32
|
-
}),
|
|
33
|
-
displayName: yup.string().required(),
|
|
34
|
-
category: yup.mixed().when('section', {
|
|
35
|
-
is: 'settings',
|
|
36
|
-
then: yup.string().required(),
|
|
37
|
-
otherwise: yup
|
|
38
|
-
.mixed()
|
|
39
|
-
.test(
|
|
40
|
-
'settingsCategory',
|
|
41
|
-
'category should only be defined for the "settings" section',
|
|
42
|
-
(cat) => cat === undefined
|
|
43
|
-
),
|
|
44
|
-
}),
|
|
45
|
-
subCategory: yup.mixed().when('section', {
|
|
46
|
-
is: (section) => ['settings', 'plugins'].includes(section),
|
|
47
|
-
then: yup.string(),
|
|
48
|
-
otherwise: yup
|
|
49
|
-
.mixed()
|
|
50
|
-
.test(
|
|
51
|
-
'settingsSubCategory',
|
|
52
|
-
'subCategory should only be defined for "plugins" and "settings" sections',
|
|
53
|
-
(subCat) => {
|
|
54
|
-
return subCat === undefined;
|
|
55
|
-
}
|
|
56
|
-
),
|
|
57
|
-
}),
|
|
58
|
-
options: yup.object({
|
|
59
|
-
applyToProperties: yup.array().of(yup.string()),
|
|
60
|
-
}),
|
|
61
|
-
})
|
|
62
|
-
.noUnknown()
|
|
63
|
-
);
|
|
64
|
-
|
|
65
|
-
module.exports = {
|
|
66
|
-
validateRegisterProviderAction: validateYupSchemaSync(registerProviderActionSchema),
|
|
67
|
-
};
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
const { yup, validateYupSchema } = require('@strapi/utils');
|
|
4
|
-
const constants = require('../services/constants');
|
|
5
|
-
|
|
6
|
-
const apiTokenCreationSchema = yup
|
|
7
|
-
.object()
|
|
8
|
-
.shape({
|
|
9
|
-
name: yup.string().min(1).required(),
|
|
10
|
-
description: yup.string().optional(),
|
|
11
|
-
type: yup.string().oneOf(Object.values(constants.API_TOKEN_TYPE)).required(),
|
|
12
|
-
permissions: yup.array().of(yup.string()).nullable(),
|
|
13
|
-
lifespan: yup.number().min(1).oneOf(Object.values(constants.API_TOKEN_LIFESPANS)).nullable(),
|
|
14
|
-
})
|
|
15
|
-
.noUnknown()
|
|
16
|
-
.strict();
|
|
17
|
-
|
|
18
|
-
const apiTokenUpdateSchema = yup
|
|
19
|
-
.object()
|
|
20
|
-
.shape({
|
|
21
|
-
name: yup.string().min(1).notNull(),
|
|
22
|
-
description: yup.string().nullable(),
|
|
23
|
-
type: yup.string().oneOf(Object.values(constants.API_TOKEN_TYPE)).notNull(),
|
|
24
|
-
permissions: yup.array().of(yup.string()).nullable(),
|
|
25
|
-
})
|
|
26
|
-
.noUnknown()
|
|
27
|
-
.strict();
|
|
28
|
-
|
|
29
|
-
module.exports = {
|
|
30
|
-
validateApiTokenCreationInput: validateYupSchema(apiTokenCreationSchema),
|
|
31
|
-
validateApiTokenUpdateInput: validateYupSchema(apiTokenUpdateSchema),
|
|
32
|
-
};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
const { yup, validateYupSchema } = require('@strapi/utils');
|
|
4
|
-
const validators = require('../common-validators');
|
|
5
|
-
|
|
6
|
-
const forgotPasswordSchema = yup
|
|
7
|
-
.object()
|
|
8
|
-
.shape({
|
|
9
|
-
email: validators.email.required(),
|
|
10
|
-
})
|
|
11
|
-
.required()
|
|
12
|
-
.noUnknown();
|
|
13
|
-
|
|
14
|
-
module.exports = validateYupSchema(forgotPasswordSchema);
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
const {
|
|
4
|
-
validateRegistrationInput,
|
|
5
|
-
validateAdminRegistrationInput,
|
|
6
|
-
validateRegistrationInfoQuery,
|
|
7
|
-
} = require('./register');
|
|
8
|
-
const validateForgotPasswordInput = require('./forgot-password');
|
|
9
|
-
const validateResetPasswordInput = require('./reset-password');
|
|
10
|
-
const validateRenewTokenInput = require('./renew-token');
|
|
11
|
-
|
|
12
|
-
module.exports = {
|
|
13
|
-
validateRegistrationInput,
|
|
14
|
-
validateAdminRegistrationInput,
|
|
15
|
-
validateRegistrationInfoQuery,
|
|
16
|
-
validateForgotPasswordInput,
|
|
17
|
-
validateResetPasswordInput,
|
|
18
|
-
validateRenewTokenInput,
|
|
19
|
-
};
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
const { yup, validateYupSchema } = require('@strapi/utils');
|
|
4
|
-
const validators = require('../common-validators');
|
|
5
|
-
|
|
6
|
-
const registrationSchema = yup
|
|
7
|
-
.object()
|
|
8
|
-
.shape({
|
|
9
|
-
registrationToken: yup.string().required(),
|
|
10
|
-
userInfo: yup
|
|
11
|
-
.object()
|
|
12
|
-
.shape({
|
|
13
|
-
firstname: validators.firstname.required(),
|
|
14
|
-
lastname: validators.lastname.nullable(),
|
|
15
|
-
password: validators.password.required(),
|
|
16
|
-
})
|
|
17
|
-
.required()
|
|
18
|
-
.noUnknown(),
|
|
19
|
-
})
|
|
20
|
-
.noUnknown();
|
|
21
|
-
|
|
22
|
-
const registrationInfoQuerySchema = yup
|
|
23
|
-
.object()
|
|
24
|
-
.shape({
|
|
25
|
-
registrationToken: yup.string().required(),
|
|
26
|
-
})
|
|
27
|
-
.required()
|
|
28
|
-
.noUnknown();
|
|
29
|
-
|
|
30
|
-
const adminRegistrationSchema = yup
|
|
31
|
-
.object()
|
|
32
|
-
.shape({
|
|
33
|
-
email: validators.email.required(),
|
|
34
|
-
firstname: validators.firstname.required(),
|
|
35
|
-
lastname: validators.lastname.nullable(),
|
|
36
|
-
password: validators.password.required(),
|
|
37
|
-
})
|
|
38
|
-
.required()
|
|
39
|
-
.noUnknown();
|
|
40
|
-
|
|
41
|
-
module.exports = {
|
|
42
|
-
validateRegistrationInput: validateYupSchema(registrationSchema),
|
|
43
|
-
validateRegistrationInfoQuery: validateYupSchema(registrationInfoQuerySchema),
|
|
44
|
-
validateAdminRegistrationInput: validateYupSchema(adminRegistrationSchema),
|
|
45
|
-
};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
const { yup, validateYupSchema } = require('@strapi/utils');
|
|
4
|
-
const validators = require('../common-validators');
|
|
5
|
-
|
|
6
|
-
const resetPasswordSchema = yup
|
|
7
|
-
.object()
|
|
8
|
-
.shape({
|
|
9
|
-
resetPasswordToken: yup.string().required(),
|
|
10
|
-
password: validators.password.required(),
|
|
11
|
-
})
|
|
12
|
-
.required()
|
|
13
|
-
.noUnknown();
|
|
14
|
-
|
|
15
|
-
module.exports = validateYupSchema(resetPasswordSchema);
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
const _ = require('lodash');
|
|
4
|
-
|
|
5
|
-
const checkFieldsAreCorrectlyNested = (fields) => {
|
|
6
|
-
if (_.isNil(fields)) {
|
|
7
|
-
// Only check if the fields exist
|
|
8
|
-
return true;
|
|
9
|
-
}
|
|
10
|
-
if (!Array.isArray(fields)) {
|
|
11
|
-
return false;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
let failed = false;
|
|
15
|
-
for (let indexA = 0; indexA < fields.length; indexA += 1) {
|
|
16
|
-
failed = fields
|
|
17
|
-
.slice(indexA + 1)
|
|
18
|
-
.some(
|
|
19
|
-
(fieldB) =>
|
|
20
|
-
fieldB.startsWith(`${fields[indexA]}.`) || fields[indexA].startsWith(`${fieldB}.`)
|
|
21
|
-
);
|
|
22
|
-
if (failed) break;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
return !failed;
|
|
26
|
-
};
|
|
27
|
-
|
|
28
|
-
module.exports = checkFieldsAreCorrectlyNested;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
const _ = require('lodash');
|
|
4
|
-
|
|
5
|
-
const checkFieldsDontHaveDuplicates = (fields) => {
|
|
6
|
-
if (_.isNil(fields)) {
|
|
7
|
-
// Only check if the fields exist
|
|
8
|
-
return true;
|
|
9
|
-
}
|
|
10
|
-
if (!Array.isArray(fields)) {
|
|
11
|
-
return false;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
return _.uniq(fields).length === fields.length;
|
|
15
|
-
};
|
|
16
|
-
|
|
17
|
-
module.exports = checkFieldsDontHaveDuplicates;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
const checkFieldsAreCorrectlyNested = require('./check-fields-are-correctly-nested');
|
|
4
|
-
const checkFieldsDontHaveDuplicates = require('./check-fields-dont-have-duplicates');
|
|
5
|
-
|
|
6
|
-
module.exports = {
|
|
7
|
-
checkFieldsAreCorrectlyNested,
|
|
8
|
-
checkFieldsDontHaveDuplicates,
|
|
9
|
-
};
|
|
@@ -1,209 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
const { yup } = require('@strapi/utils');
|
|
4
|
-
const _ = require('lodash');
|
|
5
|
-
const { isEmpty, has, isNil, isArray } = require('lodash/fp');
|
|
6
|
-
const { getService } = require('../utils');
|
|
7
|
-
const actionDomain = require('../domain/action');
|
|
8
|
-
const {
|
|
9
|
-
checkFieldsAreCorrectlyNested,
|
|
10
|
-
checkFieldsDontHaveDuplicates,
|
|
11
|
-
} = require('./common-functions');
|
|
12
|
-
|
|
13
|
-
const getActionFromProvider = (actionId) => {
|
|
14
|
-
return getService('permission').actionProvider.get(actionId);
|
|
15
|
-
};
|
|
16
|
-
|
|
17
|
-
const email = yup.string().email().lowercase();
|
|
18
|
-
|
|
19
|
-
const firstname = yup.string().trim().min(1);
|
|
20
|
-
|
|
21
|
-
const lastname = yup.string();
|
|
22
|
-
|
|
23
|
-
const username = yup.string().min(1);
|
|
24
|
-
|
|
25
|
-
const password = yup
|
|
26
|
-
.string()
|
|
27
|
-
.min(8)
|
|
28
|
-
.matches(/[a-z]/, '${path} must contain at least one lowercase character')
|
|
29
|
-
.matches(/[A-Z]/, '${path} must contain at least one uppercase character')
|
|
30
|
-
.matches(/\d/, '${path} must contain at least one number');
|
|
31
|
-
|
|
32
|
-
const roles = yup.array(yup.strapiID()).min(1);
|
|
33
|
-
|
|
34
|
-
const isAPluginName = yup
|
|
35
|
-
.string()
|
|
36
|
-
.test('is-a-plugin-name', 'is not a plugin name', function (value) {
|
|
37
|
-
return [undefined, 'admin', ...Object.keys(strapi.plugins)].includes(value)
|
|
38
|
-
? true
|
|
39
|
-
: this.createError({ path: this.path, message: `${this.path} is not an existing plugin` });
|
|
40
|
-
});
|
|
41
|
-
|
|
42
|
-
const arrayOfConditionNames = yup
|
|
43
|
-
.array()
|
|
44
|
-
.of(yup.string())
|
|
45
|
-
.test('is-an-array-of-conditions', 'is not a plugin name', function (value) {
|
|
46
|
-
const ids = strapi.admin.services.permission.conditionProvider.keys();
|
|
47
|
-
return _.isUndefined(value) || _.difference(value, ids).length === 0
|
|
48
|
-
? true
|
|
49
|
-
: this.createError({ path: this.path, message: `contains conditions that don't exist` });
|
|
50
|
-
});
|
|
51
|
-
|
|
52
|
-
const permissionsAreEquals = (a, b) =>
|
|
53
|
-
a.action === b.action && (a.subject === b.subject || (_.isNil(a.subject) && _.isNil(b.subject)));
|
|
54
|
-
|
|
55
|
-
const checkNoDuplicatedPermissions = (permissions) =>
|
|
56
|
-
!Array.isArray(permissions) ||
|
|
57
|
-
permissions.every((permA, i) =>
|
|
58
|
-
permissions.slice(i + 1).every((permB) => !permissionsAreEquals(permA, permB))
|
|
59
|
-
);
|
|
60
|
-
|
|
61
|
-
const checkNilFields = (action) =>
|
|
62
|
-
function (fields) {
|
|
63
|
-
// If the parent has no action field, then we ignore this test
|
|
64
|
-
if (isNil(action)) {
|
|
65
|
-
return true;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
return actionDomain.appliesToProperty('fields', action) || isNil(fields);
|
|
69
|
-
};
|
|
70
|
-
|
|
71
|
-
const fieldsPropertyValidation = (action) =>
|
|
72
|
-
yup
|
|
73
|
-
.array()
|
|
74
|
-
.of(yup.string())
|
|
75
|
-
.nullable()
|
|
76
|
-
.test(
|
|
77
|
-
'field-nested',
|
|
78
|
-
'Fields format are incorrect (bad nesting).',
|
|
79
|
-
checkFieldsAreCorrectlyNested
|
|
80
|
-
)
|
|
81
|
-
.test(
|
|
82
|
-
'field-nested',
|
|
83
|
-
'Fields format are incorrect (duplicates).',
|
|
84
|
-
checkFieldsDontHaveDuplicates
|
|
85
|
-
)
|
|
86
|
-
.test(
|
|
87
|
-
'fields-restriction',
|
|
88
|
-
'The permission at ${path} must have fields set to null or undefined',
|
|
89
|
-
checkNilFields(action)
|
|
90
|
-
);
|
|
91
|
-
|
|
92
|
-
const permission = yup
|
|
93
|
-
.object()
|
|
94
|
-
.shape({
|
|
95
|
-
action: yup
|
|
96
|
-
.string()
|
|
97
|
-
.required()
|
|
98
|
-
.test('action-validity', 'action is not an existing permission action', function (actionId) {
|
|
99
|
-
// If the action field is Nil, ignore the test and let the required check handle the error
|
|
100
|
-
if (isNil(actionId)) {
|
|
101
|
-
return true;
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
return !!getActionFromProvider(actionId);
|
|
105
|
-
}),
|
|
106
|
-
actionParameters: yup.object().nullable(),
|
|
107
|
-
subject: yup
|
|
108
|
-
.string()
|
|
109
|
-
.nullable()
|
|
110
|
-
.test('subject-validity', 'Invalid subject submitted', function (subject) {
|
|
111
|
-
const action = getActionFromProvider(this.options.parent.action);
|
|
112
|
-
|
|
113
|
-
if (!action) {
|
|
114
|
-
return true;
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
if (isNil(action.subjects)) {
|
|
118
|
-
return isNil(subject);
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
if (isArray(action.subjects)) {
|
|
122
|
-
return action.subjects.includes(subject);
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
return false;
|
|
126
|
-
}),
|
|
127
|
-
properties: yup
|
|
128
|
-
.object()
|
|
129
|
-
.test('properties-structure', 'Invalid property set at ${path}', function (properties) {
|
|
130
|
-
const action = getActionFromProvider(this.options.parent.action);
|
|
131
|
-
const hasNoProperties = isEmpty(properties) || isNil(properties);
|
|
132
|
-
|
|
133
|
-
if (!has('options.applyToProperties', action)) {
|
|
134
|
-
return hasNoProperties;
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
if (hasNoProperties) {
|
|
138
|
-
return true;
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
const { applyToProperties } = action.options;
|
|
142
|
-
|
|
143
|
-
if (!isArray(applyToProperties)) {
|
|
144
|
-
return false;
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
return Object.keys(properties).every((property) => applyToProperties.includes(property));
|
|
148
|
-
})
|
|
149
|
-
.test(
|
|
150
|
-
'fields-property',
|
|
151
|
-
'Invalid fields property at ${path}',
|
|
152
|
-
async function (properties = {}) {
|
|
153
|
-
const action = getActionFromProvider(this.options.parent.action);
|
|
154
|
-
|
|
155
|
-
if (!action || !properties) {
|
|
156
|
-
return true;
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
if (!actionDomain.appliesToProperty('fields', action)) {
|
|
160
|
-
return true;
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
try {
|
|
164
|
-
await fieldsPropertyValidation(action).validate(properties.fields, {
|
|
165
|
-
strict: true,
|
|
166
|
-
abortEarly: false,
|
|
167
|
-
});
|
|
168
|
-
return true;
|
|
169
|
-
} catch (e) {
|
|
170
|
-
// Propagate fieldsPropertyValidation error with updated path
|
|
171
|
-
throw this.createError({
|
|
172
|
-
message: e.message,
|
|
173
|
-
path: `${this.path}.fields`,
|
|
174
|
-
});
|
|
175
|
-
}
|
|
176
|
-
}
|
|
177
|
-
),
|
|
178
|
-
conditions: yup.array().of(yup.string()),
|
|
179
|
-
})
|
|
180
|
-
.noUnknown();
|
|
181
|
-
|
|
182
|
-
const updatePermissions = yup
|
|
183
|
-
.object()
|
|
184
|
-
.shape({
|
|
185
|
-
permissions: yup
|
|
186
|
-
.array()
|
|
187
|
-
.required()
|
|
188
|
-
.of(permission)
|
|
189
|
-
.test(
|
|
190
|
-
'duplicated-permissions',
|
|
191
|
-
'Some permissions are duplicated (same action and subject)',
|
|
192
|
-
checkNoDuplicatedPermissions
|
|
193
|
-
),
|
|
194
|
-
})
|
|
195
|
-
.required()
|
|
196
|
-
.noUnknown();
|
|
197
|
-
|
|
198
|
-
module.exports = {
|
|
199
|
-
email,
|
|
200
|
-
firstname,
|
|
201
|
-
lastname,
|
|
202
|
-
username,
|
|
203
|
-
password,
|
|
204
|
-
roles,
|
|
205
|
-
isAPluginName,
|
|
206
|
-
arrayOfConditionNames,
|
|
207
|
-
permission,
|
|
208
|
-
updatePermissions,
|
|
209
|
-
};
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
const { yup, validateYupSchema } = require('@strapi/utils');
|
|
4
|
-
const { getService } = require('../utils');
|
|
5
|
-
const validators = require('./common-validators');
|
|
6
|
-
|
|
7
|
-
const checkPermissionsSchema = yup.object().shape({
|
|
8
|
-
permissions: yup.array().of(
|
|
9
|
-
yup
|
|
10
|
-
.object()
|
|
11
|
-
.shape({
|
|
12
|
-
action: yup.string().required(),
|
|
13
|
-
subject: yup.string().nullable(),
|
|
14
|
-
field: yup.string(),
|
|
15
|
-
})
|
|
16
|
-
.noUnknown()
|
|
17
|
-
),
|
|
18
|
-
});
|
|
19
|
-
|
|
20
|
-
const checkPermissionsExist = function (permissions) {
|
|
21
|
-
const existingActions = getService('permission').actionProvider.values();
|
|
22
|
-
const failIndex = permissions.findIndex(
|
|
23
|
-
(permission) =>
|
|
24
|
-
!existingActions.some(
|
|
25
|
-
(action) =>
|
|
26
|
-
action.actionId === permission.action &&
|
|
27
|
-
(action.section !== 'contentTypes' || action.subjects.includes(permission.subject))
|
|
28
|
-
)
|
|
29
|
-
);
|
|
30
|
-
|
|
31
|
-
return failIndex === -1
|
|
32
|
-
? true
|
|
33
|
-
: this.createError({
|
|
34
|
-
path: 'permissions',
|
|
35
|
-
message: `[${failIndex}] is not an existing permission action`,
|
|
36
|
-
});
|
|
37
|
-
};
|
|
38
|
-
|
|
39
|
-
const actionsExistSchema = yup
|
|
40
|
-
.array()
|
|
41
|
-
.of(
|
|
42
|
-
yup.object().shape({
|
|
43
|
-
conditions: yup.array().of(yup.string()),
|
|
44
|
-
})
|
|
45
|
-
)
|
|
46
|
-
.test('actions-exist', '', checkPermissionsExist);
|
|
47
|
-
|
|
48
|
-
// exports
|
|
49
|
-
module.exports = {
|
|
50
|
-
validatedUpdatePermissionsInput: validateYupSchema(validators.updatePermissions),
|
|
51
|
-
validatePermissionsExist: validateYupSchema(actionsExistSchema),
|
|
52
|
-
validateCheckPermissionsInput: validateYupSchema(checkPermissionsSchema),
|
|
53
|
-
};
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
const _ = require('lodash');
|
|
4
|
-
const { yup, validateYupSchema } = require('@strapi/utils');
|
|
5
|
-
|
|
6
|
-
const hasPermissionsSchema = yup.object({
|
|
7
|
-
actions: yup.array().of(
|
|
8
|
-
yup.lazy((val) => {
|
|
9
|
-
if (_.isArray(val)) {
|
|
10
|
-
return yup.array().of(yup.string()).min(1).max(2);
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
if (_.isString(val)) {
|
|
14
|
-
return yup.string().required();
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
return yup.object().shape({
|
|
18
|
-
action: yup.string().required(),
|
|
19
|
-
subject: yup.string(),
|
|
20
|
-
});
|
|
21
|
-
})
|
|
22
|
-
),
|
|
23
|
-
});
|
|
24
|
-
|
|
25
|
-
module.exports = {
|
|
26
|
-
validateHasPermissionsInput: validateYupSchema(hasPermissionsSchema),
|
|
27
|
-
};
|