@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.
@@ -98,3 +98,5 @@ export function BenefitsBlock({
98
98
  </section>
99
99
  )
100
100
  }
101
+
102
+ export default BenefitsBlock
@@ -98,3 +98,5 @@ export function CTASectionBlock({
98
98
  </section>
99
99
  )
100
100
  }
101
+
102
+ export default CTASectionBlock
@@ -154,3 +154,5 @@ export function FaqAccordionBlock({
154
154
  </section>
155
155
  )
156
156
  }
157
+
158
+ export default FaqAccordionBlock
@@ -110,3 +110,5 @@ export function FeaturesGridBlock({
110
110
  </section>
111
111
  )
112
112
  }
113
+
114
+ export default FeaturesGridBlock
@@ -98,3 +98,5 @@ export function HeroBlock({
98
98
  </section>
99
99
  )
100
100
  }
101
+
102
+ export default HeroBlock
@@ -230,3 +230,5 @@ export function HeroWithFormBlock({
230
230
  </section>
231
231
  )
232
232
  }
233
+
234
+ export default HeroWithFormBlock
@@ -134,3 +134,5 @@ export function JumbotronBlock({
134
134
  </section>
135
135
  )
136
136
  }
137
+
138
+ export default JumbotronBlock
@@ -152,3 +152,5 @@ export function LogoCloudBlock({
152
152
  </section>
153
153
  )
154
154
  }
155
+
156
+ export default LogoCloudBlock
@@ -195,3 +195,5 @@ export function PostContentBlock({
195
195
  </section>
196
196
  )
197
197
  }
198
+
199
+ export default PostContentBlock
@@ -152,3 +152,5 @@ export function PricingTableBlock({
152
152
  </section>
153
153
  )
154
154
  }
155
+
156
+ export default PricingTableBlock
@@ -133,3 +133,5 @@ export function SplitContentBlock({
133
133
  </section>
134
134
  )
135
135
  }
136
+
137
+ export default SplitContentBlock
@@ -122,3 +122,5 @@ export function StatsCounterBlock({
122
122
  </section>
123
123
  )
124
124
  }
125
+
126
+ export default StatsCounterBlock
@@ -112,3 +112,5 @@ export function TestimonialsBlock({
112
112
  </section>
113
113
  )
114
114
  }
115
+
116
+ export default TestimonialsBlock
@@ -97,3 +97,5 @@ export function TextContentBlock({
97
97
  </section>
98
98
  )
99
99
  }
100
+
101
+ export default TextContentBlock
@@ -265,3 +265,5 @@ function TimelineItemContent({
265
265
  </div>
266
266
  )
267
267
  }
268
+
269
+ export default TimelineBlock
@@ -268,3 +268,5 @@ export function VideoHeroBlock({
268
268
  </section>
269
269
  )
270
270
  }
271
+
272
+ export default VideoHeroBlock
@@ -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 - NOW IN permissions.config.ts
189
+ // TEAM ROLES - TWO LAYERS
181
190
  // =============================================================================
182
- // Team roles (additionalRoles, hierarchy, displayNames, descriptions) are now
183
- // defined in permissions.config.ts under the `roles` section.
184
- // This is the SINGLE SOURCE OF TRUTH for all permissions and roles.
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 roles, edit permissions.config.ts:
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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nextsparkjs/theme-default",
3
- "version": "0.1.0-beta.176",
3
+ "version": "0.1.0-beta.178",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "main": "./config/theme.config.ts",