@factorialco/rjsf-f0 1.1.1 → 2.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.
package/README.md CHANGED
@@ -18,13 +18,16 @@ With the Factorial Code Forms SDK — it keeps fetching the form spec and submit
18
18
 
19
19
  ```tsx
20
20
  import FcodeForm from '@factorialco/fcode-react-forms';
21
- import { Theme } from '@factorialco/rjsf-f0';
21
+ import { Theme, markdownComponents } from '@factorialco/rjsf-f0';
22
22
  import '@factorialco/rjsf-f0/styles.css';
23
23
 
24
24
  <FcodeForm
25
25
  team="my-team"
26
26
  processId="my-process"
27
27
  rjsfTheme={Theme}
28
+ // Renders the execution result message (markdown) with f0 components —
29
+ // GFM tables become the f0 table card with Excel/CSV export.
30
+ markdownComponents={markdownComponents}
28
31
  // Suppresses the SDK's standalone stylesheet, which resets inherited styles
29
32
  // and would fight the host app's own.
30
33
  options={{ theme: 'none', locale: 'en' }}
@@ -41,9 +44,9 @@ import '@factorialco/rjsf-f0/styles.css';
41
44
  <Form schema={schema} validator={validator} />;
42
45
  ```
43
46
 
44
- Also exported: `Theme`, `Templates`, `Widgets`, `generateTheme()` and `generateForm()`, matching the layout of the official `@rjsf/*` theme packages.
47
+ Also exported: `Theme`, `Templates`, `Widgets`, `generateTheme()`, `generateForm()` — matching the layout of the official `@rjsf/*` theme packages — and `markdownComponents`, f0's markdown tag renderers as a react-markdown `components` map (used internally for `schema.markdown.before/after`; pass it to `FcodeForm` for the result message).
45
48
 
46
- The host app must render f0's `F0Provider` above the form and import `@factorialco/f0-react/dist/styles.css`; this package assumes both and only ships the layout rules for the parts RJSF composes.
49
+ The host app must render f0's `F0Provider` above the form and import `@factorialco/f0-react/dist/styles.css`; this package assumes both and only ships the layout rules for the parts RJSF composes. The `F0Provider` also serves the markdown table card, whose title and export menu resolve through f0's i18n; exporting a table lazily imports `xlsx` through f0's own dependencies.
47
50
 
48
51
  ## How the mapping works
49
52