@leadcms/sdk 2.2.3 → 3.0.0
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 +34 -0
- package/dist/cli/bin/generate-env.d.ts +6 -0
- package/dist/cli/bin/generate-env.d.ts.map +1 -0
- package/dist/cli/bin/generate-env.js +7 -0
- package/dist/cli/bin/generate-env.js.map +1 -0
- package/dist/cli/bin/init.d.ts +6 -0
- package/dist/cli/bin/init.d.ts.map +1 -0
- package/dist/cli/bin/init.js +7 -0
- package/dist/cli/bin/init.js.map +1 -0
- package/dist/cli/bin/login.d.ts +6 -0
- package/dist/cli/bin/login.d.ts.map +1 -0
- package/dist/cli/bin/login.js +10 -0
- package/dist/cli/bin/login.js.map +1 -0
- package/dist/cli/bin/pull-all.d.ts +6 -0
- package/dist/cli/bin/pull-all.d.ts.map +1 -0
- package/dist/cli/bin/pull-all.js +10 -0
- package/dist/cli/bin/pull-all.js.map +1 -0
- package/dist/cli/bin/pull-comments.d.ts +6 -0
- package/dist/cli/bin/pull-comments.d.ts.map +1 -0
- package/dist/cli/bin/pull-comments.js +10 -0
- package/dist/cli/bin/pull-comments.js.map +1 -0
- package/dist/cli/bin/pull-content.d.ts +6 -0
- package/dist/cli/bin/pull-content.d.ts.map +1 -0
- package/dist/cli/bin/pull-content.js +10 -0
- package/dist/cli/bin/pull-content.js.map +1 -0
- package/dist/cli/bin/pull-media.d.ts +6 -0
- package/dist/cli/bin/pull-media.d.ts.map +1 -0
- package/dist/cli/bin/pull-media.js +10 -0
- package/dist/cli/bin/pull-media.js.map +1 -0
- package/dist/cli/bin/push.d.ts +6 -0
- package/dist/cli/bin/push.d.ts.map +1 -0
- package/dist/cli/bin/push.js +25 -0
- package/dist/cli/bin/push.js.map +1 -0
- package/dist/cli/bin/status.d.ts +6 -0
- package/dist/cli/bin/status.d.ts.map +1 -0
- package/dist/cli/bin/status.js +10 -0
- package/dist/cli/bin/status.js.map +1 -0
- package/dist/cli/bin/watch.d.ts +6 -0
- package/dist/cli/bin/watch.d.ts.map +1 -0
- package/dist/cli/bin/watch.js +7 -0
- package/dist/cli/bin/watch.js.map +1 -0
- package/dist/cli/index.js +13 -11
- package/dist/cli/index.js.map +1 -1
- package/dist/lib/cms.d.ts +75 -25
- package/dist/lib/cms.d.ts.map +1 -1
- package/dist/lib/cms.js +160 -107
- package/dist/lib/cms.js.map +1 -1
- package/dist/lib/config.d.ts +13 -1
- package/dist/lib/config.d.ts.map +1 -1
- package/dist/lib/config.js +25 -0
- package/dist/lib/config.js.map +1 -1
- package/dist/scripts/fetch-leadcms-comments.d.ts.map +1 -1
- package/dist/scripts/fetch-leadcms-comments.js +2 -8
- package/dist/scripts/fetch-leadcms-comments.js.map +1 -1
- package/dist/scripts/fetch-leadcms-content.d.ts.map +1 -1
- package/dist/scripts/fetch-leadcms-content.js +0 -8
- package/dist/scripts/fetch-leadcms-content.js.map +1 -1
- package/dist/scripts/login-leadcms.d.ts +0 -1
- package/dist/scripts/login-leadcms.d.ts.map +1 -1
- package/dist/scripts/login-leadcms.js +2 -8
- package/dist/scripts/login-leadcms.js.map +1 -1
- package/dist/scripts/pull-all.js +2 -7
- package/dist/scripts/pull-all.js.map +1 -1
- package/dist/scripts/pull-comments.d.ts.map +1 -1
- package/dist/scripts/pull-comments.js +2 -7
- package/dist/scripts/pull-comments.js.map +1 -1
- package/dist/scripts/pull-content.d.ts.map +1 -1
- package/dist/scripts/pull-content.js +2 -7
- package/dist/scripts/pull-content.js.map +1 -1
- package/dist/scripts/pull-media.d.ts.map +1 -1
- package/dist/scripts/pull-media.js +2 -7
- package/dist/scripts/pull-media.js.map +1 -1
- package/dist/scripts/push-leadcms-content.d.ts.map +1 -1
- package/dist/scripts/push-leadcms-content.js +0 -22
- package/dist/scripts/push-leadcms-content.js.map +1 -1
- package/dist/scripts/status-leadcms-content.d.ts.map +1 -1
- package/dist/scripts/status-leadcms-content.js +2 -4
- package/dist/scripts/status-leadcms-content.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -509,6 +509,40 @@ const routes = getAllContentRoutes();
|
|
|
509
509
|
|
|
510
510
|
**📖 See [Content Management Guide](./docs/CONTENT_MANAGEMENT.md)** for complete API documentation, framework integration examples, and advanced features.
|
|
511
511
|
|
|
512
|
+
#### Preview Mode (Zero Configuration)
|
|
513
|
+
|
|
514
|
+
The SDK automatically detects preview slugs and enables draft content access without requiring explicit configuration:
|
|
515
|
+
|
|
516
|
+
```typescript
|
|
517
|
+
import { getCMSContentBySlugForLocale } from '@leadcms/sdk';
|
|
518
|
+
|
|
519
|
+
// Normal slug - only returns published content
|
|
520
|
+
const published = getCMSContentBySlugForLocale('home', 'en');
|
|
521
|
+
// Returns: null if content has no publishedAt
|
|
522
|
+
|
|
523
|
+
// Preview slug with GUID - automatically enables draft access
|
|
524
|
+
const preview = getCMSContentBySlugForLocale(
|
|
525
|
+
'home-550e8400-e29b-41d4-a716-446655440000',
|
|
526
|
+
'en'
|
|
527
|
+
);
|
|
528
|
+
// Returns: draft content even without publishedAt
|
|
529
|
+
```
|
|
530
|
+
|
|
531
|
+
**How it works:**
|
|
532
|
+
- When a slug contains a GUID pattern (e.g., `home-{userUid}`), the SDK automatically:
|
|
533
|
+
1. Detects the GUID suffix
|
|
534
|
+
2. Extracts the base slug and userUid
|
|
535
|
+
3. Enables draft content access for this request
|
|
536
|
+
4. Returns user's draft version or falls back to base content
|
|
537
|
+
|
|
538
|
+
**Benefits:**
|
|
539
|
+
- ✅ Zero configuration - works automatically with LeadCMS preview URLs
|
|
540
|
+
- 🔒 Secure - only preview slugs (with valid GUID) can access drafts
|
|
541
|
+
- 🔄 Backward compatible - normal slugs continue to require `publishedAt`
|
|
542
|
+
- 🚀 Developer-friendly - no additional parameters needed
|
|
543
|
+
|
|
544
|
+
**📖 See [Draft Handling Guide](./docs/DRAFT_HANDLING.md)** for more details on preview mode and draft content handling.
|
|
545
|
+
|
|
512
546
|
### Media API
|
|
513
547
|
|
|
514
548
|
Media files are automatically synced during content pull:
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generate-env.d.ts","sourceRoot":"","sources":["../../../src/cli/bin/generate-env.ts"],"names":[],"mappings":";AACA;;GAEG;AAGH,OAAO,kCAAkC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generate-env.js","sourceRoot":"","sources":["../../../src/cli/bin/generate-env.ts"],"names":[],"mappings":";AACA;;GAEG;AAEH,kDAAkD;AAClD,OAAO,kCAAkC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../../../src/cli/bin/init.ts"],"names":[],"mappings":";AACA;;GAEG;AAGH,OAAO,+BAA+B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"init.js","sourceRoot":"","sources":["../../../src/cli/bin/init.ts"],"names":[],"mappings":";AACA;;GAEG;AAEH,kFAAkF;AAClF,OAAO,+BAA+B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"login.d.ts","sourceRoot":"","sources":["../../../src/cli/bin/login.ts"],"names":[],"mappings":";AACA;;GAEG"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
/**
|
|
3
|
+
* LeadCMS Login CLI Entry Point
|
|
4
|
+
*/
|
|
5
|
+
import { loginLeadCMS } from '../../scripts/login-leadcms.js';
|
|
6
|
+
loginLeadCMS().catch((error) => {
|
|
7
|
+
console.error('Error:', error.message);
|
|
8
|
+
process.exit(1);
|
|
9
|
+
});
|
|
10
|
+
//# sourceMappingURL=login.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"login.js","sourceRoot":"","sources":["../../../src/cli/bin/login.ts"],"names":[],"mappings":";AACA;;GAEG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AAE9D,YAAY,EAAE,CAAC,KAAK,CAAC,CAAC,KAAK,EAAE,EAAE;IAC7B,OAAO,CAAC,KAAK,CAAC,QAAQ,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC;IACvC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAClB,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pull-all.d.ts","sourceRoot":"","sources":["../../../src/cli/bin/pull-all.ts"],"names":[],"mappings":";AACA;;GAEG"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
/**
|
|
3
|
+
* LeadCMS Pull All CLI Entry Point
|
|
4
|
+
*/
|
|
5
|
+
import { pullAll } from '../../scripts/pull-all.js';
|
|
6
|
+
pullAll().catch((error) => {
|
|
7
|
+
console.error('Error running LeadCMS pull:', error.message);
|
|
8
|
+
process.exit(1);
|
|
9
|
+
});
|
|
10
|
+
//# sourceMappingURL=pull-all.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pull-all.js","sourceRoot":"","sources":["../../../src/cli/bin/pull-all.ts"],"names":[],"mappings":";AACA;;GAEG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAC;AAEpD,OAAO,EAAE,CAAC,KAAK,CAAC,CAAC,KAAU,EAAE,EAAE;IAC7B,OAAO,CAAC,KAAK,CAAC,6BAA6B,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC;IAC5D,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAClB,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pull-comments.d.ts","sourceRoot":"","sources":["../../../src/cli/bin/pull-comments.ts"],"names":[],"mappings":";AACA;;GAEG"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
/**
|
|
3
|
+
* LeadCMS Pull Comments CLI Entry Point
|
|
4
|
+
*/
|
|
5
|
+
import { pullComments } from '../../scripts/pull-comments.js';
|
|
6
|
+
pullComments().catch((error) => {
|
|
7
|
+
console.error('Error running LeadCMS pull comments:', error.message);
|
|
8
|
+
process.exit(1);
|
|
9
|
+
});
|
|
10
|
+
//# sourceMappingURL=pull-comments.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pull-comments.js","sourceRoot":"","sources":["../../../src/cli/bin/pull-comments.ts"],"names":[],"mappings":";AACA;;GAEG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AAE9D,YAAY,EAAE,CAAC,KAAK,CAAC,CAAC,KAAU,EAAE,EAAE;IAClC,OAAO,CAAC,KAAK,CAAC,sCAAsC,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC;IACrE,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAClB,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pull-content.d.ts","sourceRoot":"","sources":["../../../src/cli/bin/pull-content.ts"],"names":[],"mappings":";AACA;;GAEG"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
/**
|
|
3
|
+
* LeadCMS Pull Content CLI Entry Point
|
|
4
|
+
*/
|
|
5
|
+
import { pullContent } from '../../scripts/pull-content.js';
|
|
6
|
+
pullContent().catch((error) => {
|
|
7
|
+
console.error('Error running LeadCMS pull content:', error.message);
|
|
8
|
+
process.exit(1);
|
|
9
|
+
});
|
|
10
|
+
//# sourceMappingURL=pull-content.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pull-content.js","sourceRoot":"","sources":["../../../src/cli/bin/pull-content.ts"],"names":[],"mappings":";AACA;;GAEG;AAEH,OAAO,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AAE5D,WAAW,EAAE,CAAC,KAAK,CAAC,CAAC,KAAU,EAAE,EAAE;IACjC,OAAO,CAAC,KAAK,CAAC,qCAAqC,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC;IACpE,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAClB,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pull-media.d.ts","sourceRoot":"","sources":["../../../src/cli/bin/pull-media.ts"],"names":[],"mappings":";AACA;;GAEG"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
/**
|
|
3
|
+
* LeadCMS Pull Media CLI Entry Point
|
|
4
|
+
*/
|
|
5
|
+
import { pullMedia } from '../../scripts/pull-media.js';
|
|
6
|
+
pullMedia().catch((error) => {
|
|
7
|
+
console.error('Error running LeadCMS pull media:', error.message);
|
|
8
|
+
process.exit(1);
|
|
9
|
+
});
|
|
10
|
+
//# sourceMappingURL=pull-media.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pull-media.js","sourceRoot":"","sources":["../../../src/cli/bin/pull-media.ts"],"names":[],"mappings":";AACA;;GAEG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AAExD,SAAS,EAAE,CAAC,KAAK,CAAC,CAAC,KAAU,EAAE,EAAE;IAC/B,OAAO,CAAC,KAAK,CAAC,mCAAmC,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC;IAClE,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAClB,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"push.d.ts","sourceRoot":"","sources":["../../../src/cli/bin/push.ts"],"names":[],"mappings":";AACA;;GAEG"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
/**
|
|
3
|
+
* LeadCMS Push CLI Entry Point
|
|
4
|
+
*/
|
|
5
|
+
import { pushLeadCMSContent } from '../../scripts/push-leadcms-content.js';
|
|
6
|
+
const args = process.argv.slice(2);
|
|
7
|
+
const statusOnly = args.includes('--status');
|
|
8
|
+
const force = args.includes('--force');
|
|
9
|
+
const dryRun = args.includes('--dry-run');
|
|
10
|
+
// Parse target ID or slug
|
|
11
|
+
let targetId;
|
|
12
|
+
let targetSlug;
|
|
13
|
+
const idIndex = args.findIndex(arg => arg === '--id');
|
|
14
|
+
if (idIndex !== -1 && args[idIndex + 1]) {
|
|
15
|
+
targetId = args[idIndex + 1];
|
|
16
|
+
}
|
|
17
|
+
const slugIndex = args.findIndex(arg => arg === '--slug');
|
|
18
|
+
if (slugIndex !== -1 && args[slugIndex + 1]) {
|
|
19
|
+
targetSlug = args[slugIndex + 1];
|
|
20
|
+
}
|
|
21
|
+
pushLeadCMSContent({ statusOnly, force, targetId, targetSlug, dryRun }).catch((error) => {
|
|
22
|
+
console.error('Error running LeadCMS push:', error.message);
|
|
23
|
+
process.exit(1);
|
|
24
|
+
});
|
|
25
|
+
//# sourceMappingURL=push.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"push.js","sourceRoot":"","sources":["../../../src/cli/bin/push.ts"],"names":[],"mappings":";AACA;;GAEG;AAEH,OAAO,EAAE,kBAAkB,EAAE,MAAM,uCAAuC,CAAC;AAE3E,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;AACnC,MAAM,UAAU,GAAG,IAAI,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC;AAC7C,MAAM,KAAK,GAAG,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC;AACvC,MAAM,MAAM,GAAG,IAAI,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC;AAE1C,0BAA0B;AAC1B,IAAI,QAA4B,CAAC;AACjC,IAAI,UAA8B,CAAC;AAEnC,MAAM,OAAO,GAAG,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,KAAK,MAAM,CAAC,CAAC;AACtD,IAAI,OAAO,KAAK,CAAC,CAAC,IAAI,IAAI,CAAC,OAAO,GAAG,CAAC,CAAC,EAAE,CAAC;IACxC,QAAQ,GAAG,IAAI,CAAC,OAAO,GAAG,CAAC,CAAC,CAAC;AAC/B,CAAC;AAED,MAAM,SAAS,GAAG,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,KAAK,QAAQ,CAAC,CAAC;AAC1D,IAAI,SAAS,KAAK,CAAC,CAAC,IAAI,IAAI,CAAC,SAAS,GAAG,CAAC,CAAC,EAAE,CAAC;IAC5C,UAAU,GAAG,IAAI,CAAC,SAAS,GAAG,CAAC,CAAC,CAAC;AACnC,CAAC;AAED,kBAAkB,CAAC,EAAE,UAAU,EAAE,KAAK,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,KAAU,EAAE,EAAE;IAC3F,OAAO,CAAC,KAAK,CAAC,6BAA6B,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC;IAC5D,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAClB,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"status.d.ts","sourceRoot":"","sources":["../../../src/cli/bin/status.ts"],"names":[],"mappings":";AACA;;GAEG"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
/**
|
|
3
|
+
* LeadCMS Status CLI Entry Point
|
|
4
|
+
*/
|
|
5
|
+
import { statusLeadCMSContent } from '../../scripts/status-leadcms-content.js';
|
|
6
|
+
statusLeadCMSContent().catch((error) => {
|
|
7
|
+
console.error('Error running LeadCMS status:', error.message);
|
|
8
|
+
process.exit(1);
|
|
9
|
+
});
|
|
10
|
+
//# sourceMappingURL=status.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"status.js","sourceRoot":"","sources":["../../../src/cli/bin/status.ts"],"names":[],"mappings":";AACA;;GAEG;AAEH,OAAO,EAAE,oBAAoB,EAAE,MAAM,yCAAyC,CAAC;AAE/E,oBAAoB,EAAE,CAAC,KAAK,CAAC,CAAC,KAAU,EAAE,EAAE;IAC1C,OAAO,CAAC,KAAK,CAAC,+BAA+B,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC;IAC9D,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAClB,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"watch.d.ts","sourceRoot":"","sources":["../../../src/cli/bin/watch.ts"],"names":[],"mappings":";AACA;;GAEG;AAGH,OAAO,8BAA8B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"watch.js","sourceRoot":"","sources":["../../../src/cli/bin/watch.ts"],"names":[],"mappings":";AACA;;GAEG;AAEH,iDAAiD;AACjD,OAAO,8BAA8B,CAAC"}
|
package/dist/cli/index.js
CHANGED
|
@@ -7,10 +7,11 @@ const __filename = fileURLToPath(import.meta.url);
|
|
|
7
7
|
const __dirname = path.dirname(__filename);
|
|
8
8
|
const command = process.argv[2];
|
|
9
9
|
const commandArgs = process.argv.slice(3);
|
|
10
|
-
const scriptDir = path.join(__dirname, '../scripts');
|
|
11
10
|
function runScript(scriptName, args = []) {
|
|
12
|
-
|
|
13
|
-
const
|
|
11
|
+
// Use the new CLI bin files instead of the scripts directory
|
|
12
|
+
const binDir = path.join(__dirname, 'bin');
|
|
13
|
+
const binPath = path.join(binDir, scriptName);
|
|
14
|
+
const child = spawn('node', [binPath, ...args], {
|
|
14
15
|
stdio: 'inherit',
|
|
15
16
|
env: process.env
|
|
16
17
|
});
|
|
@@ -25,8 +26,9 @@ function runScriptSequence(scripts, args = []) {
|
|
|
25
26
|
return;
|
|
26
27
|
}
|
|
27
28
|
const scriptName = scripts[currentIndex];
|
|
28
|
-
const
|
|
29
|
-
const
|
|
29
|
+
const binDir = path.join(__dirname, 'bin');
|
|
30
|
+
const binPath = path.join(binDir, scriptName);
|
|
31
|
+
const child = spawn('node', [binPath, ...args], {
|
|
30
32
|
stdio: 'inherit',
|
|
31
33
|
env: process.env
|
|
32
34
|
});
|
|
@@ -73,23 +75,23 @@ switch (command) {
|
|
|
73
75
|
runScript('pull-comments.js');
|
|
74
76
|
break;
|
|
75
77
|
case 'push':
|
|
76
|
-
runScript('push
|
|
78
|
+
runScript('push.js', commandArgs);
|
|
77
79
|
break;
|
|
78
80
|
case 'status':
|
|
79
|
-
runScript('status
|
|
81
|
+
runScript('status.js', commandArgs);
|
|
80
82
|
break;
|
|
81
83
|
case 'watch':
|
|
82
|
-
runScript('
|
|
84
|
+
runScript('watch.js');
|
|
83
85
|
break;
|
|
84
86
|
case 'generate-env':
|
|
85
|
-
runScript('generate-env
|
|
87
|
+
runScript('generate-env.js');
|
|
86
88
|
break;
|
|
87
89
|
case 'init':
|
|
88
90
|
case 'config':
|
|
89
|
-
runScript('init
|
|
91
|
+
runScript('init.js');
|
|
90
92
|
break;
|
|
91
93
|
case 'login':
|
|
92
|
-
runScript('login
|
|
94
|
+
runScript('login.js');
|
|
93
95
|
break;
|
|
94
96
|
case 'docker':
|
|
95
97
|
case 'templates':
|
package/dist/cli/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/cli/index.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AACtC,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAE,aAAa,EAAE,MAAM,KAAK,CAAC;AACpC,OAAO,EAAE,YAAY,EAAE,MAAM,IAAI,CAAC;AAElC,MAAM,UAAU,GAAG,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAClD,MAAM,SAAS,G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AG,CAAC,oEAAoE,CAAC,CAAC;YAClF,OAAO,CAAC,GAAG,CAAC,+DAA+D,CAAC,CAAC;YAC7E,OAAO,CAAC,GAAG,CAAC,gEAAgE,CAAC,CAAC;QAEhF,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,OAAO,CAAC,KAAK,CAAC,wCAAwC,EAAE,KAAK,CAAC,CAAC;QACjE,CAAC;IACH,CAAC,CAAC,CAAC;AACL,CAAC"}
|
package/dist/lib/cms.d.ts
CHANGED
|
@@ -50,42 +50,79 @@ export declare function getAvailableLanguages(): string[];
|
|
|
50
50
|
*/
|
|
51
51
|
export declare function getContentDirForLocale(contentDir: string, locale?: string): string;
|
|
52
52
|
/**
|
|
53
|
-
* Get all content slugs for a specific locale
|
|
54
|
-
*
|
|
53
|
+
* Get all content slugs for a specific locale
|
|
54
|
+
*
|
|
55
|
+
* Draft handling is automatic based on environment:
|
|
56
|
+
* - In production mode: Only returns published content slugs
|
|
57
|
+
* - In development mode: Only includes drafts when requested with userUid
|
|
58
|
+
* - Can be overridden with LEADCMS_PREVIEW=false to disable drafts
|
|
59
|
+
* - Never includes user-specific draft slugs in general listings
|
|
60
|
+
*
|
|
61
|
+
* @param locale - Locale code (optional, uses default language if not provided)
|
|
55
62
|
* @param contentTypes - Optional array of content types to filter
|
|
56
|
-
* @param
|
|
57
|
-
* @
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
*
|
|
62
|
-
*
|
|
63
|
-
* @
|
|
64
|
-
*
|
|
65
|
-
*
|
|
63
|
+
* @param userUid - Optional user UID for user-specific draft content
|
|
64
|
+
* @returns Array of content slugs
|
|
65
|
+
*
|
|
66
|
+
* @example
|
|
67
|
+
* // In production - only published content
|
|
68
|
+
* getAllContentSlugsForLocale('en')
|
|
69
|
+
*
|
|
70
|
+
* @example
|
|
71
|
+
* // In development mode - published content by default
|
|
72
|
+
* process.env.NODE_ENV = 'development'
|
|
73
|
+
* getAllContentSlugsForLocale('en')
|
|
74
|
+
*
|
|
75
|
+
* @example
|
|
76
|
+
* // With user-specific content
|
|
77
|
+
* getAllContentSlugsForLocale('en', undefined, '550e8400-e29b-41d4-a716-446655440000')
|
|
66
78
|
*/
|
|
67
|
-
export declare function
|
|
79
|
+
export declare function getAllContentSlugsForLocale(locale?: string, contentTypes?: readonly string[], userUid?: string | null): string[];
|
|
68
80
|
/**
|
|
69
81
|
* Get content by slug for a specific locale
|
|
82
|
+
*
|
|
83
|
+
* Draft handling is automatic based on environment:
|
|
84
|
+
* - In production mode: Only returns published content
|
|
85
|
+
* - In development mode: Returns drafts when requested directly by slug
|
|
86
|
+
* - Can be overridden with LEADCMS_PREVIEW=false to disable drafts in development
|
|
87
|
+
* - User-specific content is returned when userUid is provided (fallback to default if not found)
|
|
88
|
+
*
|
|
89
|
+
* @param slug - Content slug (e.g., 'home' or 'home-550e8400-e29b-41d4-a716-446655440000')
|
|
90
|
+
* @param locale - Optional locale code
|
|
91
|
+
* @param userUid - Optional user UID for user-specific draft content
|
|
92
|
+
* @returns Content object or null if not found/not published
|
|
93
|
+
*
|
|
94
|
+
* @example
|
|
95
|
+
* // In production mode - only published content
|
|
96
|
+
* getCMSContentBySlugForLocale('home', 'en')
|
|
97
|
+
*
|
|
98
|
+
* @example
|
|
99
|
+
* // In development mode - automatically includes drafts
|
|
100
|
+
* process.env.NODE_ENV = 'development'
|
|
101
|
+
* getCMSContentBySlugForLocale('home', 'en')
|
|
102
|
+
*
|
|
103
|
+
* @example
|
|
104
|
+
* // With user-specific content
|
|
105
|
+
* getCMSContentBySlugForLocale('home', 'en', '550e8400-e29b-41d4-a716-446655440000')
|
|
70
106
|
*/
|
|
71
|
-
export declare function getCMSContentBySlugForLocale(slug: string, locale?: string,
|
|
107
|
+
export declare function getCMSContentBySlugForLocale(slug: string, locale?: string, userUid?: string | null): CMSContent | null;
|
|
72
108
|
/**
|
|
73
109
|
* Get all translations of a content item by translationKey
|
|
74
110
|
* @param translationKey - The translation key to search for
|
|
75
|
-
* @param
|
|
111
|
+
* @param userUid - Optional user UID for user-specific draft content
|
|
76
112
|
*/
|
|
77
|
-
export declare function getContentTranslations(translationKey: string,
|
|
113
|
+
export declare function getContentTranslations(translationKey: string, userUid?: string | null): {
|
|
78
114
|
locale: string;
|
|
79
115
|
content: CMSContent;
|
|
80
116
|
}[];
|
|
81
117
|
/**
|
|
82
118
|
* Get all content routes for all locales in a framework-agnostic format
|
|
83
119
|
* Returns an array of route objects with locale and slug information
|
|
120
|
+
*
|
|
84
121
|
* @param contentTypes - Optional array of content types to filter
|
|
85
|
-
* @param
|
|
86
|
-
* @
|
|
122
|
+
* @param userUid - Optional user UID for user-specific draft content
|
|
123
|
+
* @returns Array of route objects with locale and slug information
|
|
87
124
|
*/
|
|
88
|
-
export declare function getAllContentRoutes(contentTypes?: readonly string[],
|
|
125
|
+
export declare function getAllContentRoutes(contentTypes?: readonly string[], userUid?: string | null): {
|
|
89
126
|
locale: string;
|
|
90
127
|
slug: string;
|
|
91
128
|
slugParts: string[];
|
|
@@ -98,8 +135,20 @@ export declare function getAllContentRoutes(contentTypes?: readonly string[], in
|
|
|
98
135
|
* @returns userUid if found, null otherwise
|
|
99
136
|
*/
|
|
100
137
|
export declare function extractUserUidFromSlug(slug: string): string | null;
|
|
101
|
-
|
|
102
|
-
|
|
138
|
+
/**
|
|
139
|
+
* Get all content slugs for the default locale
|
|
140
|
+
*
|
|
141
|
+
* @param contentTypes - Optional array of content types to filter
|
|
142
|
+
* @param userUid - Optional user UID for user-specific draft content
|
|
143
|
+
*/
|
|
144
|
+
export declare function getAllContentSlugs(contentTypes?: readonly string[], userUid?: string | null): string[];
|
|
145
|
+
/**
|
|
146
|
+
* Get content by slug for the default locale
|
|
147
|
+
*
|
|
148
|
+
* @param slug - Content slug
|
|
149
|
+
* @param userUid - Optional user UID for user-specific draft content
|
|
150
|
+
*/
|
|
151
|
+
export declare function getCMSContentBySlug(slug: string, userUid?: string | null): CMSContent | null;
|
|
103
152
|
/**
|
|
104
153
|
* Convenience function to load configuration with automatic contentDir resolution
|
|
105
154
|
* Uses the configured contentDir from the LeadCMS configuration system
|
|
@@ -110,15 +159,15 @@ export declare function getCMSContentBySlug(slug: string, includeDrafts?: boolea
|
|
|
110
159
|
*/
|
|
111
160
|
export declare function loadContentConfig<T>(configName: string, locale?: string, userUid?: string | null): T | null;
|
|
112
161
|
/**
|
|
113
|
-
* Load header configuration using configured contentDir
|
|
162
|
+
* Load header configuration using configured contentDir (unified implementation)
|
|
114
163
|
* @param locale - Locale code (optional, uses default language from config if not provided)
|
|
115
|
-
* @param userUid - Optional user UID for draft content
|
|
164
|
+
* @param userUid - Optional user UID for draft content (for backward compatibility)
|
|
116
165
|
*/
|
|
117
166
|
export declare function getHeaderConfig(locale?: string, userUid?: string | null): HeaderConfig | null;
|
|
118
167
|
/**
|
|
119
|
-
* Load footer configuration using configured contentDir
|
|
168
|
+
* Load footer configuration using configured contentDir (unified implementation)
|
|
120
169
|
* @param locale - Locale code (optional, uses default language from config if not provided)
|
|
121
|
-
* @param userUid - Optional user UID for draft content
|
|
170
|
+
* @param userUid - Optional user UID for draft content (for backward compatibility)
|
|
122
171
|
*/
|
|
123
172
|
export declare function getFooterConfig(locale?: string, userUid?: string | null): FooterConfig | null;
|
|
124
173
|
/**
|
|
@@ -195,4 +244,5 @@ export declare function getCommentsTree(commentableType: string, commentableId:
|
|
|
195
244
|
* @returns Array of root-level comment nodes with nested children
|
|
196
245
|
*/
|
|
197
246
|
export declare function getCommentsTreeForContent(contentId: number, language?: string, options?: import('./comment-utils.js').CommentTreeOptions): import('./comment-utils.js').CommentTreeNode[];
|
|
247
|
+
export { isPreviewMode } from "./config.js";
|
|
198
248
|
//# sourceMappingURL=cms.d.ts.map
|
package/dist/lib/cms.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cms.d.ts","sourceRoot":"","sources":["../../src/lib/cms.ts"],"names":[],"mappings":"AAGA,OAAO,
|
|
1
|
+
{"version":3,"file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