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