@factorialco/fcode-react-forms 1.0.0

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 (76) hide show
  1. package/dist/components/fcode-form/fcode-form.d.ts +76 -0
  2. package/dist/components/fcode-form/fcode-form.test.d.ts +6 -0
  3. package/dist/components/fcode-form/fcode-form.utils.d.ts +17 -0
  4. package/dist/components/fcode-form/fcode-form.utils.test.d.ts +6 -0
  5. package/dist/components/fcode-form/index.d.ts +1 -0
  6. package/dist/components/form-skeleton/form-skeleton.d.ts +13 -0
  7. package/dist/components/json-schema-form/default-theme/default-theme.test.d.ts +1 -0
  8. package/dist/components/json-schema-form/default-theme/index.d.ts +19 -0
  9. package/dist/components/json-schema-form/default-theme/templates/array-field-item-buttons-template.d.ts +8 -0
  10. package/dist/components/json-schema-form/default-theme/templates/array-field-item-template.d.ts +4 -0
  11. package/dist/components/json-schema-form/default-theme/templates/array-field-template.d.ts +4 -0
  12. package/dist/components/json-schema-form/default-theme/templates/button-templates.d.ts +10 -0
  13. package/dist/components/json-schema-form/default-theme/templates/description-field-template.d.ts +4 -0
  14. package/dist/components/json-schema-form/default-theme/templates/field-error-template.d.ts +4 -0
  15. package/dist/components/json-schema-form/default-theme/templates/field-help-template.d.ts +4 -0
  16. package/dist/components/json-schema-form/default-theme/templates/field-template.d.ts +12 -0
  17. package/dist/components/json-schema-form/default-theme/templates/index.d.ts +11 -0
  18. package/dist/components/json-schema-form/default-theme/templates/object-field-template.d.ts +4 -0
  19. package/dist/components/json-schema-form/default-theme/templates/title-field-template.d.ts +7 -0
  20. package/dist/components/json-schema-form/default-theme/templates/wrap-if-additional-template.d.ts +11 -0
  21. package/dist/components/json-schema-form/default-theme/widgets/checkbox-widget.d.ts +4 -0
  22. package/dist/components/json-schema-form/default-theme/widgets/checkboxes-widget.d.ts +4 -0
  23. package/dist/components/json-schema-form/default-theme/widgets/index.d.ts +4 -0
  24. package/dist/components/json-schema-form/default-theme/widgets/radio-widget.d.ts +4 -0
  25. package/dist/components/json-schema-form/default-theme/widgets/textarea-widget.d.ts +4 -0
  26. package/dist/components/json-schema-form/fcode-json-schema-form.d.ts +18 -0
  27. package/dist/components/json-schema-form/fields/button-field.d.ts +2 -0
  28. package/dist/components/json-schema-form/fields/index.d.ts +3 -0
  29. package/dist/components/json-schema-form/fields/json-field.d.ts +2 -0
  30. package/dist/components/json-schema-form/fields/source-code-field-editor-theme.json.d.ts +223 -0
  31. package/dist/components/json-schema-form/fields/source-code-field.d.ts +2 -0
  32. package/dist/components/json-schema-form/index.d.ts +2 -0
  33. package/dist/components/json-schema-form/markdown-content.d.ts +2 -0
  34. package/dist/components/loading-overlay/loading-overlay.d.ts +9 -0
  35. package/dist/data/embed-form-options-with-i18n.d.ts +3 -0
  36. package/dist/data/embed-form-options.d.ts +3 -0
  37. package/dist/data/fcode-form-specs-with-i18n.d.ts +3 -0
  38. package/dist/data/fcode-form-specs-with-ref-replacements.d.ts +3 -0
  39. package/dist/data/fcode-form-specs.d.ts +3 -0
  40. package/dist/data/index.d.ts +9 -0
  41. package/dist/data/schema-with-i18n.d.ts +3 -0
  42. package/dist/data/schema-with-ref-replacements.d.ts +3 -0
  43. package/dist/data/schema.d.ts +3 -0
  44. package/dist/data/ui-schema.d.ts +3 -0
  45. package/dist/fcode-form.cjs.js +132 -0
  46. package/dist/fcode-form.cjs.js.map +1 -0
  47. package/dist/fcode-form.es.js +30199 -0
  48. package/dist/fcode-form.es.js.map +1 -0
  49. package/dist/fcode-form.umd.js +132 -0
  50. package/dist/fcode-form.umd.js.map +1 -0
  51. package/dist/hooks/use-form-specs.d.ts +7 -0
  52. package/dist/hooks/use-form-specs.test.d.ts +1 -0
  53. package/dist/hooks/use-form-stylesheets.d.ts +10 -0
  54. package/dist/hooks/use-stylesheets.d.ts +6 -0
  55. package/dist/hooks/use-stylesheets.test.d.ts +1 -0
  56. package/dist/hooks/use-submit-form.d.ts +9 -0
  57. package/dist/hooks/use-submit-form.test.d.ts +1 -0
  58. package/dist/index.d.ts +6 -0
  59. package/dist/services/fcode.d.ts +3 -0
  60. package/dist/services/fcode.test.d.ts +1 -0
  61. package/dist/styles-theme-light.css +79 -0
  62. package/dist/styles.css +1519 -0
  63. package/dist/types.d.ts +75 -0
  64. package/dist/utils/build-id.d.ts +1 -0
  65. package/dist/utils/build-id.test.d.ts +1 -0
  66. package/dist/utils/build-process-url.d.ts +1 -0
  67. package/dist/utils/build-process-url.test.d.ts +1 -0
  68. package/dist/utils/index.d.ts +4 -0
  69. package/dist/utils/is-valid-url.d.ts +1 -0
  70. package/dist/utils/is-valid-url.test.d.ts +1 -0
  71. package/dist/utils/merge-deep.d.ts +1 -0
  72. package/dist/utils/process-form-specs.d.ts +2 -0
  73. package/dist/utils/process-form-specs.test.d.ts +1 -0
  74. package/dist/utils/sanitize-html.d.ts +8 -0
  75. package/dist/utils/sanitize-html.test.d.ts +1 -0
  76. package/package.json +97 -0
