@growy/strapi-plugin-encrypted-field 2.1.3 → 2.1.5
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/README.md +4 -2
- package/admin/src/index.js +20 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -20,7 +20,7 @@ Plugin oficial de **Growy AI** para Strapi que proporciona un campo personalizad
|
|
|
20
20
|
- ✅ **Gestión de claves robusta** con validación y mensajes de error claros
|
|
21
21
|
- ✅ **Datos cifrados** en base de datos con IV único y Auth Tag
|
|
22
22
|
- ✅ **Reutilizable** en cualquier colección o componente
|
|
23
|
-
- ✅ **
|
|
23
|
+
- ✅ **Compatible con Strapi 5** - Utiliza componentes actualizados del Design System v2
|
|
24
24
|
|
|
25
25
|
## Instalación
|
|
26
26
|
|
|
@@ -99,10 +99,12 @@ npm run develop
|
|
|
99
99
|
|
|
100
100
|
## Requisitos
|
|
101
101
|
|
|
102
|
-
- **Strapi**: v5.0.0 o superior
|
|
102
|
+
- **Strapi**: v5.0.0 o superior (compatible con Design System v2)
|
|
103
103
|
- **Node.js**: 18.x - 22.x
|
|
104
104
|
- **npm**: 6.0.0 o superior
|
|
105
105
|
|
|
106
|
+
⚠️ **Nota sobre Strapi 5**: Esta versión utiliza los componentes actualizados del Design System v2. Si tienes problemas con componentes de layout, asegúrate de que tu proyecto esté actualizado a Strapi 5.
|
|
107
|
+
|
|
106
108
|
## Validación de datos
|
|
107
109
|
|
|
108
110
|
El plugin soporta validación antes del cifrado:
|
package/admin/src/index.js
CHANGED
|
@@ -101,7 +101,7 @@ export default {
|
|
|
101
101
|
},
|
|
102
102
|
});
|
|
103
103
|
|
|
104
|
-
// Agregar página de auditoría al menú
|
|
104
|
+
// Agregar página de auditoría al menú - Strapi 5 approach
|
|
105
105
|
app.addMenuLink({
|
|
106
106
|
to: '/plugins/encrypted-field/audit-logs',
|
|
107
107
|
icon: 'chartLine',
|
|
@@ -120,6 +120,25 @@ export default {
|
|
|
120
120
|
},
|
|
121
121
|
],
|
|
122
122
|
});
|
|
123
|
+
|
|
124
|
+
// También agregar como página independiente para acceso directo
|
|
125
|
+
app.addSettingsLink('plugins', {
|
|
126
|
+
id: 'encrypted-field-audit-logs',
|
|
127
|
+
intlLabel: {
|
|
128
|
+
id: 'encrypted-field.menu.audit-logs',
|
|
129
|
+
defaultMessage: 'Logs de Auditoría',
|
|
130
|
+
},
|
|
131
|
+
Component: async () => {
|
|
132
|
+
const { AuditLogs } = await import('./pages/AuditLogs');
|
|
133
|
+
return AuditLogs;
|
|
134
|
+
},
|
|
135
|
+
permissions: [
|
|
136
|
+
{
|
|
137
|
+
action: 'plugin::encrypted-field.read',
|
|
138
|
+
subject: null,
|
|
139
|
+
},
|
|
140
|
+
],
|
|
141
|
+
});
|
|
123
142
|
},
|
|
124
143
|
|
|
125
144
|
async registerTrads({ locales }) {
|