@nextsparkjs/theme-default 0.1.0-beta.176 → 0.1.0-beta.178
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/blocks/benefits/component.tsx +2 -0
- package/blocks/cta-section/component.tsx +2 -0
- package/blocks/faq-accordion/component.tsx +2 -0
- package/blocks/features-grid/component.tsx +2 -0
- package/blocks/hero/component.tsx +2 -0
- package/blocks/hero-with-form/component.tsx +2 -0
- package/blocks/jumbotron/component.tsx +2 -0
- package/blocks/logo-cloud/component.tsx +2 -0
- package/blocks/post-content/component.tsx +2 -0
- package/blocks/pricing-table/component.tsx +2 -0
- package/blocks/split-content/component.tsx +2 -0
- package/blocks/stats-counter/component.tsx +2 -0
- package/blocks/testimonials/component.tsx +2 -0
- package/blocks/text-content/component.tsx +2 -0
- package/blocks/timeline/component.tsx +2 -0
- package/blocks/video-hero/component.tsx +2 -0
- package/config/app.config.ts +18 -5
- package/config/features.config.ts +10 -0
- package/package.json +1 -1
package/config/app.config.ts
CHANGED
|
@@ -32,6 +32,15 @@ export const APP_CONFIG_OVERRIDES = {
|
|
|
32
32
|
allowLeaveTeam: true,
|
|
33
33
|
allowCreateTeams: true,
|
|
34
34
|
},
|
|
35
|
+
|
|
36
|
+
// Declarative, AUTHORITATIVE set of non-owner team roles (REPLACE model).
|
|
37
|
+
// 'owner' is always force-included and cannot be removed. Whatever you list
|
|
38
|
+
// here is exactly the active set — omitting `roles` entirely falls back to the
|
|
39
|
+
// core base (admin/member/viewer) + custom roles from permissions.config.
|
|
40
|
+
// Role DEFINITIONS (hierarchy, labels, permissions) live in permissions.config.ts;
|
|
41
|
+
// here you declare which of them are ACTIVE. 'editor' is a theme custom role.
|
|
42
|
+
roles: ['admin', 'member', 'viewer', 'editor'],
|
|
43
|
+
defaultTeamRole: 'member',
|
|
35
44
|
},
|
|
36
45
|
|
|
37
46
|
// =============================================================================
|
|
@@ -177,16 +186,20 @@ export const APP_CONFIG_OVERRIDES = {
|
|
|
177
186
|
},
|
|
178
187
|
|
|
179
188
|
// =============================================================================
|
|
180
|
-
// TEAM ROLES -
|
|
189
|
+
// TEAM ROLES - TWO LAYERS
|
|
181
190
|
// =============================================================================
|
|
182
|
-
//
|
|
183
|
-
//
|
|
184
|
-
//
|
|
191
|
+
// 1. ACTIVE SET: declared above in `teams.roles` (REPLACE model). This decides
|
|
192
|
+
// which team roles exist besides 'owner' (which is always force-included).
|
|
193
|
+
// 2. DEFINITIONS: hierarchy, display names, descriptions and per-action
|
|
194
|
+
// permissions live in permissions.config.ts under the `roles`/`teams` sections.
|
|
195
|
+
// This is the SINGLE SOURCE OF TRUTH for permissions.
|
|
185
196
|
//
|
|
186
197
|
// See: contents/themes/default/config/permissions.config.ts
|
|
187
198
|
//
|
|
188
|
-
// To add custom
|
|
199
|
+
// To add a custom role: DEFINE it in permissions.config.ts AND list it in
|
|
200
|
+
// `teams.roles` above so it becomes active.
|
|
189
201
|
// ```
|
|
202
|
+
// // permissions.config.ts
|
|
190
203
|
// roles: {
|
|
191
204
|
// additionalRoles: ['editor'],
|
|
192
205
|
// hierarchy: { editor: 5 },
|
|
@@ -101,6 +101,16 @@ export default defineFeatures({
|
|
|
101
101
|
docs: [],
|
|
102
102
|
},
|
|
103
103
|
|
|
104
|
+
'media-library': {
|
|
105
|
+
name: 'Media Library',
|
|
106
|
+
description: 'Media upload, storage, and asset management',
|
|
107
|
+
category: 'content',
|
|
108
|
+
icon: 'image',
|
|
109
|
+
entities: ['media'],
|
|
110
|
+
permissions: ['media.*'],
|
|
111
|
+
docs: ['21-media-library/*'],
|
|
112
|
+
},
|
|
113
|
+
|
|
104
114
|
// ===========================================================================
|
|
105
115
|
// CORE FEATURES
|
|
106
116
|
// Platform-level features that exist in all themes
|