@@ -0,0 +1,76 @@
1
+ import { FormData, EmbedFormOptions, GenericObjectType } from '../../types';
2
+ import { FcodeJsonSchemaFormProps } from '../json-schema-form';
3
+ export type FcodeFormOptions = EmbedFormOptions;
4
+ export interface FcodeFormProps extends Omit<FcodeJsonSchemaFormProps, 'onError' | 'schema'> {
5
+ /**
6
+ * The host URL for Factorial Code (optional).
7
+ */
8
+ hostUrl?: string;
9
+ /**
10
+ * Headers to be added to form fetch and submit requests.
11
+ */
12
+ headers?: GenericObjectType;
13
+ /**
14
+ * The Factorial Code team slug.
15
+ */
16
+ team: string;
17
+ /**
18
+ * The Factorial Code process ID.
19
+ */
20
+ processId: string;
21
+ /**
22
+ * A process version tag or version alias to run instead of the current
23
+ * version (optional). Multi-step forms keep it for every step: a step
24
+ * result names the next process but not its version, so the version the
25
+ * embedder pinned is the only intent available. A step whose process has no
26
+ * such version runs its current version — the API warns rather than failing.
27
+ */
28
+ processVersion?: string;
29
+ /**
30
+ * Indicates whether the form should be submitted asynchronously (optional).
31
+ */
32
+ async?: boolean;
33
+ /**
34
+ * A function called when the form is successfully submitted.
35
+ * Receives the following parameters:
36
+ * - formId: The ID of the form.
37
+ * - processExecutionResult: The result of the process execution as a generic object.
38
+ * - formSubmittedData: The data submitted with the form.
39
+ */
40
+ onSuccess?: (formId: string, processExecutionResult: GenericObjectType, formSubmittedData: FormData) => void;
41
+ /**
42
+ * A function called when the next step of the form is called.
43
+ */
44
+ onNextStep?: (formId: string, previousProcessExecutionResult: GenericObjectType) => void;
45
+ /**
46
+ * A function called when an error occurs during form submission.
47
+ * Receives the following parameters:
48
+ * - formId: The ID of the form.
49
+ * - error: The error that occurred, of unknown type.
50
+ * - formSubmittedData: The data submitted with the form.
51
+ */
52
+ onError?: (formId: string, error: unknown, formSubmittedData: FormData) => void;
53
+ /**
54
+ * The default values for the form.
55
+ */
56
+ defaultValues?: FormData;
57
+ /**
58
+ * The options for Factorial Code form.
59
+ */
60
+ options: FcodeFormOptions;
61
+ }
62
+ export interface FcodeFormStep {
63
+ processId: string;
64
+ data: FormData;
65
+ result: GenericObjectType;
66
+ }
67
+ export interface FcodeFormState {
68
+ processId: string;
69
+ steps: FcodeFormStep[];
70
+ variables: GenericObjectType;
71
+ }
72
+ declare const FcodeForm: {
73
+ ({ hostUrl, headers, team, processId, processVersion, onNextStep, onSuccess, onError, defaultValues, async, disabled, readonly, options, ...rest }: FcodeFormProps): import("react").JSX.Element;
74
+ displayName: string;
75
+ };
76
+ export default FcodeForm;
@@ -0,0 +1,6 @@
1
+ declare global {
2
+ interface Window {
3
+ __rawHtmlScriptRan?: boolean;
4
+ }
5
+ }
6
+ export {};
@@ -0,0 +1,17 @@
1
+ import { FormData, GenericObjectType } from '../../types';
2
+ export declare const emitEvent: (name: string, data: any) => void;
3
+ export declare const onSuccessDefault: (formId: string, processExecutionResult: GenericObjectType, formSubmittedData: FormData) => void;
4
+ export declare const onNextStepDefault: (formId: string, previousProcessExecutionResult: GenericObjectType) => void;
5
+ export declare const onErrorDefault: (formId: string, error: unknown) => void;
6
+ /**
7
+ * Builds the message shown when the form schema fails to load. `fetchFormSpecs`
8
+ * rejects with an `Error` for a missing form and with the API error body
9
+ * otherwise (e.g. a 502 when a `preRenderProcess` fails), so prefer whatever
10
+ * message it carries and fall back to a generic one.
11
+ */
12
+ export declare const formatFormSpecsError: (error: unknown) => string;
13
+ export interface FcodeFormErrors {
14
+ global: string[];
15
+ fields: GenericObjectType;
16
+ }
17
+ export declare const mapFormErrorsToExtraErrors: (formErrors: FcodeFormErrors) => GenericObjectType;
@@ -0,0 +1,6 @@
1
+ declare global {
2
+ interface Window {
3
+ __resultScriptRan?: boolean;
4
+ }
5
+ }
6
+ export {};
@@ -0,0 +1 @@
1
+ export { default as FcodeForm } from './fcode-form';
@@ -0,0 +1,13 @@
1
+ import { default as React } from 'react';
2
+ /**
3
+ * Form-shaped placeholder rendered while the form schema is being fetched —
4
+ * which includes the time a `preRenderProcess` takes to run server-side.
5
+ *
6
+ * Decorative only (`aria-hidden`): the accessible status text is the loading
7
+ * overlay's message rendered on top of it.
8
+ */
9
+ declare const FormSkeleton: {
10
+ (): React.JSX.Element;
11
+ displayName: string;
12
+ };
13
+ export default FormSkeleton;
@@ -0,0 +1,19 @@
1
+ import { ThemeProps } from '@rjsf/core';
2
+ import * as templates from './templates';
3
+ import * as widgets from './widgets';
4
+ /**
5
+ * The stylesheet-driven default theme, used by the hosted `forms.js` bundle and
6
+ * by any embedder that does not pass its own `rjsfTheme`.
7
+ *
8
+ * It only overrides the parts of `@rjsf/core`'s built-in theme whose markup the
9
+ * stylesheet in `styles/styles.css` needs to be different (labels, checkboxes,
10
+ * radios, section titles, the grid used by arrays and objects, and the buttons —
11
+ * core's defaults assume Bootstrap 3 markup and a glyphicon font). Everything
12
+ * else — base inputs, selects, files, ranges, dates and the multi-schema
13
+ * selector — comes from core unchanged.
14
+ *
15
+ * It intentionally pulls in no UI library: this theme has to stay small enough
16
+ * to ship inside the hosted bundle.
17
+ */
18
+ export declare const DefaultTheme: ThemeProps;
19
+ export { templates as DefaultTemplates, widgets as DefaultWidgets };
@@ -0,0 +1,8 @@
1
+ import { default as React } from 'react';
2
+ import { ArrayFieldItemButtonsTemplateProps } from '@rjsf/utils';
3
+ /**
4
+ * Move/copy/remove buttons for an array item. Each button keeps its own
5
+ * `m-0 p-0` wrapper: the stylesheet uses the adjacency of those wrappers to
6
+ * space the toolbar.
7
+ */
8
+ export declare function ArrayFieldItemButtonsTemplate(props: ArrayFieldItemButtonsTemplateProps): React.JSX.Element;
@@ -0,0 +1,4 @@
1
+ import { default as React } from 'react';
2
+ import { ArrayFieldItemTemplateProps } from '@rjsf/utils';
3
+ /** One array item: the item field on the left, its toolbar on the right. */
4
+ export declare function ArrayFieldItemTemplate(props: ArrayFieldItemTemplateProps): React.JSX.Element;
@@ -0,0 +1,4 @@
1
+ import { default as React } from 'react';
2
+ import { ArrayFieldTemplateProps } from '@rjsf/utils';
3
+ /** Renders an array's title, description, item rows and the add button. */
4
+ export declare function ArrayFieldTemplate(props: ArrayFieldTemplateProps): React.JSX.Element;
@@ -0,0 +1,10 @@
1
+ import { default as React } from 'react';
2
+ import { IconButtonProps, SubmitButtonProps, TemplatesType } from '@rjsf/utils';
3
+ export declare function CopyButton(props: IconButtonProps): React.JSX.Element;
4
+ export declare function MoveUpButton(props: IconButtonProps): React.JSX.Element;
5
+ export declare function MoveDownButton(props: IconButtonProps): React.JSX.Element;
6
+ export declare function RemoveButton(props: IconButtonProps): React.JSX.Element;
7
+ export declare function ClearButton(props: IconButtonProps): React.JSX.Element;
8
+ export declare function AddButton({ className, ...props }: IconButtonProps): React.JSX.Element;
9
+ export declare function SubmitButton({ uiSchema }: SubmitButtonProps): React.JSX.Element | null;
10
+ export declare const ButtonTemplates: TemplatesType['ButtonTemplates'];
@@ -0,0 +1,4 @@
1
+ import { default as React } from 'react';
2
+ import { DescriptionFieldProps } from '@rjsf/utils';
3
+ /** Section (object/array level) description. */
4
+ export declare function DescriptionFieldTemplate({ id, description, }: DescriptionFieldProps): React.JSX.Element | null;
@@ -0,0 +1,4 @@
1
+ import { default as React } from 'react';
2
+ import { FieldErrorProps } from '@rjsf/utils';
3
+ /** Per-field validation errors, rendered under the widget. */
4
+ export declare function FieldErrorTemplate({ errors, fieldPathId, }: FieldErrorProps): React.JSX.Element | null;
@@ -0,0 +1,4 @@
1
+ import { default as React } from 'react';
2
+ import { FieldHelpProps } from '@rjsf/utils';
3
+ /** Renders a `ui:help` directive under the widget. */
4
+ export declare function FieldHelpTemplate({ fieldPathId, help, hasErrors, }: FieldHelpProps): React.JSX.Element | null;
@@ -0,0 +1,12 @@
1
+ import { default as React } from 'react';
2
+ import { FieldTemplateProps } from '@rjsf/utils';
3
+ export interface RawHtmlContent {
4
+ content: string;
5
+ }
6
+ /**
7
+ * Renders one field row: label, widget, description, errors and help.
8
+ *
9
+ * `schema.rawHtml.before/after` lets a form author inject markup around the
10
+ * field; it is sanitized first, so authored HTML can never execute code.
11
+ */
12
+ export declare function FieldTemplate(props: FieldTemplateProps): React.JSX.Element;
@@ -0,0 +1,11 @@
1
+ export { ArrayFieldItemButtonsTemplate } from './array-field-item-buttons-template';
2
+ export { ArrayFieldItemTemplate } from './array-field-item-template';
3
+ export { ArrayFieldTemplate } from './array-field-template';
4
+ export { ButtonTemplates } from './button-templates';
5
+ export { DescriptionFieldTemplate } from './description-field-template';
6
+ export { FieldErrorTemplate } from './field-error-template';
7
+ export { FieldHelpTemplate } from './field-help-template';
8
+ export { FieldTemplate } from './field-template';
9
+ export { ObjectFieldTemplate } from './object-field-template';
10
+ export { TitleFieldTemplate } from './title-field-template';
11
+ export { WrapIfAdditionalTemplate } from './wrap-if-additional-template';
@@ -0,0 +1,4 @@
1
+ import { default as React } from 'react';
2
+ import { ObjectFieldTemplateProps } from '@rjsf/utils';
3
+ /** Renders an object's title, description and every property row. */
4
+ export declare function ObjectFieldTemplate(props: ObjectFieldTemplateProps): React.JSX.Element | null;
@@ -0,0 +1,7 @@
1
+ import { default as React } from 'react';
2
+ import { TitleFieldProps } from '@rjsf/utils';
3
+ /**
4
+ * Section title. The `h5` + `hr` pair is what the stylesheet targets to draw the
5
+ * section separator, so keep both elements adjacent.
6
+ */
7
+ export declare function TitleFieldTemplate({ id, title, uiSchema, optionalDataControl, }: TitleFieldProps): React.JSX.Element;
@@ -0,0 +1,11 @@
1
+ import { default as React } from 'react';
2
+ import { WrapIfAdditionalTemplateProps } from '@rjsf/utils';
3
+ /**
4
+ * Wraps every field row. For `additionalProperties` entries it also renders the
5
+ * key input and the remove button.
6
+ *
7
+ * The outer element carries the rjsf marker classes plus `has-error has-danger`
8
+ * so the stylesheet can target invalid rows; the per-row `form-group` spacing is
9
+ * owned by `FieldTemplate`, which renders inside this wrapper.
10
+ */
11
+ export declare function WrapIfAdditionalTemplate(props: WrapIfAdditionalTemplateProps): React.JSX.Element;
@@ -0,0 +1,4 @@
1
+ import { default as React } from 'react';
2
+ import { WidgetProps } from '@rjsf/utils';
3
+ /** Single boolean checkbox. */
4
+ export declare function CheckboxWidget({ schema, uiSchema, options, id, value, disabled, readonly, label, hideLabel, autofocus, onBlur, onFocus, onChange, registry, }: WidgetProps): React.JSX.Element;
@@ -0,0 +1,4 @@
1
+ import { default as React } from 'react';
2
+ import { WidgetProps } from '@rjsf/utils';
3
+ /** Checkbox group for an array of enum values. */
4
+ export declare function CheckboxesWidget({ id, disabled, options, value, autofocus, readonly, required, onChange, onBlur, onFocus, }: WidgetProps): React.JSX.Element;
@@ -0,0 +1,4 @@
1
+ export { CheckboxWidget } from './checkbox-widget';
2
+ export { CheckboxesWidget } from './checkboxes-widget';
3
+ export { RadioWidget } from './radio-widget';
4
+ export { TextareaWidget } from './textarea-widget';
@@ -0,0 +1,4 @@
1
+ import { default as React } from 'react';
2
+ import { WidgetProps } from '@rjsf/utils';
3
+ /** Radio group for a string property constrained by enum options. */
4
+ export declare function RadioWidget({ options, value, required, disabled, readonly, autofocus, onBlur, onFocus, onChange, id, }: WidgetProps): React.JSX.Element;
@@ -0,0 +1,4 @@
1
+ import { default as React } from 'react';
2
+ import { WidgetProps } from '@rjsf/utils';
3
+ /** Multi-line text input. */
4
+ export declare function TextareaWidget({ id, options, placeholder, value, required, disabled, readonly, autofocus, onChange, onBlur, onFocus, }: WidgetProps): React.JSX.Element;
@@ -0,0 +1,18 @@
1
+ import { default as React } from 'react';
2
+ import { default as ReactJsonSchemaForm, ThemeProps } from '@rjsf/core';
3
+ import { EmbedFormOptions } from '../../types';
4
+ export interface FcodeJsonSchemaFormProps extends Omit<React.ComponentProps<typeof ReactJsonSchemaForm>, 'validator'> {
5
+ locale?: string;
6
+ fallbackLocale?: string;
7
+ validator?: React.ComponentProps<typeof ReactJsonSchemaForm>['validator'];
8
+ embedFormOptions?: EmbedFormOptions;
9
+ /**
10
+ * Renders the form with a different set of RJSF templates, widgets and fields
11
+ * — e.g. `Theme` from `@factorialco/rjsf-f0` to render f0 components instead
12
+ * of the stylesheet-driven default theme. Individual `templates`, `widgets`
13
+ * and `fields` props still take precedence over the theme.
14
+ */
15
+ rjsfTheme?: ThemeProps;
16
+ }
17
+ declare const FcodeJsonSchemaForm: ({ id, templates, widgets, fields, locale, fallbackLocale, validator, className, embedFormOptions, rjsfTheme, ...rest }: FcodeJsonSchemaFormProps) => React.JSX.Element;
18
+ export default FcodeJsonSchemaForm;
@@ -0,0 +1,2 @@
1
+ import { Field } from '@rjsf/utils';
2
+ export declare const ButtonField: Field;
@@ -0,0 +1,3 @@
1
+ export { JsonField as json } from './json-field';
2
+ export { ButtonField as button } from './button-field';
3
+ export { SourceCodeField as sourceCode } from './source-code-field';
@@ -0,0 +1,2 @@
1
+ import { Field } from '@rjsf/utils';
2
+ export declare const JsonField: Field;
@@ -0,0 +1,223 @@
1
+ declare const _default: {
2
+ "base": "vs-dark",
3
+ "inherit": true,
4
+ "rules": [
5
+ {
6
+ "background": "282a36",
7
+ "token": ""
8
+ },
9
+ {
10
+ "foreground": "6272a4",
11
+ "token": "comment"
12
+ },
13
+ {
14
+ "foreground": "ff79c6",
15
+ "token": "string"
16
+ },
17
+ {
18
+ "foreground": "bd93f9",
19
+ "token": "constant.numeric"
20
+ },
21
+ {
22
+ "foreground": "bd93f9",
23
+ "token": "constant.language"
24
+ },
25
+ {
26
+ "foreground": "bd93f9",
27
+ "token": "constant.character"
28
+ },
29
+ {
30
+ "foreground": "bd93f9",
31
+ "token": "constant.other"
32
+ },
33
+ {
34
+ "foreground": "ffb86c",
35
+ "token": "variable.other.readwrite.instance"
36
+ },
37
+ {
38
+ "foreground": "bd93f9",
39
+ "token": "constant.character.escaped"
40
+ },
41
+ {
42
+ "foreground": "bd93f9",
43
+ "token": "constant.character.escape"
44
+ },
45
+ {
46
+ "foreground": "bd93f9",
47
+ "token": "string source"
48
+ },
49
+ {
50
+ "foreground": "bd93f9",
51
+ "token": "string source.ruby"
52
+ },
53
+ {
54
+ "foreground": "bd93f9",
55
+ "token": "keyword"
56
+ },
57
+ {
58
+ "foreground": "bd93f9",
59
+ "token": "storage"
60
+ },
61
+ {
62
+ "foreground": "8be9fd",
63
+ "fontStyle": "italic",
64
+ "token": "storage.type"
65
+ },
66
+ {
67
+ "foreground": "50fa7b",
68
+ "fontStyle": "underline",
69
+ "token": "entity.name.class"
70
+ },
71
+ {
72
+ "foreground": "50fa7b",
73
+ "fontStyle": "italic underline",
74
+ "token": "entity.other.inherited-class"
75
+ },
76
+ {
77
+ "foreground": "50fa7b",
78
+ "token": "entity.name.function"
79
+ },
80
+ {
81
+ "foreground": "ffb86c",
82
+ "fontStyle": "italic",
83
+ "token": "variable.parameter"
84
+ },
85
+ {
86
+ "foreground": "bd93f9",
87
+ "token": "entity.name.tag"
88
+ },
89
+ {
90
+ "foreground": "50fa7b",
91
+ "token": "entity.other.attribute-name"
92
+ },
93
+ {
94
+ "foreground": "50fa7b",
95
+ "token": "support.function"
96
+ },
97
+ {
98
+ "foreground": "6be5fd",
99
+ "token": "support.constant"
100
+ },
101
+ {
102
+ "foreground": "66d9ef",
103
+ "fontStyle": " italic",
104
+ "token": "support.type"
105
+ },
106
+ {
107
+ "foreground": "66d9ef",
108
+ "fontStyle": " italic",
109
+ "token": "support.class"
110
+ },
111
+ {
112
+ "foreground": "f8f8f0",
113
+ "background": "bd93f9",
114
+ "token": "invalid"
115
+ },
116
+ {
117
+ "foreground": "f8f8f0",
118
+ "background": "bd93f9",
119
+ "token": "invalid.deprecated"
120
+ },
121
+ {
122
+ "foreground": "cfcfc2",
123
+ "token": "meta.structure.dictionary.json string.quoted.double.json"
124
+ },
125
+ {
126
+ "foreground": "6272a4",
127
+ "token": "meta.diff"
128
+ },
129
+ {
130
+ "foreground": "6272a4",
131
+ "token": "meta.diff.header"
132
+ },
133
+ {
134
+ "foreground": "bd93f9",
135
+ "token": "markup.deleted"
136
+ },
137
+ {
138
+ "foreground": "50fa7b",
139
+ "token": "markup.inserted"
140
+ },
141
+ {
142
+ "foreground": "e6db74",
143
+ "token": "markup.changed"
144
+ },
145
+ {
146
+ "foreground": "bd93f9",
147
+ "token": "constant.numeric.line-number.find-in-files - match"
148
+ },
149
+ {
150
+ "foreground": "e6db74",
151
+ "token": "entity.name.filename"
152
+ },
153
+ {
154
+ "foreground": "f83333",
155
+ "token": "message.error"
156
+ },
157
+ {
158
+ "foreground": "eeeeee",
159
+ "token": "punctuation.definition.string.begin.json - meta.structure.dictionary.value.json"
160
+ },
161
+ {
162
+ "foreground": "eeeeee",
163
+ "token": "punctuation.definition.string.end.json - meta.structure.dictionary.value.json"
164
+ },
165
+ {
166
+ "foreground": "8be9fd",
167
+ "token": "meta.structure.dictionary.json string.quoted.double.json"
168
+ },
169
+ {
170
+ "foreground": "ff79c6",
171
+ "token": "meta.structure.dictionary.value.json string.quoted.double.json"
172
+ },
173
+ {
174
+ "foreground": "50fa7b",
175
+ "token": "meta meta meta meta meta meta meta.structure.dictionary.value string"
176
+ },
177
+ {
178
+ "foreground": "ffb86c",
179
+ "token": "meta meta meta meta meta meta.structure.dictionary.value string"
180
+ },
181
+ {
182
+ "foreground": "bd93f9",
183
+ "token": "meta meta meta meta meta.structure.dictionary.value string"
184
+ },
185
+ {
186
+ "foreground": "bd93f9",
187
+ "token": "meta meta meta meta.structure.dictionary.value string"
188
+ },
189
+ {
190
+ "foreground": "50fa7b",
191
+ "token": "meta meta meta.structure.dictionary.value string"
192
+ },
193
+ {
194
+ "foreground": "ffb86c",
195
+ "token": "meta meta.structure.dictionary.value string"
196
+ },
197
+ {
198
+ "foreground": "f8f8f2",
199
+ "token": "string.key.json"
200
+ },
201
+ {
202
+ "foreground": "ff79c6",
203
+ "token": "string.value.json"
204
+ },
205
+ {
206
+ "foreground": "b5cea8",
207
+ "token": "keyword.json"
208
+ }
209
+ ],
210
+ "colors": {
211
+ "editor.foreground": "#f8f8f2",
212
+ "editor.background": "#282a36",
213
+ "editor.selectionBackground": "#2c303c",
214
+ "editor.lineHighlightBackground": "#2c303c",
215
+ "editorCursor.foreground": "#f8f8f0",
216
+ "editorWhitespace.foreground": "#3B3A32",
217
+ "editorIndentGuide.activeBackground": "#9D550FB0",
218
+ "editor.selectionHighlightBorder": "#222218"
219
+ }
220
+ }
221
+ ;
222
+
223
+ export default _default;
@@ -0,0 +1,2 @@
1
+ import { Field } from '@rjsf/utils';
2
+ export declare const SourceCodeField: Field;
@@ -0,0 +1,2 @@
1
+ export { default as FcodeJsonSchemaForm } from './fcode-json-schema-form';
2
+ export type { FcodeJsonSchemaFormProps } from './fcode-json-schema-form';
@@ -0,0 +1,2 @@
1
+ import { Options as ReactMarkdownProps } from 'react-markdown';
2
+ export declare function MarkdownContent(props: ReactMarkdownProps): import("react").JSX.Element;
@@ -0,0 +1,9 @@
1
+ import { default as React } from 'react';
2
+ interface LoadingOverlayProps {
3
+ active: boolean;
4
+ children?: React.ReactNode;
5
+ content?: React.ReactNode;
6
+ disabled?: boolean;
7
+ }
8
+ declare const LoadingOverlay: ({ active, children, content, disabled, }: LoadingOverlayProps) => React.JSX.Element;
9
+ export default LoadingOverlay;
@@ -0,0 +1,3 @@
1
+ import { EmbedFormOptions } from '../types';
2
+ declare const embedFormOptions: EmbedFormOptions;
3
+ export default embedFormOptions;
@@ -0,0 +1,3 @@
1
+ import { EmbedFormOptions } from '../types';
2
+ declare const embedFormOptions: EmbedFormOptions;
3
+ export default embedFormOptions;
@@ -0,0 +1,3 @@
1
+ import { FormSpecs } from '../types';
2
+ declare const fcodeFormSpecs: FormSpecs;
3
+ export default fcodeFormSpecs;
@@ -0,0 +1,3 @@
1
+ import { GenericObjectType } from '../types';
2
+ declare const fcodeFormSpecsWithRefReplacements: GenericObjectType;
3
+ export default fcodeFormSpecsWithRefReplacements;
@@ -0,0 +1,3 @@
1
+ import { FormSpecs } from '../types';
2
+ declare const fcodeFormSpecs: FormSpecs;
3
+ export default fcodeFormSpecs;
@@ -0,0 +1,9 @@
1
+ export { default as fcodeFormSpecs } from './fcode-form-specs';
2
+ export { default as schema } from './schema';
3
+ export { default as uiSchema } from './ui-schema';
4
+ export { default as embedFormOptions } from './embed-form-options';
5
+ export { default as schemaWithI18n } from './schema-with-i18n';
6
+ export { default as embedFormOptionsWithI18n } from './embed-form-options-with-i18n';
7
+ export { default as fcodeFormSpecsWithI18n } from './fcode-form-specs-with-i18n';
8
+ export { default as schemaWithRefReplacements } from './schema-with-ref-replacements';
9
+ export { default as fcodeFormSpecsWithRefReplacements } from './fcode-form-specs-with-ref-replacements';
@@ -0,0 +1,3 @@
1
+ import { JSONSchema7 } from 'json-schema';
2
+ declare const schema: JSONSchema7;
3
+ export default schema;
@@ -0,0 +1,3 @@
1
+ import { JSONSchema7 } from 'json-schema';
2
+ declare const schemaWithRefReplacements: JSONSchema7;
3
+ export default schemaWithRefReplacements;
@@ -0,0 +1,3 @@
1
+ import { JSONSchema7 } from 'json-schema';
2
+ declare const schema: JSONSchema7;
3
+ export default schema;
@@ -0,0 +1,3 @@
1
+ import { UiSchema } from '@rjsf/utils';
2
+ declare const _default: UiSchema;
3
+ export default _default;