@f1studio/form-spec 5.0.0-alpha.149 → 5.0.0-alpha.152
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/FormSpec.FS/Integrations/Adapters/CorEMR/CoreMREncoder.d.ts.map +1 -1
- package/FormSpec.FS/Integrations/Adapters/CorEMR/CoreMRSourceMap.d.ts +5 -3
- package/FormSpec.FS/Integrations/Adapters/CorEMR/CoreMRSourceMap.d.ts.map +1 -1
- package/FormSpec.FS/Integrations/CorEMR/ItemTriggerConverter.d.ts +19 -0
- package/FormSpec.FS/Integrations/CorEMR/ItemTriggerConverter.d.ts.map +1 -0
- package/FormSpec.FS/Integrations/CorEMR/TemplateManifestDecoder.d.ts +39 -2
- package/FormSpec.FS/Integrations/CorEMR/TemplateManifestDecoder.d.ts.map +1 -1
- package/FormSpec.FS/Interop/Facade/BlueprintFilledForm.d.ts +16 -0
- package/FormSpec.FS/Interop/Facade/BlueprintFilledForm.d.ts.map +1 -1
- package/FormSpec.TS/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRElementTypeMap.js +3 -3
- package/FormSpec.TS/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRElementTypeMap.js.map +1 -1
- package/FormSpec.TS/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRFieldTypeMapper.js +2 -2
- package/FormSpec.TS/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRFieldTypeMapper.js.map +1 -1
- package/FormSpec.TS/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRTemplateToFormSpec.js +1 -1
- package/FormSpec.TS/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRTemplateToFormSpec.js.map +1 -1
- package/FormSpec.TS/FormSpec.FS/Integrations/Adapters/CorEMR/CoreMREncoder.js +23 -21
- package/FormSpec.TS/FormSpec.FS/Integrations/Adapters/CorEMR/CoreMREncoder.js.map +1 -1
- package/FormSpec.TS/FormSpec.FS/Integrations/Adapters/CorEMR/CoreMRSourceMap.js +16 -7
- package/FormSpec.TS/FormSpec.FS/Integrations/Adapters/CorEMR/CoreMRSourceMap.js.map +1 -1
- package/FormSpec.TS/FormSpec.FS/Integrations/CorEMR/ItemTriggerConverter.js +580 -0
- package/FormSpec.TS/FormSpec.FS/Integrations/CorEMR/ItemTriggerConverter.js.map +1 -0
- package/FormSpec.TS/FormSpec.FS/Integrations/CorEMR/TemplateManifestDecoder.js +199 -8
- package/FormSpec.TS/FormSpec.FS/Integrations/CorEMR/TemplateManifestDecoder.js.map +1 -1
- package/FormSpec.TS/FormSpec.FS/Interop/Facade/BlueprintFilledForm.js +25 -1
- package/FormSpec.TS/FormSpec.FS/Interop/Facade/BlueprintFilledForm.js.map +1 -1
- package/FormSpec.TS/Thoth.Json/packages/Thoth.Json/Encode.js.map +1 -1
- package/README.md +7 -7
- package/package.json +13 -15
- package/src/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRElementTypeMap.ts +3 -3
- package/src/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRFieldTypeMapper.ts +3 -3
- package/src/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRTemplateToFormSpec.ts +1 -1
- package/src/FormSpec.FS/Integrations/Adapters/CorEMR/CoreMREncoder.ts +25 -23
- package/src/FormSpec.FS/Integrations/Adapters/CorEMR/CoreMRSourceMap.ts +19 -13
- package/src/FormSpec.FS/Integrations/CorEMR/ItemTriggerConverter.ts +545 -0
- package/src/FormSpec.FS/Integrations/CorEMR/TemplateManifestDecoder.ts +120 -14
- package/src/FormSpec.FS/Interop/Facade/BlueprintFilledForm.ts +29 -1
- package/FormSpec.TS/FormSpec.FS/BitmaskHelpers.ts.map +0 -1
- package/FormSpec.TS/FormSpec.FS/BlueprintValidation.ts.map +0 -1
- package/FormSpec.TS/FormSpec.FS/Components/HelloComponent.ts.map +0 -1
- package/FormSpec.TS/FormSpec.FS/Designer.ts.map +0 -1
- package/FormSpec.TS/FormSpec.FS/FormSpec.ts.map +0 -1
- package/FormSpec.TS/FormSpec.FS/FormSpecHelpers.ts.map +0 -1
- package/FormSpec.TS/FormSpec.FS/FormSpecValues.ts.map +0 -1
- package/FormSpec.TS/FormSpec.FS/Helpers.ts.map +0 -1
- package/FormSpec.TS/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRAdapter.ts.map +0 -1
- package/FormSpec.TS/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRElementTypeMap.ts.map +0 -1
- package/FormSpec.TS/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRFieldTypeMapper.ts.map +0 -1
- package/FormSpec.TS/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRFormSpecValidator.ts.map +0 -1
- package/FormSpec.TS/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRSectioning.ts.map +0 -1
- package/FormSpec.TS/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRSemanticReportBuilder.ts.map +0 -1
- package/FormSpec.TS/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRStepsBuilder.ts.map +0 -1
- package/FormSpec.TS/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRTemplateMapper.ts.map +0 -1
- package/FormSpec.TS/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRTemplateToFormSpec.ts.map +0 -1
- package/FormSpec.TS/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRTriggerConverter.ts.map +0 -1
- package/FormSpec.TS/FormSpec.FS/Integrations/Adapters/CorEMR/CoreMREncoder.ts.map +0 -1
- package/FormSpec.TS/FormSpec.FS/Integrations/Adapters/CorEMR/CoreMRSourceMap.ts.map +0 -1
- package/FormSpec.TS/FormSpec.FS/Integrations/Adapters/CorEMR/FormSpecToCoreMRInsert.ts.map +0 -1
- package/FormSpec.TS/FormSpec.FS/Integrations/Adapters/FormSystemAdapter.ts.map +0 -1
- package/FormSpec.TS/FormSpec.FS/Integrations/Adapters/ReactHookForm/ReactHookFormAdapter.ts.map +0 -1
- package/FormSpec.TS/FormSpec.FS/Integrations/Adapters/ReactHookForm/ReactHookFormTypes.ts.map +0 -1
- package/FormSpec.TS/FormSpec.FS/Integrations/CorEMR/CoreMRTypes.ts.map +0 -1
- package/FormSpec.TS/FormSpec.FS/Integrations/CorEMR/TemplateDecodeTypes.ts.map +0 -1
- package/FormSpec.TS/FormSpec.FS/Integrations/CorEMR/TemplateManifestDecoder.ts.map +0 -1
- package/FormSpec.TS/FormSpec.FS/Integrations/OpenFda/OpenFdaTypes.ts.map +0 -1
- package/FormSpec.TS/FormSpec.FS/Interfaces.ts.map +0 -1
- package/FormSpec.TS/FormSpec.FS/Interop/Facade/BlueprintFilledForm.ts.map +0 -1
- package/FormSpec.TS/FormSpec.FS/Interop/Facade/FormAnswersGate.ts.map +0 -1
- package/FormSpec.TS/FormSpec.FS/Interop/FormSpec.Api.Helpers.ts.map +0 -1
- package/FormSpec.TS/FormSpec.FS/Interop/FormSpec.Api.Option.ts.map +0 -1
- package/FormSpec.TS/FormSpec.FS/Interop/FormSpec.Values.Api.Option.ts.map +0 -1
- package/FormSpec.TS/FormSpec.FS/Logging/LogTypes.ts.map +0 -1
- package/FormSpec.TS/FormSpec.FS/Migrator.ts.map +0 -1
- package/FormSpec.TS/FormSpec.FS/PathwayDataExtractor.ts.map +0 -1
- package/FormSpec.TS/FormSpec.FS/PathwayExecutor.ts.map +0 -1
- package/FormSpec.TS/FormSpec.FS/PathwayValidator.ts.map +0 -1
- package/FormSpec.TS/FormSpec.FS/PluginInterface.ts.map +0 -1
- package/FormSpec.TS/FormSpec.FS/Prelude.ts.map +0 -1
- package/FormSpec.TS/FormSpec.FS/Provenance.ts.map +0 -1
- package/FormSpec.TS/FormSpec.FS/Renderers/FormSpecMarkdownRenderer.ts.map +0 -1
- package/FormSpec.TS/FormSpec.FS/Renderers/MermaidRenderer.ts.map +0 -1
- package/FormSpec.TS/FormSpec.FS/Renderers/PathwayRenderers.ts.map +0 -1
- package/FormSpec.TS/PluginRegistration.ts.map +0 -1
- package/FormSpec.TS/Thoth.Json/packages/Thoth.Json/Decode.ts.map +0 -1
- package/FormSpec.TS/Thoth.Json/packages/Thoth.Json/Encode.ts.map +0 -1
- package/FormSpec.TS/Thoth.Json/packages/Thoth.Json/Extra.ts.map +0 -1
- package/FormSpec.TS/Thoth.Json/packages/Thoth.Json/Types.ts.map +0 -1
- package/FormSpec.TS/fable_modules/Fable.Form.3.0.0/Base.fs +0 -511
- package/FormSpec.TS/fable_modules/Fable.Form.3.0.0/Base.fs.ts.map +0 -1
- package/FormSpec.TS/fable_modules/Fable.Form.3.0.0/Error.fs +0 -16
- package/FormSpec.TS/fable_modules/Fable.Form.3.0.0/Error.fs.ts.map +0 -1
- package/FormSpec.TS/fable_modules/Fable.Form.3.0.0/Extensions.fs +0 -50
- package/FormSpec.TS/fable_modules/Fable.Form.3.0.0/Extensions.fs.ts.map +0 -1
- package/FormSpec.TS/fable_modules/Fable.Form.3.0.0/Fable.Form.fableproj +0 -28
- package/FormSpec.TS/fable_modules/Fable.Form.3.0.0/Field.fs +0 -24
- package/FormSpec.TS/fable_modules/Fable.Form.3.0.0/Field.fs.ts.map +0 -1
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.5.0.1/Fable.Form.Simple.fableproj +0 -31
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.5.0.1/Form.fs +0 -178
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.5.0.1/Form.fs.ts.map +0 -1
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/CheckboxField.fs +0 -47
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/CheckboxField.fs.ts.map +0 -1
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/ColorField.fs +0 -49
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/ColorField.fs.ts.map +0 -1
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/DateField.fs +0 -52
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/DateField.fs.ts.map +0 -1
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/DateTimeLocalField.fs +0 -54
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/DateTimeLocalField.fs.ts.map +0 -1
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/EmailField.fs +0 -48
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/EmailField.fs.ts.map +0 -1
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/Fable.Form.Simple.Bulma.fableproj +0 -53
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/FileField.fs +0 -132
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/FileField.fs.ts.map +0 -1
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/Form.fs +0 -537
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/Form.fs.ts.map +0 -1
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/FormList.fs +0 -361
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/FormList.fs.ts.map +0 -1
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/Group.fs +0 -52
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/Group.fs.ts.map +0 -1
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/Html.View.fs +0 -246
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/Html.View.fs.ts.map +0 -1
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/InputField.fs +0 -52
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/InputField.fs.ts.map +0 -1
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/NumberField.fs +0 -56
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/NumberField.fs.ts.map +0 -1
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/PasswordField.fs +0 -46
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/PasswordField.fs.ts.map +0 -1
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/RadioField.fs +0 -51
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/RadioField.fs.ts.map +0 -1
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/SearchField.fs +0 -49
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/SearchField.fs.ts.map +0 -1
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/Section.fs +0 -60
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/Section.fs.ts.map +0 -1
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/SelectField.fs +0 -79
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/SelectField.fs.ts.map +0 -1
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/TelField.fs +0 -44
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/TelField.fs.ts.map +0 -1
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/TextField.fs +0 -49
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/TextField.fs.ts.map +0 -1
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/TextareaField.fs +0 -59
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/TextareaField.fs.ts.map +0 -1
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/TimeField.fs +0 -44
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/TimeField.fs.ts.map +0 -1
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/Types.fs +0 -143
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/Types.fs.ts.map +0 -1
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/CheckboxField.fs +0 -36
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/CheckboxField.fs.ts.map +0 -1
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/ColorField.fs +0 -49
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/ColorField.fs.ts.map +0 -1
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/DateField.fs +0 -67
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/DateField.fs.ts.map +0 -1
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/DateTimeLocalField.fs +0 -70
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/DateTimeLocalField.fs.ts.map +0 -1
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/EmailField.fs +0 -76
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/EmailField.fs.ts.map +0 -1
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/Fable.Form.Simple.Fields.Html.fableproj +0 -45
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/NumberField.fs +0 -105
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/NumberField.fs.ts.map +0 -1
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/PasswordField.fs +0 -66
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/PasswordField.fs.ts.map +0 -1
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/RadioField.fs +0 -72
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/RadioField.fs.ts.map +0 -1
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/RangeField.fs +0 -102
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/RangeField.fs.ts.map +0 -1
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/SearchField.fs +0 -83
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/SearchField.fs.ts.map +0 -1
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/SelectField.fs +0 -83
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/SelectField.fs.ts.map +0 -1
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/TelField.fs +0 -63
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/TelField.fs.ts.map +0 -1
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/TextField.fs +0 -83
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/TextField.fs.ts.map +0 -1
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/TextareaField.fs +0 -92
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/TextareaField.fs.ts.map +0 -1
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/TimeField.fs +0 -108
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/TimeField.fs.ts.map +0 -1
- package/FormSpec.TS/fable_modules/Fable.Promise.3.2.0/AsyncIterable.fs +0 -57
- package/FormSpec.TS/fable_modules/Fable.Promise.3.2.0/AsyncIterable.fs.ts.map +0 -1
- package/FormSpec.TS/fable_modules/Fable.Promise.3.2.0/Fable.Promise.fableproj +0 -20
- package/FormSpec.TS/fable_modules/Fable.Promise.3.2.0/Promise.fs +0 -766
- package/FormSpec.TS/fable_modules/Fable.Promise.3.2.0/Promise.fs.ts.map +0 -1
- package/FormSpec.TS/fable_modules/Fable.Promise.3.2.0/PromiseImpl.fs +0 -31
- package/FormSpec.TS/fable_modules/Fable.Promise.3.2.0/PromiseImpl.fs.ts.map +0 -1
- package/FormSpec.TS/fable_modules/Fable.React.Types.18.3.0/Fable.React.Extensions.fs +0 -17
- package/FormSpec.TS/fable_modules/Fable.React.Types.18.3.0/Fable.React.Hooks.fs +0 -152
- package/FormSpec.TS/fable_modules/Fable.React.Types.18.3.0/Fable.React.Hooks.fs.ts.map +0 -1
- package/FormSpec.TS/fable_modules/Fable.React.Types.18.3.0/Fable.React.Types.fableproj +0 -28
- package/FormSpec.TS/fable_modules/Fable.React.Types.18.3.0/Fable.React.fs +0 -218
- package/FormSpec.TS/fable_modules/Fable.React.Types.18.3.0/Fable.React.fs.ts.map +0 -1
- package/FormSpec.TS/fable_modules/Fable.ReactDom.Types.18.2.0/Fable.ReactDom.Types.fableproj +0 -27
- package/FormSpec.TS/fable_modules/Fable.ReactDom.Types.18.2.0/Fable.ReactDom.fs +0 -82
- package/FormSpec.TS/fable_modules/Fable.ReactDom.Types.18.2.0/Fable.ReactDom.fs.ts.map +0 -1
- package/FormSpec.TS/fable_modules/Feliz.2.8.0/BorderStyle.fs +0 -59
- package/FormSpec.TS/fable_modules/Feliz.2.8.0/Colors.fs +0 -154
- package/FormSpec.TS/fable_modules/Feliz.2.8.0/Colors.fs.ts.map +0 -1
- package/FormSpec.TS/fable_modules/Feliz.2.8.0/DateParsing.fs +0 -52
- package/FormSpec.TS/fable_modules/Feliz.2.8.0/DateParsing.fs.ts.map +0 -1
- package/FormSpec.TS/fable_modules/Feliz.2.8.0/Feliz.fableproj +0 -53
- package/FormSpec.TS/fable_modules/Feliz.2.8.0/Fonts.fs +0 -240
- package/FormSpec.TS/fable_modules/Feliz.2.8.0/GridTypes.fs +0 -24
- package/FormSpec.TS/fable_modules/Feliz.2.8.0/Helpers.fs +0 -11
- package/FormSpec.TS/fable_modules/Feliz.2.8.0/Helpers.fs.ts.map +0 -1
- package/FormSpec.TS/fable_modules/Feliz.2.8.0/Html.fs +0 -826
- package/FormSpec.TS/fable_modules/Feliz.2.8.0/Internal.fs +0 -176
- package/FormSpec.TS/fable_modules/Feliz.2.8.0/Internal.fs.ts.map +0 -1
- package/FormSpec.TS/fable_modules/Feliz.2.8.0/Interop.fs +0 -29
- package/FormSpec.TS/fable_modules/Feliz.2.8.0/Interop.fs.ts.map +0 -1
- package/FormSpec.TS/fable_modules/Feliz.2.8.0/Key.fs +0 -65
- package/FormSpec.TS/fable_modules/Feliz.2.8.0/Key.fs.ts.map +0 -1
- package/FormSpec.TS/fable_modules/Feliz.2.8.0/Length.fs +0 -145
- package/FormSpec.TS/fable_modules/Feliz.2.8.0/Locale.fs +0 -876
- package/FormSpec.TS/fable_modules/Feliz.2.8.0/Properties.fs +0 -4085
- package/FormSpec.TS/fable_modules/Feliz.2.8.0/Properties.fs.ts.map +0 -1
- package/FormSpec.TS/fable_modules/Feliz.2.8.0/React.fs +0 -494
- package/FormSpec.TS/fable_modules/Feliz.2.8.0/ReactDOM.fs +0 -25
- package/FormSpec.TS/fable_modules/Feliz.2.8.0/ReactDOM.fs.ts.map +0 -1
- package/FormSpec.TS/fable_modules/Feliz.2.8.0/ReactInterop.fs +0 -20
- package/FormSpec.TS/fable_modules/Feliz.2.8.0/ReactTypes.fs +0 -42
- package/FormSpec.TS/fable_modules/Feliz.2.8.0/ReactTypes.fs.ts.map +0 -1
- package/FormSpec.TS/fable_modules/Feliz.2.8.0/StyleTypes.fs +0 -57
- package/FormSpec.TS/fable_modules/Feliz.2.8.0/StyleTypes.fs.ts.map +0 -1
- package/FormSpec.TS/fable_modules/Feliz.2.8.0/Styles.fs +0 -6378
- package/FormSpec.TS/fable_modules/Feliz.2.8.0/Svg.fs +0 -1455
- package/FormSpec.TS/fable_modules/Feliz.2.8.0/Svg.fs.ts.map +0 -1
- package/FormSpec.TS/fable_modules/Feliz.2.8.0/TextDecorationLine.fs +0 -13
- package/FormSpec.TS/fable_modules/Feliz.2.8.0/TextDecorationStyle.fs +0 -33
- package/FormSpec.TS/fable_modules/Feliz.2.8.0/Transform.fs +0 -181
- package/FormSpec.TS/fable_modules/Feliz.2.8.0/TransformOrigin.fs +0 -17
- package/FormSpec.TS/fable_modules/Feliz.2.8.0/TransitionProperty.fs +0 -162
- package/FormSpec.TS/fable_modules/Feliz.2.8.0/TransitionTimingFunction.fs +0 -62
- package/FormSpec.TS/fable_modules/Feliz.2.8.0/Types.fs +0 -13
- package/FormSpec.TS/fable_modules/Feliz.2.8.0/Types.fs.ts.map +0 -1
- package/FormSpec.TS/fable_modules/Feliz.Bulma.3.0.0/Bulma.fs +0 -990
- package/FormSpec.TS/fable_modules/Feliz.Bulma.3.0.0/ElementBuilders.fs +0 -179
- package/FormSpec.TS/fable_modules/Feliz.Bulma.3.0.0/ElementBuilders.fs.ts.map +0 -1
- package/FormSpec.TS/fable_modules/Feliz.Bulma.3.0.0/Feliz.Bulma.fableproj +0 -32
- package/FormSpec.TS/fable_modules/Feliz.Bulma.3.0.0/Modifiers.fs +0 -1986
- package/FormSpec.TS/fable_modules/Feliz.Bulma.3.0.0/Modifiers.fs.ts.map +0 -1
- package/FormSpec.TS/fable_modules/Feliz.Bulma.3.0.0/Operators.fs +0 -7
- package/FormSpec.TS/fable_modules/Feliz.Bulma.3.0.0/Operators.fs.ts.map +0 -1
- package/FormSpec.TS/fable_modules/Feliz.Bulma.3.0.0/PropertyBuilders.fs +0 -8
- package/FormSpec.TS/fable_modules/Glutinum.Feliz.ReactSignaturePadWrapper.1.0.2/Exports.fs +0 -14
- package/FormSpec.TS/fable_modules/Glutinum.Feliz.ReactSignaturePadWrapper.1.0.2/Glutinum.Feliz.ReactSignaturePadWrapper.fableproj +0 -18
- package/FormSpec.TS/fable_modules/Glutinum.Feliz.ReactSignaturePadWrapper.1.0.2/Interop.fs +0 -6
- package/FormSpec.TS/fable_modules/Glutinum.Feliz.ReactSignaturePadWrapper.1.0.2/ReactSignaturePadWrapper.fs +0 -32
- package/FormSpec.TS/fable_modules/Glutinum.Feliz.ReactSignaturePadWrapper.1.0.2/Types.fs +0 -3
- package/FormSpec.TS/fable_modules/Glutinum.Feliz.ReactSignaturePadWrapper.1.0.2/Types.fs.ts.map +0 -1
- package/FormSpec.TS/fable_modules/project_cracked.json +0 -1
- package/FormSpec.TS/plugins/allergyfinder/src/AllergyFinderField.ts.map +0 -1
- package/FormSpec.TS/plugins/allergyfinder/src/AllergyLogic.ts.map +0 -1
- package/FormSpec.TS/plugins/allergyfinder/src/OpenFdaClient.ts.map +0 -1
- package/FormSpec.TS/plugins/bmi/src/BMIField.ts.map +0 -1
- package/FormSpec.TS/plugins/demographics/src/DemographicsField.ts.map +0 -1
- package/FormSpec.TS/plugins/likert/src/LikertField.ts.map +0 -1
- package/FormSpec.TS/plugins/signature/src/SignatureField.ts.map +0 -1
- package/FormSpec.TS/plugins/vitals/src/VitalsField.ts.map +0 -1
- package/FormSpec.TS/plugins/vitals/src/VitalsLogic.ts.map +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["./Properties.fs"],"names":["i","duration","tupledArg","values","patternInput","key","shift","pressedKey","ev","handler","coordinates","cmdType","cmds","path"],"mappings":";;;;;;;;;;;;;;;;;;;;;;QA6C6BA;WASP,CAAA,AADX,KAAc,KADd,0CANC,CAAG,AAAAA,IAAI,OAAQ,MAAqBA,KACjBA,IAEvB,SAAE,MAAAC,WACA,QAAAA,WACA,QAAAA,gBAGkB,SATCD,OASgB,aAAAC,gBARjC,CAAG,AAAAD,MAAI,OAAQ,MAAqBA,OACjBA;;;;WAgBpB,KAAc,MALd,kHACC,CAAA,CAAA,CAAA,CAAA,CAAA,AADa,AAAAE,eACQ,OADR,AAAAA,gBAEQ,OAFR,AAAAA,gBAGQ,OAHR,AAAAA,eADjBC;;;;AAUQC,qDAAsDC;AAArBC,2BAAjC,AAAAF;AAACG,\u002BBAAD,AAAAH;;AACE,QADF,AAAAA;AACE,YAAME;AAAN,gBACY,CAAA,CAAA,AAAAC,mCAAuB,AAAAC,\u002BBAAoB,AAAAA,eAAc,AAAAA;;;;;;;aADrE,IAEa,CAAA,AAAAD,mCAAuB,AAAAC,\u002BBAAoB,AAAAA;;;;;;;SAFxD,IAAMF;AAAN,YAGa,CAAA,AAAAC,mCAAuB,AAAAC,\u002BBAAoB,AAAAA;;;;;;;SAHxD,IAIc,AAAAD,mCAAuB,AAAAC;;;;;;;;AAH\u002BC,AAAAC,oBAAQD;;;;AACtB,AAAAC,oBAAQD;;;;AACP,AAAAC,oBAAQD;;;;AACtB,AAAAC,oBAAQD;;;;;;;;;;WAMxE,KAAc,KADd,8EAAsB,CAAA,AAAR,AAAAN,eAA4B,OAA5B,AAAAA,eADjBQ;;;;WAOG,KAAc,KADd,sEAAsB,CAAA,AAAR,AAAAR,eAA4B,OAA5B,AAAAA,eADjBQ;;;;WAaG,WAPA;AAAcC,gCAAA,AAAAT;AAASU,sDAAT,AAAAV;AACb,YAAG,OAAAU,UAAc;mBAAqBD;;;AAKpB,mBAAA,CAAA,AAAeA,UAAW,OADrC,KAAc,KADd,yEAA\u002BB,KAAc,WADhDC;;OAJRC;;;;WAmBG,WAPA;AAAcF,gCAAA,AAAAT;AAASU,oDAAT,AAAAV;AACb,YAAG,OAAAU,UAAc;mBAAqBD;;;AAKpB,mBAAA,CAAA,AAAeA,UAAW,OADrC,KAAc,KADd,qEAA\u002BB,KAAc,WADhDC;;OAJRC","file":null,"sourcesContent":null,"sourceRoot":null}
|
|
@@ -1,494 +0,0 @@
|
|
|
1
|
-
namespace Feliz
|
|
2
|
-
|
|
3
|
-
open System
|
|
4
|
-
open Fable.Core
|
|
5
|
-
open Fable.Core.JsInterop
|
|
6
|
-
open Browser.Types
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
type [<Erase>] React =
|
|
10
|
-
/// Creates a disposable instance by providing the implementation of the dispose member.
|
|
11
|
-
static member inline createDisposable(dispose: unit -> unit) =
|
|
12
|
-
Internal.createDisposable dispose
|
|
13
|
-
|
|
14
|
-
static member inline useDisposable (dispose: unit -> unit) =
|
|
15
|
-
Internal.useDisposable dispose
|
|
16
|
-
|
|
17
|
-
/// The `React.fragment` component lets you return multiple elements in your `render()` method without creating an additional DOM element.
|
|
18
|
-
static member inline fragment xs =
|
|
19
|
-
Fable.React.ReactBindings.React.createElement(Fable.React.ReactBindings.React.Fragment, obj(), xs)
|
|
20
|
-
|
|
21
|
-
/// The `React.fragment` component lets you return multiple elements in your `render()` method without creating an additional DOM element.
|
|
22
|
-
static member inline keyedFragment(key: int, xs) = // Fable.React.Helpers.fragment [ !!("key", key) ] xs
|
|
23
|
-
Fable.React.ReactBindings.React.createElement(Fable.React.ReactBindings.React.Fragment, createObj ["key" ==> key], xs)
|
|
24
|
-
|
|
25
|
-
/// The `React.fragment` component lets you return multiple elements in your `render()` method without creating an additional DOM element.
|
|
26
|
-
static member inline keyedFragment(key: string, xs) =
|
|
27
|
-
Fable.React.ReactBindings.React.createElement(Fable.React.ReactBindings.React.Fragment, createObj ["key" ==> key], xs)
|
|
28
|
-
|
|
29
|
-
/// The `React.fragment` component lets you return multiple elements in your `render()` method without creating an additional DOM element.
|
|
30
|
-
static member inline keyedFragment(key: System.Guid, xs) =
|
|
31
|
-
Fable.React.ReactBindings.React.createElement(Fable.React.ReactBindings.React.Fragment, createObj ["key" ==> string key], xs)
|
|
32
|
-
|
|
33
|
-
/// Placeholder empty React element to be used when importing external React components with the `[<ReactComponent>]` attribute.
|
|
34
|
-
static member inline imported() = Html.none
|
|
35
|
-
|
|
36
|
-
/// The `useState` hook that creates a state variable for React function components from an initialization function.
|
|
37
|
-
static member inline useState<'t>(initializer: unit -> 't) = Interop.reactApi.useState<unit -> 't,'t>(initializer)
|
|
38
|
-
|
|
39
|
-
/// Accepts a reducer and returns the current state paired with a dispatch.
|
|
40
|
-
static member inline useReducer(update, initialState) = Interop.reactApi.useReducer update initialState
|
|
41
|
-
|
|
42
|
-
/// The `useEffect` hook that creates a disposable effect for React function components.
|
|
43
|
-
/// This effect has no dependencies which means the effect is re-executed on every re-render.
|
|
44
|
-
/// To make the effect run once (for example you subscribe once to web sockets) then provide an empty array
|
|
45
|
-
/// for the dependencies: `React.useEffect(disposableEffect, [| |])`.
|
|
46
|
-
static member inline useEffect(effect: unit -> #IDisposable) : unit = ReactInterop.useEffect(effect)
|
|
47
|
-
/// The `useEffect` hook that creates a disposable effect for React function components.
|
|
48
|
-
/// This effect has no dependencies which means the effect is re-executed on every re-render.
|
|
49
|
-
/// To make the effect run once (for example you subscribe once to web sockets) then provide an empty array
|
|
50
|
-
/// for the dependencies: `React.useEffect(disposableEffect, [| |])`.
|
|
51
|
-
static member inline useEffect(effect: unit -> #IDisposable option) = React.useEffect(effect >> Helpers.optDispose)
|
|
52
|
-
/// The `useEffect` hook that creates a disposable effect for React function components.
|
|
53
|
-
/// This effect takes an array of *dependencies*.
|
|
54
|
-
/// Whenever any of these dependencies change, the effect is re-executed. To execute the effect only once,
|
|
55
|
-
/// you have to explicitly provide an empty array for the dependencies: `React.useEffect(effect, [| |])`.
|
|
56
|
-
static member inline useEffect(effect: unit -> #IDisposable, dependencies: obj []) : unit = ReactInterop.useEffectWithDeps effect dependencies
|
|
57
|
-
/// The `useEffect` hook that creates a disposable effect for React function components.
|
|
58
|
-
/// This effect takes an array of *dependencies*.
|
|
59
|
-
/// Whenever any of these dependencies change, the effect is re-executed. To execute the effect only once,
|
|
60
|
-
/// you have to explicitly provide an empty array for the dependencies: `React.useEffect(effect, [| |])`.
|
|
61
|
-
static member inline useEffect(effect: unit -> #IDisposable option, dependencies: obj []) = React.useEffect(effect >> Helpers.optDispose, dependencies)
|
|
62
|
-
|
|
63
|
-
/// The `useLayoutEffect` hook that creates a disposable effect for React function components.
|
|
64
|
-
/// This effect has no dependencies which means the effect is re-executed on every re-render.
|
|
65
|
-
/// To make the effect run once (for example you subscribe once to web sockets) then provide an empty array
|
|
66
|
-
/// for the dependencies: `React.useLayoutEffect(disposableEffect, [| |])`.
|
|
67
|
-
/// The signature is identical to useEffect, but it fires synchronously after all DOM mutations. Use this to read layout from the DOM and synchronously re-render. Updates scheduled inside useLayoutEffect will be flushed synchronously, before the browser has a chance to paint.
|
|
68
|
-
static member inline useLayoutEffect(effect: unit -> #IDisposable) : unit = ReactInterop.useLayoutEffect(effect)
|
|
69
|
-
|
|
70
|
-
/// The `useLayoutEffect` hook that creates a disposable effect for React function components.
|
|
71
|
-
/// This effect has no dependencies which means the effect is re-executed on every re-render.
|
|
72
|
-
/// To make the effect run once (for example you subscribe once to web sockets) then provide an empty array
|
|
73
|
-
/// for the dependencies: `React.useLayoutEffect(disposableEffect, [| |])`.
|
|
74
|
-
/// The signature is identical to useEffect, but it fires synchronously after all DOM mutations. Use this to read layout from the DOM and synchronously re-render. Updates scheduled inside useLayoutEffect will be flushed synchronously, before the browser has a chance to paint.
|
|
75
|
-
static member inline useLayoutEffect(effect: unit -> #IDisposable option) = React.useLayoutEffect(effect >> Helpers.optDispose)
|
|
76
|
-
|
|
77
|
-
/// The `useLayoutEffect` hook that creates a disposable effect for React function components.
|
|
78
|
-
/// This effect takes an array of *dependencies*.
|
|
79
|
-
/// Whenever any of these dependencies change, the effect is re-executed. To execute the effect only once,
|
|
80
|
-
/// you have to explicitly provide an empty array for the dependencies: `React.useLayoutEffect(effect, [| |])`.
|
|
81
|
-
/// The signature is identical to useEffect, but it fires synchronously after all DOM mutations. Use this to read layout from the DOM and synchronously re-render. Updates scheduled inside useLayoutEffect will be flushed synchronously, before the browser has a chance to paint.
|
|
82
|
-
static member inline useLayoutEffect(effect: unit -> #IDisposable, dependencies: obj []) : unit = ReactInterop.useLayoutEffectWithDeps effect dependencies
|
|
83
|
-
|
|
84
|
-
/// The `useLayoutEffect` hook that creates a disposable effect for React function components.
|
|
85
|
-
/// This effect takes an array of *dependencies*.
|
|
86
|
-
/// Whenever any of these dependencies change, the effect is re-executed. To execute the effect only once,
|
|
87
|
-
/// you have to explicitly provide an empty array for the dependencies: `React.useLayoutEffect(effect, [| |])`.
|
|
88
|
-
/// The signature is identical to useEffect, but it fires synchronously after all DOM mutations. Use this to read layout from the DOM and synchronously re-render. Updates scheduled inside useLayoutEffect will be flushed synchronously, before the browser has a chance to paint.
|
|
89
|
-
static member inline useLayoutEffect(effect: unit -> #IDisposable option, dependencies: obj []) =
|
|
90
|
-
React.useLayoutEffect(effect >> Helpers.optDispose, dependencies)
|
|
91
|
-
|
|
92
|
-
/// The signature is identical to useEffect, but it fires synchronously after all DOM mutations. Use this to read layout from the DOM and synchronously re-render. Updates scheduled inside useLayoutEffect will be flushed synchronously, before the browser has a chance to paint.
|
|
93
|
-
/// This effect is executed on every (re)render
|
|
94
|
-
static member inline useLayoutEffect(effect: unit -> unit) =
|
|
95
|
-
ReactInterop.useLayoutEffect
|
|
96
|
-
(fun _ ->
|
|
97
|
-
effect()
|
|
98
|
-
React.createDisposable(ignore))
|
|
99
|
-
|
|
100
|
-
/// The signature is identical to useEffect, but it fires synchronously after all DOM mutations. Use this to read layout from the DOM and synchronously re-render. Updates scheduled inside useLayoutEffect will be flushed synchronously, before the browser has a chance to paint.
|
|
101
|
-
static member inline useLayoutEffect(effect: unit -> unit, dependencies: obj []) =
|
|
102
|
-
ReactInterop.useLayoutEffectWithDeps
|
|
103
|
-
(fun _ ->
|
|
104
|
-
effect()
|
|
105
|
-
React.createDisposable(ignore))
|
|
106
|
-
dependencies
|
|
107
|
-
|
|
108
|
-
static member inline useLayoutEffectOnce(effect: unit -> unit) =
|
|
109
|
-
React.useLayoutEffect(effect, [| |])
|
|
110
|
-
|
|
111
|
-
static member inline useLayoutEffectOnce(effect: unit -> #IDisposable) =
|
|
112
|
-
React.useLayoutEffect(effect, [| |])
|
|
113
|
-
|
|
114
|
-
static member inline useLayoutEffectOnce(effect: unit -> #IDisposable option) =
|
|
115
|
-
React.useLayoutEffect(effect, [| |])
|
|
116
|
-
|
|
117
|
-
/// React hook to define and use an effect only once when a function component renders for the first time.
|
|
118
|
-
/// This is an alias for `React.useEffect(effect, [| |])` which explicitly provides an empty array for the dependencies of the effect which means the effect will only run once.
|
|
119
|
-
static member inline useEffectOnce(effect: unit -> unit) =
|
|
120
|
-
Internal.useEffectOnce effect
|
|
121
|
-
|
|
122
|
-
/// React hook to define and use a disposable effect only once when a function component renders for the first time.
|
|
123
|
-
/// This is an alias for `React.useEffect(effect, [| |])` which explicitly provides an empty array for the dependencies of the effect which means the effect will only run once.
|
|
124
|
-
static member inline useEffectOnce(effect: unit -> #IDisposable) =
|
|
125
|
-
Internal.useEffectDisposableOnce effect
|
|
126
|
-
|
|
127
|
-
/// React hook to define and use a disposable effect only once when a function component renders for the first time.
|
|
128
|
-
/// This is an alias for `React.useEffect(effect, [| |])` which explicitly provide an empty array for the dependencies of the effect which means the effect will only run once.
|
|
129
|
-
static member inline useEffectOnce(effect: unit -> #IDisposable option) =
|
|
130
|
-
Internal.useEffectDisposableOptOnce effect
|
|
131
|
-
|
|
132
|
-
/// The `useEffect` hook that creates an effect for React function components.
|
|
133
|
-
/// This effect is executed *every time* the function component re-renders.
|
|
134
|
-
///
|
|
135
|
-
/// To make the effect run only once, write: `React.useEffect(effect, [| |])` which explicitly states
|
|
136
|
-
/// that this effect has no dependencies and should only run once on initial render.
|
|
137
|
-
static member inline useEffect(effect: unit -> unit) : unit =
|
|
138
|
-
Internal.useEffect effect
|
|
139
|
-
|
|
140
|
-
/// The `useEffect` hook that creates an effect for React function components. This effect takes an array of *dependencies*.
|
|
141
|
-
/// Whenever any of these dependencies change, the effect is re-executed. To execute the effect only once,
|
|
142
|
-
/// you have to explicitly provide an empty array for the dependencies: `React.useEffect(effect, [| |])`.
|
|
143
|
-
static member inline useEffect (effect: unit -> unit, dependencies: obj []) : unit =
|
|
144
|
-
Internal.useEffectWithDeps effect dependencies
|
|
145
|
-
|
|
146
|
-
/// Can be used to display a label for custom hooks in React DevTools.
|
|
147
|
-
static member inline useDebugValue(value: string) =
|
|
148
|
-
ReactInterop.useDebugValueWithFormatter(value, id)
|
|
149
|
-
|
|
150
|
-
/// Can be used to display a label for custom hooks in React DevTools.
|
|
151
|
-
static member inline useDebugValue(value: 't, formatter: 't -> string) =
|
|
152
|
-
ReactInterop.useDebugValueWithFormatter(value, formatter)
|
|
153
|
-
|
|
154
|
-
/// <summary>
|
|
155
|
-
/// The `useCallback` hook. Returns a memoized callback. Pass an inline callback and an array of dependencies.
|
|
156
|
-
/// `useCallback` will return a memoized version of the callback that only changes if one of the dependencies has changed.
|
|
157
|
-
/// </summary>
|
|
158
|
-
/// <param name='callbackFunction'>A callback function to be memoized.</param>
|
|
159
|
-
/// <param name='dependencies'>An array of dependencies upon which the callback function depends.
|
|
160
|
-
/// If not provided, defaults to empty array, representing dependencies that never change.</param>
|
|
161
|
-
static member inline useCallback(callbackFunction: 'a -> 'b, ?dependencies: obj array) =
|
|
162
|
-
Interop.reactApi.useCallback callbackFunction (defaultArg dependencies [||])
|
|
163
|
-
|
|
164
|
-
/// Returns a mutable ref object whose .current property is initialized to the passed argument (initialValue). The returned object will persist for the full lifetime of the component.
|
|
165
|
-
///
|
|
166
|
-
/// Essentially, useRef is like a container that can hold a mutable value in its .current property.
|
|
167
|
-
static member inline useRef<'t>(initialValue: 't) = Interop.reactApi.useRefInternal(initialValue)
|
|
168
|
-
|
|
169
|
-
/// A specialized version of React.useRef() that creates a reference to an input element.
|
|
170
|
-
///
|
|
171
|
-
/// Useful for controlling the internal properties and methods of that element, for example to enable focus().
|
|
172
|
-
static member inline useInputRef() : IRefValue<HTMLInputElement option> = React.useRef(None)
|
|
173
|
-
|
|
174
|
-
/// A specialized version of React.useRef() that creates a reference to a button element.
|
|
175
|
-
static member inline useButtonRef() : Fable.React.IRefValue<HTMLButtonElement option> = React.useRef(None)
|
|
176
|
-
|
|
177
|
-
/// A specialized version of React.useRef() that creates a reference to a generic HTML element.
|
|
178
|
-
///
|
|
179
|
-
/// Useful for controlling the internal properties and methods of that element, for integration with third-party libraries that require a Html element.
|
|
180
|
-
static member inline useElementRef() : IRefValue<HTMLElement option> = React.useRef(None)
|
|
181
|
-
|
|
182
|
-
/// <summary>
|
|
183
|
-
/// The `useMemo` hook. Returns a memoized value. Pass a "create" function and an array of dependencies.
|
|
184
|
-
/// `useMemo` will only recompute the memoized value when one of the dependencies has changed.
|
|
185
|
-
/// </summary>
|
|
186
|
-
/// <param name='createFunction'>A create function returning a value to be memoized.</param>
|
|
187
|
-
/// <param name='dependencies'>An array of dependencies upon which the create function depends.
|
|
188
|
-
/// If not provided, defaults to empty array, representing dependencies that never change.</param>
|
|
189
|
-
static member inline useMemo(createFunction: unit -> 'a, ?dependencies: obj array) =
|
|
190
|
-
Interop.reactApi.useMemo createFunction (defaultArg dependencies [||])
|
|
191
|
-
|
|
192
|
-
//
|
|
193
|
-
// React.functionComponent
|
|
194
|
-
//
|
|
195
|
-
|
|
196
|
-
/// <summary>
|
|
197
|
-
/// Creates a React function component from a function that accepts a "props" object and renders a result.
|
|
198
|
-
/// A component key can be provided in the props object, or a custom `withKey` function can be provided.
|
|
199
|
-
/// </summary>
|
|
200
|
-
/// <param name='render'>A render function that returns an element.</param>
|
|
201
|
-
/// <param name='withKey'>A function to derive a component key from the props.</param>
|
|
202
|
-
static member inline functionComponent(render: 'props -> ReactElement, ?withKey: 'props -> string) =
|
|
203
|
-
Internal.functionComponent render None withKey
|
|
204
|
-
|
|
205
|
-
/// <summary>
|
|
206
|
-
/// Creates a React function component from a function that accepts a "props" object and renders a result.
|
|
207
|
-
/// A component key can be provided in the props object, or a custom `withKey` function can be provided.
|
|
208
|
-
/// </summary>
|
|
209
|
-
/// <param name='name'>The component name to display in the React dev tools.</param>
|
|
210
|
-
/// <param name='render'>A render function that returns an element.</param>
|
|
211
|
-
/// <param name='withKey'>A function to derive a component key from the props.</param>
|
|
212
|
-
[<Obsolete "React.functionComponent is obsolete. Use [<ReactComponent>] attribute to automatically convert them to React components">]
|
|
213
|
-
static member inline functionComponent(name: string, render: 'props -> ReactElement, ?withKey: 'props -> string) =
|
|
214
|
-
Internal.functionComponent render (Some name) withKey
|
|
215
|
-
|
|
216
|
-
/// <summary>
|
|
217
|
-
/// Creates a React function component from a function that accepts a "props" object and renders a result.
|
|
218
|
-
/// A component key can be provided in the props object, or a custom `withKey` function can be provided.
|
|
219
|
-
/// </summary>
|
|
220
|
-
/// <param name='render'>A render function that returns a list of elements.</param>
|
|
221
|
-
/// <param name='withKey'>A function to derive a component key from the props.</param>
|
|
222
|
-
[<Obsolete "React.functionComponent is obsolete. Use [<ReactComponent>] attribute to automatically convert them to React components">]
|
|
223
|
-
static member inline functionComponent(render: 'props -> #seq<ReactElement>, ?withKey: 'props -> string) =
|
|
224
|
-
Internal.functionComponent (render >> React.fragment) None withKey
|
|
225
|
-
|
|
226
|
-
/// <summary>
|
|
227
|
-
/// Creates a React function component from a function that accepts a "props" object and renders a result.
|
|
228
|
-
/// A component key can be provided in the props object, or a custom `withKey` function can be provided.
|
|
229
|
-
/// </summary>
|
|
230
|
-
/// <param name='render'>A render function that returns a list of elements.</param>
|
|
231
|
-
/// <param name='name'>The component name to display in the React dev tools.</param>
|
|
232
|
-
/// <param name='withKey'>A function to derive a component key from the props.</param>
|
|
233
|
-
[<Obsolete "React.functionComponent is obsolete. Use [<ReactComponent>] attribute to automatically convert them to React components">]
|
|
234
|
-
static member inline functionComponent(name: string, render: 'props -> #seq<ReactElement>, ?withKey: 'props -> string) =
|
|
235
|
-
Internal.functionComponent (render >> React.fragment) (Some name) withKey
|
|
236
|
-
|
|
237
|
-
//
|
|
238
|
-
// React.memo
|
|
239
|
-
//
|
|
240
|
-
|
|
241
|
-
/// <summary>
|
|
242
|
-
/// `React.memo` memoizes the result of a function component. Given the same props, React will skip rendering the component, and reuse the last rendered result.
|
|
243
|
-
/// By default it will only shallowly compare complex objects in the props object. For more control, a custom `areEqual` function can be provided.
|
|
244
|
-
/// A component key can be provided in the props object, or a custom `withKey` function can be provided.
|
|
245
|
-
/// </summary>
|
|
246
|
-
/// <param name='render'>A render function or a React.functionComponent.</param>
|
|
247
|
-
/// <param name='areEqual'>A custom comparison function to use instead of React's default shallow compare.</param>
|
|
248
|
-
/// <param name='withKey'>A function to derive a component key from the props.</param>
|
|
249
|
-
static member inline memo(render: 'props -> ReactElement, ?withKey: 'props -> string, ?areEqual: 'props -> 'props -> bool) =
|
|
250
|
-
Internal.memo render None areEqual withKey
|
|
251
|
-
|
|
252
|
-
/// <summary>
|
|
253
|
-
/// `React.memo` memoizes the result of a function component. Given the same props, React will skip rendering the component, and reuse the last rendered result.
|
|
254
|
-
/// By default it will only shallowly compare complex objects in the props object. For more control, a custom `areEqual` function can be provided.
|
|
255
|
-
/// A component key can be provided in the props object, or a custom `withKey` function can be provided.
|
|
256
|
-
/// </summary>
|
|
257
|
-
/// <param name='name'>The component name to display in the React dev tools.</param>
|
|
258
|
-
/// <param name='render'>A render function or a React.functionComponent.</param>
|
|
259
|
-
/// <param name='areEqual'>A custom comparison function to use instead of React's default shallow compare.</param>
|
|
260
|
-
/// <param name='withKey'>A function to derive a component key from the props.</param>
|
|
261
|
-
static member inline memo(name: string, render: 'props -> ReactElement, ?withKey: 'props -> string, ?areEqual: 'props -> 'props -> bool) =
|
|
262
|
-
Internal.memo render (Some name) areEqual withKey
|
|
263
|
-
|
|
264
|
-
/// <summary>
|
|
265
|
-
/// `React.memo` memoizes the result of a function component. Given the same props, React will skip rendering the component, and reuse the last rendered result.
|
|
266
|
-
/// By default it will only shallowly compare complex objects in the props object. For more control, a custom `areEqual` function can be provided.
|
|
267
|
-
/// A component key can be provided in the props object, or a custom `withKey` function can be provided.
|
|
268
|
-
/// </summary>
|
|
269
|
-
/// <param name='render'>A render function that returns a list of elements.</param>
|
|
270
|
-
/// <param name='withKey'>A function to derive a component key from the props.</param>
|
|
271
|
-
/// <param name='areEqual'>A custom comparison function to use instead of React's default shallow compare.</param>
|
|
272
|
-
static member inline memo(render: 'props -> #seq<ReactElement>, ?withKey: 'props -> string, ?areEqual: 'props -> 'props -> bool) =
|
|
273
|
-
Internal.memo (render >> React.fragment) None areEqual withKey
|
|
274
|
-
|
|
275
|
-
/// <summary>
|
|
276
|
-
/// `React.memo` memoizes the result of a function component. Given the same props, React will skip rendering the component, and reuse the last rendered result.
|
|
277
|
-
/// By default it will only shallowly compare complex objects in the props object. For more control, a custom `areEqual` function can be provided.
|
|
278
|
-
/// A component key can be provided in the props object, or a custom `withKey` function can be provided.
|
|
279
|
-
/// </summary>
|
|
280
|
-
/// <param name='name'>The component name to display in the React dev tools.</param>
|
|
281
|
-
/// <param name='render'>A render function that returns a list of elements.</param>
|
|
282
|
-
/// <param name='withKey'>A function to derive a component key from the props.</param>
|
|
283
|
-
/// <param name='areEqual'>A custom comparison function to use instead of React's default shallow compare.</param>
|
|
284
|
-
static member inline memo(name: string, render: 'props -> #seq<ReactElement>, ?withKey: 'props -> string, ?areEqual: 'props -> 'props -> bool) =
|
|
285
|
-
Internal.memo (render >> React.fragment) (Some name) areEqual withKey
|
|
286
|
-
|
|
287
|
-
//
|
|
288
|
-
// React.useContext
|
|
289
|
-
//
|
|
290
|
-
|
|
291
|
-
/// <summary>
|
|
292
|
-
/// Creates a Context object. When React renders a component that subscribes to this Context object
|
|
293
|
-
/// it will read the current context value from the closest matching Provider above it in the tree.
|
|
294
|
-
/// </summary>
|
|
295
|
-
/// <param name='name'>The component name to display in the React dev tools.</param>
|
|
296
|
-
/// <param name='defaultValue'>A default value that is only used when a component does not have a matching Provider above it in the tree.</param>
|
|
297
|
-
static member inline createContext<'a>(?name: string, ?defaultValue: 'a) =
|
|
298
|
-
Internal.createContext<'a> name defaultValue
|
|
299
|
-
|
|
300
|
-
/// <summary>
|
|
301
|
-
/// A Provider component that allows consuming components to subscribe to context changes.
|
|
302
|
-
/// </summary>
|
|
303
|
-
/// <param name='contextObject'>A context object returned from a previous React.createContext call.</param>
|
|
304
|
-
/// <param name='contextValue'>The context value to be provided to descendant components.</param>
|
|
305
|
-
/// <param name='child'>A child element.</param>
|
|
306
|
-
static member inline contextProvider(contextObject: Fable.React.IContext<'a>, contextValue: 'a, child: ReactElement) : ReactElement =
|
|
307
|
-
Interop.reactApi.createElement(contextObject?Provider, createObj ["value" ==> contextValue], [child])
|
|
308
|
-
/// <summary>
|
|
309
|
-
/// A Provider component that allows consuming components to subscribe to context changes.
|
|
310
|
-
/// </summary>
|
|
311
|
-
/// <param name='contextObject'>A context object returned from a previous React.createContext call.</param>
|
|
312
|
-
/// <param name='contextValue'>The context value to be provided to descendant components.</param>
|
|
313
|
-
/// <param name='children'>A sequence of child elements.</param>
|
|
314
|
-
static member inline contextProvider(contextObject: Fable.React.IContext<'a>, contextValue: 'a, children: #seq<ReactElement>) : ReactElement =
|
|
315
|
-
Interop.reactApi.createElement(contextObject?Provider, createObj ["value" ==> contextValue], children)
|
|
316
|
-
|
|
317
|
-
/// <summary>
|
|
318
|
-
/// A Consumer component that subscribes to context changes.
|
|
319
|
-
/// </summary>
|
|
320
|
-
/// <param name='contextObject'>A context object returned from a previous React.createContext call.</param>
|
|
321
|
-
/// <param name='render'>A render function that returns an element.</param>
|
|
322
|
-
static member inline contextConsumer(contextObject: Fable.React.IContext<'a>, render: 'a -> ReactElement) : ReactElement =
|
|
323
|
-
Interop.reactApi.createElement(contextObject?Consumer, null, [!!render])
|
|
324
|
-
/// <summary>
|
|
325
|
-
/// A Consumer component that subscribes to context changes.
|
|
326
|
-
/// </summary>
|
|
327
|
-
/// <param name='contextObject'>A context object returned from a previous React.createContext call.</param>
|
|
328
|
-
/// <param name='render'>A render function that returns a sequence of elements.</param>
|
|
329
|
-
static member inline contextConsumer(contextObject: Fable.React.IContext<'a>, render: 'a -> #seq<ReactElement>) : ReactElement =
|
|
330
|
-
Interop.reactApi.createElement(contextObject?Consumer, null, [!!(render >> React.fragment)])
|
|
331
|
-
|
|
332
|
-
/// <summary>
|
|
333
|
-
/// The `useContext` hook. Accepts a context object (the value returned from React.createContext) and returns the current context value for that context.
|
|
334
|
-
/// The current context value is determined by the value prop of the nearest Provider component above the calling component in the tree.
|
|
335
|
-
/// </summary>
|
|
336
|
-
/// <param name='contextObject'>A context object returned from a previous React.createContext call.</param>
|
|
337
|
-
static member inline useContext(contextObject: Fable.React.IContext<'a>) = Interop.reactApi.useContext contextObject
|
|
338
|
-
|
|
339
|
-
/// <summary>
|
|
340
|
-
/// Creates a callback that keeps the same reference during the entire lifecycle of the component while having access to
|
|
341
|
-
/// the current value of the dependencies on every call.
|
|
342
|
-
///
|
|
343
|
-
/// This hook should only be used for (like a dispatch) functions that are not used to provide information during render.
|
|
344
|
-
///
|
|
345
|
-
/// This is not a complete replacement for the `useCallback` hook. It returns a callback that does not need explicit
|
|
346
|
-
/// dependency declarations and never causes a re-render.
|
|
347
|
-
/// </summary>
|
|
348
|
-
/// <param name='callback'>The function call.</param>
|
|
349
|
-
static member inline useCallbackRef(callback: ('a -> 'b)) =
|
|
350
|
-
Internal.useCallbackRef callback
|
|
351
|
-
|
|
352
|
-
/// <summary>
|
|
353
|
-
/// Just like React.useState except that the updater function uses the previous state of the state variable as input and allows you to compute the next value using it.
|
|
354
|
-
/// This is useful in cases where defining helpers functions inside the definition of a React function component would actually cache the initial value (because they become closures) during first render as opposed to using the current value after multiple render cycles.
|
|
355
|
-
///
|
|
356
|
-
/// Use this instead of React.useState when your state variable is a list, an array, a dictionary, a map or other complex structures.
|
|
357
|
-
/// </summary>
|
|
358
|
-
static member inline useStateWithUpdater (initial: 't) : ('t * (('t -> 't) -> unit)) = import "useState" "react"
|
|
359
|
-
|
|
360
|
-
/// <summary>
|
|
361
|
-
/// Forwards a given ref, allowing you to pass it further down to a child.
|
|
362
|
-
/// </summary>
|
|
363
|
-
/// <param name='render'>A render function that returns an element.</param>
|
|
364
|
-
static member inline forwardRef(render: ('props * IRefValue<'t> -> ReactElement)) : ('props * IRefValue<'t> -> ReactElement) =
|
|
365
|
-
Internal.forwardRef render
|
|
366
|
-
|
|
367
|
-
/// <summary>
|
|
368
|
-
/// Forwards a given ref, allowing you to pass it further down to a child.
|
|
369
|
-
/// </summary>
|
|
370
|
-
/// <param name='name'>The component name to display in the React dev tools.</param>
|
|
371
|
-
/// <param name='render'>A render function that returns an element.</param>
|
|
372
|
-
static member inline forwardRef(name: string, render: ('props * IRefValue<'t> -> ReactElement)) : ('props * IRefValue<'t> -> ReactElement) =
|
|
373
|
-
Internal.forwardRefWithName name render
|
|
374
|
-
|
|
375
|
-
/// <summary>
|
|
376
|
-
/// Highlights potential problems in an application by enabling additional checks
|
|
377
|
-
/// and warnings for descendants. As well as double rendering function components.
|
|
378
|
-
///
|
|
379
|
-
/// This *does not do anything* in production mode. You do not need to hide it
|
|
380
|
-
/// with compiler directives.
|
|
381
|
-
/// </summary>
|
|
382
|
-
/// <param name='children'>The elements that will be rendered with additional
|
|
383
|
-
/// checks and warnings.</param>
|
|
384
|
-
static member inline strictMode(children: ReactElement list) =
|
|
385
|
-
Interop.reactApi.createElement(Interop.reactApi.StrictMode, None, children)
|
|
386
|
-
|
|
387
|
-
/// <summary>
|
|
388
|
-
/// Lets you define a component that is loaded dynamically. Which helps with code splitting.
|
|
389
|
-
/// </summary>
|
|
390
|
-
/// <param name='dynamicImport'>
|
|
391
|
-
/// The dynamicImport of the component.
|
|
392
|
-
///
|
|
393
|
-
/// Such as `let asyncComponent : JS.Promise[unit -> ReactElement] = JsInterop.importDynamic "./CodeSplitting.fs"`.
|
|
394
|
-
///
|
|
395
|
-
/// Where you would then pass in `asyncComponent`.
|
|
396
|
-
/// </param>
|
|
397
|
-
/// <param name="props">The props to be passed to the component.</param>
|
|
398
|
-
static member inline lazy'<'t,'props>(dynamicImport: JS.Promise<'t>, props: 'props) =
|
|
399
|
-
Interop.reactApi.createElement(Interop.reactApi.lazy'(fun () -> dynamicImport),props)
|
|
400
|
-
/// <summary>
|
|
401
|
-
/// Lets you define a component that is loaded dynamically. Which helps with code
|
|
402
|
-
/// splitting.
|
|
403
|
-
/// </summary>
|
|
404
|
-
/// <param name='dynamicImport'>
|
|
405
|
-
/// The dynamicImport of the component.
|
|
406
|
-
///
|
|
407
|
-
/// Such as `let asyncComponent : JS.Promise[unit -> ReactElement] = JsInterop.importDynamic "./CodeSplitting.fs"`.
|
|
408
|
-
///
|
|
409
|
-
/// Where you would then pass in `fun () -> asyncComponent`.
|
|
410
|
-
/// </param>
|
|
411
|
-
/// <param name="props">The props to be passed to the component.</param>
|
|
412
|
-
static member inline lazy'<'t,'props>(dynamicImport: unit -> JS.Promise<'t>, props: 'props) =
|
|
413
|
-
Interop.reactApi.createElement(Interop.reactApi.lazy'(dynamicImport),props)
|
|
414
|
-
|
|
415
|
-
/// <summary>
|
|
416
|
-
/// Lets you specify a loading indicator whenever a child element is not yet ready
|
|
417
|
-
/// to render.
|
|
418
|
-
///
|
|
419
|
-
/// Currently this is only usable with `React.lazy'`.
|
|
420
|
-
/// </summary>
|
|
421
|
-
/// <param name='children'>The elements that will be rendered within the suspense block.</param>
|
|
422
|
-
static member inline suspense(children: ReactElement list) =
|
|
423
|
-
Interop.reactApi.createElement(Interop.reactApi.Suspense, {| fallback = Html.none |} |> JsInterop.toPlainJsObj, children)
|
|
424
|
-
/// <summary>
|
|
425
|
-
/// Lets you specify a loading indicator whenever a child element is not yet ready
|
|
426
|
-
/// to render.
|
|
427
|
-
///
|
|
428
|
-
/// Currently this is only usable with `React.lazy'`.
|
|
429
|
-
/// </summary>
|
|
430
|
-
/// <param name='children'>The elements that will be rendered within the suspense block.</param>
|
|
431
|
-
/// <param name='fallback'>The element that will be rendered while the children are loading.</param>
|
|
432
|
-
static member inline suspense(children: ReactElement list, fallback: ReactElement) =
|
|
433
|
-
Interop.reactApi.createElement(Interop.reactApi.Suspense, {| fallback = fallback |} |> JsInterop.toPlainJsObj, children)
|
|
434
|
-
|
|
435
|
-
/// <summary>
|
|
436
|
-
/// Allows you to override the behavior of a given ref.
|
|
437
|
-
///
|
|
438
|
-
/// </summary>
|
|
439
|
-
/// <param name='ref'>The ref you want to override.</param>
|
|
440
|
-
/// <param name='createHandle'>A function that returns a new ref with changed behavior.</param>
|
|
441
|
-
static member inline useImperativeHandle(ref: IRefValue<'t>, createHandle: unit -> 't) =
|
|
442
|
-
Interop.reactApi.useImperativeHandleNoDeps ref createHandle
|
|
443
|
-
|
|
444
|
-
/// <summary>
|
|
445
|
-
/// Lets you specify a loading indicator whenever a child element is not yet ready
|
|
446
|
-
/// to render.
|
|
447
|
-
///
|
|
448
|
-
/// Currently this is only usable with `React.lazy'`.
|
|
449
|
-
/// </summary>
|
|
450
|
-
/// <param name='ref'>The ref you want to override.</param>
|
|
451
|
-
/// <param name='createHandle'>A function that returns a new ref with changed behavior.</param>
|
|
452
|
-
/// <param name='dependencies'>An array of dependencies upon which the imperative handle function depends.</param>
|
|
453
|
-
static member inline useImperativeHandle(ref: IRefValue<'t>, createHandle: unit -> 't, dependencies: obj []) =
|
|
454
|
-
Interop.reactApi.useImperativeHandle ref createHandle dependencies
|
|
455
|
-
|
|
456
|
-
/// <summary>
|
|
457
|
-
/// Creates a CancellationToken that is cancelled when a component is unmounted.
|
|
458
|
-
/// </summary>
|
|
459
|
-
static member inline useCancellationToken () = Internal.useCancellationToken ()
|
|
460
|
-
|
|
461
|
-
[<AutoOpen; Erase>]
|
|
462
|
-
module ReactOverloadMagic =
|
|
463
|
-
type React with
|
|
464
|
-
/// Creates a disposable instance by merging multiple IDisposables.
|
|
465
|
-
static member inline createDisposable([<ParamArray>] disposables: #IDisposable []) =
|
|
466
|
-
React.createDisposable(fun () ->
|
|
467
|
-
disposables
|
|
468
|
-
|> Array.iter (fun d -> d.Dispose())
|
|
469
|
-
)
|
|
470
|
-
/// Creates a disposable instance by merging multiple IDisposable options.
|
|
471
|
-
static member inline createDisposable([<ParamArray>] disposables: #IDisposable option []) =
|
|
472
|
-
React.createDisposable(fun () ->
|
|
473
|
-
disposables
|
|
474
|
-
|> Array.iter (Option.iter (fun d -> d.Dispose()))
|
|
475
|
-
)
|
|
476
|
-
/// Creates a disposable instance by merging multiple IDisposable refs.
|
|
477
|
-
static member inline createDisposable([<ParamArray>] disposables: IRefValue<#IDisposable> []) =
|
|
478
|
-
React.createDisposable(fun () ->
|
|
479
|
-
disposables
|
|
480
|
-
|> Array.iter (fun d -> d.current.Dispose())
|
|
481
|
-
)
|
|
482
|
-
|
|
483
|
-
/// Creates a disposable instance by merging multiple IDisposable refs.
|
|
484
|
-
static member inline createDisposable([<ParamArray>] disposables: IRefValue<#IDisposable option> []) =
|
|
485
|
-
React.createDisposable(fun () ->
|
|
486
|
-
disposables
|
|
487
|
-
|> Array.iter (fun d -> d.current |> Option.iter (fun d -> d.Dispose()))
|
|
488
|
-
)
|
|
489
|
-
|
|
490
|
-
/// The `useState` hook that creates a state variable for React function components.
|
|
491
|
-
static member inline useState<'t>(initial: 't) = Interop.reactApi.useState<'t,'t>(initial)
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
static member inline useStateWithUpdater<'t>(initializer: unit -> 't): ('t * (('t -> 't) -> unit)) = import "useState" "react"
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
namespace Feliz
|
|
2
|
-
|
|
3
|
-
open System
|
|
4
|
-
open Fable.Core
|
|
5
|
-
|
|
6
|
-
type ReactDOM =
|
|
7
|
-
[<Import("render", "react-dom"); Obsolete("ReactDOM.render is obsolete since React v18. Please use the ReactDOM.createRoot API instead")>]
|
|
8
|
-
static member render(element: Fable.React.ReactElement, container: Browser.Types.HTMLElement) = jsNative
|
|
9
|
-
[<Obsolete("ReactDOM.render is obsolete since React v18. Please use the ReactDOM.createRoot API instead")>]
|
|
10
|
-
static member render(element: unit -> Fable.React.ReactElement, container: Browser.Types.HTMLElement) = ReactDOM.render(element(), container)
|
|
11
|
-
[<Import("createRoot", "react-dom/client")>]
|
|
12
|
-
static member createRoot(container: Browser.Types.HTMLElement) : ReactApi.IReactRoot = jsNative
|
|
13
|
-
[<Import("createPortal", "react-dom")>]
|
|
14
|
-
static member createPortal (element : Fable.React.ReactElement, container : Browser.Types.HTMLElement) : Fable.React.ReactElement = jsNative
|
|
15
|
-
|
|
16
|
-
/// The ReactDOMServer object enables you to render components to static markup.
|
|
17
|
-
type ReactDOMServer =
|
|
18
|
-
/// Render a React element to its initial HTML. React will return an HTML string. You can use this method to generate HTML on the server and send the markup down on the initial request for faster page loads and to allow search engines to crawl your pages for SEO purposes.
|
|
19
|
-
[<Import("renderToString", "react-dom/server")>]
|
|
20
|
-
static member renderToString(element: ReactElement) : string = jsNative
|
|
21
|
-
/// Similar to renderToString, except this doesn’t create extra DOM attributes that React uses internally, such as data-reactroot. This is useful if you want to use React as a simple static page generator, as stripping away the extra attributes can save some bytes.
|
|
22
|
-
///
|
|
23
|
-
/// If you plan to use React on the client to make the markup interactive, do not use this method. Instead, use `renderToString` on the server and `ReactDOM.hydrate()` on the client.
|
|
24
|
-
[<Import("renderToStaticMarkup", "react-dom/server")>]
|
|
25
|
-
static member renderToStaticMarkup(element: ReactElement) : string = jsNative
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["./ReactDOM.fs"],"names":["element","container"],"mappings":";;;;;;;;;;;;;;WAS4G,WAAgB,AAAAA,WAAWC","file":null,"sourcesContent":null,"sourceRoot":null}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
namespace Feliz
|
|
2
|
-
|
|
3
|
-
open Fable.Core
|
|
4
|
-
|
|
5
|
-
module ReactInterop =
|
|
6
|
-
[<Import("useDebugValue", "./ReactInterop.js")>]
|
|
7
|
-
let useDebugValueWithFormatter<'t>(value: 't, formatter: 't -> string) : unit = jsNative
|
|
8
|
-
|
|
9
|
-
[<Import("useEffect", "./ReactInterop.js")>]
|
|
10
|
-
let useEffect (effect: obj) : unit = jsNative
|
|
11
|
-
|
|
12
|
-
[<Import("useEffectWithDeps", "./ReactInterop.js")>]
|
|
13
|
-
let useEffectWithDeps (effect: obj) (deps: obj) : unit = jsNative
|
|
14
|
-
|
|
15
|
-
[<Import("useLayoutEffect", "./ReactInterop.js")>]
|
|
16
|
-
let useLayoutEffect (effect: obj) : unit = jsNative
|
|
17
|
-
|
|
18
|
-
[<Import("useLayoutEffectWithDeps", "./ReactInterop.js")>]
|
|
19
|
-
let useLayoutEffectWithDeps (effect: obj) (deps: obj) : unit = jsNative
|
|
20
|
-
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
module Feliz.ReactApi
|
|
2
|
-
|
|
3
|
-
open Browser.Types
|
|
4
|
-
open Fable.React
|
|
5
|
-
open Fable.Core
|
|
6
|
-
open System
|
|
7
|
-
|
|
8
|
-
type ReactChildren =
|
|
9
|
-
abstract toArray: ReactElement -> ReactElement seq
|
|
10
|
-
abstract toArray: ReactElement seq -> ReactElement seq
|
|
11
|
-
|
|
12
|
-
type IReactApi =
|
|
13
|
-
abstract Children: ReactChildren
|
|
14
|
-
abstract createContext: defaultValue: 'a -> IContext<'a>
|
|
15
|
-
abstract createElement: comp: obj * props: obj -> ReactElement
|
|
16
|
-
abstract createElement: comp: obj * props: obj * [<ParamList>] children: ReactElement seq -> ReactElement
|
|
17
|
-
abstract forwardRef: render: Func<'props,IRefValue<'t>,ReactElement> -> ('props -> IRefValue<'t> -> ReactElement)
|
|
18
|
-
[<Emit("$0.lazy($1)")>]
|
|
19
|
-
abstract lazy': import: (unit -> JS.Promise<'t>) -> 't
|
|
20
|
-
abstract memo: render: ('props -> ReactElement) * areEqual: ('props -> 'props -> bool) -> ('props -> ReactElement)
|
|
21
|
-
abstract StrictMode: obj
|
|
22
|
-
abstract Suspense: obj
|
|
23
|
-
abstract useCallback: callbackFunction: ('a -> 'b) -> dependencies: obj array -> ('a -> 'b)
|
|
24
|
-
abstract useContext: ctx: IContext<'a> -> 'a
|
|
25
|
-
abstract useEffect: obj * dependencies: obj array -> unit
|
|
26
|
-
abstract useEffect: obj -> unit
|
|
27
|
-
abstract useEffect: effect: (unit -> unit) -> unit
|
|
28
|
-
abstract useEffect: effect: (unit -> unit) * dependencies: obj [] -> unit
|
|
29
|
-
abstract useImperativeHandle<'t> : ref: Fable.React.IRefValue<'t> -> createHandle: (unit -> 't) -> dependencies: obj array -> unit
|
|
30
|
-
[<Emit("$0.useImperativeHandle($1, $2)")>]
|
|
31
|
-
abstract useImperativeHandleNoDeps<'t> : ref: Fable.React.IRefValue<'t> -> createHandle: (unit -> 't) -> unit
|
|
32
|
-
abstract useMemo: createFunction: (unit -> 'a) -> dependencies: obj array -> 'a
|
|
33
|
-
abstract useReducer: ('state -> 'msg -> 'state) -> 'state -> ('state * ('msg -> unit))
|
|
34
|
-
[<Emit "$0.useRef($1)">]
|
|
35
|
-
abstract useRefInternal<'t> : initial: 't -> Fable.React.IRefValue<'t>
|
|
36
|
-
abstract useState<'t,'u> : initial:'t -> ('u * ('u -> unit))
|
|
37
|
-
|
|
38
|
-
type IReactRoot =
|
|
39
|
-
/// Renders the provided React element into the DOM in the supplied container.
|
|
40
|
-
abstract render: ReactElement -> unit
|
|
41
|
-
/// Removes a mounted React component from the DOM and cleans up its event handlers and state.
|
|
42
|
-
abstract unmount : unit -> unit
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":null,"sourcesContent":null,"sourceRoot":null}
|