@f1studio/form-spec 5.0.0-alpha.101 → 5.0.0-alpha.103
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/HelloComponent.d.ts +20 -0
- package/Components/HelloComponent.d.ts.map +1 -0
- package/Designer.d.ts.map +1 -0
- package/FormSpec.TS/Designer.js +2 -2
- package/FormSpec.TS/Designer.js.map +1 -1
- package/FormSpec.TS/Designer.ts.map +1 -1
- package/FormSpec.TS/FormSpec.js +210 -143
- package/FormSpec.TS/FormSpec.js.map +1 -1
- package/FormSpec.TS/FormSpec.ts.map +1 -1
- package/FormSpec.TS/FormSpecHelpers.js +62 -40
- package/FormSpec.TS/FormSpecHelpers.js.map +1 -1
- package/FormSpec.TS/FormSpecHelpers.ts.map +1 -1
- package/FormSpec.TS/FormSpecValues.js +207 -0
- package/FormSpec.TS/FormSpecValues.js.map +1 -0
- package/FormSpec.TS/FormSpecValues.ts.map +1 -0
- package/FormSpec.TS/Helpers.js +26 -25
- package/FormSpec.TS/Helpers.js.map +1 -1
- package/FormSpec.TS/Helpers.ts.map +1 -1
- package/FormSpec.TS/Interop/FormSpec.Api.Helpers.js +85 -125
- package/FormSpec.TS/Interop/FormSpec.Api.Helpers.js.map +1 -1
- package/FormSpec.TS/Interop/FormSpec.Api.Helpers.ts.map +1 -1
- package/FormSpec.TS/Interop/FormSpec.Api.Option.js +37 -7
- package/FormSpec.TS/Interop/FormSpec.Api.Option.js.map +1 -1
- package/FormSpec.TS/Interop/FormSpec.Api.Option.ts.map +1 -1
- package/FormSpec.TS/Interop/FormSpec.Values.Api.Option.js +103 -80
- package/FormSpec.TS/Interop/FormSpec.Values.Api.Option.js.map +1 -1
- package/FormSpec.TS/Interop/FormSpec.Values.Api.Option.ts.map +1 -1
- package/FormSpec.TS/PathwayExecutor.js +371 -125
- package/FormSpec.TS/PathwayExecutor.js.map +1 -1
- package/FormSpec.TS/PathwayExecutor.ts.map +1 -1
- package/FormSpec.TS/PathwayValidator.js +14 -26
- package/FormSpec.TS/PathwayValidator.js.map +1 -1
- package/FormSpec.TS/PathwayValidator.ts.map +1 -1
- package/FormSpec.TS/Renderers/FormSpecMarkdownRenderer.ts.map +1 -1
- package/FormSpec.TS/Renderers/PathwayRenderers.js +35 -26
- package/FormSpec.TS/Renderers/PathwayRenderers.js.map +1 -1
- package/FormSpec.TS/Renderers/PathwayRenderers.ts.map +1 -1
- package/FormSpec.TS/fable_modules/Fable.Form.3.0.0/Base.fs +0 -0
- package/FormSpec.TS/fable_modules/Fable.Form.3.0.0/Error.fs +0 -0
- package/FormSpec.TS/fable_modules/Fable.Form.3.0.0/Extensions.fs +0 -0
- package/FormSpec.TS/fable_modules/Fable.Form.3.0.0/Fable.Form.fableproj +0 -0
- package/FormSpec.TS/fable_modules/Fable.Form.3.0.0/Field.fs +0 -0
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.5.0.1/Fable.Form.Simple.fableproj +0 -0
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.5.0.1/Form.fs +0 -0
- package/FormSpec.TS/fable_modules/Fable.React.Types.18.3.0/Fable.React.Extensions.fs +0 -0
- package/FormSpec.TS/fable_modules/Fable.React.Types.18.3.0/Fable.React.Hooks.fs +0 -0
- package/FormSpec.TS/fable_modules/Fable.React.Types.18.3.0/Fable.React.Types.fableproj +0 -0
- package/FormSpec.TS/fable_modules/Fable.React.Types.18.3.0/Fable.React.fs +0 -0
- package/FormSpec.TS/fable_modules/Fable.ReactDom.Types.18.2.0/Fable.ReactDom.Types.fableproj +0 -0
- package/FormSpec.TS/fable_modules/Fable.ReactDom.Types.18.2.0/Fable.ReactDom.fs +0 -0
- package/FormSpec.TS/fable_modules/Feliz.2.7.0/BorderStyle.fs +0 -0
- package/FormSpec.TS/fable_modules/Feliz.2.7.0/Colors.fs +0 -0
- package/FormSpec.TS/fable_modules/Feliz.2.7.0/Feliz.fableproj +0 -0
- package/FormSpec.TS/fable_modules/Feliz.2.7.0/Fonts.fs +0 -0
- package/FormSpec.TS/fable_modules/Feliz.2.7.0/GridTypes.fs +0 -0
- package/FormSpec.TS/fable_modules/Feliz.2.7.0/Html.fs +0 -0
- package/FormSpec.TS/fable_modules/Feliz.2.7.0/Interop.fs +0 -0
- package/FormSpec.TS/fable_modules/Feliz.2.7.0/Key.fs +0 -0
- package/FormSpec.TS/fable_modules/Feliz.2.7.0/Length.fs +0 -0
- package/FormSpec.TS/fable_modules/Feliz.2.7.0/Locale.fs +0 -0
- package/FormSpec.TS/fable_modules/Feliz.2.7.0/Properties.fs +0 -0
- package/FormSpec.TS/fable_modules/Feliz.2.7.0/React.fs +0 -0
- package/FormSpec.TS/fable_modules/Feliz.2.7.0/ReactDOM.fs +0 -0
- package/FormSpec.TS/fable_modules/Feliz.2.7.0/ReactInterop.js +0 -0
- package/FormSpec.TS/fable_modules/Feliz.2.7.0/ReactInterop.js.map +0 -0
- package/FormSpec.TS/fable_modules/Feliz.2.7.0/ReactTypes.fs +0 -0
- package/FormSpec.TS/fable_modules/Feliz.2.7.0/StyleTypes.fs +0 -0
- package/FormSpec.TS/fable_modules/Feliz.2.7.0/Styles.fs +0 -0
- package/FormSpec.TS/fable_modules/Feliz.2.7.0/Svg.fs +0 -0
- package/FormSpec.TS/fable_modules/Feliz.2.7.0/TextDecorationLine.fs +0 -0
- package/FormSpec.TS/fable_modules/Feliz.2.7.0/TextDecorationStyle.fs +0 -0
- package/FormSpec.TS/fable_modules/Feliz.2.7.0/Transform.fs +0 -0
- package/FormSpec.TS/fable_modules/Feliz.2.7.0/TransformOrigin.fs +0 -0
- package/FormSpec.TS/fable_modules/Feliz.2.7.0/TransitionProperty.fs +0 -0
- package/FormSpec.TS/fable_modules/Feliz.2.7.0/Types.fs +0 -0
- package/FormSpec.TS/fable_modules/Thoth.Json.10.4.1/Decode.fs +0 -0
- package/FormSpec.TS/fable_modules/Thoth.Json.10.4.1/Encode.fs +0 -0
- package/FormSpec.TS/fable_modules/Thoth.Json.10.4.1/Encode.fs.js.map +1 -1
- package/FormSpec.TS/fable_modules/Thoth.Json.10.4.1/Encode.fs.ts.map +1 -1
- package/FormSpec.TS/fable_modules/Thoth.Json.10.4.1/Extra.fs +0 -0
- package/FormSpec.TS/fable_modules/Thoth.Json.10.4.1/Thoth.Json.fableproj +0 -0
- package/FormSpec.TS/fable_modules/Thoth.Json.10.4.1/Types.fs +0 -0
- package/FormSpec.TS/fable_modules/project_cracked.json +1 -1
- package/FormSpec.d.ts +56 -43
- package/FormSpec.d.ts.map +1 -0
- package/FormSpecHelpers.d.ts +18 -12
- package/FormSpecHelpers.d.ts.map +1 -0
- package/FormSpecValues.d.ts +62 -0
- package/FormSpecValues.d.ts.map +1 -0
- package/Helpers.d.ts +11 -10
- package/Helpers.d.ts.map +1 -0
- package/Interfaces.d.ts.map +1 -0
- package/Interop/FormSpec.Api.Helpers.d.ts +25 -28
- package/Interop/FormSpec.Api.Helpers.d.ts.map +1 -1
- package/Interop/FormSpec.Api.Option.d.ts +10 -6
- package/Interop/FormSpec.Api.Option.d.ts.map +1 -1
- package/Interop/FormSpec.Values.Api.Option.d.ts +35 -22
- package/Interop/FormSpec.Values.Api.Option.d.ts.map +1 -1
- package/Logging/LogTypes.d.ts +112 -0
- package/Logging/LogTypes.d.ts.map +1 -0
- package/Migrator.d.ts.map +1 -0
- package/PathwayDataExtractor.d.ts.map +1 -0
- package/PathwayExecutor.d.ts +63 -33
- package/PathwayExecutor.d.ts.map +1 -0
- package/PathwayValidator.d.ts.map +1 -0
- package/PluginInterface.d.ts.map +1 -0
- package/Prelude.d.ts.map +1 -0
- package/README.TS.md +621 -621
- package/README.md +98 -85
- package/Renderers/FormSpecMarkdownRenderer.d.ts +11 -0
- package/Renderers/FormSpecMarkdownRenderer.d.ts.map +1 -0
- package/Renderers/MermaidRenderer.d.ts +48 -0
- package/Renderers/MermaidRenderer.d.ts.map +1 -0
- package/Renderers/PathwayRenderers.d.ts +59 -0
- package/Renderers/PathwayRenderers.d.ts.map +1 -0
- package/fable_modules/Thoth.Json.10.4.1/Decode.fs.d.ts +126 -0
- package/fable_modules/Thoth.Json.10.4.1/Decode.fs.d.ts.map +1 -0
- package/fable_modules/Thoth.Json.10.4.1/Encode.fs.d.ts +163 -0
- package/fable_modules/Thoth.Json.10.4.1/Encode.fs.d.ts.map +1 -0
- package/fable_modules/Thoth.Json.10.4.1/Types.fs.d.ts +66 -0
- package/fable_modules/Thoth.Json.10.4.1/Types.fs.d.ts.map +1 -0
- package/package.json +53 -39
- package/src/Components/HelloComponent.ts +48 -48
- package/src/Designer.ts +389 -389
- package/src/FormSpec.ts +3154 -3114
- package/src/FormSpecHelpers.ts +397 -374
- package/src/FormSpecValues.ts +158 -0
- package/src/Helpers.ts +766 -765
- package/src/Interfaces.ts +166 -166
- package/src/Interop/FormSpec.Api.Helpers.ts +835 -872
- package/src/Interop/FormSpec.Api.Option.ts +1637 -1618
- package/src/Interop/FormSpec.Values.Api.Option.ts +1241 -1214
- package/src/Logging/LogTypes.ts +212 -212
- package/src/Migrator.ts +156 -156
- package/src/PathwayDataExtractor.ts +290 -290
- package/src/PathwayExecutor.ts +1379 -1102
- package/src/PathwayValidator.ts +238 -244
- package/src/PluginInterface.ts +79 -79
- package/src/Prelude.ts +21 -21
- package/src/Renderers/FormSpecMarkdownRenderer.ts +875 -874
- package/src/Renderers/MermaidRenderer.ts +218 -218
- package/src/Renderers/PathwayRenderers.ts +208 -200
- package/src/Components/HelloComponent.ts.map +0 -1
- package/src/Designer.ts.map +0 -1
- package/src/FormSpec.ts.map +0 -1
- package/src/FormSpecHelpers.ts.map +0 -1
- package/src/Helpers.ts.map +0 -1
- package/src/Interfaces.ts.map +0 -1
- package/src/Interop/FormSpec.Api.Helpers.ts.map +0 -1
- package/src/Interop/FormSpec.Api.Option.ts.map +0 -1
- package/src/Interop/FormSpec.Values.Api.Option.ts.map +0 -1
- package/src/Logging/LogTypes.ts.map +0 -1
- package/src/Migrator.ts.map +0 -1
- package/src/PathwayDataExtractor.ts.map +0 -1
- package/src/PathwayExecutor.ts.map +0 -1
- package/src/PathwayValidator.ts.map +0 -1
- package/src/PluginInterface.ts.map +0 -1
- package/src/Prelude.ts.map +0 -1
- package/src/Renderers/FormSpecMarkdownRenderer.ts.map +0 -1
- package/src/Renderers/MermaidRenderer.ts.map +0 -1
- package/src/Renderers/PathwayRenderers.ts.map +0 -1
package/src/PluginInterface.ts
CHANGED
|
@@ -1,79 +1,79 @@
|
|
|
1
|
-
import { Record } from "@fable-org/fable-library-js/Types.js";
|
|
2
|
-
import { FSharpList } from "@fable-org/fable-library-js/List.js";
|
|
3
|
-
import { comparePrimitives, IComparable, IEquatable } from "@fable-org/fable-library-js/Util.js";
|
|
4
|
-
import { union_type, unit_type, lambda_type, option_type, obj_type, record_type, list_type, string_type, TypeInfo } from "@fable-org/fable-library-js/Reflection.js";
|
|
5
|
-
import { Shared_PluginPropertyKey_$reflection, Shared_PluginDataProperty_$reflection, Shared_FieldOption_$reflection, Shared_FieldValue_$reflection, Shared_FieldKey_$reflection, Shared_PluginPropertyKey, Shared_PluginDataProperty, Shared_FieldOption, Shared_FieldValue_$union, Shared_FieldKey } from "./FormSpec.js";
|
|
6
|
-
import { Option } from "@fable-org/fable-library-js/Option.js";
|
|
7
|
-
import { FSharpResult$2, FSharpResult$2_$union } from "@fable-org/fable-library-js/Result.js";
|
|
8
|
-
import { tryFind, FSharpMap__Add, FSharpMap, empty } from "@fable-org/fable-library-js/Map.js";
|
|
9
|
-
import { int32 } from "@fable-org/fable-library-js/Int32.js";
|
|
10
|
-
|
|
11
|
-
export class PluginMetadata extends Record implements IEquatable<PluginMetadata>, IComparable<PluginMetadata> {
|
|
12
|
-
readonly PluginId: string;
|
|
13
|
-
readonly Name: string;
|
|
14
|
-
readonly Description: string;
|
|
15
|
-
readonly Icon: string;
|
|
16
|
-
readonly Category: string;
|
|
17
|
-
readonly Version: string;
|
|
18
|
-
readonly Author: string;
|
|
19
|
-
readonly Dependencies: FSharpList<string>;
|
|
20
|
-
constructor(PluginId: string, Name: string, Description: string, Icon: string, Category: string, Version: string, Author: string, Dependencies: FSharpList<string>) {
|
|
21
|
-
super();
|
|
22
|
-
this.PluginId = PluginId;
|
|
23
|
-
this.Name = Name;
|
|
24
|
-
this.Description = Description;
|
|
25
|
-
this.Icon = Icon;
|
|
26
|
-
this.Category = Category;
|
|
27
|
-
this.Version = Version;
|
|
28
|
-
this.Author = Author;
|
|
29
|
-
this.Dependencies = Dependencies;
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
export function PluginMetadata_$reflection(): TypeInfo {
|
|
34
|
-
return record_type("F1.Studio.Plugin.Core.PluginMetadata", [], PluginMetadata, () => [["PluginId", string_type], ["Name", string_type], ["Description", string_type], ["Icon", string_type], ["Category", string_type], ["Version", string_type], ["Author", string_type], ["Dependencies", list_type(string_type)]]);
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
export class IPluginValueConverter extends Record {
|
|
38
|
-
readonly ToFieldValue: ((arg0: Shared_FieldKey, arg1: any) => Option<Shared_FieldValue_$union>);
|
|
39
|
-
readonly FromFieldValue: ((arg0: Shared_FieldValue_$union) => Option<any>);
|
|
40
|
-
readonly GetOptions: (() => Option<FSharpList<Shared_FieldOption>>);
|
|
41
|
-
readonly GetPropertyNames: (() => FSharpList<string>);
|
|
42
|
-
readonly GetPropertyMetadata: ((arg0: string) => Option<Shared_PluginDataProperty>);
|
|
43
|
-
readonly GetPropertyMetadataByKey: ((arg0: Shared_PluginPropertyKey) => Option<Shared_PluginDataProperty>);
|
|
44
|
-
readonly GetProperty: ((arg0: string, arg1: Shared_FieldValue_$union) => Option<Shared_PluginDataProperty>);
|
|
45
|
-
readonly GetPropertyByKey: ((arg0: Shared_PluginPropertyKey, arg1: Shared_FieldValue_$union) => Option<Shared_PluginDataProperty>);
|
|
46
|
-
readonly ValidateProperty: ((arg0: string, arg1: string) => FSharpResult$2_$union<void, string>);
|
|
47
|
-
readonly GetAllProperties: ((arg0: Shared_FieldValue_$union) => FSharpList<Shared_PluginDataProperty>);
|
|
48
|
-
constructor(ToFieldValue: ((arg0: Shared_FieldKey, arg1: any) => Option<Shared_FieldValue_$union>), FromFieldValue: ((arg0: Shared_FieldValue_$union) => Option<any>), GetOptions: (() => Option<FSharpList<Shared_FieldOption>>), GetPropertyNames: (() => FSharpList<string>), GetPropertyMetadata: ((arg0: string) => Option<Shared_PluginDataProperty>), GetPropertyMetadataByKey: ((arg0: Shared_PluginPropertyKey) => Option<Shared_PluginDataProperty>), GetProperty: ((arg0: string, arg1: Shared_FieldValue_$union) => Option<Shared_PluginDataProperty>), GetPropertyByKey: ((arg0: Shared_PluginPropertyKey, arg1: Shared_FieldValue_$union) => Option<Shared_PluginDataProperty>), ValidateProperty: ((arg0: string, arg1: string) => FSharpResult$2_$union<void, string>), GetAllProperties: ((arg0: Shared_FieldValue_$union) => FSharpList<Shared_PluginDataProperty>)) {
|
|
49
|
-
super();
|
|
50
|
-
this.ToFieldValue = ToFieldValue;
|
|
51
|
-
this.FromFieldValue = FromFieldValue;
|
|
52
|
-
this.GetOptions = GetOptions;
|
|
53
|
-
this.GetPropertyNames = GetPropertyNames;
|
|
54
|
-
this.GetPropertyMetadata = GetPropertyMetadata;
|
|
55
|
-
this.GetPropertyMetadataByKey = GetPropertyMetadataByKey;
|
|
56
|
-
this.GetProperty = GetProperty;
|
|
57
|
-
this.GetPropertyByKey = GetPropertyByKey;
|
|
58
|
-
this.ValidateProperty = ValidateProperty;
|
|
59
|
-
this.GetAllProperties = GetAllProperties;
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
export function IPluginValueConverter_$reflection(): TypeInfo {
|
|
64
|
-
return record_type("F1.Studio.Plugin.Core.IPluginValueConverter", [], IPluginValueConverter, () => [["ToFieldValue", lambda_type(Shared_FieldKey_$reflection(), lambda_type(obj_type, option_type(Shared_FieldValue_$reflection())))], ["FromFieldValue", lambda_type(Shared_FieldValue_$reflection(), option_type(obj_type))], ["GetOptions", lambda_type(unit_type, option_type(list_type(Shared_FieldOption_$reflection())))], ["GetPropertyNames", lambda_type(unit_type, list_type(string_type))], ["GetPropertyMetadata", lambda_type(string_type, option_type(Shared_PluginDataProperty_$reflection()))], ["GetPropertyMetadataByKey", lambda_type(Shared_PluginPropertyKey_$reflection(), option_type(Shared_PluginDataProperty_$reflection()))], ["GetProperty", lambda_type(string_type, lambda_type(Shared_FieldValue_$reflection(), option_type(Shared_PluginDataProperty_$reflection())))], ["GetPropertyByKey", lambda_type(Shared_PluginPropertyKey_$reflection(), lambda_type(Shared_FieldValue_$reflection(), option_type(Shared_PluginDataProperty_$reflection())))], ["ValidateProperty", lambda_type(string_type, lambda_type(string_type, union_type("Microsoft.FSharp.Core.FSharpResult`2", [unit_type, string_type], FSharpResult$2, () => [[["ResultValue", unit_type]], [["ErrorValue", string_type]]])))], ["GetAllProperties", lambda_type(Shared_FieldValue_$reflection(), list_type(Shared_PluginDataProperty_$reflection()))]]);
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
let PluginValueRegistry_converters: FSharpMap<string, IPluginValueConverter> = empty<string, IPluginValueConverter>({
|
|
68
|
-
Compare: comparePrimitives,
|
|
69
|
-
});
|
|
70
|
-
|
|
71
|
-
export function PluginValueRegistry_register(pluginId: string, converter: IPluginValueConverter): void {
|
|
72
|
-
PluginValueRegistry_converters = FSharpMap__Add(PluginValueRegistry_converters, pluginId, converter);
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
export function PluginValueRegistry_tryGet(pluginId: string): Option<IPluginValueConverter> {
|
|
76
|
-
return tryFind<string, IPluginValueConverter>(pluginId, PluginValueRegistry_converters);
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
//# sourceMappingURL=PluginInterface.ts.map
|
|
1
|
+
import { Record } from "@fable-org/fable-library-js/Types.js";
|
|
2
|
+
import { FSharpList } from "@fable-org/fable-library-js/List.js";
|
|
3
|
+
import { comparePrimitives, IComparable, IEquatable } from "@fable-org/fable-library-js/Util.js";
|
|
4
|
+
import { union_type, unit_type, lambda_type, option_type, obj_type, record_type, list_type, string_type, TypeInfo } from "@fable-org/fable-library-js/Reflection.js";
|
|
5
|
+
import { Shared_PluginPropertyKey_$reflection, Shared_PluginDataProperty_$reflection, Shared_FieldOption_$reflection, Shared_FieldValue_$reflection, Shared_FieldKey_$reflection, Shared_PluginPropertyKey, Shared_PluginDataProperty, Shared_FieldOption, Shared_FieldValue_$union, Shared_FieldKey } from "./FormSpec.js";
|
|
6
|
+
import { Option } from "@fable-org/fable-library-js/Option.js";
|
|
7
|
+
import { FSharpResult$2, FSharpResult$2_$union } from "@fable-org/fable-library-js/Result.js";
|
|
8
|
+
import { tryFind, FSharpMap__Add, FSharpMap, empty } from "@fable-org/fable-library-js/Map.js";
|
|
9
|
+
import { int32 } from "@fable-org/fable-library-js/Int32.js";
|
|
10
|
+
|
|
11
|
+
export class PluginMetadata extends Record implements IEquatable<PluginMetadata>, IComparable<PluginMetadata> {
|
|
12
|
+
readonly PluginId: string;
|
|
13
|
+
readonly Name: string;
|
|
14
|
+
readonly Description: string;
|
|
15
|
+
readonly Icon: string;
|
|
16
|
+
readonly Category: string;
|
|
17
|
+
readonly Version: string;
|
|
18
|
+
readonly Author: string;
|
|
19
|
+
readonly Dependencies: FSharpList<string>;
|
|
20
|
+
constructor(PluginId: string, Name: string, Description: string, Icon: string, Category: string, Version: string, Author: string, Dependencies: FSharpList<string>) {
|
|
21
|
+
super();
|
|
22
|
+
this.PluginId = PluginId;
|
|
23
|
+
this.Name = Name;
|
|
24
|
+
this.Description = Description;
|
|
25
|
+
this.Icon = Icon;
|
|
26
|
+
this.Category = Category;
|
|
27
|
+
this.Version = Version;
|
|
28
|
+
this.Author = Author;
|
|
29
|
+
this.Dependencies = Dependencies;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export function PluginMetadata_$reflection(): TypeInfo {
|
|
34
|
+
return record_type("F1.Studio.Plugin.Core.PluginMetadata", [], PluginMetadata, () => [["PluginId", string_type], ["Name", string_type], ["Description", string_type], ["Icon", string_type], ["Category", string_type], ["Version", string_type], ["Author", string_type], ["Dependencies", list_type(string_type)]]);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export class IPluginValueConverter extends Record {
|
|
38
|
+
readonly ToFieldValue: ((arg0: Shared_FieldKey, arg1: any) => Option<Shared_FieldValue_$union>);
|
|
39
|
+
readonly FromFieldValue: ((arg0: Shared_FieldValue_$union) => Option<any>);
|
|
40
|
+
readonly GetOptions: (() => Option<FSharpList<Shared_FieldOption>>);
|
|
41
|
+
readonly GetPropertyNames: (() => FSharpList<string>);
|
|
42
|
+
readonly GetPropertyMetadata: ((arg0: string) => Option<Shared_PluginDataProperty>);
|
|
43
|
+
readonly GetPropertyMetadataByKey: ((arg0: Shared_PluginPropertyKey) => Option<Shared_PluginDataProperty>);
|
|
44
|
+
readonly GetProperty: ((arg0: string, arg1: Shared_FieldValue_$union) => Option<Shared_PluginDataProperty>);
|
|
45
|
+
readonly GetPropertyByKey: ((arg0: Shared_PluginPropertyKey, arg1: Shared_FieldValue_$union) => Option<Shared_PluginDataProperty>);
|
|
46
|
+
readonly ValidateProperty: ((arg0: string, arg1: string) => FSharpResult$2_$union<void, string>);
|
|
47
|
+
readonly GetAllProperties: ((arg0: Shared_FieldValue_$union) => FSharpList<Shared_PluginDataProperty>);
|
|
48
|
+
constructor(ToFieldValue: ((arg0: Shared_FieldKey, arg1: any) => Option<Shared_FieldValue_$union>), FromFieldValue: ((arg0: Shared_FieldValue_$union) => Option<any>), GetOptions: (() => Option<FSharpList<Shared_FieldOption>>), GetPropertyNames: (() => FSharpList<string>), GetPropertyMetadata: ((arg0: string) => Option<Shared_PluginDataProperty>), GetPropertyMetadataByKey: ((arg0: Shared_PluginPropertyKey) => Option<Shared_PluginDataProperty>), GetProperty: ((arg0: string, arg1: Shared_FieldValue_$union) => Option<Shared_PluginDataProperty>), GetPropertyByKey: ((arg0: Shared_PluginPropertyKey, arg1: Shared_FieldValue_$union) => Option<Shared_PluginDataProperty>), ValidateProperty: ((arg0: string, arg1: string) => FSharpResult$2_$union<void, string>), GetAllProperties: ((arg0: Shared_FieldValue_$union) => FSharpList<Shared_PluginDataProperty>)) {
|
|
49
|
+
super();
|
|
50
|
+
this.ToFieldValue = ToFieldValue;
|
|
51
|
+
this.FromFieldValue = FromFieldValue;
|
|
52
|
+
this.GetOptions = GetOptions;
|
|
53
|
+
this.GetPropertyNames = GetPropertyNames;
|
|
54
|
+
this.GetPropertyMetadata = GetPropertyMetadata;
|
|
55
|
+
this.GetPropertyMetadataByKey = GetPropertyMetadataByKey;
|
|
56
|
+
this.GetProperty = GetProperty;
|
|
57
|
+
this.GetPropertyByKey = GetPropertyByKey;
|
|
58
|
+
this.ValidateProperty = ValidateProperty;
|
|
59
|
+
this.GetAllProperties = GetAllProperties;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function IPluginValueConverter_$reflection(): TypeInfo {
|
|
64
|
+
return record_type("F1.Studio.Plugin.Core.IPluginValueConverter", [], IPluginValueConverter, () => [["ToFieldValue", lambda_type(Shared_FieldKey_$reflection(), lambda_type(obj_type, option_type(Shared_FieldValue_$reflection())))], ["FromFieldValue", lambda_type(Shared_FieldValue_$reflection(), option_type(obj_type))], ["GetOptions", lambda_type(unit_type, option_type(list_type(Shared_FieldOption_$reflection())))], ["GetPropertyNames", lambda_type(unit_type, list_type(string_type))], ["GetPropertyMetadata", lambda_type(string_type, option_type(Shared_PluginDataProperty_$reflection()))], ["GetPropertyMetadataByKey", lambda_type(Shared_PluginPropertyKey_$reflection(), option_type(Shared_PluginDataProperty_$reflection()))], ["GetProperty", lambda_type(string_type, lambda_type(Shared_FieldValue_$reflection(), option_type(Shared_PluginDataProperty_$reflection())))], ["GetPropertyByKey", lambda_type(Shared_PluginPropertyKey_$reflection(), lambda_type(Shared_FieldValue_$reflection(), option_type(Shared_PluginDataProperty_$reflection())))], ["ValidateProperty", lambda_type(string_type, lambda_type(string_type, union_type("Microsoft.FSharp.Core.FSharpResult`2", [unit_type, string_type], FSharpResult$2, () => [[["ResultValue", unit_type]], [["ErrorValue", string_type]]])))], ["GetAllProperties", lambda_type(Shared_FieldValue_$reflection(), list_type(Shared_PluginDataProperty_$reflection()))]]);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
let PluginValueRegistry_converters: FSharpMap<string, IPluginValueConverter> = empty<string, IPluginValueConverter>({
|
|
68
|
+
Compare: comparePrimitives,
|
|
69
|
+
});
|
|
70
|
+
|
|
71
|
+
export function PluginValueRegistry_register(pluginId: string, converter: IPluginValueConverter): void {
|
|
72
|
+
PluginValueRegistry_converters = FSharpMap__Add(PluginValueRegistry_converters, pluginId, converter);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export function PluginValueRegistry_tryGet(pluginId: string): Option<IPluginValueConverter> {
|
|
76
|
+
return tryFind<string, IPluginValueConverter>(pluginId, PluginValueRegistry_converters);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
//# sourceMappingURL=PluginInterface.ts.map
|
package/src/Prelude.ts
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { FSharpList, ofArray } from "@fable-org/fable-library-js/List.js";
|
|
2
|
-
|
|
3
|
-
export const FormSpec_availableVersions: FSharpList<string> = ofArray(["1.0.0", "1.0.1", "2.0.0"]);
|
|
4
|
-
|
|
5
|
-
export const FormSpec_latestStableVersion = "1.0.1";
|
|
6
|
-
|
|
7
|
-
export const FormSpec_latestSpecVersion = "2.0.0";
|
|
8
|
-
|
|
9
|
-
export const FormSpec_productionVersion = "1.0.0";
|
|
10
|
-
|
|
11
|
-
export const FormValues_availableVersions: FSharpList<string> = ofArray(["1.0.0", "1.0.1", "2.0.0"]);
|
|
12
|
-
|
|
13
|
-
export const FormValues_latestStableVersion = "1.0.1";
|
|
14
|
-
|
|
15
|
-
export const FormValues_latestSpecVersion = "2.0.0";
|
|
16
|
-
|
|
17
|
-
export const FormValues_productionVersion = "1.0.0";
|
|
18
|
-
|
|
19
|
-
export const FormValues_developmentVersion = "2.0.1b0";
|
|
20
|
-
|
|
21
|
-
//# sourceMappingURL=Prelude.ts.map
|
|
1
|
+
import { FSharpList, ofArray } from "@fable-org/fable-library-js/List.js";
|
|
2
|
+
|
|
3
|
+
export const FormSpec_availableVersions: FSharpList<string> = ofArray(["1.0.0", "1.0.1", "2.0.0"]);
|
|
4
|
+
|
|
5
|
+
export const FormSpec_latestStableVersion = "1.0.1";
|
|
6
|
+
|
|
7
|
+
export const FormSpec_latestSpecVersion = "2.0.0";
|
|
8
|
+
|
|
9
|
+
export const FormSpec_productionVersion = "1.0.0";
|
|
10
|
+
|
|
11
|
+
export const FormValues_availableVersions: FSharpList<string> = ofArray(["1.0.0", "1.0.1", "2.0.0"]);
|
|
12
|
+
|
|
13
|
+
export const FormValues_latestStableVersion = "1.0.1";
|
|
14
|
+
|
|
15
|
+
export const FormValues_latestSpecVersion = "2.0.0";
|
|
16
|
+
|
|
17
|
+
export const FormValues_productionVersion = "1.0.0";
|
|
18
|
+
|
|
19
|
+
export const FormValues_developmentVersion = "2.0.1b0";
|
|
20
|
+
|
|
21
|
+
//# sourceMappingURL=Prelude.ts.map
|