ai-design-system 0.1.18 → 0.1.22

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.
@@ -5,7 +5,7 @@ import {
5
5
  type DashboardRowAction,
6
6
  type DashboardTableActionHandlers,
7
7
  } from "@/components/composites/DataTable"
8
- import { dynamicTableSchema, type DynamicTableSchema, type TableColumn } from "ui-schema-contracts"
8
+ import { DYNAMIC_TABLE_SCHEMA_VERSION, dynamicTableSchema, type DynamicTableSchema, type TableColumn } from "ui-schema-contracts"
9
9
 
10
10
  export interface FormReportsEntity {
11
11
  id: number | string
@@ -78,7 +78,7 @@ export const FormReportsTable = React.memo<FormReportsTableProps>(
78
78
  rows: nextRows,
79
79
  originalById: byId,
80
80
  tableSchema: dynamicTableSchema.parse({
81
- schemaVersion: "1",
81
+ schemaVersion: DYNAMIC_TABLE_SCHEMA_VERSION,
82
82
  rowKey: "id",
83
83
  columns: tableColumns,
84
84
  enableFiltering: true,
@@ -3,11 +3,16 @@ import {
3
3
  formSchema,
4
4
  type FormFieldDefinition,
5
5
  type FormSchema,
6
- } from "design-schema"
7
- import { dynamicTableSchema, type DynamicTableSchema } from "ui-schema-contracts"
6
+ } from "design-schema/schemas/form"
7
+ import {
8
+ DYNAMIC_TABLE_SCHEMA_VERSION,
9
+ FORM_SCHEMA_VERSION,
10
+ dynamicTableSchema,
11
+ type DynamicTableSchema,
12
+ } from "ui-schema-contracts"
8
13
 
9
14
  const dashboardTableSchemaInput = {
10
- schemaVersion: "1",
15
+ schemaVersion: DYNAMIC_TABLE_SCHEMA_VERSION,
11
16
  rowKey: "id",
12
17
  columns: [
13
18
  {
@@ -102,7 +107,7 @@ const dashboardTableSchemaInput = {
102
107
  export const dashboardTableSchema: DynamicTableSchema = dynamicTableSchema.parse(dashboardTableSchemaInput)
103
108
 
104
109
  const dashboardCreateFormSchemaInput = {
105
- schemaVersion: "1",
110
+ schemaVersion: FORM_SCHEMA_VERSION,
106
111
  fields: [
107
112
  {
108
113
  name: "slug",
@@ -7,13 +7,18 @@ import type {
7
7
  import {
8
8
  formSchema,
9
9
  type FormSchema,
10
- } from "design-schema"
11
- import { dynamicTableSchema, type DynamicTableSchema } from "ui-schema-contracts"
10
+ } from "design-schema/schemas/form"
11
+ import {
12
+ DYNAMIC_TABLE_SCHEMA_VERSION,
13
+ FORM_SCHEMA_VERSION,
14
+ dynamicTableSchema,
15
+ type DynamicTableSchema,
16
+ } from "ui-schema-contracts"
12
17
 
13
18
  export const formReportsEntityName = "Feature Flag"
14
19
 
15
20
  const formReportsFormSchemaInput = {
16
- schemaVersion: "1",
21
+ schemaVersion: FORM_SCHEMA_VERSION,
17
22
  fields: [
18
23
  {
19
24
  name: "slug",
@@ -65,7 +70,7 @@ const formReportsFormSchemaInput = {
65
70
  export const formReportsFields: FormReportsFieldDefinition[] = formSchema.parse(formReportsFormSchemaInput).fields
66
71
 
67
72
  const formReportsTableSchemaInput = {
68
- schemaVersion: "1",
73
+ schemaVersion: DYNAMIC_TABLE_SCHEMA_VERSION,
69
74
  rowKey: "id",
70
75
  columns: [
71
76
  {
package/dist/index.cjs CHANGED
@@ -48,7 +48,7 @@ var zod = require('zod');
48
48
  var uiSchemaContracts = require('ui-schema-contracts');
49
49
  var react$2 = require('@xyflow/react');
50
50
  require('@xyflow/react/dist/style.css');
51
- var designSchema = require('design-schema');
51
+ var form = require('design-schema/schemas/form');
52
52
 
53
53
  function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
54
54
 
@@ -7720,7 +7720,7 @@ var FormReportsTable = React33__namespace.memo(
7720
7720
  rows: nextRows,
7721
7721
  originalById: byId,
7722
7722
  tableSchema: uiSchemaContracts.dynamicTableSchema.parse({
7723
- schemaVersion: "1",
7723
+ schemaVersion: uiSchemaContracts.DYNAMIC_TABLE_SCHEMA_VERSION,
7724
7724
  rowKey: "id",
7725
7725
  columns: tableColumns,
7726
7726
  enableFiltering: true,
@@ -10046,7 +10046,7 @@ var DashboardFeature = React33__namespace.memo(
10046
10046
  );
10047
10047
  DashboardFeature.displayName = "DashboardFeature";
10048
10048
  var dashboardTableSchemaInput = {
10049
- schemaVersion: "1",
10049
+ schemaVersion: uiSchemaContracts.DYNAMIC_TABLE_SCHEMA_VERSION,
10050
10050
  rowKey: "id",
10051
10051
  columns: [
10052
10052
  {
@@ -10139,7 +10139,7 @@ var dashboardTableSchemaInput = {
10139
10139
  };
10140
10140
  uiSchemaContracts.dynamicTableSchema.parse(dashboardTableSchemaInput);
10141
10141
  var dashboardCreateFormSchemaInput = {
10142
- schemaVersion: "1",
10142
+ schemaVersion: uiSchemaContracts.FORM_SCHEMA_VERSION,
10143
10143
  fields: [
10144
10144
  {
10145
10145
  name: "slug",
@@ -10187,7 +10187,7 @@ var dashboardCreateFormSchemaInput = {
10187
10187
  }
10188
10188
  ]
10189
10189
  };
10190
- designSchema.formSchema.parse(dashboardCreateFormSchemaInput).fields;
10190
+ form.formSchema.parse(dashboardCreateFormSchemaInput).fields;
10191
10191
  function buildInitialValues2(fields) {
10192
10192
  return fields.reduce((acc, field) => {
10193
10193
  var _a;
@@ -10291,7 +10291,7 @@ var FormReportsFeature = React33__namespace.memo(
10291
10291
  );
10292
10292
  FormReportsFeature.displayName = "FormReportsFeature";
10293
10293
  var formReportsFormSchemaInput = {
10294
- schemaVersion: "1",
10294
+ schemaVersion: uiSchemaContracts.FORM_SCHEMA_VERSION,
10295
10295
  fields: [
10296
10296
  {
10297
10297
  name: "slug",
@@ -10339,9 +10339,9 @@ var formReportsFormSchemaInput = {
10339
10339
  }
10340
10340
  ]
10341
10341
  };
10342
- designSchema.formSchema.parse(formReportsFormSchemaInput).fields;
10342
+ form.formSchema.parse(formReportsFormSchemaInput).fields;
10343
10343
  var formReportsTableSchemaInput = {
10344
- schemaVersion: "1",
10344
+ schemaVersion: uiSchemaContracts.DYNAMIC_TABLE_SCHEMA_VERSION,
10345
10345
  rowKey: "id",
10346
10346
  columns: [
10347
10347
  {