@newcms/core 0.0.2 → 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/dist/index.d.ts CHANGED
@@ -1,4 +1,6 @@
1
1
  export { HookEngine } from './hook-engine.js';
2
+ export { PostTypeRegistry, BUILTIN_POST_TYPES } from './post-type-registry.js';
3
+ export { TaxonomyRegistry, BUILTIN_TAXONOMIES } from './taxonomy-registry.js';
2
4
  export type { HookCallback, HookHandler, HookStackEntry, AddHookOptions, HasHookResult, PostTypeDefinition, TaxonomyDefinition, CapabilityContext, } from './types.js';
3
5
  export { POST_STATUS, USER_ROLES, HOOK_PRIORITY } from './types.js';
4
6
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,YAAY,EACX,YAAY,EACZ,WAAW,EACX,cAAc,EACd,cAAc,EACd,aAAa,EACb,kBAAkB,EAClB,kBAAkB,EAClB,iBAAiB,GACjB,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC/E,OAAO,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAC9E,YAAY,EACX,YAAY,EACZ,WAAW,EACX,cAAc,EACd,cAAc,EACd,aAAa,EACb,kBAAkB,EAClB,kBAAkB,EAClB,iBAAiB,GACjB,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC"}
package/dist/index.js CHANGED
@@ -1,3 +1,5 @@
1
1
  export { HookEngine } from './hook-engine.js';
2
+ export { PostTypeRegistry, BUILTIN_POST_TYPES } from './post-type-registry.js';
3
+ export { TaxonomyRegistry, BUILTIN_TAXONOMIES } from './taxonomy-registry.js';
2
4
  export { POST_STATUS, USER_ROLES, HOOK_PRIORITY } from './types.js';
