@vulcantech/cms 0.1.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 +67 -0
- package/dist/analytics/route.d.mts +1 -0
- package/dist/analytics/route.d.ts +1 -0
- package/dist/analytics/route.js +14 -0
- package/dist/analytics/route.js.map +1 -0
- package/dist/analytics/route.mjs +3 -0
- package/dist/analytics/route.mjs.map +1 -0
- package/dist/analytics/tags.d.mts +1 -0
- package/dist/analytics/tags.d.ts +1 -0
- package/dist/analytics/tags.js +14 -0
- package/dist/analytics/tags.js.map +1 -0
- package/dist/analytics/tags.mjs +3 -0
- package/dist/analytics/tags.mjs.map +1 -0
- package/dist/analytics.d.mts +1 -0
- package/dist/analytics.d.ts +1 -0
- package/dist/analytics.js +14 -0
- package/dist/analytics.js.map +1 -0
- package/dist/analytics.mjs +3 -0
- package/dist/analytics.mjs.map +1 -0
- package/dist/banners.d.mts +1 -0
- package/dist/banners.d.ts +1 -0
- package/dist/banners.js +14 -0
- package/dist/banners.js.map +1 -0
- package/dist/banners.mjs +3 -0
- package/dist/banners.mjs.map +1 -0
- package/dist/blog.d.mts +1 -0
- package/dist/blog.d.ts +1 -0
- package/dist/blog.js +14 -0
- package/dist/blog.js.map +1 -0
- package/dist/blog.mjs +3 -0
- package/dist/blog.mjs.map +1 -0
- package/dist/collections.d.mts +1 -0
- package/dist/collections.d.ts +1 -0
- package/dist/collections.js +14 -0
- package/dist/collections.js.map +1 -0
- package/dist/collections.mjs +3 -0
- package/dist/collections.mjs.map +1 -0
- package/dist/forms.d.mts +1 -0
- package/dist/forms.d.ts +1 -0
- package/dist/forms.js +14 -0
- package/dist/forms.js.map +1 -0
- package/dist/forms.mjs +3 -0
- package/dist/forms.mjs.map +1 -0
- package/dist/index.d.mts +14 -0
- package/dist/index.d.ts +14 -0
- package/dist/index.js +44 -0
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +14 -0
- package/dist/index.mjs.map +1 -0
- package/dist/seo-files.d.mts +1 -0
- package/dist/seo-files.d.ts +1 -0
- package/dist/seo-files.js +14 -0
- package/dist/seo-files.js.map +1 -0
- package/dist/seo-files.mjs +3 -0
- package/dist/seo-files.mjs.map +1 -0
- package/package.json +94 -0
- package/src/analytics/route.ts +2 -0
- package/src/analytics/tags.ts +2 -0
- package/src/analytics.ts +2 -0
- package/src/banners.ts +2 -0
- package/src/blog.ts +2 -0
- package/src/collections.ts +2 -0
- package/src/env.d.ts +1 -0
- package/src/forms.ts +2 -0
- package/src/index.ts +24 -0
- package/src/seo-files.ts +2 -0
package/README.md
ADDED
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
# @vulcantech/cms
|
|
2
|
+
|
|
3
|
+
Umbrella entry point for the VulcanTech CMS integration packages — one dependency, `radix-ui`-style imports. Re-exports (nothing lives here except re-export files):
|
|
4
|
+
|
|
5
|
+
| Subpath | Wraps | Side |
|
|
6
|
+
| --- | --- | --- |
|
|
7
|
+
| `@vulcantech/cms/blog` | `@vulcantech/blog` | server |
|
|
8
|
+
| `@vulcantech/cms/collections` | `@vulcantech/collections` | server |
|
|
9
|
+
| `@vulcantech/cms/seo-files` | `@vulcantech/seo-files` | server |
|
|
10
|
+
| `@vulcantech/cms/forms` | `@vulcantech/forms` | client |
|
|
11
|
+
| `@vulcantech/cms/banners` | `@vulcantech/banners` | client |
|
|
12
|
+
| `@vulcantech/cms/analytics` | `@vulcantech/analytics` | client |
|
|
13
|
+
| `@vulcantech/cms/analytics/tags` | `@vulcantech/analytics/tags` | server |
|
|
14
|
+
| `@vulcantech/cms/analytics/route` | `@vulcantech/analytics/route` | server |
|
|
15
|
+
|
|
16
|
+
Not included (app-internal, not consumer integrations): `blog-editor-shared`, `seo-board-shared`, `ui`, `server`.
|
|
17
|
+
|
|
18
|
+
## Import styles
|
|
19
|
+
|
|
20
|
+
**Namespaced root** — server components, layouts, route handlers:
|
|
21
|
+
|
|
22
|
+
```tsx
|
|
23
|
+
import { Blog, Collections } from "@vulcantech/cms";
|
|
24
|
+
|
|
25
|
+
const posts = await Blog.fetchBlogPosts();
|
|
26
|
+
const html = Blog.sanitizeHtml(post.content); // Collections.sanitizeHtml stays distinct
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
**Subpaths** — direct named imports; required inside `"use client"` files:
|
|
30
|
+
|
|
31
|
+
```tsx
|
|
32
|
+
import { DynamicForm } from "@vulcantech/cms/forms";
|
|
33
|
+
import { CMSBanners } from "@vulcantech/cms/banners";
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
Rule of thumb: the root barrel imports every package, including the server fetch layers (`next/server`, `next/headers`). From client components always use the subpath, so server modules stay out of the client graph. Route files re-export as usual:
|
|
37
|
+
|
|
38
|
+
```ts
|
|
39
|
+
export { POST, OPTIONS } from "@vulcantech/cms/analytics/route";
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
## External usage (npm)
|
|
43
|
+
|
|
44
|
+
Published to npm under the `vulcantech` org (leaf packages first, umbrella last — `scripts/publish-cms-packages.sh` at the repo root does both in order):
|
|
45
|
+
|
|
46
|
+
```bash
|
|
47
|
+
npm install @vulcantech/cms
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
External consumers get built `dist/` (ESM + CJS + d.ts) for the umbrella and every leaf package; no transpilation or aliasing needed.
|
|
51
|
+
|
|
52
|
+
## Adopting in a monorepo consumer app
|
|
53
|
+
|
|
54
|
+
The umbrella re-exports **by package name**, so every existing webpack/turbopack alias and tsconfig `paths` mapping for the underlying packages keeps applying — nothing is resolved twice.
|
|
55
|
+
|
|
56
|
+
1. **package.json** — add `"@vulcantech/cms": "*"`. The six underlying packages come in transitively; keep direct deps only if you still import them directly.
|
|
57
|
+
2. **next.config** — add `"@vulcantech/cms"` to `transpilePackages`, and alias its subpaths to `packages/cms/src/*` the same way the app already aliases the leaf packages — `dist/` is gitignored, so inside Docker builds only `src/` exists (the banners-extraction gotcha).
|
|
58
|
+
3. **tsconfig `paths`** — keep/add the source mappings for the underlying packages you use, plus `"@vulcantech/cms": ["../../packages/cms/src/index.ts"]` and `"@vulcantech/cms/*": ["../../packages/cms/src/*"]`; see `smoke/tsconfig.json` here for the leaf-package set.
|
|
59
|
+
4. **Dockerfile** — `COPY packages/cms` in the deps stage, next to the other `packages/*` COPY lines (same frozen-lockfile gotcha as the banners extraction).
|
|
60
|
+
|
|
61
|
+
## Verifying
|
|
62
|
+
|
|
63
|
+
```bash
|
|
64
|
+
yarn workspace @vulcantech/cms typecheck
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
`yarn workspace @vulcantech/cms smoke` typechecks a consumer-style import of every subpath through the real `exports` map.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '@vulcantech/analytics/route';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '@vulcantech/analytics/route';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var route = require('@vulcantech/analytics/route');
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
Object.keys(route).forEach(function (k) {
|
|
8
|
+
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
9
|
+
enumerable: true,
|
|
10
|
+
get: function () { return route[k]; }
|
|
11
|
+
});
|
|
12
|
+
});
|
|
13
|
+
//# sourceMappingURL=route.js.map
|
|
14
|
+
//# sourceMappingURL=route.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"route.js","sourcesContent":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"route.mjs","sourcesContent":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '@vulcantech/analytics/tags';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '@vulcantech/analytics/tags';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var tags = require('@vulcantech/analytics/tags');
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
Object.keys(tags).forEach(function (k) {
|
|
8
|
+
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
9
|
+
enumerable: true,
|
|
10
|
+
get: function () { return tags[k]; }
|
|
11
|
+
});
|
|
12
|
+
});
|
|
13
|
+
//# sourceMappingURL=tags.js.map
|
|
14
|
+
//# sourceMappingURL=tags.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"tags.js","sourcesContent":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"tags.mjs","sourcesContent":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '@vulcantech/analytics';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '@vulcantech/analytics';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var analytics = require('@vulcantech/analytics');
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
Object.keys(analytics).forEach(function (k) {
|
|
8
|
+
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
9
|
+
enumerable: true,
|
|
10
|
+
get: function () { return analytics[k]; }
|
|
11
|
+
});
|
|
12
|
+
});
|
|
13
|
+
//# sourceMappingURL=analytics.js.map
|
|
14
|
+
//# sourceMappingURL=analytics.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"analytics.js","sourcesContent":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"analytics.mjs","sourcesContent":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '@vulcantech/banners';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '@vulcantech/banners';
|
package/dist/banners.js
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var banners = require('@vulcantech/banners');
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
Object.keys(banners).forEach(function (k) {
|
|
8
|
+
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
9
|
+
enumerable: true,
|
|
10
|
+
get: function () { return banners[k]; }
|
|
11
|
+
});
|
|
12
|
+
});
|
|
13
|
+
//# sourceMappingURL=banners.js.map
|
|
14
|
+
//# sourceMappingURL=banners.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"banners.js","sourcesContent":[]}
|
package/dist/banners.mjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"banners.mjs","sourcesContent":[]}
|
package/dist/blog.d.mts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '@vulcantech/blog';
|
package/dist/blog.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '@vulcantech/blog';
|
package/dist/blog.js
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var blog = require('@vulcantech/blog');
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
Object.keys(blog).forEach(function (k) {
|
|
8
|
+
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
9
|
+
enumerable: true,
|
|
10
|
+
get: function () { return blog[k]; }
|
|
11
|
+
});
|
|
12
|
+
});
|
|
13
|
+
//# sourceMappingURL=blog.js.map
|
|
14
|
+
//# sourceMappingURL=blog.js.map
|
package/dist/blog.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"blog.js","sourcesContent":[]}
|
package/dist/blog.mjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"blog.mjs","sourcesContent":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '@vulcantech/collections';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '@vulcantech/collections';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var collections = require('@vulcantech/collections');
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
Object.keys(collections).forEach(function (k) {
|
|
8
|
+
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
9
|
+
enumerable: true,
|
|
10
|
+
get: function () { return collections[k]; }
|
|
11
|
+
});
|
|
12
|
+
});
|
|
13
|
+
//# sourceMappingURL=collections.js.map
|
|
14
|
+
//# sourceMappingURL=collections.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"collections.js","sourcesContent":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"collections.mjs","sourcesContent":[]}
|
package/dist/forms.d.mts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '@vulcantech/forms';
|
package/dist/forms.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '@vulcantech/forms';
|
package/dist/forms.js
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var forms = require('@vulcantech/forms');
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
Object.keys(forms).forEach(function (k) {
|
|
8
|
+
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
9
|
+
enumerable: true,
|
|
10
|
+
get: function () { return forms[k]; }
|
|
11
|
+
});
|
|
12
|
+
});
|
|
13
|
+
//# sourceMappingURL=forms.js.map
|
|
14
|
+
//# sourceMappingURL=forms.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"forms.js","sourcesContent":[]}
|
package/dist/forms.mjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"forms.mjs","sourcesContent":[]}
|
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as analytics from '@vulcantech/analytics';
|
|
2
|
+
export { analytics as Analytics };
|
|
3
|
+
import * as banners from '@vulcantech/banners';
|
|
4
|
+
export { banners as Banners };
|
|
5
|
+
import * as blog from '@vulcantech/blog';
|
|
6
|
+
export { blog as Blog };
|
|
7
|
+
import * as collections from '@vulcantech/collections';
|
|
8
|
+
export { collections as Collections };
|
|
9
|
+
import * as forms from '@vulcantech/forms';
|
|
10
|
+
export { forms as Forms };
|
|
11
|
+
import * as seoFiles from '@vulcantech/seo-files';
|
|
12
|
+
export { seoFiles as SeoFiles };
|
|
13
|
+
import '@vulcantech/analytics/tags';
|
|
14
|
+
import '@vulcantech/analytics/route';
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as analytics from '@vulcantech/analytics';
|
|
2
|
+
export { analytics as Analytics };
|
|
3
|
+
import * as banners from '@vulcantech/banners';
|
|
4
|
+
export { banners as Banners };
|
|
5
|
+
import * as blog from '@vulcantech/blog';
|
|
6
|
+
export { blog as Blog };
|
|
7
|
+
import * as collections from '@vulcantech/collections';
|
|
8
|
+
export { collections as Collections };
|
|
9
|
+
import * as forms from '@vulcantech/forms';
|
|
10
|
+
export { forms as Forms };
|
|
11
|
+
import * as seoFiles from '@vulcantech/seo-files';
|
|
12
|
+
export { seoFiles as SeoFiles };
|
|
13
|
+
import '@vulcantech/analytics/tags';
|
|
14
|
+
import '@vulcantech/analytics/route';
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var analytics = require('@vulcantech/analytics');
|
|
4
|
+
var banners = require('@vulcantech/banners');
|
|
5
|
+
var blog = require('@vulcantech/blog');
|
|
6
|
+
var collections = require('@vulcantech/collections');
|
|
7
|
+
var forms = require('@vulcantech/forms');
|
|
8
|
+
var seoFiles = require('@vulcantech/seo-files');
|
|
9
|
+
|
|
10
|
+
function _interopNamespace(e) {
|
|
11
|
+
if (e && e.__esModule) return e;
|
|
12
|
+
var n = Object.create(null);
|
|
13
|
+
if (e) {
|
|
14
|
+
Object.keys(e).forEach(function (k) {
|
|
15
|
+
if (k !== 'default') {
|
|
16
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
17
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
18
|
+
enumerable: true,
|
|
19
|
+
get: function () { return e[k]; }
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
n.default = e;
|
|
25
|
+
return Object.freeze(n);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
var analytics__namespace = /*#__PURE__*/_interopNamespace(analytics);
|
|
29
|
+
var banners__namespace = /*#__PURE__*/_interopNamespace(banners);
|
|
30
|
+
var blog__namespace = /*#__PURE__*/_interopNamespace(blog);
|
|
31
|
+
var collections__namespace = /*#__PURE__*/_interopNamespace(collections);
|
|
32
|
+
var forms__namespace = /*#__PURE__*/_interopNamespace(forms);
|
|
33
|
+
var seoFiles__namespace = /*#__PURE__*/_interopNamespace(seoFiles);
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
exports.Analytics = analytics__namespace;
|
|
38
|
+
exports.Banners = banners__namespace;
|
|
39
|
+
exports.Blog = blog__namespace;
|
|
40
|
+
exports.Collections = collections__namespace;
|
|
41
|
+
exports.Forms = forms__namespace;
|
|
42
|
+
exports.SeoFiles = seoFiles__namespace;
|
|
43
|
+
//# sourceMappingURL=index.js.map
|
|
44
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.js","sourcesContent":[]}
|
package/dist/index.mjs
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as analytics from '@vulcantech/analytics';
|
|
2
|
+
export { analytics as Analytics };
|
|
3
|
+
import * as banners from '@vulcantech/banners';
|
|
4
|
+
export { banners as Banners };
|
|
5
|
+
import * as blog from '@vulcantech/blog';
|
|
6
|
+
export { blog as Blog };
|
|
7
|
+
import * as collections from '@vulcantech/collections';
|
|
8
|
+
export { collections as Collections };
|
|
9
|
+
import * as forms from '@vulcantech/forms';
|
|
10
|
+
export { forms as Forms };
|
|
11
|
+
import * as seoFiles from '@vulcantech/seo-files';
|
|
12
|
+
export { seoFiles as SeoFiles };
|
|
13
|
+
//# sourceMappingURL=index.mjs.map
|
|
14
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.mjs","sourcesContent":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '@vulcantech/seo-files';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '@vulcantech/seo-files';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var seoFiles = require('@vulcantech/seo-files');
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
Object.keys(seoFiles).forEach(function (k) {
|
|
8
|
+
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
9
|
+
enumerable: true,
|
|
10
|
+
get: function () { return seoFiles[k]; }
|
|
11
|
+
});
|
|
12
|
+
});
|
|
13
|
+
//# sourceMappingURL=seo-files.js.map
|
|
14
|
+
//# sourceMappingURL=seo-files.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"seo-files.js","sourcesContent":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"seo-files.mjs","sourcesContent":[]}
|
package/package.json
ADDED
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@vulcantech/cms",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Umbrella entry point for the VulcanTech CMS integration packages — one dependency, radix-ui-style imports for blog, collections, forms, banners, analytics, and seo-files.",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"source": "./src/index.ts",
|
|
7
|
+
"main": "./dist/index.js",
|
|
8
|
+
"module": "./dist/index.mjs",
|
|
9
|
+
"types": "./dist/index.d.ts",
|
|
10
|
+
"exports": {
|
|
11
|
+
".": {
|
|
12
|
+
"types": "./dist/index.d.ts",
|
|
13
|
+
"import": "./dist/index.mjs",
|
|
14
|
+
"require": "./dist/index.js",
|
|
15
|
+
"default": "./src/index.ts"
|
|
16
|
+
},
|
|
17
|
+
"./blog": {
|
|
18
|
+
"types": "./dist/blog.d.ts",
|
|
19
|
+
"import": "./dist/blog.mjs",
|
|
20
|
+
"require": "./dist/blog.js",
|
|
21
|
+
"default": "./src/blog.ts"
|
|
22
|
+
},
|
|
23
|
+
"./collections": {
|
|
24
|
+
"types": "./dist/collections.d.ts",
|
|
25
|
+
"import": "./dist/collections.mjs",
|
|
26
|
+
"require": "./dist/collections.js",
|
|
27
|
+
"default": "./src/collections.ts"
|
|
28
|
+
},
|
|
29
|
+
"./forms": {
|
|
30
|
+
"types": "./dist/forms.d.ts",
|
|
31
|
+
"import": "./dist/forms.mjs",
|
|
32
|
+
"require": "./dist/forms.js",
|
|
33
|
+
"default": "./src/forms.ts"
|
|
34
|
+
},
|
|
35
|
+
"./banners": {
|
|
36
|
+
"types": "./dist/banners.d.ts",
|
|
37
|
+
"import": "./dist/banners.mjs",
|
|
38
|
+
"require": "./dist/banners.js",
|
|
39
|
+
"default": "./src/banners.ts"
|
|
40
|
+
},
|
|
41
|
+
"./analytics": {
|
|
42
|
+
"types": "./dist/analytics.d.ts",
|
|
43
|
+
"import": "./dist/analytics.mjs",
|
|
44
|
+
"require": "./dist/analytics.js",
|
|
45
|
+
"default": "./src/analytics.ts"
|
|
46
|
+
},
|
|
47
|
+
"./analytics/tags": {
|
|
48
|
+
"types": "./dist/analytics/tags.d.ts",
|
|
49
|
+
"import": "./dist/analytics/tags.mjs",
|
|
50
|
+
"require": "./dist/analytics/tags.js",
|
|
51
|
+
"default": "./src/analytics/tags.ts"
|
|
52
|
+
},
|
|
53
|
+
"./analytics/route": {
|
|
54
|
+
"types": "./dist/analytics/route.d.ts",
|
|
55
|
+
"import": "./dist/analytics/route.mjs",
|
|
56
|
+
"require": "./dist/analytics/route.js",
|
|
57
|
+
"default": "./src/analytics/route.ts"
|
|
58
|
+
},
|
|
59
|
+
"./seo-files": {
|
|
60
|
+
"types": "./dist/seo-files.d.ts",
|
|
61
|
+
"import": "./dist/seo-files.mjs",
|
|
62
|
+
"require": "./dist/seo-files.js",
|
|
63
|
+
"default": "./src/seo-files.ts"
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
"files": [
|
|
67
|
+
"dist",
|
|
68
|
+
"src",
|
|
69
|
+
"README.md"
|
|
70
|
+
],
|
|
71
|
+
"scripts": {
|
|
72
|
+
"build": "tsup",
|
|
73
|
+
"dev": "tsup --watch",
|
|
74
|
+
"prepublishOnly": "npm run build",
|
|
75
|
+
"typecheck": "tsc --noEmit",
|
|
76
|
+
"smoke": "tsc -p smoke"
|
|
77
|
+
},
|
|
78
|
+
"publishConfig": {
|
|
79
|
+
"access": "public"
|
|
80
|
+
},
|
|
81
|
+
"dependencies": {
|
|
82
|
+
"@vulcantech/analytics": "^0.1.0",
|
|
83
|
+
"@vulcantech/banners": "^0.1.0",
|
|
84
|
+
"@vulcantech/blog": "^0.1.0",
|
|
85
|
+
"@vulcantech/collections": "^0.1.0",
|
|
86
|
+
"@vulcantech/forms": "^0.1.0",
|
|
87
|
+
"@vulcantech/seo-files": "^0.1.0"
|
|
88
|
+
},
|
|
89
|
+
"devDependencies": {
|
|
90
|
+
"tsconfig": "*",
|
|
91
|
+
"tsup": "^8.5.1",
|
|
92
|
+
"typescript": "^5.9.3"
|
|
93
|
+
}
|
|
94
|
+
}
|
package/src/analytics.ts
ADDED
package/src/banners.ts
ADDED
package/src/blog.ts
ADDED
package/src/env.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/// <reference types="next" />
|
package/src/forms.ts
ADDED
package/src/index.ts
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Umbrella entry point for the VulcanTech CMS integration packages.
|
|
3
|
+
*
|
|
4
|
+
* Namespaced re-exports, radix-ui style:
|
|
5
|
+
*
|
|
6
|
+
* import { Blog, Forms } from "@vulcantech/cms";
|
|
7
|
+
* const posts = await Blog.fetchBlogPosts();
|
|
8
|
+
*
|
|
9
|
+
* Namespaces (rather than a flat barrel) because sibling packages share
|
|
10
|
+
* export names — e.g. both blog and collections export `sanitizeHtml`.
|
|
11
|
+
*
|
|
12
|
+
* NOTE: this root barrel pulls in every integration package, including the
|
|
13
|
+
* server-side fetch layers (blog / collections / seo-files import
|
|
14
|
+
* next/server). Import it from server components, route handlers, and
|
|
15
|
+
* layouts. From "use client" components, import the subpath you need
|
|
16
|
+
* instead — e.g. `@vulcantech/cms/forms` — so server modules stay out
|
|
17
|
+
* of the client graph.
|
|
18
|
+
*/
|
|
19
|
+
export * as Analytics from "@vulcantech/analytics";
|
|
20
|
+
export * as Banners from "@vulcantech/banners";
|
|
21
|
+
export * as Blog from "@vulcantech/blog";
|
|
22
|
+
export * as Collections from "@vulcantech/collections";
|
|
23
|
+
export * as Forms from "@vulcantech/forms";
|
|
24
|
+
export * as SeoFiles from "@vulcantech/seo-files";
|
package/src/seo-files.ts
ADDED