@marianmeres/collection-types 1.20.0 → 1.21.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.
@@ -0,0 +1,31 @@
1
+ /**
2
+ * Base configuration interface for Joy admin UI.
3
+ * Extensible via index signature - consumers can add custom fields.
4
+ *
5
+ * @example
6
+ * ```ts
7
+ * // Extend with custom fields
8
+ * interface MyJoyConfig extends JoyConfig {
9
+ * myCustomField: string;
10
+ * stuic: {
11
+ * DismissibleMessage: {
12
+ * theme: "red" | "blue"; // Stricter typing
13
+ * };
14
+ * };
15
+ * }
16
+ * ```
17
+ */
18
+ export interface JoyConfig {
19
+ /** Project/app title */
20
+ title?: string;
21
+ /** Stuic component configuration overrides */
22
+ stuic?: {
23
+ DismissibleMessage?: {
24
+ /** Theme color for dismissible messages */
25
+ theme?: string;
26
+ };
27
+ [component: string]: Record<string, unknown> | undefined;
28
+ };
29
+ /** Index signature for custom extensions */
30
+ [key: string]: unknown;
31
+ }
@@ -0,0 +1 @@
1
+ export {};
package/dist/mod.d.ts CHANGED
@@ -50,3 +50,4 @@ export * from "./schema-builder.js";
50
50
  export * from "./navigation.js";
51
51
  export * from "./form-routes.js";
52
52
  export * from "./custom-pages.js";
53
+ export * from "./joy-config.js";
package/dist/mod.js CHANGED
@@ -69,3 +69,5 @@ export * from "./navigation.js";
69
69
  export * from "./form-routes.js";
70
70
  // Custom Pages Configuration Types (admin UI)
71
71
  export * from "./custom-pages.js";
72
+ // Joy Config Types (admin UI)
73
+ export * from "./joy-config.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@marianmeres/collection-types",
3
- "version": "1.20.0",
3
+ "version": "1.21.0",
4
4
  "type": "module",
5
5
  "main": "dist/mod.js",
6
6
  "types": "dist/mod.d.ts",