3
5
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAW9C,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC/E,OAAO,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAW9E,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC"}
@@ -0,0 +1,50 @@
1
+ import type { PostTypeDefinition } from './types.js';
2
+ /**
3
+ * Registry for content types (post types).
4
+ *
5
+ * Manages registration and lookup of all content types in the system.
6
+ * Built-in types (post, page, attachment, revision, nav_menu_item) are
7
+ * registered during bootstrap; custom types are registered by extensions.
8
+ */
9
+ export declare class PostTypeRegistry {
10
+ private types;
11
+ /**
12
+ * Register a new post type.
13
+ *
14
+ * @throws If a type with the same name is already registered
15
+ */
16
+ register(definition: PostTypeDefinition): void;
17
+ /**
18
+ * Get a post type definition by name.
19
+ */
20
+ get(name: string): PostTypeDefinition | undefined;
21
+ /**
22
+ * Check if a post type is registered.
23
+ */
24
+ has(name: string): boolean;
25
+ /**
26
+ * Get all registered post types.
27
+ */
28
+ getAll(): PostTypeDefinition[];
29
+ /**
30
+ * Get only public post types (for REST API, search, etc).
31
+ */
32
+ getPublic(): PostTypeDefinition[];
33
+ /**
34
+ * Get post types that are exposed via REST API.
35
+ */
36
+ getRestVisible(): PostTypeDefinition[];
37
+ /**
38
+ * Unregister a post type. Only custom types can be unregistered.
39
+ */
40
+ unregister(name: string): boolean;
41
+ /**
42
+ * Reset registry — for testing only.
43
+ */
44
+ reset(): void;
45
+ }
46
+ /**
47
+ * Built-in post type definitions, registered during bootstrap.
48
+ */
49
+ export declare const BUILTIN_POST_TYPES: PostTypeDefinition[];
50
+ //# sourceMappingURL=post-type-registry.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"post-type-registry.d.ts","sourceRoot":"","sources":["../src/post-type-registry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAErD;;;;;;GAMG;AACH,qBAAa,gBAAgB;IAC5B,OAAO,CAAC,KAAK,CAA8C;IAE3D;;;;OAIG;IACH,QAAQ,CAAC,UAAU,EAAE,kBAAkB,GAAG,IAAI;IAO9C;;OAEG;IACH,GAAG,CAAC,IAAI,EAAE,MAAM,GAAG,kBAAkB,GAAG,SAAS;IAIjD;;OAEG;IACH,GAAG,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO;IAI1B;;OAEG;IACH,MAAM,IAAI,kBAAkB,EAAE;IAI9B;;OAEG;IACH,SAAS,IAAI,kBAAkB,EAAE;IAIjC;;OAEG;IACH,cAAc,IAAI,kBAAkB,EAAE;IAItC;;OAEG;IACH,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO;IAIjC;;OAEG;IACH,KAAK,IAAI,IAAI;CAGb;AAED;;GAEG;AACH,eAAO,MAAM,kBAAkB,EAAE,kBAAkB,EA2FlD,CAAC"}
@@ -0,0 +1,159 @@
1
+ /**
2
+ * Registry for content types (post types).
3
+ *
4
+ * Manages registration and lookup of all content types in the system.
5
+ * Built-in types (post, page, attachment, revision, nav_menu_item) are
6
+ * registered during bootstrap; custom types are registered by extensions.
7
+ */
8
+ export class PostTypeRegistry {
9
+ types = new Map();
10
+ /**
11
+ * Register a new post type.
12
+ *
13
+ * @throws If a type with the same name is already registered
14
+ */
15
+ register(definition) {
16
+ if (this.types.has(definition.name)) {
17
+ throw new Error(`Post type "${definition.name}" is already registered.`);
18
+ }
19
+ this.types.set(definition.name, definition);
20
+ }
21
+ /**
22
+ * Get a post type definition by name.
23
+ */
24
+ get(name) {
25
+ return this.types.get(name);
26
+ }
27
+ /**
28
+ * Check if a post type is registered.
29
+ */
30
+ has(name) {
31
+ return this.types.has(name);
32
+ }
33
+ /**
34
+ * Get all registered post types.
35
+ */
36
+ getAll() {
37
+ return [...this.types.values()];
38
+ }
39
+ /**
40
+ * Get only public post types (for REST API, search, etc).
41
+ */
42
+ getPublic() {
43
+ return this.getAll().filter((t) => t.public !== false);
44
+ }
45
+ /**
46
+ * Get post types that are exposed via REST API.
47
+ */
48
+ getRestVisible() {
49
+ return this.getAll().filter((t) => t.showInRest === true);
50
+ }
51
+ /**
52
+ * Unregister a post type. Only custom types can be unregistered.
53
+ */
54
+ unregister(name) {
55
+ return this.types.delete(name);
56
+ }
57
+ /**
58
+ * Reset registry — for testing only.
59
+ */
60
+ reset() {
61
+ this.types.clear();
62
+ }
63
+ }
64
+ /**
65
+ * Built-in post type definitions, registered during bootstrap.
66
+ */
67
+ export const BUILTIN_POST_TYPES = [
68
+ {
69
+ name: 'post',
70
+ label: 'Posts',
71
+ labels: { singular: 'Post', plural: 'Posts' },
72
+ public: true,
73
+ hierarchical: false,
74
+ showInRest: true,
75
+ restBase: 'posts',
76
+ supports: [
77
+ 'title',
78
+ 'editor',
79
+ 'author',
80
+ 'thumbnail',
81
+ 'excerpt',
82
+ 'trackbacks',
83
+ 'custom-fields',
84
+ 'comments',
85
+ 'revisions',
86
+ 'post-formats',
87
+ ],
88
+ taxonomies: ['category', 'post_tag'],
89
+ hasArchive: true,
90
+ rewrite: { slug: '', withFront: true },
91
+ menuPosition: 5,
92
+ capability_type: 'post',
93
+ },
94
+ {
95
+ name: 'page',
96
+ label: 'Pages',
97
+ labels: { singular: 'Page', plural: 'Pages' },
98
+ public: true,
99
+ hierarchical: true,
100
+ showInRest: true,
101
+ restBase: 'pages',
102
+ supports: [
103
+ 'title',
104
+ 'editor',
105
+ 'author',
106
+ 'thumbnail',
107
+ 'page-attributes',
108
+ 'custom-fields',
109
+ 'comments',
110
+ 'revisions',
111
+ ],
112
+ taxonomies: [],
113
+ hasArchive: false,
114
+ rewrite: { slug: '', withFront: false },
115
+ menuPosition: 20,
116
+ capability_type: 'page',
117
+ },
118
+ {
119
+ name: 'attachment',
120
+ label: 'Media',
121
+ labels: { singular: 'Media', plural: 'Media' },
122
+ public: true,
123
+ hierarchical: false,
124
+ showInRest: true,
125
+ restBase: 'media',
126
+ supports: ['title', 'author', 'comments'],
127
+ taxonomies: [],
128
+ hasArchive: false,
129
+ rewrite: false,
130
+ capability_type: 'post',
131
+ },
132
+ {
133
+ name: 'revision',
134
+ label: 'Revisions',
135
+ labels: { singular: 'Revision', plural: 'Revisions' },
136
+ public: false,
137
+ hierarchical: false,
138
+ showInRest: false,
139
+ supports: ['author'],
140
+ taxonomies: [],
141
+ hasArchive: false,
142
+ rewrite: false,
143
+ capability_type: 'post',
144
+ },
145
+ {
146
+ name: 'nav_menu_item',
147
+ label: 'Navigation Menu Items',
148
+ labels: { singular: 'Navigation Menu Item', plural: 'Navigation Menu Items' },
149
+ public: false,
150
+ hierarchical: false,
151
+ showInRest: false,
152
+ supports: [],
153
+ taxonomies: ['nav_menu'],
154
+ hasArchive: false,
155
+ rewrite: false,
156
+ capability_type: 'post',
157
+ },
158
+ ];
159
+ //# sourceMappingURL=post-type-registry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"post-type-registry.js","sourceRoot":"","sources":["../src/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EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE;QAC9C,MAAM,EAAE,IAAI;QACZ,YAAY,EAAE,KAAK;QACnB,UAAU,EAAE,IAAI;QAChB,QAAQ,EAAE,OAAO;QACjB,QAAQ,EAAE,CAAC,OAAO,EAAE,QAAQ,EAAE,UAAU,CAAC;QACzC,UAAU,EAAE,EAAE;QACd,UAAU,EAAE,KAAK;QACjB,OAAO,EAAE,KAAK;QACd,eAAe,EAAE,MAAM;KACvB;IACD;QACC,IAAI,EAAE,UAAU;QAChB,KAAK,EAAE,WAAW;QAClB,MAAM,EAAE,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,EAAE,WAAW,EAAE;QACrD,MAAM,EAAE,KAAK;QACb,YAAY,EAAE,KAAK;QACnB,UAAU,EAAE,KAAK;QACjB,QAAQ,EAAE,CAAC,QAAQ,CAAC;QACpB,UAAU,EAAE,EAAE;QACd,UAAU,EAAE,KAAK;QACjB,OAAO,EAAE,KAAK;QACd,eAAe,EAAE,MAAM;KACvB;IACD;QACC,IAAI,EAAE,eAAe;QACrB,KAAK,EAAE,uBAAuB;QAC9B,MAAM,EAAE,EAAE,QAAQ,EAAE,sBAAsB,EAAE,MAAM,EAAE,uBAAuB,EAAE;QAC7E,MAAM,EAAE,KAAK;QACb,YAAY,EAAE,KAAK;QACnB,UAAU,EAAE,KAAK;QACjB,QAAQ,EAAE,EAAE;QACZ,UAAU,EAAE,CAAC,UAAU,CAAC;QACxB,UAAU,EAAE,KAAK;QACjB,OAAO,EAAE,KAAK;QACd,eAAe,EAAE,MAAM;KACvB;CACD,CAAC"}
@@ -0,0 +1,20 @@
1
+ import type { TaxonomyDefinition } from './types.js';
2
+ /**
3
+ * Registry for taxonomies (categories, tags, custom taxonomies).
4
+ */
5
+ export declare class TaxonomyRegistry {
6
+ private taxonomies;
7
+ register(definition: TaxonomyDefinition): void;
8
+ get(name: string): TaxonomyDefinition | undefined;
9
+ has(name: string): boolean;
10
+ getAll(): TaxonomyDefinition[];
11
+ /**
12
+ * Get taxonomies assigned to a specific object type (e.g., 'post').
13
+ */
14
+ getForObjectType(objectType: string): TaxonomyDefinition[];
15
+ getRestVisible(): TaxonomyDefinition[];
16
+ unregister(name: string): boolean;
17
+ reset(): void;
18
+ }
19
+ export declare const BUILTIN_TAXONOMIES: TaxonomyDefinition[];
20
+ //# sourceMappingURL=taxonomy-registry.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"taxonomy-registry.d.ts","sourceRoot":"","sources":["../src/taxonomy-registry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAErD;;GAEG;AACH,qBAAa,gBAAgB;IAC5B,OAAO,CAAC,UAAU,CAA8C;IAEhE,QAAQ,CAAC,UAAU,EAAE,kBAAkB,GAAG,IAAI;IAO9C,GAAG,CAAC,IAAI,EAAE,MAAM,GAAG,kBAAkB,GAAG,SAAS;IAIjD,GAAG,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO;IAI1B,MAAM,IAAI,kBAAkB,EAAE;IAI9B;;OAEG;IACH,gBAAgB,CAAC,UAAU,EAAE,MAAM,GAAG,kBAAkB,EAAE;IAI1D,cAAc,IAAI,kBAAkB,EAAE;IAItC,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO;IAIjC,KAAK,IAAI,IAAI;CAGb;AAED,eAAO,MAAM,kBAAkB,EAAE,kBAAkB,EAiClD,CAAC"}
@@ -0,0 +1,71 @@
1
+ /**
2
+ * Registry for taxonomies (categories, tags, custom taxonomies).
3
+ */
4
+ export class TaxonomyRegistry {
5
+ taxonomies = new Map();
6
+ register(definition) {
7
+ if (this.taxonomies.has(definition.name)) {
8
+ throw new Error(`Taxonomy "${definition.name}" is already registered.`);
9
+ }
10
+ this.taxonomies.set(definition.name, definition);
11
+ }
12
+ get(name) {
13
+ return this.taxonomies.get(name);
14
+ }
15
+ has(name) {
16
+ return this.taxonomies.has(name);
17
+ }
18
+ getAll() {
19
+ return [...this.taxonomies.values()];
20
+ }
21
+ /**
22
+ * Get taxonomies assigned to a specific object type (e.g., 'post').
23
+ */
24
+ getForObjectType(objectType) {
25
+ return this.getAll().filter((t) => t.objectTypes.includes(objectType));
26
+ }
27
+ getRestVisible() {
28
+ return this.getAll().filter((t) => t.showInRest === true);
29
+ }
30
+ unregister(name) {
31
+ return this.taxonomies.delete(name);
32
+ }
33
+ reset() {
34
+ this.taxonomies.clear();
35
+ }
36
+ }
37
+ export const BUILTIN_TAXONOMIES = [
38
+ {
39
+ name: 'category',
40
+ objectTypes: ['post'],
41
+ label: 'Categories',
42
+ labels: { singular: 'Category', plural: 'Categories' },
43
+ public: true,
44
+ hierarchical: true,
45
+ showInRest: true,
46
+ restBase: 'categories',
47
+ rewrite: { slug: 'category', withFront: true, hierarchical: true },
48
+ },
49
+ {
50
+ name: 'post_tag',
51
+ objectTypes: ['post'],
52
+ label: 'Tags',
53
+ labels: { singular: 'Tag', plural: 'Tags' },
54
+ public: true,
55
+ hierarchical: false,
56
+ showInRest: true,
57
+ restBase: 'tags',
58
+ rewrite: { slug: 'tag', withFront: true },
59
+ },
60
+ {
61
+ name: 'nav_menu',
62
+ objectTypes: ['nav_menu_item'],
63
+ label: 'Navigation Menus',
64
+ labels: { singular: 'Navigation Menu', plural: 'Navigation Menus' },
65
+ public: false,
66
+ hierarchical: false,
67
+ showInRest: false,
68
+ rewrite: false,
69
+ },
70
+ ];
71
+ //# sourceMappingURL=taxonomy-registry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"taxonomy-registry.js","sourceRoot":"","sources":["../src/taxonomy-registry.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,OAAO,gBAAgB;IACpB,UAAU,GAAoC,IAAI,GAAG,EAAE,CAAC;IAEhE,QAAQ,CAAC,UAA8B;QACtC,IAAI,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,UAAU,CAAC,IAAI,CAAC,EAAE,CAAC;Y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Y,EAAE,IAAI;QAClB,UAAU,EAAE,IAAI;QAChB,QAAQ,EAAE,YAAY;QACtB,OAAO,EAAE,EAAE,IAAI,EAAE,UAAU,EAAE,SAAS,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE;KAClE;IACD;QACC,IAAI,EAAE,UAAU;QAChB,WAAW,EAAE,CAAC,MAAM,CAAC;QACrB,KAAK,EAAE,MAAM;QACb,MAAM,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE;QAC3C,MAAM,EAAE,IAAI;QACZ,YAAY,EAAE,KAAK;QACnB,UAAU,EAAE,IAAI;QAChB,QAAQ,EAAE,MAAM;QAChB,OAAO,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,SAAS,EAAE,IAAI,EAAE;KACzC;IACD;QACC,IAAI,EAAE,UAAU;QAChB,WAAW,EAAE,CAAC,eAAe,CAAC;QAC9B,KAAK,EAAE,kBAAkB;QACzB,MAAM,EAAE,EAAE,QAAQ,EAAE,iBAAiB,EAAE,MAAM,EAAE,kBAAkB,EAAE;QACnE,MAAM,EAAE,KAAK;QACb,YAAY,EAAE,KAAK;QACnB,UAAU,EAAE,KAAK;QACjB,OAAO,EAAE,KAAK;KACd;CACD,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@newcms/core",
3
- "version": "0.0.2",
3
+ "version": "0.1.0",
4
4
  "type": "module",
5
5
  "description": "Core hook engine, types, and constants for NewCMS",
6
6
  "license": "GPL-2.0-or-later",