@frt-platform/report-core 1.0.0 → 1.0.1

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 CHANGED
@@ -53,7 +53,6 @@ console.log(REPORT_TEMPLATE_FIELD_TYPES);
53
53
  // "checkbox",
54
54
  // "singleSelect",
55
55
  // "multiSelect",
56
- // "starRating"
57
56
  // ]
58
57
  ```
59
58
 
@@ -349,7 +348,7 @@ Things you might add on top (in a separate package, e.g. `@frt/report-react`):
349
348
  * React components for:
350
349
 
351
350
  * Template builder UI
352
- * Field editors/renderers (short text, selects, star rating, etc.)
351
+ * Field editors/renderers (short text, selects, etc.)
353
352
  * Response schemas built from templates
354
353
  * More advanced field types:
355
354
 
package/dist/index.d.mts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { z } from 'zod';
2
2
 
3
3
  declare const REPORT_TEMPLATE_VERSION = 1;
4
- declare const REPORT_TEMPLATE_FIELD_TYPES: readonly ["shortText", "longText", "number", "date", "checkbox", "singleSelect", "multiSelect", "starRating"];
4
+ declare const REPORT_TEMPLATE_FIELD_TYPES: readonly ["shortText", "longText", "number", "date", "checkbox", "singleSelect", "multiSelect"];
5
5
  type ReportTemplateFieldType = (typeof REPORT_TEMPLATE_FIELD_TYPES)[number];
6
6
  declare const ReportTemplateFieldSchema: z.ZodObject<{
7
7
  id: z.ZodString;
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { z } from 'zod';
2
2
 
3
3
  declare const REPORT_TEMPLATE_VERSION = 1;
4
- declare const REPORT_TEMPLATE_FIELD_TYPES: readonly ["shortText", "longText", "number", "date", "checkbox", "singleSelect", "multiSelect", "starRating"];
4
+ declare const REPORT_TEMPLATE_FIELD_TYPES: readonly ["shortText", "longText", "number", "date", "checkbox", "singleSelect", "multiSelect"];
5
5
  type ReportTemplateFieldType = (typeof REPORT_TEMPLATE_FIELD_TYPES)[number];
6
6
  declare const ReportTemplateFieldSchema: z.ZodObject<{
7
7
  id: z.ZodString;
package/dist/index.js CHANGED
@@ -46,8 +46,7 @@ var REPORT_TEMPLATE_FIELD_TYPES = [
46
46
  "date",
47
47
  "checkbox",
48
48
  "singleSelect",
49
- "multiSelect",
50
- "starRating"
49
+ "multiSelect"
51
50
  ];
52
51
  var ReportTemplateFieldSchema = import_zod.z.object({
53
52
  id: import_zod.z.string().min(1).max(60).regex(/^[a-z0-9_-]+$/),
@@ -103,11 +102,6 @@ var CORE_FIELD_DEFAULTS = {
103
102
  label: DEFAULT_FIELD_LABEL,
104
103
  options: ["Option 1", "Option 2", "Option 3"],
105
104
  allowOther: false
106
- },
107
- starRating: {
108
- label: DEFAULT_FIELD_LABEL,
109
- minValue: 1,
110
- maxValue: 5
111
105
  }
112
106
  };
113
107
 
package/dist/index.mjs CHANGED
@@ -8,8 +8,7 @@ var REPORT_TEMPLATE_FIELD_TYPES = [
8
8
  "date",
9
9
  "checkbox",
10
10
  "singleSelect",
11
- "multiSelect",
12
- "starRating"
11
+ "multiSelect"
13
12
  ];
14
13
  var ReportTemplateFieldSchema = z.object({
15
14
  id: z.string().min(1).max(60).regex(/^[a-z0-9_-]+$/),
@@ -65,11 +64,6 @@ var CORE_FIELD_DEFAULTS = {
65
64
  label: DEFAULT_FIELD_LABEL,
66
65
  options: ["Option 1", "Option 2", "Option 3"],
67
66
  allowOther: false
68
- },
69
- starRating: {
70
- label: DEFAULT_FIELD_LABEL,
71
- minValue: 1,
72
- maxValue: 5
73
67
  }
74
68
  };
75
69
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@frt-platform/report-core",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Core report template engine: schema, validation, normalization, and migration.",
5
5
  "author": "Sebastian Mostert",
6
6
  "license": "MIT",