@nextsparkjs/theme-default 0.1.0-beta.102 → 0.1.0-beta.104

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.
@@ -198,38 +198,18 @@ export const PERMISSIONS_CONFIG_OVERRIDES: ThemePermissionsConfig = {
198
198
  roles: ['owner', 'admin'],
199
199
  },
200
200
 
201
- // MEDIA MANAGEMENT
202
- {
203
- action: 'media.read',
204
- label: 'View Media',
205
- description: 'Can browse and view media files in the library',
206
- category: 'Media',
207
- roles: ['owner', 'admin', 'editor', 'member', 'viewer'],
208
- },
209
- {
210
- action: 'media.upload',
211
- label: 'Upload Media',
212
- description: 'Can upload images, videos, and other media files',
213
- category: 'Media',
214
- roles: ['owner', 'admin', 'editor'],
215
- },
216
- {
217
- action: 'media.update',
218
- label: 'Edit Media',
219
- description: 'Can edit media metadata, tags, and captions',
220
- category: 'Media',
221
- roles: ['owner', 'admin', 'editor'],
222
- },
223
- {
224
- action: 'media.delete',
225
- label: 'Delete Media',
226
- description: 'Can permanently delete media files',
227
- category: 'Media',
228
- roles: ['owner', 'admin'],
229
- dangerous: true,
230
- },
231
201
  ],
232
202
 
203
+ // ==========================================
204
+ // CORE PERMISSION OVERRIDES
205
+ // ==========================================
206
+ // Extend core media permissions with the 'editor' custom role
207
+ overrides: {
208
+ 'media.read': { roles: ['owner', 'admin', 'editor', 'member', 'viewer'] },
209
+ 'media.upload': { roles: ['owner', 'admin', 'editor'] },
210
+ 'media.update': { roles: ['owner', 'admin', 'editor'] },
211
+ },
212
+
233
213
  // ==========================================
234
214
  // UI SECTIONS
235
215
  // ==========================================
@@ -258,12 +238,6 @@ export const PERMISSIONS_CONFIG_OVERRIDES: ThemePermissionsConfig = {
258
238
  description: 'Blog publishing and management features',
259
239
  categories: ['Blog'],
260
240
  },
261
- {
262
- id: 'media',
263
- label: 'Media',
264
- description: 'Media library management',
265
- categories: ['Media'],
266
- },
267
241
  ],
268
242
  }
269
243
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nextsparkjs/theme-default",
3
- "version": "0.1.0-beta.102",
3
+ "version": "0.1.0-beta.104",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "main": "./config/theme.config.ts",