domma-cms 0.115.1 → 0.115.2
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/bin/cli.js +6 -4
- package/bin/update.js +2 -1
- package/config/plugins.json +5 -0
- package/package.json +1 -1
package/bin/cli.js
CHANGED
|
@@ -249,9 +249,11 @@ const DEFAULT_NAV = {
|
|
|
249
249
|
position: 'sticky'
|
|
250
250
|
};
|
|
251
251
|
|
|
252
|
-
// Discover the bundled plugins and list them in plugins.json, all switched off
|
|
253
|
-
// a fresh project enables what it wants from the Marketplace
|
|
254
|
-
//
|
|
252
|
+
// Discover the bundled plugins and list them in plugins.json, all switched off -
|
|
253
|
+
// a fresh project enables what it wants from the Marketplace - except the ones
|
|
254
|
+
// every site has on arrival: Support (how a customer reaches Domma, whatever
|
|
255
|
+
// their tier). (Analytics, the theme switcher and the effects are core now.)
|
|
256
|
+
const ON_ARRIVAL = new Set(['support']);
|
|
255
257
|
const DEFAULT_PLUGINS = {};
|
|
256
258
|
try {
|
|
257
259
|
const pluginsRoot = path.join(target, 'plugins');
|
|
@@ -262,7 +264,7 @@ try {
|
|
|
262
264
|
const manifestPath = path.join(pluginsRoot, name, 'plugin.json');
|
|
263
265
|
try {
|
|
264
266
|
JSON.parse(readFileSync(manifestPath, 'utf8')); // validate manifest exists
|
|
265
|
-
DEFAULT_PLUGINS[name] = {enabled:
|
|
267
|
+
DEFAULT_PLUGINS[name] = {enabled: ON_ARRIVAL.has(name), settings: {}};
|
|
266
268
|
} catch { /* no valid plugin.json - skip */
|
|
267
269
|
}
|
|
268
270
|
}
|
package/bin/update.js
CHANGED
|
@@ -441,7 +441,8 @@ export default async function update(_positional, flags) {
|
|
|
441
441
|
// left off protects nobody. Only the FIRST time: a site that switched it
|
|
442
442
|
// off keeps it off.)
|
|
443
443
|
// -------------------------------------------------------------------------
|
|
444
|
-
|
|
444
|
+
// support: every site can reach Domma, whatever its tier (2026-10-04).
|
|
445
|
+
const ON_ARRIVAL = new Set(['security', 'support']);
|
|
445
446
|
|
|
446
447
|
const pluginsJsonPath = path.join(cwd, 'config/plugins.json');
|
|
447
448
|
if (newPlugins.length > 0 && existsSync(pluginsJsonPath)) {
|
package/config/plugins.json
CHANGED