Skip to content

Commit 86ef6ae

Browse files
committed
fix: remove helper-plugin dependency
1 parent 51a9200 commit 86ef6ae

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

packages/core/admin/index.ts

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
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';
66
import * as yup from 'yup';
77
import pluginPkg from '../package.json';
88
import EditView from './components/EditView';
@@ -13,16 +13,13 @@ import CheckboxConfirmation from './components/ContentManagerHooks/ConfirmationC
1313

1414
import { PluginIcon } from './components/PluginIcon';
1515

16-
const pluginDescription = pluginPkg.strapi.description || pluginPkg.description;
1716
const { name } = pluginPkg.strapi;
1817

1918
export 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({

packages/core/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@
6767
"styled-components": "^6"
6868
},
6969
"dependencies": {
70-
"@pluginpal/webtools-helper-plugin": "^1.0.0-beta.4",
7170
"formik": "^2.4.0",
7271
"lodash": "^4.17.21",
7372
"react-copy-to-clipboard": "^5.1.0",

0 commit comments

Comments
 (0)