mlform 0.1.10 → 0.1.11
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
|
@@ -9,7 +9,7 @@ Schema-driven forms for machine learning applications.
|
|
|
9
9
|
|
|
10
10
|
MLForm gives you a predictable UI layer between users and model backends. You describe inputs and reports with a schema, MLForm renders accessible Web Components, validates values, submits structured payloads, and displays model results in the same host container.
|
|
11
11
|
|
|
12
|
-
Version `0.1.
|
|
12
|
+
Version `0.1.11` is the current release in this repository.
|
|
13
13
|
|
|
14
14
|
## Why MLForm
|
|
15
15
|
|
|
@@ -196,14 +196,14 @@ When built-in kinds are not enough, define your own field and report kinds witho
|
|
|
196
196
|
|
|
197
197
|
```ts
|
|
198
198
|
import { createMlRegistryPack } from "mlform/builtins";
|
|
199
|
-
import { defineFieldKind, registerDefinedFieldKind } from "mlform/
|
|
199
|
+
import { defineFieldKind, registerDefinedFieldKind } from "mlform/kit";
|
|
200
200
|
import { z } from "zod";
|
|
201
201
|
|
|
202
202
|
const pack = createMlRegistryPack();
|
|
203
203
|
|
|
204
204
|
registerDefinedFieldKind(
|
|
205
205
|
pack.registry,
|
|
206
|
-
pack.
|
|
206
|
+
pack.descriptorRegistry,
|
|
207
207
|
defineFieldKind({
|
|
208
208
|
kind: "score",
|
|
209
209
|
schema: z.object({
|
|
@@ -306,7 +306,7 @@ The main package targets Node.js `>=24.9.0`.
|
|
|
306
306
|
|
|
307
307
|
## Release Notes
|
|
308
308
|
|
|
309
|
-
For `0.1.
|
|
309
|
+
For `0.1.11`, use the repository release entry and the published docs as the source of truth:
|
|
310
310
|
|
|
311
311
|
- GitHub releases: https://github.com/UlloaSP/mlform/releases
|
|
312
312
|
- npm package: https://www.npmjs.com/package/mlform
|
|
@@ -33,7 +33,7 @@ export declare const builtinFieldDefinitions: readonly [import('./shared').Built
|
|
|
33
33
|
min?: string;
|
|
34
34
|
max?: string;
|
|
35
35
|
step?: number;
|
|
36
|
-
}, Date | null>, import('./shared').BuiltinFieldDefinition<import('
|
|
36
|
+
}, Date | null>, import('./shared').BuiltinFieldDefinition<import('.').SeriesFieldConfig, import('.').SeriesPoint[]>, import('./shared').BuiltinFieldDefinition<import('../../schema').BaseFieldConfig & {
|
|
37
37
|
kind: "long-text";
|
|
38
38
|
placeholder?: string;
|
|
39
39
|
minLength?: number;
|
|
@@ -12,3 +12,5 @@ export { textFieldDefinition } from './fields/text';
|
|
|
12
12
|
export { classifierReportDefinition } from './reports/classifier';
|
|
13
13
|
export { regressorReportDefinition } from './reports/regressor';
|
|
14
14
|
export { builtinFieldDefinitions, builtinReportDefinitions } from './collections';
|
|
15
|
+
export type { SeriesFieldConfig, SeriesPoint, SeriesSubFieldConfig } from './fields/series-helpers';
|
|
16
|
+
export type { BuiltinFieldConfig, BuiltinFieldDefinition, BuiltinReportConfig, BuiltinReportDefinition, } from './shared';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export * from './constants';
|
|
2
2
|
export { booleanFieldDefinition, categoryFieldDefinition, classifierReportDefinition, dateFieldDefinition, longTextFieldDefinition, mappedCategoryFieldDefinition, multiChoiceFieldDefinition, numberFieldDefinition, ratingFieldDefinition, regressorReportDefinition, seriesFieldDefinition, singleChoiceFieldDefinition, textFieldDefinition, } from './definitions';
|
|
3
|
+
export type { BuiltinFieldConfig, BuiltinFieldDefinition, BuiltinReportConfig, BuiltinReportDefinition, SeriesFieldConfig, SeriesPoint, SeriesSubFieldConfig, } from './definitions';
|
|
3
4
|
export { createMappedCategoryBehavior } from './mapped-category-behavior';
|
|
4
5
|
export { createBuiltinMlRegistry, createMlRegistryPack } from './registry-pack';
|
|
5
6
|
export type { MlRegistryPack } from './registry-pack';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export type { AttachDesignSystemOptions, AttachedDesignSystem, ComponentManifest, Density, DesignSystemConfig, DesignSystemControllerOptions, DesignSystemMode, DesignSystemRegistry, DesignSystemRegistryChangeEvent, DesignSystemRegistryChangeListener, DesignSystemRegistryChangeType, DesignSystemScheme, DesignSystemTransitionContext, DesignSystemTransition, DesignSystemWarning, DesignSystemWarningCode, EffectiveModeSource, Motion, GlobalTokenKey, GlobalTokenMap, ComponentTokenKey, ComponentTokenMap, RecipeManifest, ResolvedComponentConfig, ResolvedDesignSystem, ResolveDesignSystemRuntimeOptions, ThemeManifest, ThemeScheme, ThemeVariant, TokenMap, } from './types';
|
|
2
2
|
export { componentKeys, componentTokenDefaults, globalTokenDefaults, mlfTokenKeys, } from './contract';
|
|
3
|
-
export type { MlfTokenKey } from './contract';
|
|
3
|
+
export type { ComponentKey, ComponentTokenManifest, MlfTokenKey } from './contract';
|
|
4
4
|
export { builtinRecipes, builtinThemes, builtinDesignSystemRegistry, createBuiltinDesignSystemRegistry, createDesignSystemRegistry, defineComponentTokens, defineGlobalTokens, defineRecipe, defineTheme, } from './registry';
|
|
5
5
|
export { mergeDesignSystemConfig, migrateTokens, migrateThemeTokens, resolveDesignSystem, } from './resolve';
|
|
6
6
|
export type { TokenMigration, TokenMigrationConflict } from './resolve';
|
|
@@ -4,4 +4,5 @@ export { mountForm, unmountForm } from './mount-form';
|
|
|
4
4
|
export { createFormView } from './view';
|
|
5
5
|
export { defineFieldKind, defineReportKind } from './kinds';
|
|
6
6
|
export { registerDefinedFieldKind, registerDefinedReportKind } from './kinds';
|
|
7
|
+
export type { DeclarativeFieldKind, DeclarativeReportKind, DefinedFieldKind, DefinedReportKind, ReportRenderSpec, ReportRenderSpecContext, } from './kinds';
|
|
7
8
|
export type { CreateFormViewOptions, DisclosureState, FormLayoutConfig, FormLayoutFieldNode, FormLayoutGroupNode, FormLayoutNode, FormLayoutReportNode, FormLayoutSectionNode, FormViewController, FormViewFieldItem, FormViewReportItem, FormViewSnapshot, FormViewState, KitDesignSystemSnapshot, KitLabels, MountFormOptions, MountedForm, PanelState, ResolvedFormLayout, ResolvedFormLayoutFieldNode, ResolvedFormLayoutGroupNode, ResolvedFormLayoutNode, ResolvedFormLayoutReportNode, ResolvedFormLayoutSectionNode, ResolvedTabLayout, ResolvedTabsLayout, TabsLayoutConfig, TabsState, TabLayoutConfig, WizardLayoutConfig, WizardState, WizardStepConfig, } from './types';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mlform",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.11",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Composable form generation utilities for machine learning backend integration",
|
|
6
6
|
"keywords": [
|
|
@@ -52,31 +52,31 @@
|
|
|
52
52
|
"type": "module",
|
|
53
53
|
"exports": {
|
|
54
54
|
"./kit": {
|
|
55
|
-
"types": "./dist/types/
|
|
55
|
+
"types": "./dist/types/kit/index.d.ts",
|
|
56
56
|
"import": "./dist/mlform/kit.mjs"
|
|
57
57
|
},
|
|
58
58
|
"./runtime": {
|
|
59
|
-
"types": "./dist/types/
|
|
59
|
+
"types": "./dist/types/runtime/index.d.ts",
|
|
60
60
|
"import": "./dist/mlform/runtime.mjs"
|
|
61
61
|
},
|
|
62
62
|
"./schema": {
|
|
63
|
-
"types": "./dist/types/
|
|
63
|
+
"types": "./dist/types/schema/index.d.ts",
|
|
64
64
|
"import": "./dist/mlform/schema.mjs"
|
|
65
65
|
},
|
|
66
66
|
"./builtins": {
|
|
67
|
-
"types": "./dist/types/
|
|
67
|
+
"types": "./dist/types/builtins/index.d.ts",
|
|
68
68
|
"import": "./dist/mlform/builtins.mjs"
|
|
69
69
|
},
|
|
70
70
|
"./transport": {
|
|
71
|
-
"types": "./dist/types/
|
|
71
|
+
"types": "./dist/types/transport/index.d.ts",
|
|
72
72
|
"import": "./dist/mlform/transport.mjs"
|
|
73
73
|
},
|
|
74
74
|
"./primitives": {
|
|
75
|
-
"types": "./dist/types/
|
|
75
|
+
"types": "./dist/types/primitives/index.d.ts",
|
|
76
76
|
"import": "./dist/mlform/primitives.mjs"
|
|
77
77
|
},
|
|
78
78
|
"./design": {
|
|
79
|
-
"types": "./dist/types/
|
|
79
|
+
"types": "./dist/types/design/index.d.ts",
|
|
80
80
|
"import": "./dist/mlform/design.mjs"
|
|
81
81
|
}
|
|
82
82
|
},
|