@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.
Files changed (161) hide show
  1. package/Components/HelloComponent.d.ts +20 -0
  2. package/Components/HelloComponent.d.ts.map +1 -0
  3. package/Designer.d.ts.map +1 -0
  4. package/FormSpec.TS/Designer.js +2 -2
  5. package/FormSpec.TS/Designer.js.map +1 -1
  6. package/FormSpec.TS/Designer.ts.map +1 -1
  7. package/FormSpec.TS/FormSpec.js +210 -143
  8. package/FormSpec.TS/FormSpec.js.map +1 -1
  9. package/FormSpec.TS/FormSpec.ts.map +1 -1
  10. package/FormSpec.TS/FormSpecHelpers.js +62 -40
  11. package/FormSpec.TS/FormSpecHelpers.js.map +1 -1
  12. package/FormSpec.TS/FormSpecHelpers.ts.map +1 -1
  13. package/FormSpec.TS/FormSpecValues.js +207 -0
  14. package/FormSpec.TS/FormSpecValues.js.map +1 -0
  15. package/FormSpec.TS/FormSpecValues.ts.map +1 -0
  16. package/FormSpec.TS/Helpers.js +26 -25
  17. package/FormSpec.TS/Helpers.js.map +1 -1
  18. package/FormSpec.TS/Helpers.ts.map +1 -1
  19. package/FormSpec.TS/Interop/FormSpec.Api.Helpers.js +85 -125
  20. package/FormSpec.TS/Interop/FormSpec.Api.Helpers.js.map +1 -1
  21. package/FormSpec.TS/Interop/FormSpec.Api.Helpers.ts.map +1 -1
  22. package/FormSpec.TS/Interop/FormSpec.Api.Option.js +37 -7
  23. package/FormSpec.TS/Interop/FormSpec.Api.Option.js.map +1 -1
  24. package/FormSpec.TS/Interop/FormSpec.Api.Option.ts.map +1 -1
  25. package/FormSpec.TS/Interop/FormSpec.Values.Api.Option.js +103 -80
  26. package/FormSpec.TS/Interop/FormSpec.Values.Api.Option.js.map +1 -1
  27. package/FormSpec.TS/Interop/FormSpec.Values.Api.Option.ts.map +1 -1
  28. package/FormSpec.TS/PathwayExecutor.js +371 -125
  29. package/FormSpec.TS/PathwayExecutor.js.map +1 -1
  30. package/FormSpec.TS/PathwayExecutor.ts.map +1 -1
  31. package/FormSpec.TS/PathwayValidator.js +14 -26
  32. package/FormSpec.TS/PathwayValidator.js.map +1 -1
  33. package/FormSpec.TS/PathwayValidator.ts.map +1 -1
  34. package/FormSpec.TS/Renderers/FormSpecMarkdownRenderer.ts.map +1 -1
  35. package/FormSpec.TS/Renderers/PathwayRenderers.js +35 -26
  36. package/FormSpec.TS/Renderers/PathwayRenderers.js.map +1 -1
  37. package/FormSpec.TS/Renderers/PathwayRenderers.ts.map +1 -1
  38. package/FormSpec.TS/fable_modules/Fable.Form.3.0.0/Base.fs +0 -0
  39. package/FormSpec.TS/fable_modules/Fable.Form.3.0.0/Error.fs +0 -0
  40. package/FormSpec.TS/fable_modules/Fable.Form.3.0.0/Extensions.fs +0 -0
  41. package/FormSpec.TS/fable_modules/Fable.Form.3.0.0/Fable.Form.fableproj +0 -0
  42. package/FormSpec.TS/fable_modules/Fable.Form.3.0.0/Field.fs +0 -0
  43. package/FormSpec.TS/fable_modules/Fable.Form.Simple.5.0.1/Fable.Form.Simple.fableproj +0 -0
  44. package/FormSpec.TS/fable_modules/Fable.Form.Simple.5.0.1/Form.fs +0 -0
  45. package/FormSpec.TS/fable_modules/Fable.React.Types.18.3.0/Fable.React.Extensions.fs +0 -0
  46. package/FormSpec.TS/fable_modules/Fable.React.Types.18.3.0/Fable.React.Hooks.fs +0 -0
  47. package/FormSpec.TS/fable_modules/Fable.React.Types.18.3.0/Fable.React.Types.fableproj +0 -0
  48. package/FormSpec.TS/fable_modules/Fable.React.Types.18.3.0/Fable.React.fs +0 -0
  49. package/FormSpec.TS/fable_modules/Fable.ReactDom.Types.18.2.0/Fable.ReactDom.Types.fableproj +0 -0
  50. package/FormSpec.TS/fable_modules/Fable.ReactDom.Types.18.2.0/Fable.ReactDom.fs +0 -0
  51. package/FormSpec.TS/fable_modules/Feliz.2.7.0/BorderStyle.fs +0 -0
  52. package/FormSpec.TS/fable_modules/Feliz.2.7.0/Colors.fs +0 -0
  53. package/FormSpec.TS/fable_modules/Feliz.2.7.0/Feliz.fableproj +0 -0
  54. package/FormSpec.TS/fable_modules/Feliz.2.7.0/Fonts.fs +0 -0
  55. package/FormSpec.TS/fable_modules/Feliz.2.7.0/GridTypes.fs +0 -0
  56. package/FormSpec.TS/fable_modules/Feliz.2.7.0/Html.fs +0 -0
  57. package/FormSpec.TS/fable_modules/Feliz.2.7.0/Interop.fs +0 -0
  58. package/FormSpec.TS/fable_modules/Feliz.2.7.0/Key.fs +0 -0
  59. package/FormSpec.TS/fable_modules/Feliz.2.7.0/Length.fs +0 -0
  60. package/FormSpec.TS/fable_modules/Feliz.2.7.0/Locale.fs +0 -0
  61. package/FormSpec.TS/fable_modules/Feliz.2.7.0/Properties.fs +0 -0
  62. package/FormSpec.TS/fable_modules/Feliz.2.7.0/React.fs +0 -0
  63. package/FormSpec.TS/fable_modules/Feliz.2.7.0/ReactDOM.fs +0 -0
  64. package/FormSpec.TS/fable_modules/Feliz.2.7.0/ReactInterop.js +0 -0
  65. package/FormSpec.TS/fable_modules/Feliz.2.7.0/ReactInterop.js.map +0 -0
  66. package/FormSpec.TS/fable_modules/Feliz.2.7.0/ReactTypes.fs +0 -0
  67. package/FormSpec.TS/fable_modules/Feliz.2.7.0/StyleTypes.fs +0 -0
  68. package/FormSpec.TS/fable_modules/Feliz.2.7.0/Styles.fs +0 -0
  69. package/FormSpec.TS/fable_modules/Feliz.2.7.0/Svg.fs +0 -0
  70. package/FormSpec.TS/fable_modules/Feliz.2.7.0/TextDecorationLine.fs +0 -0
  71. package/FormSpec.TS/fable_modules/Feliz.2.7.0/TextDecorationStyle.fs +0 -0
  72. package/FormSpec.TS/fable_modules/Feliz.2.7.0/Transform.fs +0 -0
  73. package/FormSpec.TS/fable_modules/Feliz.2.7.0/TransformOrigin.fs +0 -0
  74. package/FormSpec.TS/fable_modules/Feliz.2.7.0/TransitionProperty.fs +0 -0
  75. package/FormSpec.TS/fable_modules/Feliz.2.7.0/Types.fs +0 -0
  76. package/FormSpec.TS/fable_modules/Thoth.Json.10.4.1/Decode.fs +0 -0
  77. package/FormSpec.TS/fable_modules/Thoth.Json.10.4.1/Encode.fs +0 -0
  78. package/FormSpec.TS/fable_modules/Thoth.Json.10.4.1/Encode.fs.js.map +1 -1
  79. package/FormSpec.TS/fable_modules/Thoth.Json.10.4.1/Encode.fs.ts.map +1 -1
  80. package/FormSpec.TS/fable_modules/Thoth.Json.10.4.1/Extra.fs +0 -0
  81. package/FormSpec.TS/fable_modules/Thoth.Json.10.4.1/Thoth.Json.fableproj +0 -0
  82. package/FormSpec.TS/fable_modules/Thoth.Json.10.4.1/Types.fs +0 -0
  83. package/FormSpec.TS/fable_modules/project_cracked.json +1 -1
  84. package/FormSpec.d.ts +56 -43
  85. package/FormSpec.d.ts.map +1 -0
  86. package/FormSpecHelpers.d.ts +18 -12
  87. package/FormSpecHelpers.d.ts.map +1 -0
  88. package/FormSpecValues.d.ts +62 -0
  89. package/FormSpecValues.d.ts.map +1 -0
  90. package/Helpers.d.ts +11 -10
  91. package/Helpers.d.ts.map +1 -0
  92. package/Interfaces.d.ts.map +1 -0
  93. package/Interop/FormSpec.Api.Helpers.d.ts +25 -28
  94. package/Interop/FormSpec.Api.Helpers.d.ts.map +1 -1
  95. package/Interop/FormSpec.Api.Option.d.ts +10 -6
  96. package/Interop/FormSpec.Api.Option.d.ts.map +1 -1
  97. package/Interop/FormSpec.Values.Api.Option.d.ts +35 -22
  98. package/Interop/FormSpec.Values.Api.Option.d.ts.map +1 -1
  99. package/Logging/LogTypes.d.ts +112 -0
  100. package/Logging/LogTypes.d.ts.map +1 -0
  101. package/Migrator.d.ts.map +1 -0
  102. package/PathwayDataExtractor.d.ts.map +1 -0
  103. package/PathwayExecutor.d.ts +63 -33
  104. package/PathwayExecutor.d.ts.map +1 -0
  105. package/PathwayValidator.d.ts.map +1 -0
  106. package/PluginInterface.d.ts.map +1 -0
  107. package/Prelude.d.ts.map +1 -0
  108. package/README.TS.md +621 -621
  109. package/README.md +98 -85
  110. package/Renderers/FormSpecMarkdownRenderer.d.ts +11 -0
  111. package/Renderers/FormSpecMarkdownRenderer.d.ts.map +1 -0
  112. package/Renderers/MermaidRenderer.d.ts +48 -0
  113. package/Renderers/MermaidRenderer.d.ts.map +1 -0
  114. package/Renderers/PathwayRenderers.d.ts +59 -0
  115. package/Renderers/PathwayRenderers.d.ts.map +1 -0
  116. package/fable_modules/Thoth.Json.10.4.1/Decode.fs.d.ts +126 -0
  117. package/fable_modules/Thoth.Json.10.4.1/Decode.fs.d.ts.map +1 -0
  118. package/fable_modules/Thoth.Json.10.4.1/Encode.fs.d.ts +163 -0
  119. package/fable_modules/Thoth.Json.10.4.1/Encode.fs.d.ts.map +1 -0
  120. package/fable_modules/Thoth.Json.10.4.1/Types.fs.d.ts +66 -0
  121. package/fable_modules/Thoth.Json.10.4.1/Types.fs.d.ts.map +1 -0
  122. package/package.json +53 -39
  123. package/src/Components/HelloComponent.ts +48 -48
  124. package/src/Designer.ts +389 -389
  125. package/src/FormSpec.ts +3154 -3114
  126. package/src/FormSpecHelpers.ts +397 -374
  127. package/src/FormSpecValues.ts +158 -0
  128. package/src/Helpers.ts +766 -765
  129. package/src/Interfaces.ts +166 -166
  130. package/src/Interop/FormSpec.Api.Helpers.ts +835 -872
  131. package/src/Interop/FormSpec.Api.Option.ts +1637 -1618
  132. package/src/Interop/FormSpec.Values.Api.Option.ts +1241 -1214
  133. package/src/Logging/LogTypes.ts +212 -212
  134. package/src/Migrator.ts +156 -156
  135. package/src/PathwayDataExtractor.ts +290 -290
  136. package/src/PathwayExecutor.ts +1379 -1102
  137. package/src/PathwayValidator.ts +238 -244
  138. package/src/PluginInterface.ts +79 -79
  139. package/src/Prelude.ts +21 -21
  140. package/src/Renderers/FormSpecMarkdownRenderer.ts +875 -874
  141. package/src/Renderers/MermaidRenderer.ts +218 -218
  142. package/src/Renderers/PathwayRenderers.ts +208 -200
  143. package/src/Components/HelloComponent.ts.map +0 -1
  144. package/src/Designer.ts.map +0 -1
  145. package/src/FormSpec.ts.map +0 -1
  146. package/src/FormSpecHelpers.ts.map +0 -1
  147. package/src/Helpers.ts.map +0 -1
  148. package/src/Interfaces.ts.map +0 -1
  149. package/src/Interop/FormSpec.Api.Helpers.ts.map +0 -1
  150. package/src/Interop/FormSpec.Api.Option.ts.map +0 -1
  151. package/src/Interop/FormSpec.Values.Api.Option.ts.map +0 -1
  152. package/src/Logging/LogTypes.ts.map +0 -1
  153. package/src/Migrator.ts.map +0 -1
  154. package/src/PathwayDataExtractor.ts.map +0 -1
  155. package/src/PathwayExecutor.ts.map +0 -1
  156. package/src/PathwayValidator.ts.map +0 -1
  157. package/src/PluginInterface.ts.map +0 -1
  158. package/src/Prelude.ts.map +0 -1
  159. package/src/Renderers/FormSpecMarkdownRenderer.ts.map +0 -1
  160. package/src/Renderers/MermaidRenderer.ts.map +0 -1
  161. package/src/Renderers/PathwayRenderers.ts.map +0 -1
@@ -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