22/* eslint-disable @typescript-eslint/no-unsafe-call */
33/* eslint-disable @typescript-eslint/no-unsafe-member-access */
44/* eslint-disable @typescript-eslint/no-unsafe-assignment */
5- import { AdminApp } from '@pluginpal/webtools-helper-plugin ' ;
5+ import { StrapiApp } from '@strapi/admin/strapi-admin ' ;
66import * as yup from 'yup' ;
77import pluginPkg from '../package.json' ;
88import EditView from './components/EditView' ;
@@ -13,16 +13,13 @@ import CheckboxConfirmation from './components/ContentManagerHooks/ConfirmationC
1313
1414import { PluginIcon } from './components/PluginIcon' ;
1515
16- const pluginDescription = pluginPkg . strapi . description || pluginPkg . description ;
1716const { name } = pluginPkg . strapi ;
1817
1918export default {
20- register ( app : AdminApp ) {
19+ register ( app : StrapiApp ) {
2120 app . registerPlugin ( {
22- description : pluginDescription ,
2321 id : pluginId ,
2422 isReady : true ,
25- isRequired : pluginPkg . strapi . required || false ,
2623 name,
2724 injectionZones : {
2825 webtoolsSidebar : {
@@ -51,7 +48,7 @@ export default {
5148 permissions : [ ] , // permissions to apply to the link
5249 } ) ;
5350 } ,
54- bootstrap ( app : AdminApp ) {
51+ bootstrap ( app : StrapiApp ) {
5552 app . getPlugin ( 'content-manager' ) ?. injectComponent ( 'editView' , 'right-links' , {
5653 name : 'url-alias-edit-view' ,
5754 Component : EditView ,
@@ -61,8 +58,10 @@ export default {
6158
6259 if ( ctbPlugin ) {
6360 const ctbFormsAPI = ctbPlugin . apis . forms ;
61+ // @ts -expect-error
6462 ctbFormsAPI . components . add ( { id : 'webtools.checkboxConfirmation' , component : CheckboxConfirmation } ) ;
6563
64+ // @ts -expect-error
6665 ctbFormsAPI . extendContentType ( {
6766 validator : ( ) => ( {
6867 webtools : yup . object ( ) . shape ( {
0 commit comments